:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#203247;background:#f2f5f8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}aside{background:#123b5d;color:#fff;padding:24px 18px}.brand{font-size:21px;font-weight:800;letter-spacing:.5px;padding:8px 12px 25px}.brand small{font-size:11px;color:#8ed0f2;margin-left:6px}.brand.dark{color:#123b5d;padding:0 0 28px}nav{display:grid;gap:6px}nav button{color:#d9e6ef;background:transparent;border:0;padding:11px 12px;border-radius:8px;text-align:left;cursor:pointer}nav button.active,nav button:not(:disabled):hover{background:#1e557f;color:#fff}nav button:disabled{opacity:.48;cursor:not-allowed}nav button small{float:right;background:#315f7e;padding:2px 5px;border-radius:8px}main{min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid #dde4ea;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.topbar span{color:#718096;font-size:14px}.account-menu{display:flex;align-items:center;gap:14px}.account-menu div{display:grid;text-align:right}.account-menu small{color:#718096;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{padding:28px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stats article{background:#fff;border:1px solid #e0e6eb;border-radius:10px;padding:18px}.stats span{display:block;color:#718096;font-size:13px}.stats strong{display:block;font-size:26px;margin-top:8px;color:#123b5d}.stats .warning{border-left:4px solid #e6a23c}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.page-heading h1{font-size:20px;margin:0 0 6px}.page-heading p{margin:0;color:#718096}.crud-page{background:#fff;border:1px solid #e0e6eb;border-radius:10px;padding:22px}.toolbar{display:flex;gap:10px;margin-bottom:15px}.toolbar input{width:320px;padding:10px;border:1px solid #ccd5dd;border-radius:7px}button{border:1px solid #c9d3dc;background:#fff;padding:9px 14px;border-radius:7px;cursor:pointer}button:disabled{cursor:wait;opacity:.65}button.primary{background:#1677a8;color:#fff;border-color:#1677a8}.wide{width:100%;padding:12px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:13px 11px;border-bottom:1px solid #edf0f2;font-size:14px}th{color:#607080;background:#f8fafb}.actions{display:flex;gap:6px}.danger-link{color:#b53a3a;border-color:#f0c8c8}.badge{background:#e7f6ed;color:#247a47;padding:5px 9px;border-radius:12px;font-size:12px;white-space:nowrap}.badge.inactive{background:#edf0f2;color:#66717b}.alert{padding:11px 13px;border-radius:7px;margin:12px 0}.alert.error{background:#fff0f0;color:#a52c2c;border:1px solid #f3c4c4}.alert.success{background:#edf9f1;color:#257146;border:1px solid #bfe6cc}.page-alert{margin:0 0 14px}.login-layout{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:#fff}.login-intro{background:linear-gradient(145deg,#0f3655,#1677a8);color:#fff;display:flex;flex-direction:column;justify-content:center;padding:10vw}.login-intro h1{font-size:46px;line-height:1.15;margin:24px 0 18px}.login-intro p{color:#d7eaf4;max-width:520px;font-size:18px;line-height:1.6}.port-mark{width:70px;height:70px;border:2px solid #81c8e9;border-radius:18px;display:grid;place-items:center;font-size:24px;font-weight:800}.login-panel{display:grid;place-items:center;padding:40px}.login-card{width:min(410px,100%)}.login-card h2{font-size:27px;margin:0 0 8px}.login-card>p{color:#718096;margin:0 0 26px}.login-card label,.form-grid label{display:grid;gap:7px;font-weight:600;font-size:14px;margin-bottom:16px}.login-card input,.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:11px 12px;border:1px solid #cbd5de;border-radius:7px;background:#fff}.form-grid textarea{min-height:82px;resize:vertical}.splash{min-height:100vh;display:grid;place-items:center;color:#647486}.modal-backdrop{position:fixed;inset:0;background:#132c3e88;display:grid;place-items:center;padding:20px;z-index:10}.modal{width:min(650px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 18px 50px #0003}.modal header{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 24px;border-bottom:1px solid #e4e8ec}.modal h2{margin:0 0 5px}.modal header p{margin:0;color:#718096}.icon-button{border:0;font-size:26px;padding:0 6px}.form-grid{padding:22px 24px;display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-grid .full{grid-column:1/-1}.form-grid .check{display:flex;align-items:center;gap:8px}.form-grid .check input{width:auto}.modal footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;background:#f8fafb;border-top:1px solid #e4e8ec}.catalog-tabs{display:flex;gap:3px;overflow-x:auto;padding:0 4px}.catalog-tabs button{position:relative;border-radius:8px 8px 0 0;border-bottom:0;background:#e7edf2;color:#526575;white-space:nowrap;padding:11px 15px}.catalog-tabs button.active{background:#fff;color:#123b5d;font-weight:700}.catalog-tabs span{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:8px;padding:0 5px;background:#d4dee6;border-radius:11px;font-size:11px}.catalog-tabs button.active span{background:#dceff8;color:#12628a}.catalog-tabs i{position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;background:#e39224}.catalog-sheet{background:#fff;border:1px solid #dce3e8;border-radius:0 10px 10px;min-height:430px}.sheet-header{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid #e3e8ec}.sheet-header h1{font-size:21px;margin:0 0 5px}.sheet-header p{margin:0;color:#718096}.sheet-actions{display:flex;gap:9px;align-items:center}.sheet-alert{margin:14px 24px}.excel-wrap{overflow:auto;padding:20px 24px 0}.excel-table{min-width:1000px;border-collapse:collapse;border:1px solid #bfcbd4}.excel-table th,.excel-table td{padding:0;border:1px solid #cad4dc;height:42px}.excel-table th{padding:9px 10px;background:#e8eef3;color:#3b5061;font-size:13px}.excel-table .row-number{width:46px;text-align:center;background:#f0f3f6;color:#6c7b87}.excel-table .order-cell{width:85px}.excel-table .status-cell{width:80px;text-align:center}.excel-table input:not([type=checkbox]),.excel-table select{width:100%;height:41px;border:0;border-radius:0;padding:8px 10px;background:transparent;color:#203247}.excel-table input:focus,.excel-table select:focus{outline:2px solid #1886ba;outline-offset:-2px;background:#f4fbff}.excel-table input:disabled,.excel-table select:disabled{opacity:1;color:#455866}.excel-table .number-input{text-align:right}.checkbox-cell{text-align:center}.checkbox-cell input{width:17px;height:17px}.new-row td{background:#f6fbfe}.new-row .row-number{background:#dff0f8;color:#1677a8;font-weight:800;font-size:18px}.new-row input::placeholder{color:#93a4b0;font-style:italic}.sheet-message{text-align:center!important;padding:35px!important;color:#718096}.sheet-footer{display:flex;justify-content:space-between;padding:13px 24px;color:#718096;font-size:13px}.sheet-footer strong{color:#c57916}.stacked-sheets{display:grid;gap:20px}.stacked-sheets .catalog-sheet{border-radius:0 10px 10px}.stacked-sheets .catalog-sheet+*{border-radius:10px}.area-picker{background:#e8f2f8;border:1px solid #cbdce7;border-radius:8px;padding:12px 16px}.area-picker label{display:flex;align-items:center;gap:12px;font-weight:700}.area-picker select{min-width:260px;padding:8px;border:1px solid #afc2cf;border-radius:6px;background:#fff}.master-tabs+div .catalog-sheet{border-radius:0 10px 10px}.import-dialog{width:min(580px,100%)}.import-content{padding:22px 24px}.upload-zone{position:relative;display:grid;place-items:center;text-align:center;gap:6px;border:2px dashed #9db6c7;border-radius:10px;background:#f5fafc;padding:32px 20px;cursor:pointer}.upload-zone:hover{border-color:#1677a8;background:#eef8fc}.upload-zone span{color:#718096;font-size:13px}.upload-zone input{position:absolute;inset:0;opacity:0;cursor:pointer}.template-link{display:inline-block;margin-top:16px;color:#126f9a;font-weight:700;text-decoration:none}.template-link:hover{text-decoration:underline}[hidden]{display:none!important}@media(max-width:900px){.app-shell{grid-template-columns:1fr}aside{display:none}.stats{grid-template-columns:repeat(2,1fr)}.login-layout{grid-template-columns:1fr}.login-intro{display:none}}@media(max-width:620px){.content{padding:16px}.stats{grid-template-columns:1fr 1fr}.topbar{padding:0 14px}.topbar span{display:none}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.login-panel{padding:24px}.sheet-header{align-items:flex-start;gap:12px}.sheet-header p{display:none}.sheet-actions{flex-direction:column;align-items:stretch}}.multi-select-cell{position:relative;min-width:250px}.multi-select-cell summary{position:relative;overflow:hidden;padding:7px 30px 7px 9px;border:1px solid #c9d5df;border-radius:5px;background:#fff;cursor:pointer;list-style:none;text-overflow:ellipsis;white-space:nowrap}.multi-select-cell summary::-webkit-details-marker{display:none}.multi-select-cell summary:after{content:"▾";position:absolute;right:10px;color:#557084}.multi-select-cell[open] summary{border-color:#1677a8;box-shadow:0 0 0 2px #1677a81f}.multi-select-options{position:absolute;z-index:30;top:calc(100% + 4px);left:0;overflow:auto;width:max-content;min-width:100%;max-height:230px;padding:6px;border:1px solid #b9c9d5;border-radius:6px;background:#fff;box-shadow:0 8px 22px #123b5d2e}.multi-select-options label{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:4px;cursor:pointer;white-space:nowrap}.multi-select-options label:hover{background:#edf6fb}.multi-select-options input{width:auto}.multi-select-readonly{display:block;min-width:220px;white-space:normal}.app-shell{height:100vh;min-height:0}.app-shell>main{display:flex;flex-direction:column;height:100vh;min-height:0;overflow:hidden}.app-shell>main>.topbar{flex:0 0 68px}.catalog-content{display:flex;flex:1;min-height:0;overflow:hidden}.catalog-workbook{display:flex;flex:1;flex-direction:column;width:100%;height:100%;min-height:0}.catalog-workbook>.catalog-tabs{flex:0 0 auto}.catalog-workbook>div:not(.catalog-tabs){display:flex;flex:1;min-height:0}.catalog-workbook>div:not(.catalog-tabs)>.catalog-sheet,.catalog-workbook>.catalog-sheet{display:flex;flex:1;flex-direction:column;min-height:0}.catalog-workbook .sheet-header,.catalog-workbook .sheet-footer,.catalog-workbook .sheet-alert{flex:0 0 auto}.catalog-workbook .excel-wrap{flex:1;min-height:0;overflow:auto}.catalog-workbook .excel-table thead th{position:sticky;z-index:2;top:0}.ship-schedule-page{display:flex;flex:1;flex-direction:column;gap:14px;width:100%;min-height:0}.schedule-scope{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:flex-end;gap:12px 14px;padding:12px 16px;border:1px solid #d4dee6;border-radius:9px;background:#fff}.schedule-scope label{display:grid;gap:6px;color:#526575;font-size:13px;font-weight:700}.schedule-scope input,.schedule-scope select{min-width:190px;padding:9px 11px;border:1px solid #bccbd6;border-radius:6px;background:#fff;color:#203247}.schedule-scope .schedule-search input{min-width:230px}.scope-summary{display:grid;gap:5px;margin-left:auto;padding:4px 6px;text-align:right}.scope-summary span{color:#718096;font-size:12px}.scope-summary strong{color:#123b5d}.ship-schedule-page>.catalog-sheet{display:flex;flex:1;flex-direction:column;min-height:0;border-radius:10px}.ship-schedule-page .sheet-header,.ship-schedule-page .sheet-footer,.ship-schedule-page .sheet-alert{flex:0 0 auto}.ship-schedule-page .excel-wrap{flex:1;min-height:0;overflow:auto}.ship-schedule-page .excel-table thead th{position:sticky;z-index:2;top:0}.ship-schedule-page .excel-table{width:100%;min-width:0;table-layout:fixed}.ship-schedule-page .excel-table th,.ship-schedule-page .excel-table td{overflow:hidden}.ship-schedule-page .excel-table th{padding:7px 4px;overflow-wrap:anywhere;font-size:11px}.ship-schedule-page .excel-table input:not([type=checkbox]),.ship-schedule-page .excel-table select{min-width:0;padding-right:4px;padding-left:4px;font-size:11px;text-overflow:ellipsis}.ship-schedule-page .excel-table input[type=datetime-local]{font-size:10px}.ship-schedule-page .excel-table th:nth-child(1){width:2.5%!important}.ship-schedule-page .excel-table th:nth-child(2){width:8%!important}.ship-schedule-page .excel-table th:nth-child(3){width:6.5%!important}.ship-schedule-page .excel-table th:nth-child(4){width:7%!important}.ship-schedule-page .excel-table th:nth-child(5){width:6.5%!important}.ship-schedule-page .excel-table th:nth-child(6),.ship-schedule-page .excel-table th:nth-child(7){width:7.5%!important}.ship-schedule-page .excel-table th:nth-child(8){width:5.5%!important}.ship-schedule-page .excel-table th:nth-child(9){width:7.5%!important}.ship-schedule-page .excel-table th:nth-child(10){width:5%!important}.ship-schedule-page .excel-table th:nth-child(11){width:6%!important}.ship-schedule-page .excel-table th:nth-child(12){width:7%!important}.ship-schedule-page .excel-table th:nth-child(13){width:4.5%!important}.ship-schedule-page .excel-table th:nth-child(14){width:6.5%!important}.ship-schedule-page .excel-table th:nth-child(15){width:7.5%!important}.ship-schedule-page .excel-table th:nth-child(16){width:5%!important}.availability{display:inline-flex;min-width:44px;justify-content:center;padding:5px 9px;border-radius:12px;background:#e7f6ed;color:#247a47;font-weight:800}.availability.shortage{background:#fff0f0;color:#b52d2d}@media(max-width:760px){.schedule-scope{align-items:stretch;flex-direction:column}.schedule-scope input,.schedule-scope select{width:100%}.scope-summary{margin-left:0;text-align:left}}.attendance-page{display:flex;flex:1;flex-direction:column;width:100%;min-height:0;overflow:hidden;border:1px solid #dce3e8;border-radius:10px;background:#fff}.attendance-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;padding:18px 20px 14px}.attendance-header h1{margin:0;color:#123b5d;font-size:22px}.attendance-scope{display:flex;flex:0 0 auto;align-items:flex-end;gap:28px;margin:0 20px;padding:14px 20px 18px;border:1px solid #d8e2ea;border-radius:8px;background:#fff}.attendance-scope label{display:flex;align-items:center;gap:10px;color:#526575;font-size:13px;white-space:nowrap}.attendance-scope input,.attendance-scope select{width:250px;padding:9px 11px;border:1px solid #c7d3dd;border-radius:6px;background:#fff;color:#203247}.attendance-scope p{margin:0 0 10px auto;color:#526b82;font-size:14px;white-space:nowrap}.attendance-scope p b{padding:0 7px;color:#8799a8}.shift-status{display:inline-flex;align-items:center;gap:9px;margin-bottom:3px;padding:9px 14px;border:1px solid #a9ddb5;border-radius:7px;background:#eefaf1;color:#27843f;font-size:13px;font-weight:700;white-space:nowrap}.shift-status i{width:8px;height:8px;border-radius:50%;background:#28a745}.shift-status.locked{border-color:#e6c1a4;background:#fff7ee;color:#a45b23}.shift-status.locked i{background:#d17831}.attendance-alert{flex:0 0 auto;margin:14px 20px 0}.attendance-summary{display:grid;flex:0 0 auto;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:16px 20px}.attendance-summary article{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 14px;border:1px solid #dce5ec;border-radius:8px;background:#fff}.attendance-summary div{display:grid;min-width:0;gap:4px}.attendance-summary small{overflow:hidden;color:#42566a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.attendance-summary strong{color:#132d48;font-size:22px}.summary-icon{display:inline-grid;flex:0 0 39px;width:39px;height:39px;place-items:center;border-radius:50%;font-size:20px;font-weight:800}.summary-icon.teams,.summary-icon.roster{background:#e8f2fb;color:#1472c4}.summary-icon.actual,.summary-icon.free{background:#e8f7ec;color:#18a34a}.summary-icon.absent{background:#fff1df;color:#e68a18}.summary-icon.working{background:#efebff;color:#6843d9}.attendance-grid-wrap{flex:1;min-height:0;margin:0 20px;overflow:auto;border:1px solid #cbd6df;border-radius:6px}.attendance-grid{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}.attendance-grid th,.attendance-grid td{overflow:hidden;height:54px;padding:6px 8px;border:1px solid #d7e0e7;color:#203247;font-size:12px;text-overflow:ellipsis}.attendance-grid th{position:sticky;z-index:2;top:0;height:50px;background:#e8eef3;color:#263f55;font-weight:700;text-align:center;white-space:normal}.attendance-grid th:nth-child(1){width:3.5%}.attendance-grid th:nth-child(2){width:9%}.attendance-grid th:nth-child(3){width:9%}.attendance-grid th:nth-child(4){width:12%}.attendance-grid th:nth-child(5){width:10.5%}.attendance-grid th:nth-child(6){width:9.5%}.attendance-grid th:nth-child(7){width:10%}.attendance-grid th:nth-child(8){width:13%}.attendance-grid th:nth-child(9){width:9.5%}.attendance-grid th:nth-child(10){width:14%}.attendance-grid td:first-child{text-align:center}.attendance-grid input{width:100%;min-width:0;height:38px;padding:7px 9px;border:1px solid #d5e0e8;border-radius:5px;background:#fff;color:#16324d;font-size:12px}.attendance-grid input:focus{outline:2px solid #1886ba;outline-offset:-1px;background:#f7fcff}.attendance-grid input:disabled{opacity:1;background:#f4f7f9;color:#607080}.attendance-grid input[type=number]{text-align:left}.readonly-value{display:grid;width:100%;min-height:38px;place-items:center;border:1px solid #dce5ec;border-radius:5px;background:#f4f6f8}.working-value{border-color:#d7e4f2;background:#edf5fc;color:#1d5f95;font-weight:700}.free-value{border-color:#d6eadb;background:#eff9f1;color:#248047;font-weight:700}.attendance-message{height:90px!important;color:#718096!important;text-align:center}.attendance-footer{display:flex;flex:0 0 auto;justify-content:space-between;padding:14px 20px;color:#526575;font-size:13px}.attendance-footer em{color:#718096}@media(max-width:1250px){.attendance-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-scope{gap:14px}.attendance-scope input,.attendance-scope select{width:190px}.attendance-scope p{white-space:normal}}@media(max-width:760px){.attendance-page{overflow:auto}.attendance-header,.attendance-scope{align-items:stretch}.attendance-scope{flex-direction:column}.attendance-scope label{justify-content:space-between;width:100%}.attendance-scope input,.attendance-scope select{width:min(250px,65%)}.attendance-scope p{margin:0}.attendance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-grid-wrap{min-height:420px}.attendance-grid th,.attendance-grid td{padding:4px;font-size:10px}}.app-shell{grid-template-columns:260px minmax(0,1fr);background:#edf2f6}.app-sidebar{display:flex;flex-direction:column;min-height:100vh;padding:14px 14px 12px;overflow:hidden;background:linear-gradient(165deg,#123f62,#0b3150 58%,#082b48);box-shadow:6px 0 18px #07233924;color:#fff}.sidebar-brand{display:flex;align-items:center;gap:7px;padding:3px 8px 9px}.sidebar-brand strong{color:#fff;font-size:20px;font-weight:850;letter-spacing:.3px;text-shadow:0 2px 4px rgba(0,0,0,.22)}.sidebar-brand small{padding:2px 7px;border:1px solid rgba(121,211,255,.34);border-radius:10px;background:linear-gradient(180deg,#2689c3,#156796);color:#e7f7ff;box-shadow:inset 0 1px #ffffff47,0 3px 7px #00000029;font-size:9px;font-weight:800}.sidebar-user{display:flex;align-items:center;gap:9px;margin:0 4px 10px;padding:7px 7px 11px;border-bottom:1px solid rgba(166,211,237,.14)}.sidebar-avatar{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border:1px solid #42a9df;border-radius:50%;background:linear-gradient(145deg,#2d9ee0,#0f69a5);box-shadow:inset 0 2px 3px #ffffff47,0 4px 9px #0003;color:#fff;font-size:13px;font-weight:850}.sidebar-user div{display:grid;min-width:0;gap:3px}.sidebar-user strong,.sidebar-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user strong{color:#f7fbfe;font-size:13px}.sidebar-user small{color:#a9cadd;font-size:9px}.app-sidebar nav{display:grid;gap:5px}.app-sidebar nav button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:7px 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:#e3eef5;font-size:14px;text-align:left;transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}.app-sidebar nav button:hover{transform:translate(2px);border-color:#70c3ef2e;background:#3481af33;color:#fff}.app-sidebar nav button.active{border-color:#56bef452;background:linear-gradient(135deg,#267cb0,#185e8c);box-shadow:inset 0 1px #ffffff21,0 7px 16px #0003;color:#fff;font-weight:750}.sidebar-icon{display:inline-grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border:1px solid rgba(143,222,255,.38);border-radius:9px;background:linear-gradient(145deg,#52b9eb,#1f80bb 52%,#115a8d);box-shadow:inset 2px 2px 3px #ffffff57,inset -2px -3px 4px #00274640,0 5px 9px #0000003d;color:#eaf9ff}.sidebar-icon svg{width:22px;height:22px;overflow:visible;fill:currentColor;filter:drop-shadow(0 2px 1px rgba(0,34,61,.4));stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.35}.sidebar-icon .icon-shine{fill:none;stroke:#fff;stroke-width:1;opacity:.7}.sidebar-icon-attendance{background:linear-gradient(145deg,#78c9ff,#3486d0 55%,#2c61ad)}.sidebar-icon-diagram{background:linear-gradient(145deg,#66d7c4,#269889 55%,#177166)}.sidebar-icon-master{background:linear-gradient(145deg,#83c8e9,#397da8 55%,#285675)}.sidebar-icon-categories{background:linear-gradient(145deg,#65d5ff,#278fcc 55%,#17659a)}.app-sidebar nav button.active .sidebar-icon{transform:translateY(-1px);box-shadow:inset 2px 2px 3px #fff6,inset -2px -3px 4px #0027463d,0 7px 13px #0000004d}.sidebar-logout{display:flex;align-items:center;gap:12px;width:100%;margin-top:auto;padding:8px 10px;border:1px solid rgba(136,194,226,.18);border-radius:9px;background:#041f3440;color:#edf7fc;font-weight:700;text-align:left}.sidebar-logout:hover{border-color:#77ccf859;background:#1d638c59}.sidebar-logout .sidebar-icon{width:34px;height:34px;flex-basis:34px;background:linear-gradient(145deg,#607c92,#344f65 58%,#233b4f)}.app-shell>main{width:100%;min-width:0;background:#edf2f6}.app-shell>main>.content{width:100%;max-width:none;flex:1;min-height:0;padding:12px 14px 12px 12px;overflow:auto}.app-shell>main>.catalog-content{overflow:hidden}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.app-sidebar{display:none}.app-shell>main>.content{padding:10px}}.dashboard-page{min-height:100%;overflow:hidden;border:1px solid #d9e2e9;border-radius:10px;background:#fff;box-shadow:0 2px 7px #17374d0f;color:#16324d}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 24px;border-bottom:1px solid #e0e7ec}.dashboard-heading h1{margin:0 0 6px;color:#123b5d;font-size:26px}.dashboard-heading p{margin:0;color:#61758a;font-size:14px}.dashboard-scope{display:flex;align-items:flex-end;gap:16px}.dashboard-scope label{display:grid;gap:6px;color:#526575;font-size:12px}.dashboard-scope input,.dashboard-scope select{width:230px;padding:9px 11px;border:1px solid #cbd6df;border-radius:6px;background:#fff;color:#203247}.dashboard-status{display:inline-flex;align-items:center;gap:8px;margin-bottom:1px;padding:9px 13px;border:1px solid #bee4c7;border-radius:6px;background:#eff9f1;color:#25803d;font-size:12px;font-weight:750;white-space:nowrap}.dashboard-status i{width:8px;height:8px;border-radius:50%;background:#24a344}.dashboard-status.closed{border-color:#e8c7ae;background:#fff7ef;color:#aa622a}.dashboard-status.closed i{background:#d57b34}.dashboard-alert{margin:12px 24px 0}.dashboard-content{padding:14px 24px 20px}.dashboard-content h2{margin:0;color:#173858;font-size:18px}.team-charts-section>h2{margin-bottom:10px}.team-charts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.team-chart-card{min-width:0;overflow:hidden;border:1px solid #dce5ec;border-radius:8px;background:#fff}.team-chart-card>header{display:flex;align-items:flex-start;justify-content:center;min-height:39px;padding:9px 9px 0;position:relative}.team-chart-card>header>strong{font-size:15px}.team-chart-card>header>span{position:absolute;right:7px;top:6px;display:grid;padding:3px 6px;border:1px solid #cdbdff;border-radius:5px;background:#f5f1ff;color:#6740db;font-size:13px;font-weight:800;text-align:center}.team-chart-card>header small{display:block;font-size:8px;font-weight:650}.team-donut{display:grid;width:126px;height:126px;margin:3px auto 7px;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 1px #123b5d0d}.team-donut>div{display:grid;width:76px;height:76px;place-content:center;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #e4ebf0;text-align:center}.team-donut small{color:#718096;font-size:9px}.team-donut b{font-size:23px;color:#183a5c}.team-chart-card dl{display:grid;gap:4px;margin:0;padding:0 12px 8px}.team-chart-card dl>div{display:flex;justify-content:space-between;gap:7px;font-size:11px}.team-chart-card dt{display:flex;align-items:center;gap:6px;color:#526575}.team-chart-card dd{margin:0;font-weight:750}.working-dot,.free-dot,.absent-dot,.required-dot{display:inline-block;width:8px;height:8px;border-radius:2px}.working-dot{background:#1677bd}.free-dot{background:#2ca66f}.absent-dot{background:#e87f20}.required-dot{background:#123b5d}.team-chart-card footer{display:flex;align-items:center;gap:8px;min-height:38px;padding:8px 10px;border-top:1px solid #e2e8ed;color:#526575;font-size:11px}.team-chart-card footer strong{color:#173858;font-size:13px}.team-chart-card footer em{margin-left:auto;padding:3px 5px;border:1px solid #d4c5ff;border-radius:4px;background:#f7f3ff;color:#6740db;font-size:9px;font-style:normal;white-space:nowrap}.area-charts-section{margin-top:14px;border:1px solid #dce5ec;border-radius:8px;overflow:hidden}.area-totals{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #dce5ec}.area-totals article{display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;border-right:1px solid #dce5ec}.area-totals article:last-child{border-right:0}.area-totals div{display:grid;gap:2px}.area-totals small{color:#526575;font-size:11px}.area-totals strong{color:#176aaa;font-size:21px}.area-totals .shortage-total strong,.area-totals .shortage-total small{color:#d86218}.total-icon{font-size:22px;color:#1677bd}.required-total{color:#123b5d}.shortage-icon{color:#e46e20}.area-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px 8px}.area-legend{display:flex;gap:16px;color:#526575;font-size:10px}.area-legend span{display:flex;align-items:center;gap:5px}.area-chart-table{padding:0 14px 10px}.area-table-labels,.area-chart-row{display:grid;grid-template-columns:195px minmax(180px,1fr) 62px 58px 55px;align-items:center;gap:8px}.area-table-labels{min-height:25px;color:#789;font-size:9px}.area-table-labels b{text-align:center}.area-chart-row{min-height:35px;border-top:1px solid #edf1f4}.area-chart-row>strong{overflow:hidden;color:#29445e;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.area-bar-track{position:relative;height:12px;overflow:hidden;border-radius:3px;background:#edf2f5}.area-required-bar,.area-working-bar,.area-shortage-bar{position:absolute;top:0;bottom:0;left:0}.area-required-bar{background:#123b5d}.area-working-bar{background:#1677bd}.area-shortage-bar{background:#e87f20}.area-chart-row>b{color:#173858;font-size:11px;text-align:center}.area-chart-row>b:first-of-type{color:#1677bd}.area-chart-row>em{padding:3px 5px;border-radius:5px;color:#718096;background:#f1f3f5;font-size:11px;font-style:normal;text-align:center}.area-chart-row>em.has-shortage{background:#fff0e6;color:#da6519;font-weight:800}.dashboard-loading{display:grid;min-height:180px;place-items:center;color:#718096}@media(max-width:1250px){.dashboard-heading{align-items:flex-start;flex-direction:column}.dashboard-scope{width:100%}.team-charts{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.dashboard-heading,.dashboard-content{padding:14px}.dashboard-scope{align-items:stretch;flex-direction:column}.dashboard-scope input,.dashboard-scope select{width:100%}.team-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.area-table-labels,.area-chart-row{grid-template-columns:115px minmax(110px,1fr) 42px 38px 40px;gap:4px}.area-legend{display:none}}.ship-diagram-page{display:flex;width:100%;max-width:none;height:calc(100vh - 24px);min-height:0;flex-direction:column;align-items:stretch;gap:10px}.diagram-toolbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border:1px solid #d7e1e8;border-radius:10px;background:#fff}.diagram-toolbar h1{margin:0 0 4px;color:#123b5d;font-size:21px}.diagram-toolbar p{margin:0;color:#718096;font-size:13px}.diagram-week-controls{display:flex;align-items:flex-end;gap:8px}.diagram-week-controls label{display:grid;gap:4px;color:#607080;font-size:11px;font-weight:700}.diagram-week-controls input{padding:8px 10px;border:1px solid #c4d1da;border-radius:7px;color:#203247}.diagram-week-controls button{height:37px;white-space:nowrap}.diagram-week-controls button:first-child,.diagram-week-controls button:last-child{width:38px;padding:0;font-size:24px;line-height:1}.diagram-legend{display:flex;flex:0 0 auto;align-items:center;gap:18px;padding:8px 14px;border:1px solid #d7e1e8;border-radius:8px;background:#fff;color:#526575;font-size:12px}.diagram-legend span{display:flex;align-items:center;gap:6px}.diagram-legend i{width:18px;height:6px;border-radius:4px;background:#438dc2}.diagram-legend i.in-progress{background:#e6922e}.diagram-legend i.completed{background:#2e9b62}.diagram-legend b{margin-left:auto;color:#123b5d}.diagram-toolbar,.diagram-legend,.diagram-scroll{width:100%;max-width:none}.diagram-scroll{flex:1;min-width:0;min-height:0;overflow:auto;border:1px solid #cbd7df;border-radius:10px;background:#fff}.diagram-board{width:100%;min-width:1250px;color:#253b4c}.diagram-header{position:sticky;z-index:5;top:0;display:grid;grid-template-columns:125px 135px minmax(990px,1fr);min-height:68px;border-bottom:2px solid #8397a6;background:#e7eef3;box-shadow:0 2px 5px #173c5614}.diagram-header>strong{display:grid;place-items:center;border-right:1px solid #b8c7d1;color:#123b5d;font-size:13px}.diagram-days{display:grid;grid-template-columns:repeat(7,1fr)}.diagram-days>div{display:grid;grid-template-rows:35px 31px;border-right:1px solid #9fb0bc;text-align:center}.diagram-days b{display:grid;place-items:center;color:#123b5d;font-size:13px}.diagram-days span{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #c1ccd4;color:#788995;font-size:9px}.diagram-days i{display:grid;place-items:center;border-right:1px dotted #c5d0d7;font-style:normal}.diagram-days i:last-child{border-right:0}.diagram-area{display:grid;grid-template-columns:125px minmax(1125px,1fr);border-bottom:2px solid #9caeba}.diagram-area-name{display:grid;place-content:center;gap:5px;padding:12px;border-right:1px solid #9fb0bc;background:linear-gradient(135deg,#eaf4fa,#d9ebf5);text-align:center}.diagram-area-name span{color:#105d87;font-size:14px;font-weight:800}.diagram-area-name small{color:#708693;font-size:10px}.diagram-location{display:grid;grid-template-columns:135px minmax(990px,1fr);border-bottom:1px solid #c5d1d9}.diagram-location:last-child{border-bottom:0}.diagram-location-name{display:grid;place-items:center;padding:8px;border-right:1px solid #afbec8;background:#f5f8fa;color:#344e60;font-size:13px;font-weight:750;text-align:center}.diagram-timeline{position:relative;min-height:100%;overflow:hidden;background-color:#fff;background-image:linear-gradient(to right,rgba(106,126,140,.32) 1px,transparent 1px),linear-gradient(to right,rgba(126,146,159,.13) 1px,transparent 1px);background-size:calc(100% / 7) 100%,calc(100% / 28) 100%}.ship-event{position:absolute;z-index:2;min-width:118px;height:47px;padding:0 5px;color:#236891}.ship-event-title{display:flex;align-items:center;justify-content:center;gap:4px;overflow:hidden;height:18px;white-space:nowrap;font-size:9px}.ship-event-title b{overflow:hidden;text-overflow:ellipsis;color:#174b6d;font-size:10px}.ship-arrow{position:relative;height:3px;margin:1px 5px 3px 0;border-radius:3px;background:#438dc2}.ship-arrow:after{position:absolute;right:-6px;top:-4px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid #438dc2;content:""}.ship-event-staff{overflow:hidden;text-align:center;white-space:nowrap;color:#526b7b;font-size:9px}.ship-event-staff b{color:#164e70}.ship-event.in-progress .ship-arrow{background:#e6922e}.ship-event.in-progress .ship-arrow:after{border-left-color:#e6922e}.ship-event.in-progress .ship-event-title b,.ship-event.in-progress .ship-event-staff b{color:#a65b0c}.ship-event.completed .ship-arrow{background:#2e9b62}.ship-event.completed .ship-arrow:after{border-left-color:#2e9b62}.ship-event.completed .ship-event-title b,.ship-event.completed .ship-event-staff b{color:#24784d}.diagram-message{display:grid;min-height:200px;place-items:center;color:#718096}@media(max-width:760px){.diagram-toolbar{align-items:flex-start;flex-direction:column}.diagram-week-controls{width:100%;flex-wrap:wrap}.diagram-legend{flex-wrap:wrap}.diagram-legend b{width:100%;margin-left:0}}.login-page{position:relative;display:grid;width:100%;min-height:100vh;place-items:center;overflow:hidden;padding:28px;isolation:isolate}.login-background{position:absolute;z-index:-2;inset:-12px;background:url(/assets/login-port-background.png) center/cover no-repeat;filter:blur(3px);transform:scale(1.02)}.login-page:after{position:absolute;z-index:-1;inset:0;background:linear-gradient(135deg,#04264394,#08436945 52%,#031f339e);content:""}.login-popup{width:min(430px,100%);padding:25px 38px 22px;border:1px solid rgba(255,255,255,.74);border-radius:22px;background:#ffffffed;box-shadow:0 28px 80px #02192b73,0 8px 24px #02243a47,inset 0 1px #ffffffe6;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.login-logo{display:grid;width:150px;height:108px;margin:0 auto 5px;place-items:center;overflow:hidden}.login-logo img{display:block;width:145px;height:auto;mix-blend-mode:multiply}.login-heading{text-align:center}.login-heading>span{color:#1875ae;font-size:11px;font-weight:850;letter-spacing:1.2px;text-transform:uppercase}.login-heading h1{margin:7px 0 5px;color:#123b5d;font-size:27px;line-height:1.15}.login-heading p{margin:0;color:#70808d;font-size:13px;line-height:1.5}.login-form{display:grid;gap:15px;margin-top:22px}.login-form label{display:grid;gap:7px}.login-form label>span{color:#344c5f;font-size:12px;font-weight:750}.login-input{display:flex;align-items:center;height:45px;overflow:hidden;border:1px solid #c4d2dc;border-radius:10px;background:#fafcfdf0;transition:border-color .16s,box-shadow .16s,background .16s}.login-input:focus-within{border-color:#298dc2;background:#fff;box-shadow:0 0 0 3px #298dc224}.login-input i{display:grid;width:43px;height:100%;place-items:center;color:#3a94bf;font-size:10px;font-style:normal}.login-input input{min-width:0;flex:1;height:100%;padding:0 13px 0 0;border:0;outline:0;background:transparent;color:#203247;font-size:14px}.login-input input::placeholder{color:#9aa8b2}.forgot-password{justify-self:end;margin-top:-7px;padding:0;border:0;background:transparent;color:#1875ae;font-size:12px;font-weight:700}.forgot-password:hover{color:#0d5f90;text-decoration:underline}.login-submit{width:100%;min-height:46px;margin-top:4px;border:1px solid #0e6798;border-radius:10px;background:linear-gradient(135deg,#1787bd,#116b9e);box-shadow:0 8px 18px #116b9e45,inset 0 1px #ffffff38;color:#fff;font-size:14px;font-weight:800;letter-spacing:.15px;transition:transform .16s,box-shadow .16s}.login-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 11px 22px #116b9e57,inset 0 1px #ffffff38}.login-submit:disabled{opacity:.72}.login-error{margin:0;font-size:12px}.login-popup footer{margin-top:20px;padding-top:14px;border-top:1px solid #dce5eb;color:#78909f;font-size:10px;font-weight:800;letter-spacing:.6px;text-align:center}.login-popup footer b{color:#2691bd}@media(max-width:520px){.login-page{padding:16px}.login-popup{padding:22px 24px 20px;border-radius:18px}.login-logo{width:125px;height:90px}.login-logo img{width:122px}.login-heading h1{font-size:24px}}
