.workspace.has-sp{grid-template-columns:76px minmax(0,1fr)}
.sp-panel{grid-column:2/-1;min-width:0;height:100%;overflow:auto;background:#f4f7fa;padding:32px clamp(18px,4vw,52px);color:#1b3046}
.sp-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.sp-heading h1{font-size:26px;margin:5px 0 8px}.sp-heading p{max-width:700px;line-height:1.7}.sp-heading>.btn{flex-shrink:0}
.sp-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.sp-toolbar label{display:flex;gap:10px;align-items:center}.sp-toolbar input,.sp-toolbar select{padding:9px 12px;border:1px solid #b6c6d4;border-radius:8px;background:white;font:inherit;color:inherit}
.sp-policy{font-size:14px;color:#42576a;line-height:1.7}.sp-status{font-size:13px;min-height:24px;margin:8px 0 20px;color:#50667a}
.sp-summaries{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;max-width:1200px}.sp-summary{border:1px solid #c8d6e0;background:white;border-radius:14px;padding:22px}.sp-summary.is-mine{border-color:#639ca3;box-shadow:inset 0 3px #28747d}.sp-summary h2{font-size:16px;margin:0 0 20px}.sp-remaining{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.sp-remaining strong{font-size:32px;letter-spacing:-1px;color:#135b65}.sp-summary progress{width:100%;height:8px;accent-color:#28747d;margin:14px 0 8px}.sp-summary p{font-size:14px;margin:0 0 16px}.sp-breakdown{display:flex;gap:16px;flex-wrap:wrap;padding-top:14px;border-top:1px solid #e1e8ee;font-size:14px}
.sp-entries{max-width:1200px;margin-top:30px}.sp-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.sp-list-heading h2{font-size:19px}.sp-list-heading span{font-size:13px;color:#50667a}.sp-entry{display:flex;gap:20px;align-items:center;border:1px solid #d5dfe7;border-radius:10px;background:white;padding:18px 20px;margin-bottom:10px}.sp-entry-main{min-width:0;flex:1}.sp-entry-top{display:flex;gap:20px;justify-content:space-between;align-items:center}.sp-amount{font-size:20px;white-space:nowrap}.sp-purpose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:8px 0}.sp-meta{font-size:13px;color:#526577;margin:0;line-height:1.7}.sp-entry-actions{display:flex;gap:8px}.sp-entry.is-voided{background:#edf1f5}.sp-entry.is-voided .sp-amount{text-decoration:line-through;color:#677786}.sp-empty{padding:35px 20px;border:1px dashed #b6c6d4;border-radius:10px;background:white;line-height:1.7}
.sp-form{display:grid;gap:18px}.sp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sp-field{display:grid;gap:7px;font-size:14px;min-width:0}.sp-field input,.sp-field select,.sp-field textarea{box-sizing:border-box;width:100%;padding:11px;border:1px solid #afc0ce;border-radius:8px;font:inherit;font-size:16px;color:#1b3046;background:white}.sp-field textarea{resize:vertical}.sp-form-note{padding:12px;background:#edf5f6;border-radius:8px}.rail-sp-admin{flex-shrink:0}
@media(max-width:760px){.workspace.has-sp{grid-template-columns:64px minmax(0,1fr)}.sp-panel{padding:20px 14px}.sp-heading{align-items:flex-start;flex-direction:column}.sp-heading h1{font-size:23px}.sp-toolbar{gap:8px}.sp-toolbar label{flex-wrap:wrap}.sp-toolbar input,.sp-toolbar select{min-width:0;max-width:100%}.sp-entry{padding:15px;flex-direction:column;align-items:stretch;gap:12px}.sp-entry-actions{justify-content:flex-end}.sp-form-grid{grid-template-columns:1fr}.sp-summaries{grid-template-columns:minmax(0,1fr)}.sp-summary{padding:18px}}
@media(max-width:560px){.workspace.has-sp{display:grid;grid-template-columns:64px minmax(0,1fr)}.workspace.has-sp>.rail{grid-column:1;grid-row:1;height:100%;overflow-y:auto}.sp-panel{grid-row:1;grid-column:2}}
.sp-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1200px;margin:20px 0 28px}.sp-total{padding:18px 22px;border-radius:12px;background:#e8f0f6;display:grid;gap:8px}.sp-total span{font-size:13px;color:#50667a}.sp-total strong{font-size:25px;color:#173b55}.sp-section-title{font-size:19px;margin:0 0 6px}.sp-filters{margin:30px 0 0}.sp-filters input[type=search]{flex:1;min-width:150px}.sp-filters label,.sp-check{font-size:14px;display:flex;gap:8px;align-items:center}.sp-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.sp-tags>span{background:#edf2f7;border-radius:5px;padding:4px 8px;font-size:12px}.sp-tags .sp-hospitality{background:#e4f3ed;color:#1c5a46}.sp-tags .sp-missing{background:#fff1db;color:#865600}.sp-receipts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.sp-storage-note{font-size:13px;line-height:1.7;max-width:1200px;color:#526577}.sp-storage-note summary{cursor:pointer}.sp-expiry:not(:empty){border:1px solid #deb56d;background:#fff6e8;padding:18px;border-radius:10px;margin-bottom:20px}.sp-expiry button{margin:4px}.sp-upload-preview{display:grid;gap:12px}.sp-preview-item{border:1px solid #cbd9e3;padding:12px;border-radius:8px;overflow:auto}.sp-preview-item img{max-width:100%;height:auto;max-height:360px;object-fit:contain}.sp-receipt-view img{display:block;width:100%;height:auto}.sp-receipt-view{max-height:75vh;overflow:auto}.sp-form details{line-height:1.7}.sp-form details[open]{display:grid;gap:12px}.sp-form details summary{cursor:pointer}.sp-entry-actions{flex-wrap:wrap}.sp-form input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.sp-form input[type=file]{font-size:14px}.sp-summary .btn{margin-left:auto}.sp-form .form-error{white-space:pre-wrap}.sp-form .modal-actions{position:sticky;bottom:0;background:white;padding:12px 0;z-index:1}.sp-preview-link{display:block}.sp-form{max-width:750px}.sp-form:has(.sp-upload-preview){width:100%}
@media(max-width:760px){.sp-totals{grid-template-columns:1fr;gap:8px}.sp-total{display:flex;justify-content:space-between;align-items:center;padding:14px 18px}.sp-total strong{font-size:22px}.sp-filters input[type=search]{flex-basis:100%}.sp-receipts .btn{font-size:12px}.sp-entry-top{align-items:flex-start}.sp-entry-top>strong:first-child{overflow-wrap:anywhere}.sp-toolbar .btn{white-space:normal}.sp-heading>.btn{width:100%}}

.sp-preview-item.is-expanded img{max-height:none;width:100%}

.sp-receipt-picker{display:grid;gap:10px}.sp-picker-title{font-size:15px;font-weight:700;margin:0}.sp-capture-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sp-capture-actions .btn{min-height:46px;justify-content:center}.sp-receipt-count{margin:0;font-size:13px;color:#50667a}.sp-receipt-picker .muted{margin:0}.sp-preview-heading{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.sp-preview-heading p{overflow-wrap:anywhere;min-width:0;margin:0 0 12px}.sp-preview-heading .btn{flex-shrink:0}.sp-receipt-picker input[hidden]{display:none!important}
@media(max-width:560px){.sp-capture-actions{grid-template-columns:1fr}.sp-preview-heading{flex-wrap:wrap}.sp-preview-heading p{flex-basis:100%}}

.sp-form .sp-auto-filled{border-color:#238276;background:#f0faf6}.sp-ocr-notice{margin:0;padding:12px;border-radius:8px;background:#e7f5ef;color:#19594b;line-height:1.7}.sp-ocr-result{padding:13px;margin-bottom:12px;border:1px solid #b9d5ce;border-radius:8px;background:#f4faf8;font-size:14px;line-height:1.6}.sp-ocr-result p{margin:8px 0}.sp-ocr-candidate{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.sp-ocr-candidate strong{overflow-wrap:anywhere;max-width:100%}.sp-ocr-warning{color:#865600}.sp-ocr-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sp-ocr-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:260px;overflow:auto}.sp-ocr-notice[hidden]{display:none}

.sp-transfer-note{font-size:13px;line-height:1.6;margin:0 0 12px}
