.mr-page{max-width:1500px;margin:auto}.mr-notice{display:grid;gap:5px;border:1px solid #f0dfab;background:#fff9e8;border-radius:18px;padding:18px 22px;margin-bottom:22px;font-size:12px;line-height:1.7}.mr-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.mr-card{border:1px solid var(--line,#e4e0d8);border-radius:20px;background:#fff;padding:22px;min-width:0;overflow-wrap:anywhere}.mr-card h3{font-size:17px;margin:15px 0 8px}.mr-card p,.mr-help{font-size:12px;line-height:1.7;color:var(--muted,#77716a)}.mr-status{display:inline-flex;align-items:center;font-size:11px;font-weight:700;line-height:1.5;border-radius:20px;padding:5px 12px;background:#f2eee7;color:#655e54}.mr-status.approved{background:#dceee4;color:#246149}.mr-status.submitted{background:#fff0bc;color:#765a00}.mr-status.returned{background:#f8e5dd;color:#8b4531}.mr-empty{padding:40px;text-align:center;color:var(--muted)}
.mr-dialog{box-sizing:border-box;width:min(1180px,calc(100vw - 40px));max-width:none;height:min(850px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #fff;border-radius:30px;background:#faf9f5;color:var(--ink,#231f20);box-shadow:0 30px 90px #0004;overflow:hidden}.mr-dialog[open]{display:flex;flex-direction:column}.mr-dialog::backdrop{background:#202720a6;backdrop-filter:blur(6px)}.mr-dialog>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:26px 32px 22px;border-bottom:1px solid var(--line,#e4e0d8);flex-shrink:0}.mr-dialog h2{font-size:27px;letter-spacing:-.035em;margin:12px 0 8px;line-height:1.25}.mr-dialog header p{font-size:12px;line-height:1.7;margin:0;color:var(--muted,#77716a)}.mr-dialog .eyebrow{color:#b28700;font-size:10px;letter-spacing:.13em;font-weight:800}.mr-close{flex-shrink:0;min-width:44px}.mr-body{overflow:auto;min-height:0;flex:1}.mr-steps{display:flex;list-style:none;margin:0;padding:14px 26px;gap:12px;border-bottom:1px solid var(--line,#e4e0d8)}.mr-steps li{flex:1;display:flex;align-items:center;gap:10px;padding:10px;font-size:11px;font-weight:700;color:#8c8981;border-radius:16px}.mr-steps li span{width:30px;height:30px;border:1px solid #e2dfd7;border-radius:50%;display:grid;place-items:center;background:white;flex-shrink:0}.mr-steps [aria-current]{background:#fff7df;color:#30281c}.mr-steps [aria-current] span{background:#ffc000;border-color:#ffc000;color:#231f20}.mr-wizard{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:320px}.mr-wizard aside{padding:30px 26px;background:linear-gradient(150deg,#fff7dc,#f9f8f4 70%);border-right:1px solid #e9e5da}.mr-symbol{display:grid;place-items:center;background:#ffc000;border-radius:25px;transform:rotate(-5deg);width:84px;height:84px;font-size:35px;margin:35px 0 24px;box-shadow:0 15px 30px #e9b50029}.mr-wizard aside h3{font-size:18px;line-height:1.4}.mr-wizard aside p{font-size:12px;line-height:1.8;color:#77716a}.mr-step-content{padding:28px 30px;min-width:0}.mr-step-content>h3,.mr-detail h3{font-size:21px;letter-spacing:-.02em;margin:0 0 18px}.mr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.mr-grid .field{min-width:0;display:grid;gap:8px}.mr-dialog .field>span{font-size:11px;font-weight:700;color:#77716a}.mr-dialog input,.mr-dialog select,.mr-dialog textarea{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:12px 14px;font:inherit;font-size:13px;border:1px solid #dcd9d2;border-radius:13px;background:#fff;color:#231f20}.mr-dialog textarea{min-height:85px;resize:vertical}.mr-dialog input:focus-visible,.mr-dialog select:focus-visible,.mr-dialog textarea:focus-visible{outline:2px solid #e4b000;outline-offset:2px}.mr-dialog input[type=checkbox]{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:#d09b00}.mr-wide{grid-column:1/-1}.mr-source{border:1px solid #e5e0d5;background:#fffdf8;border-radius:18px;padding:18px;margin:16px 0}.mr-source summary{min-height:44px;cursor:pointer;font-size:13px;font-weight:700;display:flex;align-items:center;gap:10px}.mr-source summary::before{content:'＋';color:#a77b00}.mr-source[open] summary::before{content:'−'}.mr-source p{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.mr-invoice-options article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 0;border-top:1px solid #e9e5dc;font-size:12px}.mr-invoice-options small,.mr-invoice-options span{display:block;margin-top:5px;color:#77716a}.mr-invoice-options article>div{min-width:0;overflow-wrap:anywhere}.mr-dialog button,.mr-page button{min-height:44px;font-weight:700;font-size:12px;white-space:normal;overflow-wrap:anywhere}.mr-dialog button:disabled{opacity:.45;cursor:not-allowed}.mr-footer{padding:18px 30px;border-top:1px solid #e4e0d8;display:flex;gap:15px;align-items:center;justify-content:space-between;flex-shrink:0;background:#faf9f5}.mr-footer>div,.mr-actions{display:flex;gap:10px;flex-wrap:wrap}.mr-footer>small{font-size:10px;color:#77716a;line-height:1.6;max-width:350px}.mr-error{padding:14px 26px;color:#923d27;background:#fff0e9;font-size:12px;flex-shrink:0}.mr-error[hidden]{display:none}.mr-table{max-width:100%;overflow:auto;margin:18px 0;border:1px solid #e5e1d8;border-radius:16px}.mr-table table{width:100%;min-width:650px;border-collapse:collapse;font-size:12px;text-align:left}.mr-table th{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#858d86;background:#f6f5f0;padding:14px}.mr-table td{padding:16px 14px;border-top:1px solid #e7e3dc;max-width:290px;overflow-wrap:anywhere;vertical-align:top;line-height:1.5}.mr-table small{display:block;color:#77716a;font-size:10px;margin-top:5px}.mr-table td button{margin:3px}.mr-detail{padding:26px 32px}.mr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.mr-metrics article{padding:18px 14px;border:1px solid #e9e2ce;background:#fffaf0;border-radius:16px;min-width:0;overflow-wrap:anywhere}.mr-metrics span,.mr-metrics small{display:block;color:#77716a;font-size:10px}.mr-metrics strong{display:block;font-size:17px;margin:10px 0}.mr-check{display:flex;gap:12px;align-items:flex-start;font-size:12px;line-height:1.7;padding:15px;border:1px solid #f0dfab;border-radius:14px;background:#fff8e3}
@media(max-width:700px){.mr-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:22px}.mr-dialog>header{padding:20px}.mr-dialog h2{font-size:23px}.mr-steps{padding:10px;gap:2px}.mr-steps li{font-size:10px;padding:6px;gap:5px;flex-direction:column;text-align:center}.mr-wizard{grid-template-columns:minmax(0,1fr)}.mr-wizard aside{display:none}.mr-step-content,.mr-detail{padding:20px}.mr-grid{grid-template-columns:minmax(0,1fr)}.mr-dialog input,.mr-dialog select,.mr-dialog textarea{font-size:16px}.mr-footer{padding:12px 16px;display:block}.mr-footer>small{display:none}.mr-footer>div{display:flex}.mr-footer button{flex:1 1 90px}.mr-metrics{grid-template-columns:minmax(0,1fr)}.mr-invoice-options article{flex-wrap:wrap}.mr-invoice-options button{width:100%}.mr-page .page-heading{gap:16px;flex-wrap:wrap}.mr-page .page-heading button{width:100%}}
.mr-dialog.mr-sheet-mode{width:calc(100vw - 32px);max-width:1700px}.mr-sheet-mode .mr-wizard{grid-template-columns:minmax(0,1fr)}.mr-sheet-mode .mr-wizard aside{display:none}.mr-sheet-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:22px;font-size:10px;font-weight:700;letter-spacing:.06em;color:#927118}.mr-sheet-heading small{color:#77716a;font-weight:400;letter-spacing:0}.mr-table.mr-spreadsheet{max-height:430px;border-radius:12px;background:#fff;overscroll-behavior:contain}.mr-table.mr-spreadsheet table{min-width:2540px;table-layout:fixed;font-size:11px}.mr-spreadsheet th:nth-child(1){width:180px}.mr-spreadsheet th:nth-child(2){width:130px}.mr-spreadsheet th:nth-child(3){width:100px}.mr-spreadsheet th:nth-child(4){width:100px}.mr-spreadsheet th:nth-child(5){width:150px}.mr-spreadsheet th:nth-child(6){width:220px}.mr-spreadsheet th:nth-child(7){width:120px}.mr-spreadsheet th:nth-child(8){width:85px}.mr-spreadsheet th:nth-child(n+9):nth-child(-n+17){width:105px}.mr-spreadsheet th:nth-child(18){width:140px}.mr-spreadsheet th:nth-child(19){width:190px}.mr-spreadsheet th:nth-child(20){width:180px}.mr-spreadsheet th:nth-child(21){width:130px}.mr-spreadsheet th,.mr-spreadsheet td{border-right:1px solid #e8e5dd;padding:12px 10px}.mr-spreadsheet thead th{position:sticky;top:0;z-index:2;background:#efeee7;letter-spacing:.025em;white-space:normal}.mr-spreadsheet tr:nth-child(even) td{background:#faf9f5}.mr-spreadsheet .mr-frozen{position:sticky;left:0;z-index:1;background:#fffdf5;box-shadow:3px 0 0 #e7dfca}.mr-spreadsheet thead .mr-frozen{z-index:3;background:#eee7d3}.mr-spreadsheet tr:nth-child(even) .mr-frozen{background:#f7f3e7}.mr-spreadsheet .mr-number{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.mr-spreadsheet .mr-total{background:#fff5d0!important}.mr-spreadsheet tfoot td,.mr-spreadsheet tfoot th{background:#f3f0e4;font-weight:700;border-top:2px solid #dfc779}.mr-sheet-mode .mr-step-content{padding:24px}.mr-sheet-mode .mr-source{margin:10px 0}.mr-sheet-mode .mr-source form{max-width:1000px}.mr-spreadsheet:focus-visible{outline:2px solid #bd9000;outline-offset:2px}@media(max-width:700px){.mr-dialog.mr-sheet-mode{width:calc(100vw - 16px)}.mr-spreadsheet th:nth-child(1){width:135px}.mr-sheet-heading{font-size:9px}.mr-sheet-mode .mr-step-content{padding:18px}.mr-table.mr-spreadsheet{max-height:430px}.mr-spreadsheet .mr-frozen{max-width:135px}}
.mr-dialog{height:calc(100vh - 40px);padding-bottom:env(safe-area-inset-bottom,0px)}
