.admin-body { background: linear-gradient(160deg, #499fe2 0%, #9ad8ee 52%, #edfaff 100%); }
.admin-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); width: min(1660px, calc(100% - 48px)); min-width: 0; min-height: calc(100vh - 48px); margin: 24px auto; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 26px; background: rgba(239,253,255,.77); box-shadow: 0 18px 42px rgba(12,93,146,.16), inset 0 1px 0 rgba(255,255,255,.78); }
.admin-sidebar { display: flex; flex-direction: column; min-height: 100%; padding: 27px 16px 18px; border-right: 1px solid rgba(255,255,255,.68); color: #18496f; background: linear-gradient(180deg, rgba(255,255,255,.64), rgba(216,246,255,.33)); }
.admin-sidebar nav { display: grid; gap: 7px; }
.admin-main { min-width: 0; padding: 33px clamp(24px, 4vw, 58px) 42px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.summary-card, .admin-panel { border: 1px solid rgba(255,255,255,.78); border-radius: 19px; background: rgba(255,255,255,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 7px 16px rgba(41,128,175,.08); }
.summary-card { display: grid; gap: 6px; min-height: 126px; padding: 20px; }
.summary-card span, .summary-card small { color: #5d88a6; font-size: 12px; font-weight: 700; }
.summary-card strong { color: #154a73; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-panel { margin-top: 20px; overflow: hidden; }
.admin-panel .section-heading { padding: 23px 24px 0; }
.group-stats { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 24px 24px; }
.group-stat { display: grid; gap: 4px; min-width: 142px; padding: 13px 15px; border: 1px solid rgba(101,178,216,.22); border-radius: 13px; background: rgba(231,250,255,.46); }
.group-stat span { color: #628aa5; font-size: 11px; font-weight: 800; }
.group-stat strong { color: #1b557d; font-size: 15px; }
.group-stat b { color: #087f97; font-size: 13px; }
.admin-table { min-width: 1030px; }
.admin-table td { vertical-align: middle; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.system-account { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid rgba(84,149,178,.22); border-radius: 9px; color: #6c8da1; background: rgba(230,246,251,.72); font-size: 12px; font-weight: 800; white-space: nowrap; }
.danger-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(211,101,91,.34); border-radius: 11px; color: #a54e48; background: rgba(255,239,235,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 3px 8px rgba(183,85,74,.08); font: inherit; font-weight: 800; transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease; }
.danger-btn:hover { color: #fff; border-color: transparent; background: #cf665b; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 7px 13px rgba(183,85,74,.18); transform: translateY(-1px); }
.danger-btn:disabled { cursor: wait; opacity: .55; transform: none; }
.compact-danger { min-height: 32px; padding: 0 10px; border-radius: 9px; font-size: 12px; }
.table-subline { display: block; margin-top: 3px; color: #6b91aa; font-size: 11px; font-weight: 600; }
.online-state { display: inline-flex; align-items: center; gap: 5px; color: #7290a5; font-size: 12px; font-weight: 800; }
.online-state::before { width: 7px; height: 7px; border-radius: 50%; background: #90abc0; content: ""; }
.online-state.online { color: #11796f; }
.online-state.online::before { background: #33c594; box-shadow: 0 0 0 3px rgba(51,197,148,.15); }
.empty-cell { padding: 28px !important; color: #6388a2 !important; text-align: center; }
.file-cell { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reset-dialog { width: min(100% - 32px, 430px); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; color: #164d74; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,249,255,.96)); box-shadow: 0 22px 50px rgba(13,91,148,.26); }
.reset-dialog::backdrop { background: rgba(16,83,128,.31); }
.reset-dialog form { display: grid; gap: 15px; padding: 25px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-head h2 { margin: 0; color: #164d74; font-size: 21px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #3f718f; background: rgba(222,246,255,.65); font-size: 23px; line-height: 1; }
.dialog-copy { margin: 0; color: #5c8199; font-size: 13px; line-height: 1.6; }
.reset-dialog label { display: grid; gap: 7px; color: #174a70; font-size: 13px; font-weight: 800; }
.reset-dialog input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(78,152,201,.35); border-radius: 11px; color: #164d74; background: rgba(255,255,255,.84); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 3px; }
.dialog-actions .primary-btn { min-width: 106px; }
.delete-warning { margin: -2px 0 0; padding: 10px 12px; border-left: 3px solid #d36a5d; color: #9b5a52; background: rgba(255,237,232,.72); font-size: 12px; line-height: 1.55; }
.delete-dialog .danger-btn { min-width: 126px; }
@media (max-width: 1100px) { .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .admin-shell { grid-template-columns: 1fr; width: min(100% - 28px, 980px); min-height: calc(100vh - 28px); margin: 14px auto; }.admin-sidebar { min-height: auto; padding: 15px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.68); }.admin-sidebar .rail-caption, .admin-sidebar .sidebar-footer { display: none; }.admin-sidebar .brand { margin: 0; }.admin-sidebar nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-top: 13px; }.admin-sidebar .nav-item { min-height: 38px; padding: 0 9px; font-size: 12px; }.admin-main { padding: 25px 22px 30px; } }
@media (max-width: 500px) { .admin-shell { width: 100%; min-height: 100vh; margin: 0; border-radius: 0; border-right: 0; border-left: 0; }.admin-main { padding: 21px 15px 28px; }.admin-summary { grid-template-columns: 1fr 1fr; gap: 9px; }.summary-card { min-height: 106px; padding: 15px; }.summary-card strong { font-size: 28px; }.group-stats { padding: 0 16px 18px; }.admin-panel .section-heading { padding: 18px 18px 0; } }

.approval-panel { content-visibility: auto; contain-intrinsic-size: auto 480px; }
.approval-summary { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 24px 19px; border-bottom: 1px solid rgba(92,164,202,.15); }
.approval-summary span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 11px; border: 1px solid rgba(97,171,208,.2); border-radius: 999px; color: #5b8099; background: rgba(227,248,255,.48); font-size: 12px; font-weight: 700; }
.approval-summary b { color: #177da8; font-size: 17px; font-variant-numeric: tabular-nums; }
.approval-list { display: grid; }
.approval-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 24px 10px; color: #295a7a; font-size: 13px; }
.approval-list-heading span { color: #7192a8; font-size: 12px; }
.approval-list-heading.history { margin-top: 8px; border-top: 1px solid rgba(92,164,202,.17); background: rgba(229,248,255,.27); }
.approval-project-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 19px 24px; border-top: 1px solid rgba(92,164,202,.14); background: rgba(255,255,255,.28); }
.approval-project-item.pending { background: linear-gradient(100deg, rgba(240,253,255,.86), rgba(223,249,245,.5)); }
.approval-project-main { display: grid; min-width: 0; gap: 12px; }
.approval-project-actions { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 8px; min-width: 158px; }
.approval-project-actions .glass-btn, .approval-project-actions .project-danger-btn, .approval-project-actions .download-btn { min-height: 34px; padding: 0 11px; font-size: 12px; }
.approval-activity { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 15px; border: 1px solid rgba(89,163,203,.19); border-radius: 12px; background: rgba(225,247,255,.42); }
.approval-activity h5 { margin: 0 0 8px; color: #255d7d; font-size: 12px; }
.approval-activity ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.approval-activity li { display: grid; gap: 2px; padding: 8px 9px; border: 1px solid rgba(94,165,202,.13); border-radius: 8px; background: rgba(255,255,255,.52); }
.approval-activity li strong { color: #306486; font-size: 12px; }
.approval-activity li span { color: #6b8da3; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.approval-activity .notice-sent strong { color: #137e68; }
.approval-activity .notice-failed strong { color: #b6524a; }
.approval-activity .notice-skipped strong { color: #9a7738; }
.approval-activity-loading, .approval-activity-error { padding: 7px; color: #5b829c; font-size: 12px; }
.approval-activity-error { color: #b6534b; }
.pushplus-status { margin: 0 24px 18px; padding: 12px 14px; border: 1px solid rgba(101,169,202,.22); border-radius: 12px; color: #4d7893; background: rgba(227,248,255,.48); font-size: 13px; line-height: 1.55; }
.pushplus-status.enabled { border-color: rgba(57,184,143,.24); color: #21745f; background: rgba(223,250,240,.58); }
.pushplus-status.disabled { border-color: rgba(225,145,123,.25); color: #9a5a4e; background: rgba(255,239,235,.62); }
.approval-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 24px 24px; border-bottom: 1px solid rgba(92,164,202,.15); }
.approval-settings-form label, .approval-routing-row label { display: grid; gap: 7px; color: #275775; font-size: 12px; font-weight: 800; }
.approval-settings-form input, .approval-routing-row input, .approval-routing-row select { width: 100%; height: 41px; box-sizing: border-box; padding: 0 10px; border: 1px solid rgba(77,151,200,.34); border-radius: 10px; color: #1c4f72; background: rgba(255,255,255,.79); box-shadow: inset 0 1px 3px rgba(36,121,175,.07); font: inherit; font-size: 13px; outline: none; }
.approval-settings-form input:focus, .approval-routing-row input:focus, .approval-routing-row select:focus { border-color: #31aad8; background: #fff; box-shadow: 0 0 0 3px rgba(53,181,225,.16); }
.approval-settings-actions { display: flex; align-items: end; }
.approval-settings-actions .primary-btn { min-height: 41px; padding: 0 15px; }
.approval-routing-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 23px 24px 0; }
.approval-routing-heading h3 { margin: 0; color: #154a73; font-size: 18px; }
.approval-routing-heading > p { max-width: 540px; margin: 0; color: #5b819b; font-size: 13px; line-height: 1.55; text-align: right; }
.approval-routing-list { display: grid; gap: 17px; padding: 18px 24px 24px; }
.routing-section { display: grid; gap: 10px; }
.routing-section h4 { margin: 0; color: #275b7c; font-size: 14px; }
.routing-section > p, .blank-copy { margin: 0; color: #6b8da4; font-size: 12px; line-height: 1.5; }
.approval-routing-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(170px, .95fr) minmax(210px, 1.25fr) auto; gap: 10px; align-items: end; padding: 13px; border: 1px solid rgba(99,171,208,.18); border-radius: 12px; background: rgba(235,251,255,.39); }
.routing-user { display: grid; min-width: 0; gap: 3px; padding-bottom: 3px; }
.routing-user strong { overflow: hidden; color: #255c7e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.routing-user span { overflow: hidden; color: #7695a9; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.approval-routing-row .glass-btn { min-height: 41px; padding: 0 11px; }
.approval-routing-row select:disabled { cursor: not-allowed; color: #8aa3b3; background: rgba(233,244,249,.66); }

@media (max-width: 1040px) { .approval-routing-row { grid-template-columns: minmax(120px, .7fr) minmax(150px, 1fr) minmax(180px, 1.2fr); }.approval-routing-row .glass-btn { grid-column: 2 / -1; justify-self: end; } }
@media (max-width: 740px) { .approval-project-item { grid-template-columns: 1fr; }.approval-project-actions { justify-content: flex-start; min-width: 0; }.approval-activity { grid-template-columns: 1fr; }.approval-settings-form { grid-template-columns: 1fr; }.approval-settings-actions { justify-content: flex-start; }.approval-routing-heading { align-items: flex-start; flex-direction: column; gap: 8px; }.approval-routing-heading > p { text-align: left; }.approval-routing-row { grid-template-columns: 1fr; align-items: stretch; }.approval-routing-row .glass-btn { grid-column: auto; justify-self: stretch; }.approval-routing-row .glass-btn { width: 100%; } }
@media (max-width: 500px) { .approval-summary, .approval-settings-form, .approval-routing-list { padding-right: 16px; padding-left: 16px; }.approval-list-heading { padding-right: 18px; padding-left: 18px; }.approval-project-item { padding-right: 18px; padding-left: 18px; }.pushplus-status { margin-right: 18px; margin-left: 18px; }.approval-routing-heading { padding-right: 18px; padding-left: 18px; } }
@media (max-width: 1024px) { .admin-sidebar nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-top: 13px; }.admin-sidebar .nav-item { min-height: 38px; padding: 0 9px; font-size: 12px; } }
@media (max-width: 660px) { .admin-table { min-width: 0; } .admin-table .file-cell { max-width: none; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; } }
