:root{font-family:Segoe UI,system-ui,sans-serif;color:#1a1a1a;background:#f3f3f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:1080px;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:246px 1fr}aside{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:14px 12px;background:#fafafa;border-right:1px solid #dedede}.brand{display:flex;align-items:center;gap:11px;height:58px;padding:0 10px 12px;border-bottom:1px solid #e4e4e4}.brand svg{color:#0067c0}.brand div{display:flex;flex-direction:column}.brand strong{font-size:17px}.brand span{font-size:11px;color:#666}nav{display:flex;flex-direction:column;gap:4px;padding-top:10px}nav button{position:relative;display:flex;align-items:center;gap:11px;width:100%;height:40px;padding:0 11px;border:1px solid transparent;border-radius:6px;color:#252525;background:transparent;text-align:left}nav button:hover{background:#f0f0f0}nav button.active{background:#e7f3ff;border-color:#d6e8f7}nav button.active:before{content:"";position:absolute;left:0;width:3px;height:22px;border-radius:2px;background:#0067c0}.aside-footer{margin-top:auto;display:flex;flex-direction:column;gap:8px;color:#777;font-size:10px}.aside-footer button{display:flex;gap:6px;align-items:center;border:0;background:transparent;padding:4px 0;color:#555}main{min-width:0}.page{min-height:100vh;padding:0 20px 20px}.page-heading{height:76px;margin:0 -20px 18px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:#f8f8f8;border-bottom:1px solid #dedede}h1,h2,p{margin:0}.page-heading h1{font-size:25px;font-weight:650}.page-heading p,.welcome p{margin-top:3px;color:#666;font-size:12px}.status{display:flex;align-items:center;gap:6px;color:#666;font-size:11px}.status i{width:7px;height:7px;border-radius:50%;background:#36a269}.welcome{padding:3px 0 16px}.welcome h2{font-size:17px}.section-row{min-height:42px;display:flex;align-items:center;justify-content:space-between}.section-row h2{display:flex;align-items:center;gap:8px;font-size:15px}.section-row>span{color:#6b6b6b;font-size:11px}.data-card,.toolbar-card,.placeholder-card{background:#fff;border:1px solid #dfdfdf;border-radius:8px;overflow:hidden;box-shadow:0 1px 2px #0000000a}.data-card.compact{height:190px}.data-card.jobs{min-height:380px}.placeholder-card{padding:28px}.placeholder-card p{margin-top:8px;color:#666;max-width:650px}table{width:100%;border-collapse:collapse;font-size:12px}th{height:40px;padding:0 12px;text-align:left;font-weight:600;background:#fbfbfb;border-bottom:1px solid #ddd;white-space:nowrap}td{height:40px;padding:0 12px;border-bottom:1px solid #e5e5e5;white-space:nowrap}tbody tr:nth-child(2n){background:#fafbfc}tbody tr:hover{background:#eef6fc}.date-tools{display:flex;align-items:center;gap:7px}.date-tools button{border:0;background:transparent;min-width:32px;height:32px;border-radius:5px}.date-tools button:hover{background:#e9e9e9}.date-tools .pill{padding:0 10px;border:1px solid #ddd;background:#fff}.icon-button{width:40px;height:40px;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent}.icon-button:hover{border-color:#d8d8d8;background:#fff}.icon-button svg{width:22px;height:22px}.toolbar-card{padding:12px;display:flex;gap:12px;align-items:center}.file-drop{flex:1;min-width:360px;min-height:58px;display:flex;gap:10px;align-items:center;padding:9px 10px;border:1px dashed #c7c7c7;border-radius:7px;background:#fafafa}.file-drop.dragging{border-color:#0067c0;background:#eef7ff}.file-drop>div{flex:1;display:flex;flex-direction:column;min-width:0}.file-drop strong{overflow:hidden;text-overflow:ellipsis}.file-drop span{color:#777;font-size:11px}.actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border-radius:5px;border:1px solid transparent}.button.primary{color:#fff;background:#0067c0}.button.primary:hover{background:#005cae}.button.secondary{background:#fff;border-color:#d5d5d5;color:#222}.button.quiet{background:transparent;color:#333}.button:disabled{opacity:.45;cursor:not-allowed}.optional-row{margin:10px 0;display:flex;gap:10px;align-items:center;font-size:12px}.optional-row label{font-weight:600}.optional-row span{color:#666}.error-banner{margin:10px 0;padding:10px 12px;color:#8f231b;background:#fde9e7;border:1px solid #f4c9c4;border-radius:6px}.data-card:not(.compact):not(.jobs){height:calc(100vh - 250px)}.table-wrap{width:100%;height:100%;overflow:auto}.empty-state{height:100%;display:grid;place-items:center;color:#777}.login{min-height:100vh;display:grid;place-items:center;background-image:linear-gradient(90deg,#04101bd6,#0419286b),url(/oocl2.avif);background-size:cover;background-position:center}.login-card{width:410px;padding:34px;display:flex;flex-direction:column;gap:12px;background:#0d1820e8;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:14px;box-shadow:0 22px 70px #00000073}.login-brand{display:flex;align-items:center;gap:10px;color:#7fc8ff;font-weight:650}.login-card h1{font-size:26px;margin-top:8px}.login-card p{color:#c8d2d8;margin-bottom:7px}.login-card input{height:42px;padding:0 12px;border:1px solid #62727d;border-radius:6px;background:#040c12c7;color:#fff}.login-card input:focus{outline:2px solid #49a7e8;border-color:transparent}.login-submit{margin-top:4px}.login-message{color:#d9ecf8;background:#4a97c733;border:1px solid rgba(127,200,255,.28);border-radius:5px;padding:9px;font-size:12px}.login-links{display:flex;justify-content:space-between}.login-links button{border:0;background:transparent;color:#8ed0ff;padding:5px 0;font-size:12px}.login-links button:hover{text-decoration:underline}@media(max-width:1200px){.app-shell{grid-template-columns:210px 1fr}.toolbar-card{align-items:stretch;flex-direction:column}.actions{justify-content:flex-start}.data-card:not(.compact):not(.jobs){height:calc(100vh - 320px)}}.workflow-grid{display:grid;grid-template-columns:minmax(430px,.85fr) 1.15fr;gap:14px;height:calc(100vh - 114px)}.form-card{padding:18px;overflow:auto}.form-card h2,.log-column h2{font-size:14px;margin:4px 0 12px}.form-card h2:not(:first-child){margin-top:22px}.file-row{display:grid;grid-template-columns:110px 120px 1fr;align-items:center;min-height:44px;border-bottom:1px solid #eee;font-size:12px}.file-row input{max-width:110px}.file-row strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.form-grid input,.timeline-fields input,.note-list>input,.note-title,.search-field,.inline-form input,.modal input{height:38px;padding:0 10px;border:1px solid #d5d5d5;border-radius:5px;background:#fff}.timeline-fields{display:flex;flex-direction:column;gap:8px}.timeline-fields input{width:100%}.log-column{display:flex;flex-direction:column;min-width:0}.process-log{flex:1;margin:0;padding:18px;overflow:auto;white-space:pre-wrap;background:#fff;border:1px solid #dfdfdf;border-radius:8px;font:13px/1.55 Cascadia Mono,Consolas,monospace}.notes-grid{display:grid;grid-template-columns:260px 1fr;gap:12px;height:calc(100vh - 112px)}.note-list{padding:10px;display:flex;flex-direction:column}.scroll-list{margin-top:8px;overflow-y:auto;flex:1}.scroll-list button{width:100%;height:40px;text-align:left;padding:0 10px;border:0;border-bottom:1px solid #eee;background:transparent}.scroll-list button:hover,.scroll-list button.selected{background:#e7f3ff}.note-editor{padding:10px;display:flex;flex-direction:column;gap:9px}.note-editor textarea{flex:1;resize:none;overflow:auto;padding:14px;border:1px solid #ddd;border-radius:5px;line-height:1.5}.search-field{width:100%;margin-bottom:10px}.contacts{height:calc(100vh - 160px)!important;overflow:auto}.row-action{display:inline-grid;place-items:center;min-width:32px;height:30px;border:0;border-radius:5px;background:transparent;color:#333}.row-action:hover{background:#e9e9e9}.row-action.danger{color:#a4262c}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;background:#00000059;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{width:min(480px,90vw);max-height:85vh;overflow:auto;padding:20px;background:#fff;border:1px solid #ccc;border-radius:10px;box-shadow:0 22px 70px #00000047}.modal h2{font-size:18px;margin-bottom:14px}.modal>label{display:grid;grid-template-columns:100px 1fr;gap:8px;align-items:center;margin:8px 0;font-size:12px}.modal>.actions{margin-top:18px}.due-modal{width:560px}.due-list{display:flex;flex-direction:column;gap:7px;margin:15px 0}.due-list label{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #ddd;border-radius:7px;background:#fafafa}.due-list label div{display:flex;flex-direction:column}.due-list span{font-size:11px;color:#666;margin-top:3px}.empty-due{display:flex;align-items:center;gap:8px;padding:30px;color:#666}.cell-input{width:100%;min-width:95px;height:30px;border:1px solid transparent;background:transparent;padding:0 5px}.cell-input:focus{outline:none;border-color:#0067c0;background:#fff}.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;height:calc(100vh - 112px)}.settings-card{padding:24px}.eyebrow{font-size:10px;color:#666;font-weight:700;letter-spacing:.08em}.settings-card h2{font-size:16px;margin:18px 0 12px}.settings-card p{font-size:12px;color:#666;margin-top:14px}.theme-choices{display:flex;gap:10px}.theme-choices button{width:150px;height:90px;border:1px solid #ccc;border-radius:7px;background:#fafafa}.theme-choices button.selected{border:2px solid #0067c0}.theme-choices .dark-swatch{background:#202020;color:#fff}.settings-card dl{display:grid;grid-template-columns:140px 1fr;gap:12px;margin:20px 0}.settings-card dt{color:#666;font-size:12px}.settings-card dd{margin:0;font-size:12px}.inline-form{display:flex;gap:8px}.inline-form input{flex:1}[data-theme=dark]{filter:invert(.88) hue-rotate(180deg)}[data-theme=dark] img,[data-theme=dark] svg{filter:invert(1) hue-rotate(180deg)}@media(max-width:1200px){.workflow-grid,.options-grid{grid-template-columns:1fr;height:auto}.notes-grid{height:calc(100vh - 112px)}}.file-drop small{color:#0067c0;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}.workflow-grid{grid-template-columns:minmax(470px,.9fr) 1.1fr}.workflow-drops{display:grid;grid-template-columns:1fr 1fr;gap:10px}.workflow-drops .file-drop{min-width:0;min-height:118px;flex-direction:column;align-items:flex-start;border:2px dashed #c7c7c7}.workflow-drops .file-drop .button{width:100%}.workflow-drops .file-drop.dragging{border-color:#1685d1;background:#0067c021;box-shadow:inset 0 0 0 2px #0067c014}.template-note{padding:10px 12px;border-left:3px solid #0067c0;background:#eef7ff;color:#35566f;font-size:11px}.visual-log{font-family:Segoe UI,sans-serif;white-space:normal}.log-status{display:flex;align-items:center;gap:8px;padding-bottom:12px;border-bottom:1px solid #e6e6e6;color:#137333}.log-status svg{width:18px}.visual-log.has-error .log-status{color:#b3261e}.log-section{margin-top:12px;padding:12px;border:1px solid #e6e6e6;border-radius:6px;background:#fafafa;white-space:pre-wrap;font:12px/1.55 Cascadia Mono,Consolas,monospace}.log-heading{font-family:Segoe UI,sans-serif;font-weight:700;color:#0067c0;margin:3px 0}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.file-setting{margin-top:12px}.stored-setting{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:9px;border:1px solid #ddd;border-radius:6px;font-size:12px}.settings-message{padding:8px 10px;background:#eef7ff;border-radius:5px}.stored-file{padding:8px 12px;background:#f8fafb;border:1px solid #e0e5e8;border-radius:6px}.mapping-modal{width:min(760px,92vw)}.mapping-tabs{display:flex;gap:4px;margin:12px 0}.mapping-tabs button{height:34px;padding:0 13px;border:1px solid #ddd;background:#fff;border-radius:5px}.mapping-tabs button.active{color:#fff;background:#0067c0;border-color:#0067c0}.mapping-entry{margin-bottom:10px}.mapping-list{max-height:420px;overflow:auto;border:1px solid #ddd;border-radius:6px}@media(max-width:1200px){.workflow-drops{grid-template-columns:1fr}}.save-indicator{margin-left:8px;color:#6b6b6b;font-size:10px;font-weight:400}.dashboard{height:100vh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.dashboard>.page-heading,.dashboard>.welcome,.dashboard>.section-row,.dashboard>.data-card.compact{flex:0 0 auto}.dashboard>.data-card.jobs{flex:1 1 auto;height:auto;min-height:180px}.workflow-grid .form-card{height:100%}.workflow-drops .file-drop{min-height:170px}.data-card.compact{overflow-y:scroll}.data-card.jobs{height:380px;min-height:380px}.data-card th{position:sticky;top:0;z-index:2}.workflow-grid{height:calc(100vh - 94px)}.notes-grid{height:calc(100vh - 92px)}[data-theme=dark] .login{filter:invert(1) hue-rotate(180deg)}@media(max-width:900px){body{min-width:0}.app-shell{display:block}aside{position:sticky;top:0;z-index:40;width:100%;height:auto;padding:7px 9px;box-shadow:0 2px 10px #00000017}.brand{height:42px;padding:0 6px 6px}.brand span{display:none}nav{flex-direction:row;overflow-x:auto;padding-top:6px;gap:3px;scrollbar-width:thin}nav button{flex:0 0 auto;width:auto;height:37px;padding:0 10px}nav button.active:before{left:8px;right:8px;bottom:0;width:auto;height:3px}.aside-footer{position:absolute;right:10px;top:9px}.aside-footer>span{display:none}.aside-footer button{padding:4px 7px}.page{min-height:0;padding:0 12px 18px}.page-heading{height:auto;min-height:70px;margin:0 -12px 12px;padding:10px 12px;gap:10px;flex-wrap:wrap}.workflow-grid,.options-grid{grid-template-columns:1fr;height:auto}.workflow-grid{min-height:calc(100vh - 145px)}.form-card{min-height:620px}.log-column{min-height:360px}.notes-grid{grid-template-columns:1fr;height:auto}.note-list{height:250px}.note-editor{min-height:58vh}.dashboard{height:auto;display:block;overflow:visible}.section-row{gap:8px;flex-wrap:wrap}.date-tools{flex-wrap:wrap}.data-card.jobs,.dashboard>.data-card.jobs{height:390px;min-height:390px}.data-card.compact{height:180px}.workflow-grid .form-card{height:auto}.toolbar-card{align-items:stretch;flex-direction:column}.file-drop{min-width:0}.actions{justify-content:flex-start}.contacts{height:auto!important;min-height:500px}.data-card:not(.compact):not(.jobs){height:auto;min-height:420px}}@media(max-width:600px){.brand strong{font-size:14px}nav button span{font-size:11px}.page-heading h1{font-size:21px}.workflow-drops,.form-grid{grid-template-columns:1fr}.workflow-drops .file-drop{min-height:145px}.form-card{min-height:0}.due-drawer{width:100%}.modal{width:calc(100vw - 20px);padding:15px}.modal>label{grid-template-columns:1fr}.options-grid{display:block}.settings-card{margin-bottom:10px;padding:17px}.theme-choices button{width:46%}.notes-grid{gap:9px}.note-editor{min-height:62vh}.date-tools .pill{order:2}.login-card{width:calc(100vw - 28px);padding:25px}.workflow-grid{gap:10px}}.cell-menu{position:fixed;z-index:30;width:170px;padding:7px;display:grid;gap:3px;background:#fff;border:1px solid #ccc;border-radius:7px;box-shadow:0 12px 35px #00000038}.cell-menu strong{padding:6px;font-size:11px;color:#666}.cell-menu button{height:30px;text-align:left;padding:0 8px;border:0;border-radius:4px;background:transparent}.cell-menu button:hover{background:#e7f3ff}.due-drawer{position:fixed;z-index:25;right:0;top:0;width:390px;height:100vh;display:flex;flex-direction:column;padding:16px;background:#f8f9fa;border-left:1px solid #d8dce0;box-shadow:-18px 0 48px #00000029;animation:drawer-in .18s ease-out}.due-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;padding:5px 3px 14px;border-bottom:1px solid #dfe3e6}.due-drawer-head h2{font-size:19px}.due-drawer-head p{margin-top:4px;color:#687078;font-size:12px}.due-groups{flex:1;overflow:auto;padding:12px 0;display:flex;flex-direction:column;gap:8px}.due-vessel{display:flex;align-items:flex-start;gap:11px;padding:12px;background:#fff;border:1px solid #dfe3e6;border-radius:7px;box-shadow:0 1px 2px #0000000a}.due-vessel>input{margin-top:4px;width:16px;height:16px;accent-color:#0067c0}.due-vessel-content{flex:1;min-width:0}.due-vessel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.due-vessel-title span{padding:2px 7px;border-radius:10px;background:#fff0d5;color:#7a4a00;font-size:10px;font-weight:700}.due-deadline{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid #edf0f2;font-size:11px}.due-deadline b{font-weight:600}.due-deadline span{color:#a4262c}.due-actions{padding-top:12px;border-top:1px solid #dfe3e6}.due-actions .button{width:100%}@keyframes drawer-in{0%{transform:translate(100%)}to{transform:translate(0)}}
