.withholding-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 28px 34px 34px;
    color: #e5edf7;
    overflow: hidden;
}

.withholding-view .w-page-head,
.withholding-view .w-toolbar {
    flex: 0 0 auto;
}

#wPanelMonthly,
#wPanelSemi {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#wPanelPayroll,
#wPanelMgmt {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}
#wPanelPayroll::-webkit-scrollbar,
#wPanelMgmt::-webkit-scrollbar {
    display: none;
}

.w-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.w-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: #f5f7fb;
    font-size: 1.48rem;
    line-height: 1.2;
    font-weight: 760;
}

.w-preview-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    color: #d6dbe5;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 720;
}

.w-page-subtitle {
    margin: 0;
    color: #99a5b7;
    font-size: 0.88rem;
}

.w-help-btn,
.w-month-btn,
.w-confirm-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.w-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #c4ccd8;
    background: rgba(15, 28, 47, 0.84);
    border: 1px solid rgba(158, 171, 192, 0.18);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.w-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 980px;
    margin-bottom: -1px;
}

.archive-tabs.w-tabs {
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: rgba(12, 24, 42, 0.76);
    border: 1px solid rgba(150, 164, 186, 0.14);
    border-bottom: 0;
}

.w-tabs .tab-btn {
    min-width: 132px;
    padding: 14px 24px;
    border-radius: 0;
    color: #a9b3c2;
    background: transparent;
    border-right: 1px solid rgba(150, 164, 186, 0.10);
    font-size: 0.92rem;
    font-weight: 680;
}

.w-tabs .tab-btn.active {
    color: #f6f8fb;
    background: linear-gradient(180deg, rgba(69, 83, 111, 0.82), rgba(36, 47, 67, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.w-confirm-btn {
    min-width: 118px;
    padding: 10px 18px;
    margin: 6px 10px;
    border-radius: 999px;
    color: #c8f7dc;
    background: rgba(22, 101, 52, 0.18);
    font-size: 0.82rem;
    font-weight: 720;
}

.w-month-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(12, 24, 42, 0.58);
    border: 1px solid rgba(150, 164, 186, 0.12);
}

.w-month-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c9d2df;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 7px;
}

.w-month-label {
    min-width: 92px;
    color: #e9edf5;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.w-table-card {
    width: fit-content;
    max-width: 100%;
    min-width: min(100%, 780px);
    padding: 22px 24px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-radius: 0 12px 12px 12px;
    background: linear-gradient(180deg, rgba(18, 32, 53, 0.92), rgba(16, 29, 49, 0.88));
    border: 1px solid rgba(159, 174, 195, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.w-table-card::-webkit-scrollbar {
    display: none;
}

.w-loading,
.w-empty {
    padding: 46px 54px;
    color: #9aa7b8;
    text-align: center;
    font-size: 0.9rem;
}

.w-empty small {
    color: #78869a;
}

/* 원천신고 매월납/반기납 표 — 헤더(고정) + 본문(내부 스크롤) CSS Grid 구조.
   네이티브 table의 position:sticky thead는 border-collapse/spacing과 맞물려
   스크롤 시 이전 행이 헤더 위로 비쳐 보이는 크로미움 렌더링 버그가 있어 회피함. */
.w-grid-head,
.w-grid-body {
    width: fit-content;
    min-width: 100%;
}

.w-grid-head {
    flex: 0 0 auto;
}

.w-grid-row {
    display: grid;
    grid-template-columns: var(--w-grid-cols, 170px repeat(5, 118px));
    align-items: center;
}

.w-grid-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.35) transparent;
}
.w-grid-body::-webkit-scrollbar { width: 5px; }
.w-grid-body::-webkit-scrollbar-track { background: transparent; }
.w-grid-body::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.35);
    border-radius: 4px;
}

.w-th {
    padding: 10px 13px 12px;
    color: #aeb8c7;
    font-size: 0.76rem;
    font-weight: 760;
    text-align: center;
    white-space: nowrap;
}

.w-company-th {
    min-width: 170px;
    padding-left: 18px;
    padding-right: 10px;
    text-align: left;
}

.w-data-row {
    background: rgba(31, 47, 72, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    border-radius: 8px;
}

.w-data-row:hover {
    background: rgba(38, 56, 82, 0.78);
}

.w-company-cell {
    min-width: 170px;
    max-width: 210px;
    padding: 14px 10px 14px 18px;
    color: #f1f5fa;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-company-done {
    color: #79e6a7;
    text-shadow: 0 0 10px rgba(121, 230, 167, 0.34);
}

.w-status-cell {
    min-width: 80px;
    padding: 13px 10px;
    text-align: center;
    white-space: nowrap;
}

.w-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 58px;
    padding: 3px 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    background: transparent;
    transition: transform 0.16s ease, opacity 0.16s ease, text-shadow 0.16s ease;
}

.w-status:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.w-status-icon {
    display: none;
}

.w-status-uploaded {
    color: #f4c76a;
    background: rgba(244, 199, 106, 0.075);
    text-shadow: 0 0 10px rgba(244, 199, 106, 0.36);
}

.w-status-done {
    color: #79e6a7;
    background: rgba(121, 230, 167, 0.075);
    text-shadow: 0 0 10px rgba(121, 230, 167, 0.34);
}

.w-status-missing {
    color: rgba(196, 204, 216, 0.58);
    background: rgba(196, 204, 216, 0.045);
    text-shadow: none;
}

.w-legend {
    padding: 10px 4px 2px;
    color: #7f8da1;
    font-size: 0.76rem;
}

@media (max-width: 860px) {
    .withholding-view {
        padding: 20px 16px 28px;
    }
    .w-page-head,
    .w-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .archive-tabs.w-tabs,
    .w-month-control {
        width: 100%;
    }
    .w-tabs .tab-btn {
        min-width: 0;
        flex: 1;
        padding: 12px 10px;
    }
    .w-table-card {
        min-width: 100%;
        border-radius: 12px;
        padding: 14px;
    }
}

/* Glass workspace — shared with the approved withholding drafts. */
.withholding-view{--w-line:rgba(123,166,215,.38);
    position:relative;
    padding:22px 26px 20px;
    background:radial-gradient(ellipse at 92% 3%,rgba(72,56,156,.15),transparent 40%),linear-gradient(135deg,#081b2a,#071422 75%);
    isolation:isolate}

.withholding-view:before{content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background-image:linear-gradient(rgba(110,146,195,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(110,146,195,.025) 1px,transparent 1px);
    background-size:48px 48px}

.withholding-view .w-page-head{position:relative;
    --w-head-art:url('../assets/withholding-workspace.webp');
    min-height:142px;
    margin-bottom:16px;
    align-items:center;
    border-radius:12px}

/* Fade the artwork itself so its rectangular backdrop blends into the workspace. */
.withholding-view .w-page-head::before{content:"";
    position:absolute;
    top:0;
    bottom:0;
    right:170px;
    width:690px;
    pointer-events:none;
    background:var(--w-head-art) right center/auto 230px no-repeat;
    mask-image:linear-gradient(to right,transparent,#000 100px,#000 calc(100% - 60px),transparent),linear-gradient(to bottom,transparent,#000 12px,#000 calc(100% - 22px),transparent);
    mask-composite:intersect}

.w-page-head>div{position:relative;
    z-index:1}
.w-home-back{margin-bottom:12px}
.withholding-view .w-page-title{font-size:clamp(1.6rem,2vw,2.2rem);
    letter-spacing:-.04em;
    margin-bottom:10px}
.w-page-subtitle{color:#a8c3df;
    font-size:.94rem}
.w-help-btn{align-self:flex-start;
    margin-top:10px;
    position:relative;
    z-index:1;
    background:linear-gradient(145deg,#163654d9,#0a2038e8);
    border-color:var(--w-line);
    border-radius:11px;
    padding:13px 17px}

.withholding-view .w-toolbar{max-width:none;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:14px}
.archive-tabs.w-tabs{display:flex;
    align-items:center;
    flex:1;
    padding:7px 9px;
    gap:5px;
    border:1px solid var(--w-line);
    border-radius:14px;
    background:linear-gradient(130deg,#16395599,#081c31dd);
    box-shadow:inset 0 1px 0 #c6dcff14,0 9px 24px #0002;
    overflow:visible}
.w-tabs .tab-btn{min-width:116px;
    padding:13px 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px solid transparent;
    border-radius:10px;
    color:#bdd0e8;
    font-weight:650}
.w-tabs .tab-btn i{font-size:1.2rem}
.w-tabs .tab-btn.active{border-color:#8f9bfa;
    background:linear-gradient(135deg,#4564c9b3,#38338b91);
    box-shadow:inset 0 1px 0 #ffffff2b,0 0 18px #6964ff2b}
.w-tabs #wTabMgmt.active{border-color:#71cfbf;
    background:linear-gradient(135deg,#177a7a99,#143b4a)}
.w-tabs #wTabPayroll.active{border-color:#d5b16a;
    background:linear-gradient(135deg,#88703999,#322b24);
    color:#f6dc9e;
    box-shadow:inset 0 1px 0 #fff4,0 0 16px #c6a45c26}
.w-confirm-btn{margin:0 2px 0 auto;
    border:1px solid #d5b16a;
    border-radius:10px;
    padding:13px 20px;
    color:#fff0c5;
    background:linear-gradient(135deg,#a18447aa,#58432488);
    box-shadow:inset 0 1px 0 #fff4;
    font-weight:700}
.w-confirm-btn i{margin-right:7px}
.w-month-control{border-color:var(--w-line);
    background:linear-gradient(130deg,#143650cc,#0a1d30);
    padding:7px 9px;
    box-shadow:inset 0 1px 0 #ffffff0d}
.w-month-btn{background:transparent}
.w-month-label{min-width:110px}

.withholding-view[data-tab=mgmt] .w-month-control,.withholding-view[data-tab=payroll] .w-month-control,.withholding-view[data-tab=mgmt] .w-confirm-btn,.withholding-view[data-tab=payroll] .w-confirm-btn,.withholding-view[data-tab=mgmt] .w-board-legend,.withholding-view[data-tab=payroll] .w-board-legend{display:none}

.w-table-card{width:calc(100% - 314px);
    min-width:0;
    max-width:none;
    box-sizing:border-box;
    padding:12px;
    border:1px solid var(--w-line);
    border-radius:14px;
    background:linear-gradient(140deg,#183951bd,#071a2bea);
    box-shadow:inset 0 1px 0 #ffffff16,0 14px 30px #0003;
    scrollbar-width:thin;
    scrollbar-color:#55759a #0b2034;
    overflow-x:auto}
.w-table-card::-webkit-scrollbar{display:block;
    height:8px}
.w-grid-head,.w-grid-body{width:100%;
    min-width:max-content}
.w-grid-header-row{border:1px solid #537caa66;
    border-radius:10px 10px 0 0;
    background:linear-gradient(130deg,#214467a1,#10283f);
    min-height:50px}
.w-th{color:#dbe7fb;
    font-size:.82rem;
    padding:14px 9px}
.w-grid-body{gap:0}
.w-data-row{min-height:59px;
    border-radius:0;
    background:#091e30a6;
    border:1px solid #3a638b66;
    border-top:0;
    box-shadow:none}
.w-data-row:nth-child(even){background:#102a4070}
.w-data-row:hover{background:#26445b99}
.w-company-cell{font-size:.88rem;
    padding:16px;
    max-width:none}
.w-company-done{color:#79e6a7;
    text-decoration:line-through;
    text-shadow:0 0 10px rgba(121,230,167,.24)}
.w-status-cell{padding:9px 7px}
.w-status{width:100%;
    max-width:122px;
    min-width:92px;
    padding:9px 10px;
    font-size:.79rem;
    font-weight:550;
    border:1px solid;
    border-radius:24px;
    box-shadow:inset 0 1px 0 #ffffff16;
    white-space:nowrap}
.w-status-icon{display:inline}
.w-status-missing{color:#b4c9df;
    background:linear-gradient(145deg,#29435f99,#172c4199);
    border-color:#587795}
.w-status-uploaded{color:#ffdf8f;
    background:linear-gradient(145deg,#90733999,#4d4023bb);
    border-color:#c7a044;
    text-shadow:none}
.w-status-done{color:#adf4d6;
    background:linear-gradient(145deg,#17755888,#0b4039bb);
    border-color:#328d73;
    text-shadow:none}
.w-board-legend{display:flex;
    gap:24px;
    flex-wrap:wrap;
    flex-shrink:0;
    margin-top:14px;
    padding:12px 18px;
    border:1px solid var(--w-line);
    border-radius:10px;
    background:linear-gradient(110deg,#19365399,#0b1d2b88);
    font-size:.8rem;
    color:#9ebddc}
.w-board-legend span:nth-child(2){color:#e6c778}
.w-board-legend span:nth-child(3){color:#87debc}
.w-board-legend span:last-child{border-left:1px solid #6885a655;
    padding-left:20px}
.w-legend{display:none}

.w-glass-panel{box-sizing:border-box;
    min-width:0;
    border:1px solid var(--w-line);
    border-radius:14px;
    padding:20px;
    background:linear-gradient(145deg,#1b3a56c2,#0a1d30e6);
    box-shadow:inset 0 1px 0 #e0e8ff1a,0 16px 30px #0002}
.w-glass-panel h3{font-size:1.16rem;
    letter-spacing:-.025em;
    color:#e2eaff;
    margin:0 0 20px;
    display:flex;
    align-items:center;
    gap:12px}
.w-glass-panel h3 i{color:#abd0ff;
    font-size:1.4rem}
.w-mgmt-layout{display:grid;
    grid-template-columns:minmax(300px,.8fr) minmax(560px,1.2fr);
    gap:18px}
.w-section-head{display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:16px}
.w-section-head h3{margin:0}
.w-actions{display:flex;
    align-items:center;
    gap:6px}
.withholding-view .w-actions button,.w-add-client{font:inherit;
    cursor:pointer;
    white-space:nowrap;
    border:1px solid #7e9abd88;
    background:linear-gradient(140deg,#28486699,#122b43);
    color:#dbe7fb;
    padding:9px 12px;
    border-radius:9px;
    font-size:.78rem;
    box-shadow:inset 0 1px 0 #fff2}
.withholding-view button:hover{filter:brightness(1.13)}
.withholding-view button:focus-visible,.withholding-view input:focus-visible{outline:2px solid #c4b0ff;
    outline-offset:3px}
.w-search{position:relative;
    margin-bottom:14px}
.w-search i{position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#a8c4df;
    pointer-events:none}
.w-search input,.w-deadline input{box-sizing:border-box;
    width:100%;
    font:inherit;
    padding:12px 14px 12px 42px!important;
    color:#e2eaff;
    border:1px solid #587da2;
    border-radius:10px;
    background:#0c2238b3}
.w-client-scroll{max-height:calc(100vh - 430px);
    min-height:160px;
    overflow:auto;
    scrollbar-width:thin;
    scrollbar-color:#55759a transparent}
.w-crm-row{display:flex;
    align-items:center;
    gap:14px;
    min-height:65px;
    margin-bottom:7px;
    padding:8px 12px;
    box-sizing:border-box;
    border:1px solid #537da377;
    border-radius:10px;
    background:linear-gradient(130deg,#23466588,#10273c77);
    box-shadow:inset 0 1px 0 #fff1}
.w-crm-row>i{color:#a8ccf0;
    font-size:1.4rem}
.w-client-name{overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    min-width:0;
    font-size:.9rem;
    font-weight:600}
.w-crm-row .w-client-name{flex:1}
.w-registered-badge{font-size:.78rem;
    white-space:nowrap;
    color:#9bd9ca}
.w-crm-row.is-registered .w-client-name{color:#9db2c8}
.w-add-client{color:#ffdf98;
    border-color:#c5a35c;
    background:linear-gradient(140deg,#8d713e99,#493d27)}
.w-client-row,.w-client-columns{display:grid;
    grid-template-columns:minmax(110px,1fr) 85px 70px 176px;
    gap:8px;
    align-items:center;
    padding:14px 10px;
    border-bottom:1px solid #51739455}
.w-client-columns{color:#c6d8ee;
    font-size:.8rem;
    background:#1c3e5c77;
    border:1px solid #537da366;
    border-radius:9px 9px 0 0}
.w-client-row{min-height:68px;
    box-sizing:border-box;
    background:#0b223477}
.w-type-badge,.w-active-badge{display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    padding:7px 9px;
    border:1px solid #468ac0;
    border-radius:20px;
    color:#bcdcff;
    background:linear-gradient(135deg,#226b9f77,#103a5966);
    font-size:.76rem}
.w-type-semi{color:#dcc8ff;
    border-color:#9a79d1;
    background:linear-gradient(135deg,#6942a277,#30234b99)}
.w-active-badge{color:#a7e7ce;
    border-color:#398876;
    background:#1c6c5144}
.is-inactive{opacity:.65}
.is-inactive .w-active-badge{color:#b7c2d1;
    border-color:#718298;
    background:#37465b55}
.w-client-row .w-actions button{font-size:.73rem;
    padding:8px}
.w-panel-footnote{font-size:.78rem;
    color:#9cbddc;
    margin:18px 0 0}
.w-payroll-layout{display:grid;
    grid-template-columns:minmax(390px,1.2fr) minmax(330px,1fr);
    gap:18px}
.w-payroll-columns,.w-payroll-row{display:grid;
    grid-template-columns:40px minmax(120px,1fr) 100px 80px;
    gap:12px;
    align-items:center;
    padding:17px 14px;
    border-bottom:1px solid #53769b66}
.w-payroll-columns{color:#d3e3f4;
    background:#1c3e5c77;
    border:1px solid #537da366;
    border-radius:10px 10px 0 0;
    font-size:.8rem}
.w-payroll-row{cursor:pointer;
    min-height:66px;
    box-sizing:border-box;
    background:#0b223477}
.w-payroll-row:has(input:checked){background:linear-gradient(90deg,#66512b25,#17344c88)}
.w-payroll-chk{width:19px;
    height:19px;
    accent-color:#d9b96b;
    cursor:pointer}
.w-payroll-count{text-align:center;
    color:#f1dba6}
.w-payroll-scroll{position:relative}
#wPayrollList{max-height:calc(100vh - 410px);
    overflow:auto;
    scrollbar-width:thin}
#wPayrollMore{position:absolute;
    bottom:0;
    left:0;
    right:0;
    justify-content:center;
    align-items:flex-end;
    padding:25px 0 8px;
    background:linear-gradient(transparent,#0a1e30);
    color:#a8bdd1;
    font-size:.8rem;
    pointer-events:none}
.w-deadline{display:flex;
    align-items:center;
    gap:18px;
    white-space:nowrap;
    margin-bottom:16px;
    font-size:.9rem;
    font-weight:600}
.w-deadline input{padding:12px 14px!important;
    min-width:0}
.w-message-preview{border:1px solid #6489b166;
    background:linear-gradient(140deg,#18375399,#0a2033bb);
    box-shadow:inset 0 1px 0 #fff1;
    border-radius:11px;
    padding:16px;
    margin-bottom:16px}
.w-message-preview h4{margin:0 0 12px;
    font-size:.9rem}
.w-message-preview p{font-size:.88rem;
    line-height:1.8;
    margin:8px 0;
    color:#cddbeb}
.w-send-button{width:100%;
    cursor:pointer;
    padding:14px;
    border-radius:11px;
    border:1px solid #e8c978;
    background:linear-gradient(135deg,#eed18c,#a17a3c);
    color:#302615;
    box-shadow:inset 0 1px 2px #fff9,0 0 20px #d9b7612b;
    font:inherit;
    font-weight:750}
.w-send-button i{margin-right:9px}
.w-selection-count{text-align:center;
    color:#ebcd86;
    font-size:.8rem;
    margin:12px 0 20px}
#wPayrollResult>div{border:1px solid #587ca277;
    border-radius:10px!important;
    background:#0a2034aa!important}
#wPayrollResult>div>div{padding:10px 6px!important;
    border-bottom:1px solid #4d6d8c44}

.w-memo-monthly,.w-memo-semi{background:linear-gradient(140deg,#f7e8c4f5,#d4b989ef)!important;
    border:1px solid #f4dda2;
    border-radius:11px!important;
    box-shadow:inset 0 1px 0 #fff9,0 16px 35px #0004!important;
    backdrop-filter:blur(18px)}
.w-memo-handle{border-bottom:1px solid #9c783944;
    padding-bottom:10px}
.w-memo-handle>span:first-child{color:#493a22!important;
    font-size:.84rem!important}
.w-memo-handle button{background:#ffffff33!important;
    border:1px solid #9b7c4d77!important;
    border-radius:5px!important;
    color:#574326!important}
.w-memo-monthly textarea,.w-memo-semi textarea{padding:3px!important;
    line-height:1.85!important;
    color:#3a3023!important}

@media(min-width:1900px){.w-table-card{width:calc(100% - 334px)}
}

@media(max-width:1200px){.w-table-card{width:100%}
.w-mgmt-layout,.w-payroll-layout{grid-template-columns:1fr}
.w-mgmt-layout .w-glass-panel,.w-payroll-layout .w-glass-panel{overflow:auto}
.w-client-scroll{max-height:400px}
.w-tabs .tab-btn{min-width:90px;
    padding:12px}
.w-month-control{margin-left:auto}
.w-memo-monthly,.w-memo-semi{z-index:10!important}
}

@media(max-width:700px){.withholding-view{padding:14px 12px;
    overflow:auto}
.withholding-view .w-page-head{min-height:138px;
    align-items:flex-start;
    flex-direction:row}
.withholding-view .w-page-head::before{right:100px;
    width:540px;
    background-size:auto 180px}
.w-page-head>div{max-width:75%}
.w-page-subtitle{font-size:.8rem;
    line-height:1.5}
.w-help-btn{padding:9px;
    font-size:.75rem}
.withholding-view .w-toolbar{flex-direction:row}
.archive-tabs.w-tabs{flex-wrap:wrap;
    flex-basis:100%}
.w-tabs .tab-btn{flex:1;
    min-width:calc(25% - 8px);
    font-size:.75rem;
    gap:5px;
    padding:10px 5px}
.w-tabs .tab-btn i{font-size:.95rem}
.w-confirm-btn{font-size:.75rem;
    padding:10px 14px}
.w-month-control{width:auto}
.w-glass-panel{padding:14px}
.w-glass-panel h3{font-size:1rem}
.w-client-row,.w-client-columns{min-width:510px}
.w-payroll-row,.w-payroll-columns{grid-template-columns:24px minmax(100px,1fr) 68px 52px;
    gap:8px;
    padding:14px 8px}
.w-payroll-columns{font-size:.7rem}
.w-type-badge{font-size:.7rem;
    padding:6px}
.w-board-legend{gap:12px;
    font-size:.7rem}
.w-board-legend span:last-child{border:0;
    padding:0}
.w-table-card{min-height:340px;
    flex:none}
.w-grid-body{max-height:420px;
    flex:auto}
.w-mgmt-layout,.w-payroll-layout{display:block}
.w-glass-panel{margin-bottom:14px}
.w-client-name{font-size:.82rem}
}

.withholding-view[data-tab="mgmt"] .w-page-head { --w-head-art: url('../assets/withholding-workspace-mgmt.webp'); }
.withholding-view[data-tab="payroll"] .w-page-head { --w-head-art: url('../assets/withholding-workspace-payroll.webp'); }
.withholding-view .w-page-title, .w-glass-panel h3 { text-shadow: none; }
/* Draft fidelity corrections: fixed SVGs, inset month toolbar, compact March grid. */
.w-line-icon { display:inline-block; width:26px; height:26px; flex:0 0 auto; vertical-align:middle; }
.w-home-back .w-line-icon { width:16px; height:16px; }
.w-help-btn .w-line-icon, .w-confirm-btn .w-line-icon { width:23px; height:23px; }
.w-help-btn, .w-confirm-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; }
.withholding-view { --w-note-space:314px; }
.withholding-view.w-dense-month { --w-note-space:208px; }
.withholding-view .w-table-card { width:calc(100% - var(--w-note-space)); border-top:0; border-radius:0 0 14px 14px; overflow-x:hidden; }
.w-report-tools { display:flex; flex:0 0 auto; justify-content:flex-end; width:calc(100% - var(--w-note-space)); box-sizing:border-box; padding:9px 12px 7px; border:1px solid var(--w-line); border-bottom:0; border-radius:14px 14px 0 0; background:linear-gradient(140deg,#183951bd,#0e2639ed); }
.w-report-tools .w-month-control { padding:3px 7px; background:linear-gradient(135deg,#1b3e5ca6,#0d2339); margin:0; width:auto; }
.withholding-view[data-tab=mgmt] .w-report-tools,.withholding-view[data-tab=payroll] .w-report-tools { display:none; }
.w-grid-head,.w-grid-body { width:100%; min-width:0; }
.w-company-cell,.w-company-th { min-width:0; }
.w-status-cell { min-width:0; padding:10px 7px; }
.w-company-done { text-decoration:none; }
.w-th { padding:14px 5px; }
.w-status { box-sizing:border-box; }
.w-dense-month .w-th { font-size:clamp(.64rem,.77vw,.8rem); white-space:normal; word-break:keep-all; line-height:1.5; }
.w-dense-month .w-status-cell { padding:10px 3px; }
.w-dense-month .w-status { min-width:0; padding:9px 3px; gap:4px; font-size:.73rem; }
.w-dense-month .w-company-cell { padding:14px 8px; font-size:.81rem; }
.w-memo-monthly,.w-memo-semi { box-sizing:border-box; padding:14px!important; min-height:280px; border-radius:10px!important; background:linear-gradient(135deg,#f8e8c1fa,#dcc29af5)!important; border:1px solid #ffe6ad; box-shadow:inset 0 1px 1px #fff9,0 12px 26px #0003!important; }
.w-memo-handle { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-bottom:10px; border:0; padding-bottom:0; user-select:none; }
.w-memo-title { display:flex; align-items:center; gap:7px; color:#273446!important; font-size:.91rem!important; font-weight:750; cursor:grab; white-space:nowrap; }
.w-memo-title .w-line-icon { width:23px; height:23px; color:#92723e; }
.w-memo-actions { display:flex; align-items:center; gap:2px; }
.w-memo-actions .w-line-icon { width:18px; height:18px; }
.w-memo-handle .w-memo-actions button { padding:3px!important; border:0!important; background:transparent!important; cursor:pointer; box-shadow:none; }
.w-memo-drag { display:inline-flex; cursor:grab; color:#8b754e; }
.w-memo-monthly textarea,.w-memo-semi textarea { display:block; box-sizing:border-box; width:100%; border:1px solid #fff9; border-radius:8px; background:linear-gradient(135deg,#fff6dc99,#f9e4b54d); padding:12px!important; font:inherit; font-size:.9rem; line-height:1.9!important; color:#263445!important; outline:none; resize:none; }
.w-dense-month~.w-memo-monthly .w-memo-handle { flex-wrap:wrap; }
.w-memo-monthly:has(.w-memo-title),.w-memo-semi:has(.w-memo-title) { overflow:hidden; }
.w-memo-title { white-space:normal; }
.w-memo-handle { flex-wrap:wrap; }
.w-memo-actions { margin-left:auto; }
.w-memo-monthly textarea:focus,.w-memo-semi textarea:focus { border-color:#bc9759; }
.w-glass-panel h3 .w-line-icon { width:29px; height:29px; color:#adcfff; }
.w-crm-row>.w-line-icon { color:#a9ceef; width:28px; height:28px; }
.w-search>.w-line-icon { position:absolute; left:13px; top:50%; transform:translateY(-50%); width:21px; height:21px; color:#b3c9e3; pointer-events:none; }
.w-client-row,.w-client-columns { grid-template-columns:minmax(110px,1fr) 96px 78px 205px; gap:10px; }
.w-client-row .w-actions { justify-content:flex-end; }
.w-client-row .w-actions button { min-width:56px; font-size:.78rem; padding:10px; }
.w-client-row .w-actions button:first-child { min-width:68px; }
.w-mgmt-layout { grid-template-columns:minmax(300px,.82fr) minmax(580px,1.18fr); }
.w-crm-row .w-registered-badge { border:1px solid #627f9f88; background:linear-gradient(145deg,#33516c77,#18314788); border-radius:20px; padding:8px 13px; }
.w-add-client { min-width:88px; border-radius:22px; }
.w-type-badge { gap:6px; }
.w-payroll-layout { grid-template-columns:minmax(390px,1.24fr) minmax(330px,1fr); }
.w-payroll-row .w-client-name { display:flex; align-items:center; gap:12px; }
.w-payroll-row .w-client-name>.w-line-icon { width:26px; height:26px; color:#9dc8ed; }
.w-payroll-chk { appearance:none; -webkit-appearance:none; display:grid; place-content:center; width:24px; height:24px; border:1px solid #a3b8d2; border-radius:5px; background:linear-gradient(140deg,#17364c,#091a2a); box-shadow:inset 0 1px 1px #fff2; }
.w-payroll-chk:checked { border-color:#eac56e; background:linear-gradient(135deg,#f2d78e,#b88b3d); box-shadow:0 0 13px #e3b65555,inset 0 1px 1px #fff9; }
.w-payroll-chk:checked:after { content:'✓'; color:#3b301c; font-weight:800; font-size:19px; line-height:1; }
.w-send-button { display:flex; align-items:center; justify-content:center; gap:12px; font-size:1.05rem; }
.w-send-button>.w-line-icon { width:28px; height:28px; }
.w-message-preview { padding:16px; }
.w-message-preview p { border:1px solid #52749766; background:#0b2237aa; padding:14px 16px; margin:0; }
.w-message-preview p:first-of-type { border-radius:9px 9px 0 0; border-bottom:0; padding-bottom:7px; }
.w-message-preview p:last-of-type { border-radius:0 0 9px 9px; border-top:0; padding-top:7px; }
.w-request-panel { align-self:start; }
@media(max-width:1200px) { .w-mgmt-layout,.w-payroll-layout {grid-template-columns:1fr;} .withholding-view {--w-note-space:224px;} .withholding-view.w-dense-month {--w-note-space:190px;} .w-status {min-width:0; padding:8px 3px; gap:4px;} .w-company-cell {padding:14px 8px;} .w-th {font-size:.72rem; white-space:normal;word-break:keep-all;} }
@media(max-width:700px) { .withholding-view,.withholding-view.w-dense-month {--w-note-space:0px;} .withholding-view .w-table-card {overflow-x:auto;} .w-grid-head,.w-grid-body {min-width:720px;} .w-dense-month .w-grid-head,.w-dense-month .w-grid-body {min-width:1000px;} .w-tabs .tab-btn {flex-direction:column;gap:5px;} .w-tabs .tab-btn .w-line-icon {width:22px;height:22px;} .w-mgmt-layout,.w-payroll-layout {display:block;} .w-client-row,.w-client-columns {min-width:560px;} .w-payroll-row .w-client-name>.w-line-icon {display:none;} .w-payroll-row .w-client-name {display:block;} }
.w-type-badge .w-line-icon { width:18px; height:18px; }
.w-client-row .w-actions button { display:inline-flex;align-items:center;justify-content:center;gap:5px; }
.w-client-row .w-actions button .w-line-icon { width:16px;height:16px; }
.w-crm-head { flex-wrap:nowrap; }
.w-crm-head .w-search { width:40%; min-width:130px; margin:0; }
.w-crm-head h3 { font-size:1.08rem; white-space:nowrap; }
.w-result-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; color:#c7ddf4; }
.w-result-heading>span { color:#91dfc7; font-size:.84rem; }
.w-send-result-row { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:.82rem; }
.w-send-result-row>span:first-child { display:flex; align-items:center; gap:10px; color:#dce8f6; }
.w-send-result-row .w-line-icon { width:21px; height:21px; color:#7ed6b6; }
.w-send-result-row.is-success>span:last-child { color:#85dbba; }
.w-send-result-row.is-error>span:last-child { color:#f0a2a4; }
@media(max-width:700px) { .w-crm-head {flex-wrap:wrap;} .w-crm-head .w-search {width:100%;} .w-send-result-row {flex-wrap:wrap;} }
/* Monthly work list uses the workspace's outer scroll, including its header. */
.content-panel.withholding-bg:has(#wOverlayDiv[data-tab="monthly"]) { overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#6687aa #0b2032; }
.content-panel.withholding-bg:has(#wOverlayDiv[data-tab="monthly"])::-webkit-scrollbar { display:block; width:9px; }
.content-panel.withholding-bg:has(#wOverlayDiv[data-tab="monthly"])::-webkit-scrollbar-thumb { background:#58799b; border:2px solid #0b2032; border-radius:10px; }
.content-panel.withholding-bg:has(#wOverlayDiv[data-tab="monthly"])::-webkit-scrollbar-track { background:#0b2032; }
.withholding-view[data-tab="monthly"] { height:auto; min-height:100%; flex:0 0 auto; overflow:visible; box-sizing:border-box; }
.withholding-view[data-tab="monthly"] #wPanelMonthly { flex:0 0 auto; min-height:0; }
.withholding-view[data-tab="monthly"] .w-table-card { flex:0 0 auto; min-height:0; overflow-y:visible; }
.withholding-view[data-tab="monthly"] .w-grid-body { flex:0 0 auto; overflow:visible; max-height:none; }
