.payroll-open { position:absolute; top:9px; right:10px; z-index:3; width:30px; height:30px; padding:0; border:1px solid #536676; border-radius:50%; background:#243440; color:#d9ecf7; font:400 19px/27px Manrope,Arial,sans-serif; cursor:pointer; box-shadow:0 2px 10px #0004; }
.payroll-open:hover,.payroll-open:focus-visible { color:#fff; border-color:#8eb5cf; background:#305066; }
.payroll-panel .payroll-warning { right:40px; }
.payroll-dialog { width:min(96vw,1500px); max-width:none; max-height:92vh; margin:auto; padding:0; overflow:hidden; color:#f2f5f3; border:1px solid #566a79; border-radius:28px; background:rgba(21,32,40,.96); box-shadow:0 32px 90px #000b, inset 0 1px #ffffff18; backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); font-family:Manrope,Arial,sans-serif; }
.payroll-dialog::backdrop { background:rgba(2,7,10,.7); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.payroll-dialog-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:22px 24px 12px; }
.payroll-dialog-header h2 { margin:0 0 3px; font-size:21px; }
.payroll-dialog-header p { margin:0; color:#a7bbc5; font-size:12px; }
.payroll-dialog-header button { flex:0 0 34px; width:34px; height:34px; padding:0; border:1px solid #576b78; border-radius:50%; background:#293a45; color:#dce8ee; font-size:23px; line-height:29px; cursor:pointer; }
.payroll-dialog-summary { display:flex; justify-content:space-between; gap:12px; padding:0 24px 14px; color:#a7bbc5; font-size:12px; }
.payroll-dialog-summary strong { color:#f4f7f8; font-size:17px; }
.payroll-factors { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:0 24px 16px; color:#b0c4d0; font-size:11px; }
.payroll-factors label { display:flex; align-items:center; gap:7px; padding:5px 10px; border:1px solid #415762; border-radius:14px; background:#23333c; }
.payroll-factors input { width:88px; padding:4px 6px; border:1px solid #536a79; border-radius:9px; background:#14242d; color:#e6f3fc; font:inherit; text-align:right; }
.payroll-factors button { padding:8px 13px; border:1px solid #63869f; border-radius:14px; background:#2b4b60; color:#e8f5ff; font:600 11px Manrope,Arial,sans-serif; cursor:pointer; }
.payroll-factors button:hover { background:#38647e; }
.payroll-table-wrap { max-height:calc(92vh - 246px); margin:0 16px; overflow:auto; border:1px solid #405460; border-radius:18px; scrollbar-width:thin; background:#101a20; }
.payroll-table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; font-variant-numeric:tabular-nums; }
.payroll-table th,.payroll-table td { height:42px; padding:6px 8px; border-right:1px solid #24343c; border-bottom:1px solid #24343c; white-space:nowrap; background:#101a20; }
.payroll-table thead th { position:sticky; top:0; z-index:4; height:38px; color:#bbced7; background:#1c2b32; font-size:11px; font-weight:600; }
.payroll-table tbody tr:nth-child(even) td { background:#142027; }
.payroll-table .payroll-name { position:sticky; left:0; z-index:2; min-width:230px; max-width:230px; font-size:12px; text-align:left; cursor:grab; user-select:none; -webkit-user-select:none; }
.payroll-table thead .payroll-name { z-index:6; }
.payroll-table .payroll-role { position:sticky; left:230px; z-index:2; min-width:240px; max-width:240px; }
.payroll-table thead .payroll-role { z-index:6; }
.payroll-group th { position:sticky; left:0; z-index:3; height:29px; padding:4px 12px; color:#b1e7d0; background:#294046; text-align:left; font-size:12px; }
.payroll-drag { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; margin-right:6px; border-radius:9px; color:#a9c4d3; cursor:grab; font-size:18px; vertical-align:middle; user-select:none; -webkit-user-select:none; touch-action:none; }
.payroll-drag:active { cursor:grabbing; }
.payroll-drag:hover { background:#375160; color:#fff; }
.payroll-table tbody tr.is-dragging td { background:#203b4c!important; }
.payroll-table tbody tr.is-dragging .payroll-name { cursor:grabbing; }
.payroll-table tr[data-employee-id]:hover td { border-bottom-color:#607989; }
.payroll-role-edit { display:flex; gap:4px; }
.payroll-role-edit select { min-width:190px; }
.payroll-role-edit button { min-width:28px; border:1px solid #536a79; border-radius:9px; background:#2b404c; color:#d6e7ee; cursor:pointer; }
.payroll-future { color:#67808c !important; background:#111c22 !important; }
.payroll-table .payroll-day { min-width:49px; text-align:center; font-size:11px; }
.payroll-table .payroll-salary { position:sticky; right:0; z-index:3; min-width:145px; text-align:right; border-left:1px solid #42545d; }
.payroll-table thead .payroll-salary { z-index:6; }
.payroll-table .payroll-salary strong { font-size:12px; font-weight:600; }
.payroll-table .payroll-salary small { display:block; color:#a7bbc5; font-size:10px; font-weight:400; }
.payroll-table select,.payroll-table input { height:30px; padding:3px 8px; border:1px solid #536a79; border-radius:10px; background:#23343d; color:#eef4f6; font:400 12px Manrope,Arial,sans-serif; }
.payroll-table select { width:100%; }
.payroll-role-edit button:hover { background:#2a4654; }
.payroll-role-edit button:disabled,.payroll-table select:disabled { opacity:.55; cursor:wait; }
.payroll-dialog-note { margin:0; padding:13px 24px 17px; color:#9eb5c0; font-size:11px; line-height:1.45; }
.payroll-dialog-error { margin:0 20px 12px; color:#ff9b8d; font-size:12px; }
@media(max-width:700px) { .payroll-dialog { width:calc(100vw - 12px); max-height:96vh; border-radius:24px; } .payroll-table-wrap { max-height:calc(96vh - 270px); margin:0 8px; border-radius:14px; } .payroll-dialog-header { padding:16px 15px 10px; } .payroll-factors,.payroll-dialog-summary { padding-left:15px; padding-right:15px; } .payroll-table .payroll-name { min-width:160px; max-width:160px; } .payroll-employee-name { display:inline-block; max-width:110px; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; } .payroll-table .payroll-role { left:160px; min-width:190px; max-width:190px; } .payroll-role-edit select { min-width:125px; } }
@media(prefers-reduced-motion:reduce) { .payroll-dialog *, .payroll-open { animation-duration:.01ms!important; transition-duration:.01ms!important; } }

