:root{--olive:#4a6a1d;--ink:#283322;--paper:#f7f5ef;--line:#dfe3d6;--soft:#eef1e7;--rose:#e9d4cb}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:var(--olive);text-underline-offset:3px}a:hover{color:#304713}button,a,input,select,textarea{outline-offset:4px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--olive)}
header.em-header{background:#fffdf8;border-bottom:1px solid var(--line);padding:18px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.em-brand{display:flex;align-items:center;gap:24px;text-decoration:none}.em-brand img{width:122px;height:auto;display:block}.em-brand span{border-left:1px solid var(--line);padding-left:24px;font-size:14px;letter-spacing:.04em;color:#5f6958}.em-user{display:flex;gap:20px;align-items:center;font-size:14px}.em-user a{font-weight:600}
main{max-width:1220px;margin:0 auto;padding:24px 20px 32px}.em-workspace-nav{display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:24px}.em-mascot{display:block;width:220px;height:156px;object-fit:contain;flex-shrink:0}

nav.em-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0;flex:1;min-width:0}nav.em-nav a{padding:9px 15px;border-radius:8px;text-decoration:none;font-size:15px;font-weight:600}nav.em-nav a[aria-current=page]{background:var(--olive);color:white}nav.em-nav a:hover{background:var(--soft);color:var(--ink)}
h1{font-size:28px;line-height:1.25;letter-spacing:-.025em;margin:0 0 16px}h2{font-size:22px;line-height:1.3;margin:0 0 16px;letter-spacing:-.015em}h3{font-size:18px;margin:0 0 12px}p{margin:10px 0 16px}body .card,body .em-card{background:#fffefb;border:1px solid var(--line);border-radius:14px;padding:24px;margin:18px 0;box-shadow:0 3px 14px #28332203}body .em-card h2{color:var(--ink)}.muted,.ev-muted{color:#65705c;font-size:14px}.em-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:28px;font-size:14px;color:#65705c}
body label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:14px;font-weight:500;min-width:0}body input:not([type=checkbox]):not([type=hidden]),body select,body textarea{display:block;width:100%;max-width:440px;min-width:0;min-height:40px;padding:8px 11px;border:1px solid #bac4ad;border-radius:7px;background:white;color:var(--ink);font:400 15px/1.4 inherit;font-family:inherit;font-size:15px;box-shadow:none}body textarea{min-height:82px;resize:vertical}body input[type=date]{min-width:0}body input[type=checkbox]{width:17px;height:17px;flex:0 0 17px;accent-color:var(--olive);margin:3px 0 0}body label:has(>input[type=checkbox]){flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;font-size:15px;max-width:820px}body form{margin:16px 0}body form>label{margin:16px 0}body .em-card label{margin:16px 0}body form label:has(textarea) textarea{max-width:100%}
body button,body .button,body input[type=submit]{font:600 14px/1.4 inherit;font-family:inherit;font-size:14px;min-height:40px;padding:9px 15px;border:1px solid #b9c4a7;border-radius:8px;background:var(--soft);color:var(--ink);cursor:pointer;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;width:auto;max-width:100%;white-space:normal;transition:background .15s}body button:hover,body .button:hover{background:#e0e7d4}body button.primary,body .button-primary,body .em-actions .button[aria-current=page]{background:var(--olive);color:white;border-color:var(--olive)}body button.primary:hover{background:#3d5917}.em-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px}
body .ev-filters{display:grid;grid-template-columns:1fr 1.35fr 1fr 1fr;gap:16px;align-items:end;padding:20px}body .ev-filters label{margin:0;gap:7px}body .ev-filters input,body .ev-filters select{max-width:none;width:100%}body .ev-filters label:has(input[type=search]){grid-column:span 2}body .ev-filters button{justify-self:start}body .ev-filters>a{font-size:14px;align-self:center}body .ev-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:20px 0}body .ev-kpi{font-size:14px;line-height:1.35;background:#fffefb;border:1px solid var(--line);border-radius:10px;padding:14px 16px;color:#58634f;min-height:89px;text-decoration:none}body .ev-kpi:hover{border-color:var(--olive);background:#f0f3e9}body .ev-kpi strong{display:block;font-size:27px;font-weight:500;color:var(--ink);margin-top:6px;line-height:1.2}
body table{border-collapse:collapse;width:100%;font-size:14px}body th{font-size:13px;font-weight:600;color:#66725c;background:#f2f4ec}body td,body th{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}body tbody tr:last-child td{border-bottom:0}body .ev-table{overflow:auto}body .ev-table td:first-child{overflow-wrap:anywhere;min-width:150px}body .ev-state,body .em-tag{background:#edf1e5;color:#405a24;font-size:13px;border-radius:5px;padding:5px 8px;display:inline-block}body .em-code{font-size:25px;letter-spacing:.03em;font-weight:600;word-break:break-all}.em-notice{background:#edeedf;border-left:3px solid #b6bf8f;padding:10px 14px;font-size:14px;border-radius:0 6px 6px 0;margin:12px 0 24px}body .ev-manager{max-width:none}body .ev-manager>h1{display:none}body .ev-manager>h2{margin-top:20px}
body fieldset{border:1px solid var(--line);border-radius:10px;padding:16px 20px;margin:20px 0}body legend{font-size:16px;font-weight:600;padding:0 8px}body fieldset label{margin:12px 0}body details{border-top:1px solid var(--line);padding:14px 0}body summary{cursor:pointer;font-size:15px;font-weight:600}body pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.6 inherit}body li{margin:8px 0;overflow-wrap:anywhere}body .error{background:#fff1f0;border:1px solid #c6655b;color:#8c2920;padding:15px;border-radius:8px}.ev-alert,.em-late{color:#ad3024}
body .em-free-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;max-width:820px}body .em-free-form>label{margin:0}body .em-free-form>label:has(textarea),body .em-free-form>label:has(input[type=checkbox]){grid-column:1/-1}body .em-free-form>button{justify-self:start;grid-column:1/-1;background:var(--olive);color:white}body .em-free-form [hidden]{display:none!important}
@media(max-width:800px){body .ev-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.em-brand span{display:none}body .ev-filters{grid-template-columns:1fr 1fr}}
@media(max-width:540px){header.em-header{padding:14px 16px;gap:14px}.em-brand img{width:94px}.em-user{gap:10px;font-size:12px}.em-user span{max-width:120px}main{padding:16px 12px}.em-nav a{padding:8px 10px!important;font-size:14px!important}body .card,body .em-card{padding:16px}body .ev-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body .ev-filters{gap:14px 12px}body .ev-filters label:has(select[name=filter]),body .ev-filters label:has(input[type=search]){grid-column:1/-1}body .ev-filters label:has(select[name=type]){grid-column:auto}body input,body select,body textarea{font-size:16px!important}body .em-free-form{grid-template-columns:1fr}body .em-free-form>label{grid-column:1/-1}body table{display:block;overflow-x:auto}h1{font-size:24px}h2{font-size:20px}.em-actions{gap:8px}.em-actions .button{font-size:13px}.em-footer{font-size:13px}body .ev-kpi{font-size:13px;padding:12px;min-height:86px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

body .ev-filters input,body .ev-filters select{max-width:none!important}.ev-filter-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:14px}@media(max-width:800px){.ev-filter-actions{grid-column:1/-1}}

@media(max-width:540px){.em-workspace-nav{gap:14px;padding-bottom:16px;margin-bottom:20px}.em-mascot{width:118px;height:106px}nav.em-nav{gap:6px;align-items:flex-start;flex-direction:column}nav.em-nav a{font-size:13px!important;padding:9px 11px!important}}

body select{appearance:none;-webkit-appearance:none;padding-right:38px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235f6958' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px} .ev-task-links{display:flex;gap:10px;flex-wrap:wrap}.ev-task-links strong{margin-left:9px}.ev-task-links .ev-task-alert{color:#912018;border-color:#cb8e86;background:#fff1f0}#voucher-list{scroll-margin-top:20px}

/* Compact staff workspace; training rules remain server-side. */
body .ev-manager > .em-notice{display:none}
body fieldset{min-inline-size:0;max-width:100%}
.em-sale-grid > *, .em-choices > *{min-width:0}
@media(max-width:600px){
 header.em-header{padding:12px 16px;gap:12px}
 .em-brand img{width:88px}
 .em-user{font-size:12px;gap:12px;min-width:0}
 .em-user span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}
 main{padding:12px 14px 28px}
 .em-workspace-nav{gap:16px;padding-bottom:12px;margin-bottom:14px}
 .em-mascot{width:82px;height:72px}
 nav.em-nav{gap:2px}
 nav.em-nav a{min-height:40px;display:flex;align-items:center;font-size:14px!important;padding:8px 10px!important;line-height:1.3}
 .em-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:16px}
 .em-actions .button{min-width:0;min-height:44px;padding:8px 10px;font-size:14px;line-height:1.25;text-align:center;border-radius:9px}
 .em-actions .button:first-child{grid-column:1/-1}
 body .card,body .em-card{padding:16px;margin:14px 0;border-radius:14px;min-width:0}
 h1{font-size:23px;margin-bottom:10px}h2{font-size:20px;margin-bottom:10px}
 p{font-size:15px;line-height:1.5;margin:8px 0 12px}
 body fieldset{padding:12px;margin:16px 0}
 body legend{font-size:14px;padding:0 6px}
 body label{font-size:14px;gap:6px}
 body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body select,body textarea{min-height:44px;font-size:16px!important;max-width:100%}
 body .ev-filters{padding:14px;gap:12px}
}

/* Quiet section links beside Emily; action buttons below stay unchanged. */
nav.em-nav{gap:2px 18px}
nav.em-nav a{background:transparent;border-radius:0;font-weight:400;color:#65705c;padding:8px 0;text-decoration:none}
nav.em-nav a[aria-current=page]{background:transparent;color:var(--olive);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
nav.em-nav a:hover{background:transparent;color:var(--olive)}
@media(max-width:600px){
 nav.em-nav{gap:0;align-items:flex-start;flex-direction:column}
 nav.em-nav a{min-height:40px;padding:8px 0!important;font-size:14px!important;line-height:1.3}
}

@media(max-width:600px){nav.em-nav a{min-height:32px;padding:5px 0!important}nav.em-nav{gap:0}}
.em-help{max-width:900px}.em-help ol{padding-left:22px}.em-help details p:last-child{margin-bottom:0}

/* Shared form rhythm and equal workspace actions. */
body .ev-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
body .ev-filters label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0}
body .ev-filters input,body .ev-filters select{min-width:0;box-sizing:border-box}
body .ev-filters input[type=date]{min-inline-size:0;width:100%}
body .ev-filter-actions{gap:14px;min-height:44px}
@media(max-width:800px){body .ev-filters{grid-template-columns:repeat(2,minmax(0,1fr))}body .ev-filters label:has(select[name=type]){grid-column:1/-1}}
@media(max-width:600px){
 .em-actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(48px,auto)}
 .em-actions .button:first-child{grid-column:auto}
 .em-actions .button{height:100%;min-height:48px}
 body .ev-filters{gap:16px 12px}
 body .ev-filters label:has(input[type=date]){grid-column:auto}
 body .ev-filter-actions{grid-column:1/-1}
 body .ev-kpis{gap:10px}
}

/* Constrain native iOS date controls to their grid cells. */
body input[type=date]{appearance:none;-webkit-appearance:none;box-sizing:border-box;min-width:0;min-inline-size:0;max-width:100%;width:100%;display:block;overflow:hidden;text-align:left}
body input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
body input[type=date]::-webkit-datetime-edit{padding:0;min-width:0}
@media(max-width:600px){
 body .ev-filters input[type=date]{padding:8px 6px;max-width:100%;width:100%;font-size:14px!important}
 body .ev-filters label:has(input[type=date]){min-width:0;overflow:hidden}
 body .em-sale label:has(input[type=date]){min-width:0;max-width:100%;overflow:hidden}
 body table.ev-report-summary{display:table;table-layout:fixed;width:100%;font-size:12px;overflow:visible}
 body table.ev-report-summary th,body table.ev-report-summary td{padding:9px 5px;font-size:12px;overflow-wrap:anywhere;white-space:normal}
 body table.ev-report-summary th:first-child{width:29%}
 body table.ev-report-summary th:nth-child(2){width:18%}
}

/* Consistent help copy in paragraphs and numbered instructions. */
body .em-help p,body .em-help ol,body .em-help ul,body .em-help li{font-size:15px;line-height:1.5}
body .em-help{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Personal greeting and a persistent, compact language picker. */
body .em-language{margin:0}
body .em-language label{display:flex;flex-direction:row;align-items:center;gap:5px;margin:0}
body .em-language select{width:140px;min-height:36px;font-size:14px!important;padding:6px 24px 6px 8px;background-color:transparent;border-color:var(--line);cursor:pointer}
body .em-user .em-greeting{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){
 header.em-header{align-items:center}
 body .em-user{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;max-width:calc(100% - 102px);min-width:0}
 body .em-user .em-greeting{grid-column:1/-1;max-width:100%;font-size:13px;text-align:right}
 body .em-user>a{grid-column:2;grid-row:2;align-self:center}
 body .em-user .em-language{grid-column:1;grid-row:2;justify-self:end}
 body .em-language select{width:130px;font-size:13px!important;min-height:36px}
 body .em-language label>span{display:none}
 body .em-actions{grid-auto-rows:1fr}
}

/* Compact, consistent mobile navigation labels. */
@media(max-width:600px){body .em-actions .button{font-size:clamp(11px,3.33vw,13px);padding-inline:5px;white-space:nowrap}}

/* Short language code, full names in the native selection menu. */
body .em-language label{position:relative;display:block}
body .em-language label>.em-language-short{display:block;position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:600;pointer-events:none;color:var(--ink)}
body .em-language select{width:58px;min-height:34px;padding:6px 20px 6px 8px;color:transparent!important}
body .em-language select option{color:var(--ink)}
@media(max-width:600px){
 body .em-user{grid-template-columns:minmax(0,1fr) 58px;gap:3px 8px}
 body .em-user .em-greeting{grid-column:1;grid-row:1;align-self:center}
 body .em-user .em-language{grid-column:2;grid-row:1}
 body .em-user>a{grid-column:2;grid-row:2;justify-self:end}
}

/* Keep all personal controls on a single line. */
body .em-user{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0}
body .em-user .em-greeting{min-width:0;flex:0 1 auto}
body .em-user .em-language{order:1;flex:0 0 auto}
body .em-user>a{order:2;flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){
 header.em-header{gap:10px;padding-inline:14px}
 header.em-header .em-brand img{width:76px}
 body .em-user{max-width:calc(100% - 86px);gap:6px}
 body .em-user .em-greeting{font-size:12px}
 body .em-user>a{font-size:12px}
 body .em-language select{width:49px;padding-left:5px;padding-right:17px}
 body .em-language label>.em-language-short{left:7px;font-size:11px}
}

/* Dedicated daily work screens. */
body .em-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body .em-actions .button{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;white-space:normal;text-align:center}
body .em-secondary{display:flex;gap:20px;flex-wrap:wrap;margin:-6px 0 22px;font-size:13px}
body .em-actions .em-has-tasks{border-color:#b67b30;background:#fff3dc;color:#71480d}
body .em-task-count{background:#a96516;color:#fff;border-radius:20px;padding:2px 7px;font-size:12px}
body .ev-system{background:#f0f1ec;color:#697060}
body .ev-system h2{font-size:17px}
body .ev-task-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body .ev-task-links .button{min-width:0;white-space:normal;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px}
body .ev-quick{display:flex;gap:12px;align-items:end}
body .ev-quick label{flex:1;min-width:0;margin:0}
body .ev-quick input{width:100%;min-width:0}
body .ev-quick button{min-height:44px;margin:0}
@media(max-width:600px){body .em-actions{grid-template-columns:repeat(2,minmax(0,1fr))}body .em-actions .button{font-size:13px;padding:9px 6px}body .ev-task-links{grid-template-columns:1fr}body .ev-quick{gap:8px}body .ev-quick button{padding-inline:14px}}

.em-redeem-confirm{margin-top:16px}.em-redeem-confirm>summary{display:inline-block;cursor:pointer;background:#4d681f;color:#fff;border-radius:10px;padding:12px 18px;min-height:44px;box-sizing:border-box}.em-redeem-confirm[open]>summary{background:#eef1e8;color:#344321}.em-redeem-confirm button{width:100%}

body .ev-state.ev-state-used{background:#fde9e7;color:#a12622;font-weight:700;border:1px solid #efb5af}

body .em-actions .em-disabled{opacity:.46;background:#eeeee9;color:#777b71;border-color:#d4d6cf;cursor:not-allowed;box-shadow:none}#task-content{scroll-margin-top:12px}

.em-receipt-task{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}.em-receipt-task h2{margin:0 0 14px}.em-receipt-task details{margin-bottom:0}#task-content h1 .em-task-count{font-size:16px;vertical-align:middle}

.em-preparation-greeting{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f3eb;border-radius:8px;padding:12px}
