.master-workspace{min-height:100vh;background:#f5f6f8;color:#222a35}.master-header{display:flex;align-items:center;gap:20px;max-width:1160px;margin:auto;padding:18px 28px}.master-header img{width:148px;height:48px;object-fit:contain}.master-header>div{margin-left:auto;display:grid;gap:3px;text-align:right}.master-header span{color:#737b88;font-size:13px}.master-nav{display:flex;gap:8px;padding:0 28px 18px;max-width:1160px;margin:auto;border-bottom:1px solid #e2e5e9}.master-nav button{display:flex;align-items:center;gap:10px;border:1px solid #e0e4ea;background:#fff;border-radius:12px;padding:14px 22px;color:#535d6c;font-weight:650;font-size:16px;cursor:pointer}.master-nav button.active{background:#fff0e5;color:#c84d09;border-color:#ff9e5e}.master-nav svg{width:21px;height:21px}.master-content{max-width:1160px;margin:auto;padding:32px 28px 60px}.master-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}.master-heading h1{font-size:28px;line-height:1.2;margin:0 0 9px}.master-heading p{color:#717b8a;margin:5px 0}.master-date-controls{display:flex;align-items:center;gap:10px;margin-bottom:22px}.master-date-controls label{margin:0}.master-date-controls input{border:1px solid #dbe0e7;border-radius:10px;background:white;padding:10px 14px;font:inherit;min-height:44px}.master-date-controls .secondary{min-width:44px;min-height:44px}.master-event,.master-order-card{display:flex;align-items:center;gap:24px;background:white;border:1px solid #e6e8ee;border-radius:16px;padding:22px;margin-bottom:12px}.master-event-time{display:grid;gap:6px;min-width:80px;align-self:flex-start}.master-event-time strong{font-size:22px}.master-event-time span,.master-event-body small,.master-order-card small{color:#727c8b;font-size:13px}.master-event-body{flex:1;min-width:0}.master-event-body h2,.master-order-card h2{font-size:18px;margin:5px 0 8px;line-height:1.35}.master-event-body p,.master-order-card p{margin:7px 0;line-height:1.5}.master-event-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;color:#656e7c}.master-payment{display:inline-flex;align-items:center;padding:6px 10px;border-radius:8px;background:#fff3db;color:#956615;font-size:13px;font-weight:650}.master-payment-paid{background:#e6f5ec;color:#23784d}.master-payment-cancelled,.master-payment-no_charge{background:#edf0f4;color:#657080}.master-empty{padding:50px 24px;text-align:center;border:1px dashed #d6dce4;border-radius:16px;background:#fff}.master-empty h2{font-size:20px}.master-empty p{color:#737d8c}.master-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:20px}.master-filters label{display:grid;gap:7px;font-size:13px;color:#596474;flex:1;min-width:145px}.master-filters .master-search{flex:2;min-width:250px}.master-filters input,.master-filters select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dce1e9;border-radius:9px;background:#fff;color:#25303e;font:inherit;font-size:14px}.master-filters .primary{min-height:44px}.master-order-card>div:first-child{flex:1}.master-order-action{display:grid;justify-items:end;gap:8px}.master-order-action>strong{font-size:21px}.master-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0;color:#6c7786;font-size:14px}.master-note{font-size:13px;color:#747e8b;line-height:1.6;margin-top:24px}.master-content>#master-order-back{margin-bottom:24px}.master-detail-section{background:#fff;border:1px solid #e4e8ee;border-radius:16px;margin:22px 0;padding:24px}.master-detail-section h2{font-size:18px;margin:0 0 16px}.master-request{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.master-table-scroll{overflow-x:auto}.master-work-table{width:100%;border-collapse:collapse}.master-work-table th{font-size:12px;text-align:left;color:#748090;background:#f7f8fa;font-weight:600}.master-work-table td,.master-work-table th{padding:14px 12px;border-bottom:1px solid #eef0f4}.master-work-table th:last-child,.master-work-table td:last-child{text-align:right;white-space:nowrap}.master-work-total{display:flex;justify-content:space-between;gap:20px;margin-top:22px;font-size:17px}.master-work-total strong{font-size:24px}.master-workspace button:focus-visible,.master-workspace input:focus-visible,.master-workspace select:focus-visible{outline:3px solid #ffad71;outline-offset:3px}.master-workspace button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:680px){.master-header{padding:14px 16px;gap:12px}.master-header img{width:110px;height:36px}.master-header strong{font-size:14px}.master-header .secondary{font-size:12px;padding:9px}.master-nav{padding:0 16px 14px;gap:6px}.master-nav button{padding:12px 10px;flex:1;font-size:13px;justify-content:center;gap:6px}.master-content{padding:24px 16px 40px}.master-heading{align-items:flex-start;gap:14px}.master-heading h1{font-size:24px}.master-heading p{font-size:13px}.master-heading>.secondary{font-size:12px;max-width:110px}.master-event{flex-wrap:wrap;gap:14px;padding:18px}.master-event-time{min-width:65px}.master-event-body{flex-basis:calc(100% - 80px)}.master-event>.primary{margin-left:79px}.master-order-card{align-items:flex-start;gap:12px;padding:18px}.master-order-action>strong{font-size:17px}.master-order-action .secondary{font-size:12px;padding:9px}.master-filters .master-search{min-width:100%}.master-detail-section{padding:18px}.master-work-table td,.master-work-table th{padding:12px 8px}.master-work-total{font-size:14px}.master-work-total strong{font-size:21px}}

/* Unified period chooser for the master's list and downloaded report. */
.master-filters .master-period-control{display:grid;gap:7px;flex:1.5;min-width:250px;font-size:13px;color:#596474}
.master-period-control [data-master-period]{width:100%;min-height:44px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;white-space:nowrap}
.master-period-control [data-master-period]::after{content:'▾';color:#737b88}
.master-period-dialog{background:var(--surface,#fff);max-height:calc(100dvh - 24px);overflow:auto}
.master-period-dialog .master-period-hint{margin:12px 20px 0;color:#737b88;font-size:12px}
.master-period-dialog button{cursor:pointer}
.master-period-dialog .period-body nav button.selected{background:#fff0e5;color:#c64c00;font-weight:700}
.master-period-dialog .period-calendars{min-width:0}
.master-period-dialog button:focus-visible{outline:2px solid #f46b18;outline-offset:2px}
.master-period-dialog footer input{min-width:0;max-width:150px;color:inherit;background:transparent}
@media(max-width:540px){
 .master-period-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);border-radius:14px}
 .master-period-dialog .period-calendars{grid-template-columns:1fr;gap:18px}
 .master-period-dialog .period-grid button{height:34px}
 .master-period-dialog .period-month button{visibility:visible!important}
 .master-period-dialog footer label{flex:1;min-width:100px}
 .master-period-dialog footer input{width:100%;max-width:none}
 .master-period-dialog footer button{flex:1}
 .master-period-dialog footer [data-cancel]{margin-left:0}
 .master-period-dialog .period-body nav button{padding:8px;font-size:12px}
}
.master-period-dialog>header{position:sticky;top:0;z-index:2;background:var(--surface,#fff)}
.master-period-dialog>footer{position:sticky;bottom:0;z-index:2;background:var(--surface,#fff)}

/* Explain fixed cost-only remuneration in every master's workspace. */
.master-cost-note{display:grid;gap:4px;margin:10px 0;padding:10px 12px;border:1px solid #bbddca;border-radius:10px;background:#eef8f2;color:#245e40;font-size:12px;line-height:1.45;max-width:100%;overflow-wrap:anywhere}
.master-cost-note strong{font-size:13px;color:inherit}
.master-cost-note span{display:block}
[data-theme="dark"] .master-cost-note{background:#20362a;border-color:#395c47;color:#b5e4c8}
