.mc-page{display:grid;gap:20px}.mc-panel{padding:24px!important}.mc-panel h2{margin:0 0 12px}.mc-panel p{line-height:1.8}.mc-cashier-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:18px;align-items:start}.mc-code-reference{background:#f4f7fb;border:1px solid #d8e1ed;border-radius:12px;padding:12px}.mc-code-reference>strong{display:block;margin-bottom:8px}.mc-code-list{display:flex;flex-wrap:wrap;gap:6px}.mc-code-list span{background:#fff;border:1px solid #dce4ef;border-radius:999px;padding:5px 9px;font-size:calc(12px * var(--ui-scale,1));white-space:nowrap}.mc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:18px 0}.mc-expense-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr)) auto;gap:12px;align-items:end;margin:18px 0}.mc-totals{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 14px}.mc-totals span{background:#edf3fc;border-radius:8px;padding:10px 14px}.mc-expense-table{max-height:340px}.mc-field{display:flex;flex-direction:column;gap:8px}.mc-field input,.mc-field select,.mc-row input,.mc-row select,.mc-table input,.mc-table select{min-height:42px;border:1px solid #bcc7d8;border-radius:8px;padding:8px;background:#fff;color:#182a46;font:inherit}.mc-selected{background:#edf3fc;border-radius:8px;padding:10px;min-height:42px}.mc-card{background:#f3f6fc;padding:18px;border:1px solid #dce4ef;border-radius:12px}.mc-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:space-between;margin-bottom:16px}.mc-tabs{display:flex;gap:10px;flex-wrap:wrap}.mc-tabs button{padding:12px 20px}.mc-table-wrap{overflow:auto;max-height:65vh}.mc-table{width:100%;border-collapse:separate;border-spacing:0;min-width:650px}.mc-table th{position:sticky;top:0;background:#17345b;color:white;z-index:2;padding:14px;text-align:right}.mc-table td{padding:10px;border-bottom:1px solid #dee5ee}.mc-table tr:nth-child(even){background:#f4f7fb}.mc-table select{width:100%;min-width:200px}.mc-notice{min-height:28px;color:#183e73;font-weight:700}.mc-hint{color:#536579;font-size:calc(14px * var(--ui-scale,1))}.mc-event{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid #e1e7ef}.mc-cancelled{text-decoration:line-through;opacity:.65}.mc-standalone{direction:rtl;min-height:100vh;background:#eef2f8}.mc-standalone>header{background:#102846;color:white;display:flex;justify-content:space-between;padding:22px}.mc-standalone>.mc-page{max-width:1250px;margin:auto;padding:24px}.mc-standalone button{padding:10px 16px;border:1px solid #bdcce1;border-radius:8px;cursor:pointer}.mc-standalone button.primary{background:#2463b0;color:white}.mc-standalone button:disabled{opacity:.5;cursor:default}@media(max-width:900px){.mc-cashier-head{grid-template-columns:1fr}.mc-expense-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.mc-expense-grid button{min-height:42px}}@media(max-width:560px){.mc-panel{padding:16px!important}.mc-standalone>.mc-page{padding:12px}.mc-expense-grid{grid-template-columns:1fr}.mc-code-list span{font-size:calc(11px * var(--ui-scale,1))}.mc-totals{display:grid;grid-template-columns:1fr}}
/* Compact daily sheet. The employee reference is a div, never the global sidebar aside. */
.mc-daily-page{gap:12px;min-width:0;align-content:start}
.mc-daily-page .mc-panel{padding:14px!important;min-width:0}
.mc-daily-page .mc-cashier-head{grid-template-columns:minmax(240px,1fr) minmax(280px,420px);gap:12px;min-height:0}
.mc-daily-page .mc-code-reference{padding:6px 10px;min-height:0;height:auto;max-height:120px;overflow:auto;align-self:start;background:#f8fafc;border:0;border-radius:6px}
.mc-daily-page .mc-code-reference>strong{font-size:calc(12px * var(--ui-scale,1));margin:0 0 5px}
.mc-daily-page .mc-code-list{gap:4px 12px}
.mc-daily-page .mc-code-list span{padding:2px 3px;font-size:calc(13px * var(--ui-scale,1));font-weight:600;background:none;border:0;border-radius:0;direction:ltr;unicode-bidi:isolate}
.mc-daily-page .mc-code-list span b{font-size:calc(14px * var(--ui-scale,1))}
.mc-danger-zone{margin-top:18px;padding:14px;border:1px solid #d9a4a4;background:#fff2f2;border-radius:10px;display:flex;gap:12px;align-items:center;justify-content:space-between}.mc-danger-zone button{background:#9f2424;color:#fff;border-color:#9f2424}
@keyframes mcNewRow{0%{box-shadow:inset 0 0 0 3px #2d73c8;background:#eaf4ff}100%{box-shadow:inset 0 0 0 0 transparent;background:transparent}}.mc-new-row{animation:mcNewRow 1.2s ease-out}
.mc-daily-page .mc-hint{font-size:calc(12px * var(--ui-scale,1));margin:8px 0;line-height:1.6}
.mc-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.mc-day-state{display:inline-flex;align-items:center;border-radius:999px;padding:7px 12px;font-weight:800;font-size:.86rem;border:1px solid transparent}
.mc-day-state.open{background:#e8f6ee;color:#176b3b;border-color:#b9e4ca}
.mc-day-state.closed{background:#fff1df;color:#8a4b08;border-color:#efd0a9}
.mc-close-day{background:#173a67!important;color:#fff!important;border-color:#173a67!important}
.mc-closing-pdf{background:#18734a!important;color:#fff!important;border-color:#18734a!important}
.mc-reopen-day{background:#fff7ed!important;color:#9a4d08!important;border-color:#e5b986!important}
.mc-daily-audit .mc-audit-row p{margin:4px 0;overflow-wrap:anywhere}
.mc-daily-audit .mc-audit-reason{color:#8a4b08;font-weight:700}
.mc-toolbar input,.mc-toolbar select{border:1px solid #cbd5e1;border-radius:6px;padding:5px;font:inherit;max-width:160px}
.mc-daily-wrap{max-height:52vh;border:1px solid #cbd5e1;border-radius:7px;margin:8px 0}
.mc-daily-table{min-width:1140px;table-layout:fixed;font-size:calc(12px * var(--ui-scale,1))}
.mc-daily-table th{padding:9px 5px;text-align:center;background:#17345b;font-size:calc(12px * var(--ui-scale,1))}
.mc-daily-table td{padding:6px 4px;text-align:center;vertical-align:top;border-left:1px solid #e2e8f0}
.mc-daily-table th:nth-child(1){width:88px}
.mc-daily-table th:nth-child(2){width:145px}
.mc-daily-table th:nth-child(3){width:60px}
.mc-daily-table th:nth-child(4){width:112px}
.mc-daily-table th:nth-child(5){width:86px}
.mc-daily-table th:nth-child(6){width:130px}
.mc-daily-table th:nth-child(7){width:98px}
.mc-daily-table th:nth-child(8){width:80px}
.mc-daily-table th:nth-child(9){width:142px}
.mc-daily-table th:nth-child(10){width:112px}
.mc-daily-table input,.mc-daily-table select{box-sizing:border-box;width:100%;min-width:0;min-height:32px;padding:5px 3px;border-radius:4px;font-size:calc(12px * var(--ui-scale,1))}
.mc-daily-table small{display:block;font-size:calc(10px * var(--ui-scale,1));line-height:1.4;margin-top:4px;color:#526477}
.mc-inline-actions{display:flex;justify-content:center;gap:4px;margin-top:5px}.mc-inline-actions button{padding:3px 6px!important;font-size:calc(10px * var(--ui-scale,1))!important;background:#fff}.mc-inline-actions button:last-child{color:#a52323;border-color:#d9aaaa}.mc-saved-purchase{border-top:1px solid #cdb89d;margin-top:5px;padding-top:3px}
.mc-daily-table .mc-name-cell{font-weight:700;padding-top:14px}
.mc-no-attendance{display:flex;align-items:center;gap:3px;font-size:calc(10px * var(--ui-scale,1));margin-top:4px;white-space:nowrap}
.mc-daily-table .mc-no-attendance input{width:13px;min-height:13px;height:13px}
.mc-purchase-cell{background:#ead6be!important}
.mc-daily-page button{font-size:calc(12px * var(--ui-scale,1));padding:7px 9px}
.mc-daily-page .mc-notice:empty{display:none}
.mc-daily-page .mc-notice{min-height:0;margin:6px 0;font-size:calc(12px * var(--ui-scale,1))}
.mc-daily-page .mc-expense-grid{grid-template-columns:1.3fr 1.8fr .8fr 1.3fr .8fr auto;gap:8px;margin:12px 0}
.mc-daily-page .mc-field{font-size:calc(12px * var(--ui-scale,1));min-width:0}
.mc-daily-page .mc-field input,.mc-daily-page .mc-field select{min-width:0;min-height:34px;padding:6px}
.mc-daily-page .mc-totals{gap:8px;margin:8px 0;font-size:calc(12px * var(--ui-scale,1))}
.mc-daily-page .mc-totals span{padding:7px 10px}
.mc-daily-page .mc-expense-table{max-height:220px}
.mc-daily-page .mc-expense-table th,.mc-daily-page .mc-expense-table td{padding:8px;font-size:calc(12px * var(--ui-scale,1))}
.mc-detail-record{border-bottom:1px solid #dbe3ed;padding:12px 0}
.mc-event-actions{display:flex;align-items:center;gap:6px;margin-inline-start:auto}.mc-event-actions button:last-child{color:#a52323;border-color:#e3bcbc}
.mc-daily-page summary{cursor:pointer;font-size:calc(13px * var(--ui-scale,1));font-weight:700}
@media(max-width:800px){.mc-daily-page .mc-cashier-head{grid-template-columns:1fr}.mc-daily-page .mc-code-reference{max-height:85px}.mc-daily-page .mc-expense-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Monthly-entry range selection mirrors the useful Excel status bar. */
.entry-table td.mc-range-selected{box-shadow:inset 0 0 0 2px #2867aa;background:#dcecff!important}
.mc-column-status{position:sticky;bottom:0;z-index:8;display:flex;align-items:center;gap:18px;flex-wrap:wrap;direction:rtl;background:#13365c;color:white;border-radius:8px;padding:10px 16px;margin-top:8px;font-size:calc(13px * var(--ui-scale,1));box-shadow:0 -3px 14px #1028462e}
.mc-column-status strong{font-weight:700}
@media(max-width:560px){.mc-column-status{gap:8px;padding:8px 10px;font-size:calc(11px * var(--ui-scale,1))}}
.mc-break-control{display:flex;flex-direction:column;gap:6px;margin-top:8px;min-width:108px}
.mc-break-control button{font:inherit;font-size:calc(12px * var(--ui-scale,1));font-weight:700;border-radius:9px;padding:7px 9px;white-space:nowrap}
.mc-break-control .mc-break-start{background:#eff5fc;color:#274766;border:1px solid #cbdced}
.mc-break-control .mc-break-return{background:#274766;color:#fff;border:1px solid #274766}
.mc-break-control button:disabled{opacity:.5;cursor:not-allowed}
.mc-break-control small{color:#274766}
.mc-whatsapp-report{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;padding:9px;border:1px solid #d9e4ee;border-radius:10px;background:#f7fafc}
.mc-whatsapp-report input[type="tel"]{min-width:225px;max-width:290px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;font:inherit;direction:ltr;text-align:left}
.mc-whatsapp-remember{display:inline-flex;align-items:center;gap:7px;font-weight:800;color:#173a67;cursor:pointer;white-space:nowrap}.mc-whatsapp-remember input{width:19px;height:19px;accent-color:#1f9d55;cursor:pointer}
.mc-whatsapp-report small{flex-basis:100%;color:#60758a}
.mc-whatsapp-button{background:#1f9d55!important;color:#fff!important;border-color:#1f9d55!important}
@media(max-width:560px){.mc-whatsapp-report input[type="tel"]{min-width:100%;max-width:100%}.mc-whatsapp-report button{flex:1}}
