:root{--bg:#f6f8fb;--panel:#fff;--text:#172033;--muted:#6b7280;--line:#e5e7eb;--pri:#2563eb;--pri2:#1d4ed8;--ok:#059669;--warn:#d97706;--bad:#dc2626;--soft:#eff6ff;--soft2:#f8fafc;--shadow:0 12px 32px rgba(15,23,42,.08);--r:18px}*{box-sizing:border-box}body{margin:0;font-family:"Microsoft JhengHei",Arial,sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font-family:inherit;font-size:14px}button{border:0;border-radius:10px;padding:10px 14px;cursor:pointer;font-weight:700}.primary{background:var(--pri);color:white}.primary:hover{background:var(--pri2)}.secondary{background:#eef2ff;color:#1e3a8a}.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.danger{background:#fee2e2;color:#991b1b}.full{width:100%}.login-view{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eff6ff,#f8fafc 55%,#eef2ff)}.login-card{width:min(460px,92vw);background:var(--panel);box-shadow:var(--shadow);border-radius:24px;padding:32px;border:1px solid var(--line)}.brand-row{display:flex;gap:16px;align-items:center;margin-bottom:20px}.brand-mark{width:56px;height:56px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#0f766e);display:grid;place-items:center;color:white;font-weight:900;letter-spacing:.5px}.brand-mark.small{width:38px;height:38px;border-radius:12px}.login-card h1{font-size:22px;margin:0 0 5px}.login-card p{margin:0;color:var(--muted);line-height:1.6}.login-card label{display:block;margin:14px 0;color:#334155;font-weight:700}.login-card input,.login-card select,.field input,.field select,.field textarea,input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;outline:none}.login-card input:focus,input:focus,select:focus,textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.35)}.message{min-height:22px;color:var(--bad);margin-top:12px}.login-help{margin-top:16px;color:var(--muted);font-size:13px}.app-view{min-height:100vh}.topbar{height:68px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3}.app-title{display:flex;align-items:center;gap:12px}.app-title span{display:block;color:var(--muted);font-size:13px;margin-top:2px}.user-pill{display:flex;align-items:center;gap:12px;color:#334155}.tab-nav{display:flex;gap:8px;padding:12px 24px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:68px;z-index:2;overflow:auto}.tab-nav button{background:transparent;color:#475569;border:1px solid transparent;white-space:nowrap}.tab-nav button.active{background:var(--soft);color:#1d4ed8;border-color:#bfdbfe}.workspace{padding:24px;max-width:1440px;margin:0 auto}.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:20px;margin-bottom:20px}.card h2{margin:0 0 12px;font-size:22px}.card h3{margin:0 0 10px;font-size:16px}.hint{color:var(--muted);line-height:1.65}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:2fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.grid.four{grid-template-columns:repeat(4,1fr)}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:16px 0}.kpi{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid var(--line);border-radius:16px;padding:16px}.kpi span{color:var(--muted);font-size:13px}.kpi b{display:block;margin:8px 0;font-size:26px}.kpi em{font-style:normal;color:var(--muted);font-size:12px}.kpi.ok b{color:var(--ok)}.kpi.warn b{color:var(--warn)}.kpi.bad b{color:var(--bad)}.dept-list{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;max-height:520px;overflow:auto}.dept-list button{display:block;width:100%;text-align:left;background:transparent;border:1px solid var(--line);margin:6px 0;color:#334155}.dept-list button.active{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}.canvas-wrap{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px;margin-top:14px}canvas{max-width:100%;height:260px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}.field{display:block;font-weight:700;color:#334155}.field small{display:block;color:var(--muted);font-weight:400;margin-top:6px}.filebtn{display:inline-flex;align-items:center;gap:8px;background:#eef2ff;color:#1e3a8a;padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer}.filebtn input{display:none}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:800px}.table th,.table td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}.table th{background:#f8fafc;color:#334155;position:sticky;top:0;z-index:1}.table tr:hover td{background:#f8fafc}.status{padding:12px 14px;border-radius:12px;background:#f8fafc;border:1px solid var(--line);color:#334155;line-height:1.6}.status.ok{background:#ecfdf5;border-color:#bbf7d0;color:#065f46}.status.warn{background:#fffbeb;border-color:#fde68a;color:#92400e}.status.bad{background:#fef2f2;border-color:#fecaca;color:#991b1b}.badge{display:inline-block;border-radius:999px;padding:4px 8px;font-size:12px;background:#f1f5f9;color:#475569}.badge.ok{background:#dcfce7;color:#166534}.badge.warn{background:#fef3c7;color:#92400e}.badge.bad{background:#fee2e2;color:#991b1b}.merge-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dept-card{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 0;background:#fff}.drop-zone{min-height:230px;border:2px dashed #bfdbfe;border-radius:16px;padding:12px;background:#eff6ff}.drop-zone.over{background:#dbeafe}.selected-item{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 12px;margin:8px 0}.forecast-table input{width:110px;text-align:right}.readonly{background:#f8fafc;color:#64748b}.version-box{font-size:13px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:12px;line-height:1.6}.question-box{display:grid;grid-template-columns:1fr auto;gap:10px}.answer{white-space:pre-wrap;line-height:1.8}.mini{font-size:13px}.muted{color:var(--muted)}.hide{display:none!important}@media(max-width:960px){.grid.two,.grid.three,.grid.four,.kpi-grid,.merge-layout{grid-template-columns:1fr}.tab-nav{top:68px}.workspace{padding:14px}.topbar{padding:0 14px}.user-pill{font-size:12px}}
@media print{body{background:#fff}.topbar,.tab-nav,.toolbar,.ghost,.primary,.secondary,.danger,.filebtn,.dept-list,.question-box{display:none!important}.workspace{padding:0;max-width:none}.card{box-shadow:none;border:0;margin:0;padding:12px}.print-footer{display:block!important;position:fixed;bottom:0;left:0;right:0;font-size:10px;color:#555;border-top:1px solid #ccc;padding:5px 12px;background:#fff}}
.print-footer{display:none}


/* R28 login visual refresh: company logo + one-stop login style */
.login-view{background:linear-gradient(135deg,#eef6ff 0%,#f8fbff 52%,#eef2ff 100%)}
.login-card-wide{width:min(520px,92vw);padding:34px 36px 30px}
.company-lockup{display:flex;gap:18px;align-items:center;margin-bottom:26px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.company-logo{width:78px;height:78px;border-radius:22px;background:linear-gradient(135deg,#1554c6 0%,#047481 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;box-shadow:0 14px 28px rgba(21,84,198,.22);letter-spacing:.08em;flex:0 0 auto}
.company-logo .logo-main{font-weight:900;font-size:20px;line-height:1.05}.company-logo .logo-sub{font-size:11px;margin-top:7px;opacity:.9;letter-spacing:.16em}.company-copy h1{font-size:26px;line-height:1.25;margin:0 0 6px;color:#0f172a}.company-copy .program-title{font-size:18px;font-weight:800;color:#1d4ed8;margin:0 0 6px}.company-copy .login-note{font-size:13px;color:var(--muted);line-height:1.55;margin:0}.login-panel-title{font-size:16px;font-weight:900;margin:0 0 12px;color:#0f172a}.login-card-wide label{font-size:15px}.login-card-wide input,.login-card-wide select{height:48px;font-size:15px;border-radius:14px}.login-card-wide .primary.full{height:48px;border-radius:14px;font-size:16px;margin-top:8px}.login-help{border-top:1px solid var(--line);padding-top:14px}.login-help summary{cursor:pointer;font-weight:800;color:#475569}.login-account-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:8px 14px;margin:12px 0 10px;padding:12px;border-radius:14px;background:#f8fafc;border:1px solid var(--line)}.login-account-grid span{color:#334155}.login-account-grid b{font-family:Consolas,"Courier New",monospace;color:#0f172a}.brand-mark.small{font-size:12px;letter-spacing:0;white-space:nowrap}.app-title strong{font-size:16px}
@media(max-width:560px){.company-lockup{align-items:flex-start}.company-logo{width:64px;height:64px;border-radius:18px}.company-logo .logo-main{font-size:17px}.company-copy h1{font-size:22px}.company-copy .program-title{font-size:16px}}

/* R29 login visual refresh: ASYS-style text logo + unified initial password */
.company-logo.asys-logo{width:128px;height:72px;border-radius:16px;background:linear-gradient(135deg,#0b4fb3 0%,#0b7f8d 100%);display:flex;flex-direction:row;gap:10px;align-items:center;justify-content:center;padding:10px 12px;letter-spacing:0;box-shadow:0 14px 28px rgba(21,84,198,.22)}
.company-logo.asys-logo .logo-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);font-weight:900;font-size:22px;color:#fff}
.company-logo.asys-logo .logo-lines{display:flex;flex-direction:column;line-height:1.1;color:#fff;white-space:nowrap}
.company-logo.asys-logo .logo-lines b{font-size:18px;letter-spacing:.06em}
.company-logo.asys-logo .logo-lines em{font-style:normal;font-size:10px;opacity:.9;letter-spacing:.08em;margin-top:4px}
.login-account-grid{grid-template-columns:1.05fr 1.45fr}
@media(max-width:560px){.company-logo.asys-logo{width:112px;height:64px}.company-logo.asys-logo .logo-symbol{width:32px;height:32px;font-size:18px}.company-logo.asys-logo .logo-lines b{font-size:16px}}


/* R30 ASYS logo image + department-code login select */
.company-logo-img-wrap{width:170px;height:76px;display:flex;align-items:center;justify-content:center;background:transparent;border-radius:12px;flex:0 0 auto}
.asys-logo-img{max-width:168px;max-height:72px;display:block;object-fit:contain}
.asys-logo-small{width:92px;height:34px;object-fit:contain;background:transparent;border-radius:6px;margin-right:6px}
.login-card select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;outline:none}
.login-card select:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.35)}
.company-lockup{align-items:center}
@media(max-width:560px){.company-logo-img-wrap{width:132px;height:60px}.asys-logo-img{max-width:130px;max-height:56px}.asys-logo-small{width:76px;height:28px}}


/* R31 login usability fixes */
.login-card-wide{width:min(720px,94vw);}
.company-copy{min-width:0; flex:1;}
.company-copy h1{white-space:nowrap; font-size:28px;}
.login-card-wide select#loginUserId{min-height:54px; color:#172033; background-color:#fff;}
.login-card-wide select#loginUserId option{color:#172033; background:#fff;}
@media(max-width:680px){.login-card-wide{width:min(560px,94vw);}.company-copy h1{font-size:24px;white-space:nowrap}.company-lockup{gap:14px}.company-logo-img-wrap{width:150px}}
@media(max-width:520px){.company-lockup{flex-direction:column;align-items:flex-start}.company-copy h1{font-size:22px;white-space:nowrap}}

/* R32 editorial finance login page: refined, non-Chinese-element, finance lifestyle style */
.editorial-login{
  min-height:100vh;
  display:block;
  background:
    radial-gradient(circle at 86% 7%, rgba(216,226,211,.75), transparent 19%),
    radial-gradient(circle at 8% 78%, rgba(221,232,226,.75), transparent 20%),
    linear-gradient(135deg,#fbf8ef 0%,#f8f4eb 46%,#edf4f0 100%);
  color:#1f3836;
  overflow:auto;
  padding:0;
}
.login-site-header{max-width:1180px;margin:0 auto;padding:22px 32px 0;}
.login-brand-row{display:flex;justify-content:space-between;align-items:center;gap:24px;}
.login-asys-logo{width:126px;height:auto;object-fit:contain;display:block;}
.login-header-links{display:flex;gap:24px;color:#6b706b;font-size:14px;white-space:nowrap;}
.login-hero{max-width:1180px;margin:0 auto;padding:28px 32px 22px;}
.login-copy-area{margin:16px 0 28px;}
.login-copy-area h1{font-size:44px;line-height:1.15;margin:0;color:#224c47;letter-spacing:.04em;white-space:nowrap;font-family:"Noto Serif TC","Noto Sans TC",serif;}
.login-copy-area .program-title{font-size:24px;margin:16px 0 0;color:#a08455;letter-spacing:.18em;font-weight:700;}
.title-rule{width:360px;height:1px;background:linear-gradient(90deg,transparent,#c7ad78,transparent);margin:0 0 20px 6px;position:relative;}
.title-rule::after{content:"";position:absolute;left:50%;top:-4px;width:8px;height:8px;background:#c7ad78;transform:translateX(-50%) rotate(45deg);}
.login-body-grid{display:grid;grid-template-columns:440px 1fr;gap:44px;align-items:center;}
.editorial-card{background:rgba(255,255,255,.86);border:1px solid rgba(218,211,196,.92);border-radius:24px;padding:34px 34px 30px;box-shadow:0 24px 55px rgba(54,69,60,.14);backdrop-filter:blur(5px);}
.login-panel h2{margin:10px 0 6px;text-align:center;font-size:24px;color:#1e3835;}
.login-panel-note{text-align:center;color:#8a8172;margin:0 0 24px;font-size:13px;}
.login-badge{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 8px;background:linear-gradient(145deg,#2f6f69,#244f4b);color:#d5bd7b;box-shadow:0 10px 25px rgba(47,111,105,.24);font-size:20px;}
.login-field-label{display:block;color:#2f423f;font-weight:800;margin-bottom:18px;}
.login-field-label select,.login-field-label input{margin-top:9px;height:50px;border-radius:10px;border:1px solid #d9d6cf;background:#fff;color:#273a37;box-shadow:none;font-size:15px;}
.login-field-label select:focus,.login-field-label input:focus{border-color:#7faaa3;box-shadow:0 0 0 4px rgba(127,170,163,.22);}
.login-row-between{display:flex;justify-content:space-between;align-items:center;margin:4px 0 18px;color:#63716e;gap:12px;}
.remember-line{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:14px!important;font-weight:600!important;color:#4c615d!important;}
.remember-line input{width:16px;height:16px;accent-color:#2f6f69;}
.login-main-btn{height:52px!important;border-radius:10px!important;background:linear-gradient(135deg,#2d706a,#255e59)!important;box-shadow:0 16px 32px rgba(47,111,105,.23)!important;font-size:18px!important;letter-spacing:.15em;}
.secure-note{margin:20px 0 0;text-align:center;color:#8b867a;font-size:13px;border-top:1px solid #ece7dc;padding-top:18px;}
.editorial-login .message{text-align:center;font-weight:700;color:#b45309;}
.finance-visual{position:relative;min-height:520px;}
.finance-visual::before{content:"";position:absolute;inset:30px 0 0 0;background:linear-gradient(145deg,rgba(255,255,255,.48),rgba(229,239,235,.2));border-radius:36px;filter:blur(.2px);}
.paper{position:absolute;background:#fffaf1;border:1px solid #e3dbc9;box-shadow:0 18px 42px rgba(66,73,65,.12);border-radius:4px;padding:18px;color:#39413d;}
.paper span{font-size:13px;font-weight:900;letter-spacing:.08em;color:#4b5550;}
.paper-trend{right:20px;top:10px;width:320px;transform:rotate(4deg);}
.paper-trend svg{width:100%;height:140px;margin-top:8px;}
.paper-summary{left:42px;top:168px;width:285px;transform:rotate(-3deg);}
.summary-row{display:flex;justify-content:space-between;border-bottom:1px solid #eee7dc;padding:8px 0;font-size:13px;}
.summary-row b{font-weight:700;color:#5f625d}.summary-row em{font-style:normal;color:#243d39;font-weight:800;}
.paper-cash{right:4px;top:210px;width:260px;transform:rotate(2deg);}
.bar-chart{height:156px;display:flex;align-items:flex-end;gap:34px;margin:12px 16px 0;border-left:1px solid #e8e2d8;border-bottom:1px solid #e8e2d8;padding-left:22px;}
.bar-chart i{display:block;width:42px;background:#8daea4;border-radius:3px 3px 0 0}.bar-chart .neg{background:#d2ad66;height:34%!important;transform:translateY(26px);}
.calc{position:absolute;left:178px;bottom:38px;width:172px;height:116px;background:#e9e2d5;border-radius:12px;box-shadow:0 18px 38px rgba(49,57,52,.22);transform:rotate(-6deg);padding:13px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.calc div{grid-column:1/-1;background:#cbd1be;border-radius:4px;padding:8px;text-align:right;font-family:monospace;color:#1c302e;font-size:20px}.calc span{background:#f8f3e8;border:1px solid #d7cbb6;border-radius:5px;}
.ledger{position:absolute;right:86px;bottom:32px;width:150px;height:160px;background:linear-gradient(145deg,#244f4b,#173b38);border:2px solid #bfa66d;border-radius:10px;box-shadow:0 18px 36px rgba(21,49,45,.28);color:#d9bd75;font-family:Georgia,serif;font-weight:800;letter-spacing:.08em;display:flex;align-items:center;justify-content:center;text-align:center;transform:rotate(-3deg);}
.coins{position:absolute;right:0;bottom:28px;width:72px;height:74px}.coins i{position:absolute;right:0;bottom:0;width:52px;height:14px;border-radius:50%;background:#d5ad50;border:1px solid #b78f3d;box-shadow:0 -10px 0 #dfbc63,0 -20px 0 #e5c872}.coins i:nth-child(2){right:34px;bottom:4px;transform:scale(.78)}.coins i:nth-child(3){right:18px;bottom:44px;transform:scale(.58)}
.botanical{position:absolute;border-radius:50%;background:rgba(111,138,92,.22);filter:blur(1px)}.botanical.one{right:26px;top:-24px;width:150px;height:80px;transform:rotate(-24deg)}.botanical.two{left:-28px;bottom:16px;width:120px;height:64px;transform:rotate(28deg)}
.notice-section{margin:46px 0 18px;padding:24px 0 6px;border-top:1px solid rgba(215,207,190,.7);}
.notice-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 20px;}
.notice-heading>div{display:flex;align-items:center;gap:10px}.notice-heading h2{margin:0;font-size:24px;color:#244f4b}.notice-heading p{margin:0;color:#8a8172}.bell{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;border:1px solid #b9c7bf;color:#2f6f69;font-weight:900;}
.notice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.notice-card{background:rgba(255,255,255,.74);border:1px solid #e5ded1;border-radius:18px;padding:22px;box-shadow:0 14px 32px rgba(61,74,66,.09);min-height:154px;}
.notice-date{display:block;color:#a08455;font-size:13px;margin-bottom:12px}.notice-card h3{margin:0 0 10px;color:#1f3836;font-size:18px}.notice-card p{margin:0;color:#706b60;line-height:1.7;font-size:14px;}
.editorial-login .login-help{display:none!important;}
@media(max-width:980px){.login-body-grid{grid-template-columns:1fr}.finance-visual{min-height:430px}.notice-grid{grid-template-columns:repeat(2,1fr)}.login-copy-area h1{font-size:34px}.login-header-links{display:none}}
@media(max-width:620px){.login-site-header,.login-hero{padding-left:18px;padding-right:18px}.login-copy-area h1{font-size:28px;white-space:normal}.login-copy-area .program-title{font-size:20px}.editorial-card{padding:26px 22px}.notice-grid{grid-template-columns:1fr}.finance-visual{display:none}}

/* R38 interface fit: compact financial system layout */
:root{--r38-text:#0f172a;--r38-muted:#64748b;--r38-line:#e2e8f0;--r38-card:#fff;--r38-blue:#2563eb;--r38-green:#047857;--r38-red:#ef4444;}
body{font-size:14px;line-height:1.45;color:var(--r38-text);}
.app-header{min-height:64px;padding:10px 22px;gap:14px;align-items:center;}
.app-title{gap:12px;min-width:0;}
.app-title strong{font-size:18px;line-height:1.25;white-space:nowrap;}
.app-title span{font-size:13px;line-height:1.25;color:var(--r38-muted);}
.asys-logo-small{width:118px;height:42px;object-fit:contain;background:transparent!important;}
.user-pill{font-size:15px;gap:10px;white-space:nowrap;}
.tab-nav{padding:10px 22px;gap:8px;min-height:52px;position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);z-index:5;border-bottom:1px solid var(--r38-line);}
.tab-nav button{font-size:15px;padding:10px 16px;border-radius:12px;}
.app-main{padding:18px 22px;max-width:100%;}
.card{border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.04);}
.card h2{font-size:20px;margin:0 0 8px;}
.card h3{font-size:16px;margin:0;}
.hint{font-size:13px;color:var(--r38-muted);margin:4px 0 12px;}
.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start;}
.home-title-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:10px;}
.mini-version{font-size:12px;line-height:1.6;min-width:260px;text-align:left;}
.compact-kpis{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin-bottom:12px;}
.kpi{min-height:88px;padding:14px;border-radius:16px;}
.kpi span{font-size:13px;}
.kpi b{font-size:24px;line-height:1.2;margin:5px 0;}
.kpi em{font-size:12px;}
.compact-chart{margin-top:12px;padding:14px;border:1px solid var(--r38-line);border-radius:16px;background:#fff;}
.compact-chart canvas{width:100%;height:280px;display:block;}
.chart-title-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:6px;}
.legend-dot{font-size:12px;color:var(--r38-muted);display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.legend-dot i{display:inline-block;width:18px;height:10px;border-radius:999px;margin-right:2px;vertical-align:middle;}
.legend-dot .bar{background:#93c5fd}.legend-dot .line{width:10px;height:10px;background:#1e3a8a}.legend-dot .forecast-bar{border:2px dashed var(--r38-red);background:transparent}.legend-dot .forecast-line{width:10px;height:10px;background:var(--r38-red)}
.home-side-card{position:sticky;top:76px;max-height:calc(100vh - 100px);overflow:auto;}
.compact-dept-list{display:flex;flex-direction:column;gap:6px;}
.compact-dept-list button{font-size:13px;padding:8px 10px;border-radius:10px;text-align:left;}
.status{font-size:13px;padding:10px 12px;border-radius:12px;}
.table-wrap{overflow:auto;max-width:100%;}
.admin-scroll{max-height:calc(100vh - 245px);}
.table{font-size:13px;min-width:980px;}
.dense-table th,.dense-table td{padding:7px 8px;vertical-align:middle;}
.table th{font-size:12px;white-space:nowrap;background:#f8fafc;position:sticky;top:0;z-index:1;}
.table td{font-size:13px;}
.table td.num,.num{text-align:right;font-variant-numeric:tabular-nums;}
.forecast-table{min-width:1320px;}
.forecast-table th:first-child,.forecast-table td:first-child{position:sticky;left:0;background:#fff;z-index:2;min-width:220px;box-shadow:1px 0 0 var(--r38-line);}
.forecast-table th:first-child{z-index:3;background:#f8fafc;}
.forecast-input{width:112px;max-width:112px;height:32px;padding:4px 8px;font-size:13px;text-align:right;border-radius:10px;}
.grid.four,.compact-grid{grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;}
.field{font-size:13px;}
.field input,.field select,.toolbar input,.question-box input,.editable-table input,.editable-table select{height:34px;font-size:13px;border-radius:10px;padding:5px 9px;}
.toolbar{gap:8px;flex-wrap:wrap;}
.toolbar button,.primary,.secondary,.ghost{font-size:13px;padding:8px 12px;border-radius:10px;}
.merge-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;}
.dept-card,.selected-item{padding:10px;border-radius:12px;font-size:13px;}
.completion-box{margin-top:12px;}
.badge.warn{background:#fff7ed;color:#c2410c;border-color:#fed7aa;}
.editable-table input,.editable-table select{min-width:110px;width:100%;}
.inline-field{display:inline-flex;align-items:center;gap:8px;margin:0;}
.inline-field select{min-width:220px;}
@media(max-width:1366px){
  .app-header{padding:8px 18px}.app-title strong{font-size:17px}.user-pill{font-size:14px}.tab-nav{padding:8px 18px}.tab-nav button{font-size:14px;padding:9px 14px}.app-main{padding:14px 18px}.card{padding:15px}.home-layout{grid-template-columns:minmax(0,1fr) 240px;gap:12px}.compact-kpis{grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px}.kpi{min-height:78px;padding:12px}.kpi b{font-size:21px}.compact-chart canvas{height:245px}.table{font-size:12px}.dense-table th,.dense-table td{padding:6px 7px}.asys-logo-small{width:102px;height:36px}
}
@media(max-width:980px){.home-layout,.merge-layout{grid-template-columns:1fr}.home-side-card{position:static;max-height:none}.compact-kpis{grid-template-columns:repeat(2,minmax(150px,1fr))}.home-title-row{flex-direction:column}.mini-version{min-width:0}.grid.four,.compact-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.compact-kpis{grid-template-columns:1fr}.grid.four,.compact-grid{grid-template-columns:1fr}.app-title strong{white-space:normal}.user-pill{white-space:normal}.chart-title-row{align-items:flex-start;flex-direction:column}}

/* R40 login utilities and support settings */
.login-header-links button{background:transparent;border:0;padding:4px 0;color:#6b706b;font-weight:700;cursor:pointer;white-space:nowrap}
.login-header-links button:hover{color:#174c45;text-decoration:underline;text-underline-offset:4px}
.login-utility-panel{width:min(1040px,92vw);margin:14px auto 0;z-index:2;position:relative}
.login-tool-card{background:rgba(255,255,255,.94);border:1px solid rgba(215,207,190,.9);box-shadow:0 18px 48px rgba(92,77,52,.12);border-radius:20px;padding:18px 20px;color:#24302d}
.login-tool-card h2{margin:0 0 10px;font-size:20px}
.login-tool-card textarea{resize:vertical;min-height:110px}
.ok-message{color:#065f46!important}
.inner-card{box-shadow:none;margin-bottom:0;background:#fbfaf7}
.compact-toolbar{gap:8px;margin:10px 0}
@media(max-width:980px){.login-utility-panel{margin-top:8px}.login-header-links{display:flex;gap:12px;font-size:13px}.login-header-links button{font-size:13px}.login-tool-card{padding:14px}}
/* R42 login notice settings */
.notice-settings-card{margin-top:16px;}
.notice-settings-card .notice-content-input{width:100%;min-width:360px;resize:vertical;}
.notice-settings-card .notice-title-input{min-width:220px;}
.notice-settings-card .notice-date-input{min-width:130px;}
.notice-settings-card .notice-order{width:72px;}

/* R48 patch: management report preview screen layout only */
.management-preview-host .management-report-preview{
  background:#fff;
  border:1px solid #d0d7de;
  border-radius:0;
  padding:18px 22px;
  width:100%;
  max-width:1360px;
  margin:0 auto;
  overflow:visible;
}
.management-preview-host .mrp-hero{
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:flex-start;
  background:linear-gradient(135deg,#26313a,#1f2933);
  color:#fff;
  padding:22px 28px;
  margin:0 0 18px;
  width:100%;
}
.management-preview-host .mrp-hero h3{
  font-size:26px;
  line-height:1.25;
  margin:0 0 8px;
  letter-spacing:.03em;
  color:#fff;
}
.management-preview-host .mrp-hero p{
  margin:0;
  color:#e5edf5;
  font-size:13px;
  line-height:1.55;
}
.management-preview-host .mrp-meta{
  text-align:right;
  font-size:13px;
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#fff;
  white-space:nowrap;
}
.management-preview-host .mrp-meta b{
  border:1px solid rgba(255,255,255,.75);
  border-radius:6px;
  padding:5px 12px;
  color:#fff;
}
.management-preview-host .mrp-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:14px 0 18px;
  width:100%;
  min-width:0;
}
.management-preview-host .mrp-card{
  border:1px solid #d7dde8;
  border-radius:8px;
  padding:13px 16px;
  background:#fff;
  min-width:0;
}
.management-preview-host .mrp-card span{
  display:block;
  color:#4b5563;
  font-weight:800;
  font-size:13px;
  line-height:1.35;
  text-align:center;
}
.management-preview-host .mrp-card b{
  display:block;
  font-size:24px;
  line-height:1.2;
  margin:6px 0;
  color:#111827;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.management-preview-host .mrp-card em{
  display:block;
  font-style:normal;
  color:#6b7280;
  font-size:11px;
  line-height:1.45;
  text-align:center;
}
.management-preview-host .mrp-card em small{
  font-size:11px;
  color:#6b7280;
  font-weight:500;
}
.management-preview-host .mrp-month-kpi{
  display:block;
  color:#111827;
  font-weight:800;
  font-style:normal;
  white-space:nowrap;
}
.management-preview-host .mrp-unit{
  text-align:right;
  font-size:12px;
  color:#475569;
  margin:0 0 8px;
  width:100%;
}
.management-preview-host .mrp-table-wrap{
  overflow:auto;
  width:100%;
  border-radius:0;
  border:0;
}
.management-preview-host .mrp-table{
  width:100%;
  min-width:1180px;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:11px;
}
.management-preview-host .mrp-table th,
.management-preview-host .mrp-table td{
  border:1px solid #d8dee9;
  padding:5px 5px;
  white-space:normal;
  word-break:keep-all;
  vertical-align:middle;
}
.management-preview-host .mrp-table thead tr:first-child th{
  background:#2f3e4c;
  color:#fff;
  text-align:center;
  font-weight:800;
}
.management-preview-host .mrp-table thead tr:nth-child(2) th{
  background:#f1f3f5;
  color:#1f4e9a;
  text-align:center;
  font-weight:800;
}
.management-preview-host .mrp-table td:first-child{
  font-weight:800;
  text-align:left;
}
.management-preview-host .mrp-table td{background:#fff;}
.management-preview-host .mrp-table tr:nth-child(even) td{background:#f8fafc;}
.management-preview-host .mrp-table tr.std-total td{
  background:#e3f1ff!important;
  font-weight:900;
}
.management-preview-host .std-num{text-align:right;}
.management-preview-host .neg{color:#ff0000!important;font-weight:800;}
.management-preview-host .mrp-note{display:none;}
.management-preview-host .mrp-footer{
  display:flex;
  justify-content:space-between;
  border-top:1px solid #cbd5e1;
  margin-top:16px;
  padding-top:9px;
  color:#475569;
  font-size:11px;
  width:100%;
}
@media(max-width:980px){
  .management-preview-host .mrp-hero{flex-direction:column;gap:12px;}
  .management-preview-host .mrp-meta{text-align:left;white-space:normal;}
  .management-preview-host .mrp-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .management-preview-host .mrp-cards{grid-template-columns:1fr;}
}

.locked-input{background:#f1f5f9!important;color:#64748b!important;border-color:#cbd5e1!important;cursor:not-allowed!important;opacity:1!important;}

/* R48 預估值平行比較與合併報表圖片輸出 */
.parallel-divider{height:1px;background:#e2e8f0;margin:22px 0;}
.parallel-compare-host{margin-top:8px;}
.parallel-note{font-size:14px;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;margin-bottom:10px;}
.parallel-table-wrap{max-width:100%;overflow:auto;border-radius:12px;}
.parallel-table th,.parallel-table td{white-space:nowrap;}
.parallel-table th:first-child,.parallel-table td:first-child{position:sticky;left:0;background:#fff;z-index:2;min-width:180px;}
.parallel-table thead th:first-child{background:#f8fafc;z-index:3;}
.parallel-table tr.emphasis td{font-weight:700;background:#eef6ff;}
