:root{--navy:#19154a;--blue:#0037ae;--blue-soft:#edf2ff;--ink:#1d2234;--muted:#626b7d;--line:#d9dee8;--bg:#f9fafc;--white:#fff;--green:#126749;--green-bg:#eaf6ef;--amber:#895814;--amber-bg:#fff5df;--red:#a12a35;--red-bg:#fff0f1;--radius:12px;--shadow:0 16px 45px rgba(25,21,74,.08);font-family:Inter,Arial,system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:var(--blue);text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a7bdf5;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3,.wordmark{font-family:Manrope,Inter,Arial,system-ui,sans-serif}svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button svg{pointer-events:none}textarea{resize:vertical;min-height:94px}input,select,textarea{color:var(--ink)}input::placeholder,textarea::placeholder{color:#7a8396}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23626b7d' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px!important}input[type=file]{max-width:100%}input[type=date]{min-width:0}button{border:0}fieldset{margin:0;padding:0;border:0;min-width:0}legend{padding:0}small{font-size:.8125rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:100;top:-50px;left:16px;padding:12px 16px;background:var(--white);border:2px solid var(--blue);border-radius:8px}.skip-link:focus{top:10px}.initial-loading{min-height:100vh;display:grid;place-content:center;gap:28px;text-align:center;color:var(--muted)}.initial-loading .wordmark{width:260px;margin:0 auto}.noscript{padding:24px}.wordmark{display:flex;align-items:center;justify-content:center;width:200px;max-width:100%;flex:none}.brand-image{display:block;width:100%;height:auto;flex:none}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.muted{color:var(--muted)}.text-small{font-size:.875rem;line-height:1.6}.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--navy);color:white;display:flex;flex-direction:column;padding:34px 22px 25px;z-index:20}.sidebar .wordmark{width:100%;padding:0}.sidebar-caption{margin:17px 12px 0;font-size:.8125rem;line-height:1.6;color:#c6c8dc}.sidebar-nav{display:flex;flex-direction:column;gap:7px;margin-top:48px}.nav-section-label{font-size:.6875rem;letter-spacing:.16em;color:#a4a6c6;margin:0 12px 12px;text-transform:uppercase}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:8px;background:transparent;text-align:left;color:#ced1e4;font-size:.875rem;font-weight:600}.nav-item.active{background:#fff;color:var(--navy)}.nav-item:hover:not(.active){background:rgba(255,255,255,.08)}.sidebar-foot{margin-top:auto;padding:24px 12px 0;border-top:1px solid rgba(255,255,255,.15);color:#b9bdd3;font-size:.8125rem;line-height:1.7}.pilot-label{display:inline-block;letter-spacing:.08em;font-size:.6875rem;font-weight:700;text-transform:uppercase;border:1px solid #79769e;border-radius:5px;padding:4px 7px;color:#f0f0ff;margin-bottom:10px}.workspace{grid-column:2;min-width:0}.topbar{height:85px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 36px}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:.875rem;color:var(--muted)}.breadcrumb strong{font-weight:600;color:var(--ink)}.breadcrumb .slash{color:#c1c6d3}.user-area{display:flex;align-items:center;gap:12px}.avatar{width:36px;height:36px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:.8125rem;font-weight:700;display:grid;place-content:center;flex:none}.user-copy{display:flex;flex-direction:column;gap:3px}.user-name{font-size:.875rem;font-weight:600;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role{font-size:.75rem;color:var(--muted)}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:7px;background:transparent;color:var(--muted);flex:none}.icon-button:hover{background:var(--bg);color:var(--ink)}.main-content{max-width:1500px;margin:0 auto;padding:36px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.page-heading h1{font-size:2rem;font-weight:750;letter-spacing:-.04em;line-height:1.25}.page-heading p{max-width:660px;margin-top:10px;line-height:1.65;font-size:.9375rem;color:var(--muted)}.heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;border:1px solid transparent;border-radius:8px;padding:10px 16px;font-weight:600;font-size:.875rem;line-height:1.3;white-space:nowrap;text-decoration:none;background:var(--white);color:var(--ink)}.btn-primary{color:#fff;background:var(--blue);border-color:var(--blue)}.btn-primary:hover:not(:disabled){background:#002b89}.btn-secondary{background:white;border-color:var(--line)}.btn-secondary:hover:not(:disabled){background:var(--bg);border-color:#b2bbcd}.btn-quiet{background:transparent;color:var(--blue);padding:7px 10px;min-height:34px}.btn-quiet:hover:not(:disabled){background:var(--blue-soft)}.btn-danger{color:var(--red)}.btn-small{padding:7px 10px;min-height:34px;font-size:.8125rem}.btn-wide{width:100%}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line)}.card-header h2{font-size:1.0625rem;line-height:1.4;font-weight:700;letter-spacing:-.015em}.card-header p{font-size:.8125rem;line-height:1.6;color:var(--muted);margin-top:5px}.card-body{padding:24px}.toolbar{display:flex;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);align-items:center;flex-wrap:wrap}.search{flex:1;min-width:240px;position:relative}.search svg{position:absolute;left:13px;top:12px;color:var(--muted);width:18px;height:18px}.search input{width:100%;padding-left:41px}.control{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px 12px;background-color:#fff;min-height:42px;font-size:.875rem;line-height:1.4;transition:border-color .15s}.control:hover:not(:disabled){border-color:#adb7c9}.control:focus{border-color:var(--blue);outline:2px solid #d6e1ff;outline-offset:0}.control:disabled{background:#f6f7fa;color:var(--muted)}.filter-select{min-width:210px;width:auto}.registry-meta{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 24px 14px;font-size:.8125rem;color:var(--muted)}.registry-meta strong{color:var(--ink);font-weight:600}.table-scroll{overflow-x:auto}.registry-table{width:100%;border-collapse:collapse;min-width:860px;text-align:left;font-size:.875rem}.registry-table th{font-size:.75rem;font-weight:600;color:var(--muted);padding:13px 18px;background:#f6f8fb;border-top:1px solid #e7ebf1;border-bottom:1px solid #e7ebf1;white-space:nowrap}.registry-table th:first-child,.registry-table td:first-child{padding-left:24px}.registry-table th:last-child,.registry-table td:last-child{padding-right:24px}.registry-table td{padding:18px;vertical-align:middle;border-bottom:1px solid #edf0f5;line-height:1.5}.registry-table tbody tr:hover{background:#fcfdff}.registry-table tbody tr:last-child td{border-bottom:0}.row-link{display:block;text-align:left;background:none;color:var(--blue);padding:0;font-size:.8125rem;font-weight:700}.row-link:hover{text-decoration:underline;text-underline-offset:4px}.cell-sub{display:block;color:var(--muted);font-size:.75rem;margin-top:4px;line-height:1.5;max-width:220px;overflow-wrap:anywhere}.cell-title{font-weight:600;overflow-wrap:anywhere;max-width:210px}.numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.currency-note{font-size:.6875rem;color:var(--muted);font-weight:500;margin-left:5px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:5px;font-size:.75rem;font-weight:600;line-height:1.3;white-space:nowrap;background:#f0f2f7;color:#596276}.badge.new{background:var(--blue-soft);color:var(--blue)}.badge.needs_info,.badge.unknown{background:var(--amber-bg);color:var(--amber)}.badge.reviewed,.badge.published{background:var(--green-bg);color:var(--green)}.badge.failed{background:var(--red-bg);color:var(--red)}.badge.publishing{background:var(--blue-soft);color:var(--blue)}.attachment-count{display:flex;align-items:center;gap:7px;color:var(--muted)}.attachment-count svg{width:16px;height:16px}.pagination{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px 20px;font-size:.8125rem;color:var(--muted)}.pagination-buttons{display:flex;gap:8px}.empty-state{text-align:center;padding:65px 26px 69px;max-width:580px;margin:0 auto}.empty-icon{display:grid;place-content:center;width:64px;height:64px;background:var(--blue-soft);color:var(--blue);border-radius:18px;margin:0 auto 23px}.empty-icon svg{width:30px;height:30px;stroke-width:1.4}.empty-state h2{font-size:1.1875rem;letter-spacing:-.02em}.empty-state p{font-size:.875rem;color:var(--muted);line-height:1.75;margin:11px auto 22px;max-width:390px}.registry-footer-note{display:flex;gap:10px;padding:20px 4px;color:var(--muted);font-size:.8125rem;line-height:1.65}.registry-footer-note svg{width:17px;height:17px;margin-top:2px}.loading-box{padding:64px 24px;text-align:center;color:var(--muted);font-size:.875rem}.loading-box:before{content:'';display:block;width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;margin:0 auto 15px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.notice{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid #d3dff9;border-radius:8px;background:var(--blue-soft);color:#263b6d;font-size:.875rem;line-height:1.6;overflow-wrap:anywhere;margin-bottom:18px}.notice svg{margin-top:2px;width:18px;height:18px}.notice.error{background:var(--red-bg);border-color:#f0cbd0;color:var(--red)}.notice.success{background:var(--green-bg);border-color:#c5e6d1;color:var(--green)}.notice.warning{background:var(--amber-bg);border-color:#ecdcb1;color:var(--amber)}.notice-content{flex:1;min-width:0}.notice-content .btn{margin-top:10px}.back-button{margin:0 0 20px -10px;color:var(--muted)}.detail-heading{margin-bottom:23px}.detail-heading .eyebrow{margin-bottom:9px;display:block}.detail-heading h1{font-size:1.75rem}.detail-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.detail-heading p{font-size:.875rem;margin-top:8px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.detail-main{display:flex;flex-direction:column;gap:22px;min-width:0}.detail-aside{display:flex;flex-direction:column;gap:20px;position:sticky;top:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:.8125rem;font-weight:600;color:#3f485d}.field .hint{color:var(--muted);font-size:.75rem;line-height:1.6}.field.full{grid-column:1/-1}.date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.required-mark{color:var(--blue)}.expense-list{display:flex;flex-direction:column;gap:16px}.expense-row{border:1px solid var(--line);border-radius:9px;padding:16px;background:#fcfdff}.expense-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.expense-index{font-size:.75rem;font-weight:600;color:var(--muted)}.expense-fields{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1.5fr) minmax(90px,.8fr) minmax(90px,.8fr);gap:12px}.expense-fields .control{font-size:.875rem;min-width:0}.expense-receipts{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:.75rem}.expense-receipts svg{width:14px;height:14px}.expense-empty{font-size:.875rem;color:var(--muted);padding:16px 0}.section-actions{margin-top:17px}.totals{display:flex;flex-direction:column;gap:16px}.total-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:.8125rem;line-height:1.5}.total-row span:first-child{color:var(--muted)}.total-row strong{font-weight:600;font-size:1.0625rem;white-space:nowrap;font-variant-numeric:tabular-nums}.total-difference{padding-top:15px;border-top:1px solid var(--line)}.total-difference strong{color:var(--navy)}.total-currency{font-size:.8125rem;font-weight:600;color:var(--muted);margin-bottom:18px}.total-note{font-size:.75rem;line-height:1.65;color:var(--muted);padding-top:3px}.review-fields{display:flex;flex-direction:column;gap:14px}.review-hint{font-size:.75rem;color:var(--muted);line-height:1.7;margin-top:14px}.review-readonly{font-size:.875rem;line-height:1.75;white-space:pre-wrap;margin-top:14px;overflow-wrap:anywhere}.upload-panel{border:1px dashed #b7c5df;background:#f8faff;border-radius:9px;padding:18px}.upload-title{font-size:.875rem;font-weight:600;margin-bottom:6px;display:flex;align-items:center;gap:8px}.upload-title svg{color:var(--blue)}.upload-hint{font-size:.75rem;color:var(--muted);line-height:1.65;margin-bottom:16px}.upload-controls{display:flex;align-items:end;gap:12px}.upload-controls .field{flex:1}.file-select-wrap{position:relative;display:inline-flex;flex:none}.file-select-wrap input{position:absolute;width:100%;height:100%;opacity:0;cursor:pointer;inset:0}.file-select-wrap:focus-within{outline:3px solid #a7bdf5;outline-offset:3px;border-radius:8px}.file-select-wrap .btn{pointer-events:none}.upload-queue{display:flex;flex-direction:column;gap:8px;margin-top:14px}.queue-item{display:flex;align-items:center;gap:10px;font-size:.8125rem;padding:8px 10px;background:white;border:1px solid #e0e6f1;border-radius:6px}.queue-item .queue-name{flex:1;min-width:0;overflow-wrap:anywhere}.queue-item .queue-size{color:var(--muted);white-space:nowrap}.upload-submit{margin-top:13px}.receipt-list{display:flex;flex-direction:column;margin-top:20px;gap:12px}.receipt{padding:15px;border:1px solid var(--line);border-radius:9px}.receipt-main{display:flex;align-items:flex-start;gap:12px}.file-icon{width:38px;height:44px;display:grid;place-items:center;background:#f0f3f9;border:1px solid #e3e8f1;border-radius:6px;color:var(--blue);flex:none}.file-icon svg{width:21px;height:21px}.receipt-info{flex:1;min-width:0}.receipt-name{font-weight:600;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}.receipt-meta{font-size:.75rem;color:var(--muted);margin-top:5px;line-height:1.6;overflow-wrap:anywhere}.receipt-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:13px;padding-top:12px;border-top:1px solid #edf0f6}.receipt-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.receipt-path{font-size:.75rem;color:var(--muted);overflow-wrap:anywhere;line-height:1.6;margin-top:10px}.receipt-original{font-size:.75rem;color:var(--muted);margin-top:12px;line-height:1.65}.receipt-empty{padding:16px 0 2px;font-size:.875rem;color:var(--muted);line-height:1.7}.events-list{padding-left:3px}.event{position:relative;padding:0 0 22px 24px;border-left:1px solid var(--line)}.event:last-child{padding-bottom:0;border-left-color:transparent}.event:before{content:'';position:absolute;top:5px;left:-4px;width:7px;height:7px;background:#aebbd8;border-radius:50%;box-shadow:0 0 0 4px white}.event-title{font-size:.8125rem;font-weight:600;line-height:1.6}.event-meta{font-size:.75rem;color:var(--muted);line-height:1.65;margin-top:4px}.event-detail{font-size:.8125rem;color:#576176;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin-top:5px}.save-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--line);border-radius:9px;background:white;padding:15px 18px}.save-state{font-size:.8125rem;color:var(--muted);display:flex;gap:7px;align-items:center}.save-state svg{width:16px;height:16px}.save-state.dirty{color:var(--amber)}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(400px,1fr) minmax(460px,1fr);background:white}.login-brand{background:var(--navy);color:white;padding:58px clamp(35px,6vw,90px);display:flex;flex-direction:column;position:relative;overflow:hidden}.login-brand .wordmark{width:268px}.login-brand:after{content:'';position:absolute;width:440px;height:440px;border:1px solid rgba(255,255,255,.1);transform:rotate(25deg);right:-180px;bottom:-90px;pointer-events:none}.login-brand-copy{margin:auto 0;max-width:460px;padding:80px 0}.login-brand-copy .eyebrow{color:#c7cae2;margin-bottom:22px}.login-brand h1{font-size:clamp(2.1rem,3.3vw,3.2rem);line-height:1.2;font-weight:750;letter-spacing:-.045em}.login-brand p{font-size:1rem;line-height:1.8;color:#c5c8e1;margin-top:22px;max-width:410px}.login-brand-foot{font-size:.75rem;color:#b2b5d0;line-height:1.8}.login-form-area{display:grid;align-content:center;padding:50px clamp(30px,6vw,100px)}.login-form-wrap{max-width:390px;width:100%;margin:auto}.login-form-wrap h2{font-size:1.8rem;letter-spacing:-.04em}.login-form-wrap>.muted{font-size:.875rem;line-height:1.7;margin:11px 0 32px}.login-form{display:flex;flex-direction:column;gap:20px}.login-form .control{min-height:47px}.login-form .btn{min-height:47px;margin-top:4px}.login-help{border-top:1px solid var(--line);padding-top:21px;margin-top:28px;font-size:.8125rem;line-height:1.7;color:var(--muted)}dialog{max-width:520px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:14px;padding:0;box-shadow:0 30px 100px rgba(15,17,43,.25);color:var(--ink)}dialog::backdrop{background:rgba(16,17,39,.48);backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line)}.dialog-heading h2{font-size:1.1rem}.dialog-body{padding:22px}.dialog-body>p{font-size:.875rem;line-height:1.75;color:var(--muted);margin-bottom:18px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--line);background:var(--bg)}.dialog-file{font-size:.875rem;font-weight:600;overflow-wrap:anywhere;margin-bottom:18px}.toast{position:fixed;bottom:24px;left:calc(50% + 122px);transform:translateX(-50%);background:var(--navy);color:white;border-radius:9px;padding:13px 20px;box-shadow:var(--shadow);font-size:.875rem;line-height:1.5;max-width:calc(100% - 40px);z-index:50}.link-button{background:none;padding:0;color:var(--blue);text-decoration:underline;text-underline-offset:3px;font-size:inherit}.form-note{font-size:.75rem;color:var(--muted);line-height:1.7;margin-top:16px}.mobile-brand{display:none}
@media(min-width:1500px){.main-content{padding:42px 48px}.topbar{padding:0 48px}.detail-grid{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1180px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{width:210px;padding:30px 14px 24px}.sidebar .wordmark{width:100%}.topbar{padding:0 26px}.main-content{padding:28px 26px}.detail-grid{grid-template-columns:minmax(0,1fr)}.detail-aside{position:static;display:grid;grid-template-columns:1fr 1fr;align-items:start}.expense-fields{grid-template-columns:1fr 1fr}.toast{left:calc(50% + 105px)}.page-heading h1{font-size:1.8rem}}
@media(max-width:860px){.sidebar{width:76px;padding:26px 10px}.sidebar .wordmark{display:none}.topbar .breadcrumb{display:none}.topbar .mobile-brand{display:flex;width:180px}.sidebar-caption,.sidebar-foot,.nav-section-label,.nav-text{display:none}.sidebar-nav{margin-top:38px}.nav-item{justify-content:center;padding:14px 10px}.shell{grid-template-columns:76px minmax(0,1fr)}.main-content{padding:26px 22px}.topbar{padding:0 22px;height:73px}.page-heading{flex-wrap:wrap;gap:18px}.page-heading h1{font-size:1.65rem}.heading-actions{padding:0}.toast{left:calc(50% + 38px)}.login-page{grid-template-columns:minmax(300px,.8fr) 1fr}.login-brand{padding:40px 30px}.login-brand h1{font-size:2rem}.login-form-area{padding:40px 32px}.login-brand p{font-size:.9375rem}}
@media(max-width:620px){.shell{display:block}.sidebar{display:none}.workspace{min-width:0}.topbar{height:70px;padding:0 18px}.breadcrumb{display:none}.topbar .mobile-brand{display:flex;width:168px}.user-role{display:none}.avatar{width:31px;height:31px}.user-name{max-width:130px;font-size:.8125rem}.user-area{gap:8px}.main-content{padding:25px 16px}.page-heading{margin-bottom:21px}.page-heading h1{font-size:1.65rem}.page-heading p{font-size:.875rem;line-height:1.7}.heading-actions{width:100%}.heading-actions .btn-primary{flex:1}.toolbar{padding:14px;gap:10px}.search{min-width:100%;width:100%}.filter-select{width:100%;min-width:0}.registry-meta{padding:15px 16px;font-size:.75rem}.registry-table th:first-child,.registry-table td:first-child{padding-left:16px}.registry-footer-note{font-size:.75rem;padding:16px 0}.card-header{padding:18px 17px;gap:10px}.card-body{padding:18px 17px}.form-grid{grid-template-columns:1fr;gap:16px}.field.full{grid-column:auto}.date-grid{gap:10px}.expense-fields{gap:11px}.expense-row{padding:14px 12px}.expense-fields .field:nth-child(-n+2){grid-column:1/-1}.detail-grid{gap:18px}.detail-main{gap:18px}.detail-aside{display:flex;flex-direction:column}.detail-aside .card{width:100%}.detail-heading h1{font-size:1.5rem}.upload-controls{align-items:stretch;flex-direction:column}.file-select-wrap{width:100%}.file-select-wrap .btn{width:100%}.receipt-main{gap:10px}.receipt{padding:12px}.receipt-bottom{align-items:flex-start}.receipt-actions{gap:3px}.receipt-actions .btn-small{font-size:.75rem;padding:7px 8px}.pagination{padding:14px;font-size:.75rem;gap:10px}.pagination-buttons{gap:5px}.pagination-buttons .btn{font-size:.75rem;padding:7px 9px}.toast{left:50%;width:max-content;max-width:calc(100% - 32px);bottom:16px}.login-page{display:flex;flex-direction:column}.login-brand{padding:28px 28px 32px}.login-brand-copy{padding:37px 0 0;max-width:420px}.login-brand-copy .eyebrow{margin-bottom:13px;font-size:.6875rem}.login-brand h1{font-size:1.7rem}.login-brand p{font-size:.8125rem;margin-top:14px}.login-brand-foot{display:none}.login-form-area{padding:35px 28px 45px}.login-form-wrap h2{font-size:1.4rem}.login-form-wrap>.muted{margin:9px 0 25px;font-size:.8125rem}.login-form{gap:17px}.save-strip{padding:13px;flex-wrap:wrap}.save-state{font-size:.75rem}.empty-state{padding:46px 22px 49px}.card-header h2{font-size:1rem}.dialog-body{padding:20px}.dialog-heading,.dialog-actions{padding:17px 20px}}
@media(max-width:420px){.topbar .user-copy{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Portal and accounting share one authenticated pilot session. */
.breadcrumb-home{border:0;background:none;padding:0;color:inherit;font:inherit;text-align:left}
.breadcrumb-home:hover{color:var(--blue)}
.portal-intro{margin:0 0 28px}
.portal-intro .eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
.portal-intro h1{font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.2;letter-spacing:-.035em;color:var(--navy)}
.portal-intro>p{margin-top:12px;color:var(--muted);line-height:1.65;max-width:680px}
.portal-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:30px}
.portal-service{display:grid;grid-template-columns:46px minmax(0,1fr);gap:16px;padding:26px;border:1px solid var(--line);border-radius:16px;background:#fff}
.portal-service-primary{grid-column:1/-1;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;padding:32px;background:var(--navy);color:#fff;border-color:var(--navy)}
.portal-service-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:var(--blue-soft);color:var(--blue)}
.portal-service-primary .portal-service-icon{height:58px;width:58px;background:rgba(255,255,255,.1);color:#fff}
.portal-service-icon svg{height:23px;width:23px}
.portal-service-primary .portal-service-icon svg{height:28px;width:28px}
.portal-service-caption{font-size:.6875rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase;color:var(--muted);margin-bottom:9px}
.portal-service h2{font-size:1.125rem;line-height:1.35;color:var(--navy);letter-spacing:-.02em}
.portal-service p{font-size:.8125rem;line-height:1.6;color:var(--muted);margin-top:8px;max-width:470px}
.portal-service-primary h2{font-size:1.5rem;color:#fff}
.portal-service-primary .portal-service-caption{color:#bccbf6}
.portal-service-primary p{color:#d0d2e5;font-size:.875rem}
.portal-service-actions{grid-column:2;display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.portal-service-primary .portal-service-actions{grid-column:3;flex-direction:column;align-items:stretch;padding-left:8px}
.portal-service-primary .btn-primary{background:#fff;color:var(--navy);border-color:#fff}
.portal-service-primary .btn-primary:hover{background:#edf2ff}
.portal-service-primary .btn-quiet{color:#fff}
.portal-service-primary .btn-quiet:hover{background:rgba(255,255,255,.1)}
.portal-service .portal-service-reason{font-size:.75rem;color:#7a8396}
.portal-service-state{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;color:var(--muted);font-weight:600}
.portal-service-state svg{height:14px;width:14px}
.portal-recent-card .card-header{align-items:center;flex-wrap:wrap}
.portal-recent-card .card-header p{margin-top:7px;line-height:1.5}
.portal-all-link svg{transform:rotate(180deg);order:2}
.portal-recent-row{width:100%;display:flex;align-items:center;gap:15px;text-align:left;border:0;border-top:1px solid var(--line);padding:20px 26px;background:#fff;color:var(--ink)}
.portal-recent-row:first-child{border-top:0}
.portal-recent-row:last-child{border-radius:0 0 var(--radius) var(--radius)}
.portal-recent-row:hover{background:#f6f8fd}
.portal-recent-icon{color:var(--blue);padding:11px;background:var(--blue-soft);border-radius:10px;display:flex}
.portal-recent-description{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;font-size:.8125rem;line-height:1.4}
.portal-recent-description strong{color:var(--navy);font-size:.875rem}
.portal-recent-description>span{overflow-wrap:anywhere}
.portal-recent-amount{font-size:.875rem;font-weight:600;white-space:nowrap;min-width:100px;text-align:right}
.portal-empty{padding:30px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:.875rem;color:var(--muted)}
.portal-pilot-note{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:.75rem;line-height:1.65;margin-top:22px;max-width:780px}
.portal-pilot-note svg{width:17px;height:17px;margin-top:2px}
@media(max-width:1150px){.portal-service-primary{grid-template-columns:58px minmax(0,1fr)}.portal-service-primary .portal-service-actions{grid-column:2;flex-direction:row;align-items:center;padding:0}.portal-service{padding:23px}}
@media(max-width:700px){.portal-services{grid-template-columns:1fr;gap:13px}.portal-service-primary{grid-column:auto}.portal-service{padding:21px;gap:13px}.portal-service-primary{grid-template-columns:46px minmax(0,1fr)}.portal-service-primary .portal-service-icon{width:46px;height:46px}.portal-service-primary .portal-service-actions{grid-column:1/-1}.portal-service-primary h2{font-size:1.3rem}.portal-intro{margin-bottom:22px}.portal-recent-row{padding:17px;gap:10px;flex-wrap:wrap}.portal-recent-row .badge{order:3;margin-left:50px}.portal-recent-amount{margin-left:auto}.portal-recent-icon{padding:9px}.portal-empty{padding:22px 17px}.portal-pilot-note{margin-top:18px}}

/* Corrections are explicit states; colour is always paired with a text label. */
.target-needs_changes{border-color:#d97985;background:#fffafb}
.target-submitted{border-color:#d5b76c;background:#fffdf7}
.target-accepted{border-color:#c5dfce}
.target-warning{display:flex;align-items:flex-start;gap:7px;font-size:.875rem;line-height:1.55;color:var(--red);margin-top:10px}
.target-warning svg{width:17px;height:17px;margin-top:2px}
.correction-status{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;line-height:1.45;color:var(--muted)}
.correction-status svg{width:16px;height:16px}
.correction-status.needs_changes{color:var(--red)}
.correction-status.submitted{color:var(--amber)}
.correction-status.accepted{color:var(--green)}
.correction-comment{margin-top:14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.correction-comment.needs_changes{border-color:#e5b0b8}
.correction-comment.submitted{border-color:#e2d2a6}
.correction-comment>summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 13px;cursor:pointer;font-size:.875rem;font-weight:600;list-style:none}
.correction-comment>summary::-webkit-details-marker{display:none}
.correction-comment>summary:focus-visible{outline:3px solid #a7bdf5;outline-offset:2px;border-radius:7px}
.correction-comment>summary .correction-status{margin-left:auto;font-size:.75rem}
.correction-comment>summary>svg{color:var(--blue);width:18px;height:18px}
.correction-comment[open]>summary{border-bottom:1px solid #e7ebf2}
.comment-count{display:inline-grid;place-content:center;min-width:19px;height:19px;padding:0 4px;border-radius:5px;color:var(--blue);background:var(--blue-soft);font-size:.75rem}
.correction-body{padding:13px 14px}
.comment-author{font-size:.8125rem;font-weight:600;line-height:1.6;color:var(--ink)}
.comment-author span{font-weight:400;color:var(--muted)}
.comment-text{font-size:.875rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 12px}
.correction-body>.hint{font-size:.8125rem;line-height:1.6;color:var(--muted)}
.delivery-status{display:flex;align-items:flex-start;gap:7px;font-size:.8125rem;line-height:1.6;color:var(--muted);margin-top:11px}
.delivery-status svg{width:16px;height:16px;margin-top:2px}
.delivery-status.accepted{color:var(--green)}
.delivery-status.blocked,.delivery-status.unknown,.delivery-status.retry{color:var(--amber)}
.delivery-status.failed{color:var(--red)}
.target-actions{display:flex;gap:5px;flex-wrap:wrap;padding-top:11px;margin-top:11px;border-top:1px solid #e4e8f1}
.target-check-state{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:.8125rem}
.target-check-state>svg{width:17px;height:17px;color:var(--green)}
.target-check-state.submitted>svg{color:var(--amber)}
.target-check-state.needs_changes>svg{color:var(--red)}
.expense-top{flex-wrap:wrap}
.expense-top>.icon-button{margin-left:auto}
.expense-file-links{display:flex;gap:5px;flex-wrap:wrap;margin-top:13px}
.receipt-chip{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
.receipt-chip.needs_changes{color:var(--red);border-color:#e9c1c8;background:#fff}
.receipt-chip.submitted{color:var(--amber);border-color:#e2d2a6}
.receipt-history{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
.receipt-history>summary{font-size:.875rem;color:var(--muted);cursor:pointer;padding:6px 0}
.receipt-previous{background:#f7f8fb}
.receipt-history-label{font-size:.8125rem;line-height:1.6;color:var(--muted);margin-top:7px}
.receipt-history>.receipt-list{margin-top:12px}
.receipt:focus,.correction-comment:focus,.target-check-state:focus{outline:3px solid #9fb7ef;outline-offset:4px}
.responsible-name{font-size:.9375rem;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.review-summary{font-size:.875rem;line-height:1.6;margin-top:14px}
.review-actions{display:flex;flex-direction:column;gap:10px;margin-top:17px}
.review-actions .btn{white-space:normal;text-align:left;justify-content:flex-start}
.correction-links{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:7px}
.correction-links .btn{max-width:100%;white-space:normal;text-align:left}
.detail-aside .correction-comment>summary .correction-status{margin-left:0;width:100%;padding-left:26px}
.dialog-fields{display:flex;flex-direction:column;gap:17px}
.dialog-fields textarea{min-height:140px;resize:vertical}
.dialog-error:empty{display:none}
.dialog-error{color:var(--red);font-size:.875rem;line-height:1.6;margin-top:16px}
.dialog-error p+p{margin-top:8px}
.dialog-error .btn{margin-top:8px}
.form-warning{color:var(--amber);background:var(--amber-bg);border:1px solid #e5d8ae;border-radius:7px;padding:11px 12px;font-size:.8125rem;line-height:1.65}
.file-control{padding:9px;font-size:.875rem}
.file-control::file-selector-button{border:1px solid var(--line);border-radius:5px;background:var(--bg);padding:7px 9px;margin-right:10px;color:var(--ink);font:inherit;cursor:pointer}
.action-dialog .dialog-actions .btn{white-space:normal}
@media(max-width:620px){
  .target-actions .btn,.expense-file-links .btn,.receipt-actions .btn{font-size:.8125rem;min-height:38px}
  .receipt-bottom .receipt-actions{width:100%}
  .receipt-actions .btn{white-space:normal;text-align:left;justify-content:flex-start}
  .correction-comment>summary{padding:11px;gap:7px}
  .correction-comment>summary .correction-status{width:100%;margin-left:0;padding-left:25px}
  .correction-body{padding:12px}
  .expense-top .correction-status{order:4;width:100%}
  .action-dialog .dialog-actions{align-items:stretch;flex-direction:column-reverse}
  .action-dialog .dialog-actions .btn{width:100%;min-height:44px}
}
