/* Isolated presentation editor. No rules target transaction forms or balances. */
.staff-layout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:9px 0 12px}.staff-layout-shortcut{display:flex;align-items:center;gap:9px;min-width:0;min-height:48px;text-align:left;padding:11px 12px;color:var(--staff-ink,var(--action-ink,var(--green)));background:var(--staff-surface,var(--white,#fff));border:1px solid var(--line);border-radius:12px;font-size:13px;font-weight:650;overflow-wrap:anywhere}.staff-layout-shortcut>span{min-width:0}.staff-layout-shortcut small{display:block;color:var(--muted);font-size:.83em;font-weight:450;margin-top:3px}.staff-layout-shortcut[data-staff-size=compact]{padding:7px 9px;min-height:44px;font-size:12px}.staff-layout-shortcut[data-staff-size=wide]{grid-column:1/-1}.staff-layout-shortcut .icon{width:21px;height:21px;flex:none}.staff-layout-entry{font-size:12px;border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:transparent;color:var(--staff-ink,var(--action-ink,var(--green)))}
[data-staff-layout=custom][data-staff-font=compact] .staff-layout-shortcut{font-size:12px}[data-staff-layout=custom][data-staff-font=large] .staff-layout-shortcut{font-size:17px}[data-staff-layout=custom][data-staff-font=large] .page-heading h1{font-size:30px}[data-staff-layout=custom][data-staff-density=compact] .staff-layout-grid{gap:5px;margin-block:6px}[data-staff-layout=custom][data-staff-density=compact] .staff-layout-shortcut{padding:8px 10px}[data-staff-layout=custom][data-staff-density=comfortable] .staff-layout-shortcut{padding:18px 14px}[data-staff-layout=custom][data-staff-columns="3"] .staff-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr))}[data-staff-layout=custom][data-staff-columns="2"] .staff-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.staff-layout-editor{width:min(680px,calc(100vw - 20px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:18px;color:var(--staff-ink,var(--action-ink,var(--green)));background:var(--staff-surface,var(--white,#fff));overflow:hidden;box-shadow:0 14px 60px #102b2440}.staff-layout-editor::backdrop{background:#102b247a;backdrop-filter:blur(3px)}.staff-editor-head,.staff-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 17px;border-bottom:1px solid var(--line)}.staff-editor-head h2{margin:3px 0 0;font-size:19px}.staff-editor-head small{font-size:9px;letter-spacing:1.5px;color:var(--muted)}.staff-editor-head>button{font-size:25px;background:transparent;color:inherit;width:40px;height:40px;border-radius:50%}.staff-editor-body{padding:12px 16px;max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain}.staff-editor-body>.sub{font-size:12px;margin-bottom:11px}.staff-editor-properties{padding:11px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--green) 3%,var(--white,#fff));display:grid;gap:8px}.staff-editor-properties label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.staff-editor-properties input:not([type=checkbox]),.staff-editor-properties select{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px;background:var(--staff-surface,var(--white,#fff));color:var(--staff-ink,var(--action-ink,var(--green)));font-size:14px}.staff-editor-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}.staff-editor-properties .staff-editor-visible{display:flex;align-items:center;gap:8px;color:var(--staff-ink,var(--action-ink,var(--green)));padding-top:16px}.staff-editor-visible input{width:20px;height:20px;accent-color:var(--staff-ink,var(--action-ink,var(--green)))}.staff-editor-presentation{padding-top:7px;border-top:1px solid var(--line)}.staff-editor-presentation summary{font-size:12px;cursor:pointer;margin-bottom:7px}.staff-editor-group{margin-top:14px}.staff-editor-group h3{font-size:12px;text-transform:uppercase;color:var(--muted);letter-spacing:1px;margin:0 0 7px}.staff-editor-row{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;margin-bottom:5px;gap:4px;padding:3px 6px}.staff-editor-row.selected{border-color:var(--staff-ink,var(--action-ink,var(--green)));background:color-mix(in srgb,var(--green) 7%,var(--white,#fff))}.staff-editor-row button{background:transparent;color:inherit}.staff-drag{touch-action:none;cursor:grab;width:34px;min-height:42px;font-size:24px;flex:none}.staff-edit-select{flex:1;text-align:left;padding:6px;min-width:0}.staff-edit-select strong{display:block;font-size:13px;overflow-wrap:anywhere}.staff-edit-select small{font-size:10px;color:var(--muted)}.staff-row-move{display:flex;gap:1px}.staff-row-move button{min-width:36px;min-height:40px;font-size:18px}.staff-editor-foot{border-top:1px solid var(--line);border-bottom:0;background:var(--staff-surface,var(--white,#fff))}.staff-editor-foot .btn{min-height:42px}.staff-editor-error{background:#fbe7df;color:#8c3424;border-radius:8px;padding:10px;font-size:13px;margin-bottom:9px}
@media(min-width:700px){.staff-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.staff-editor-body{display:grid;grid-template-columns:240px 1fr;gap:12px}.staff-editor-body>.sub,.staff-editor-error{grid-column:1/-1}.staff-editor-properties{align-self:start;position:sticky;top:0}.staff-editor-list{min-width:0}.staff-editor-group:first-child{margin-top:0}}
@media(max-width:350px){.staff-editor-body{padding:10px}.staff-editor-head,.staff-editor-foot{padding:10px}.staff-layout-shortcut{padding:8px;font-size:12px}.staff-layout-shortcut .icon{width:17px;height:17px}[data-staff-layout=custom][data-staff-columns="3"] .staff-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

[data-staff-layout=custom][data-staff-font=compact] :is(.counter-launcher .quick-action,.menu-grid .menu-card){font-size:12px}[data-staff-layout=custom][data-staff-font=large] :is(.counter-launcher .quick-action,.menu-grid .menu-card){font-size:17px}[data-staff-layout=custom][data-staff-density=compact] :is(.counter-launcher .quick-action,.menu-grid .menu-card){padding:9px 11px}[data-staff-layout=custom][data-staff-density=comfortable] :is(.counter-launcher .quick-action,.menu-grid .menu-card){padding:18px 14px}[data-staff-layout=custom][data-staff-columns="2"] :is(.counter-launcher,.menu-grid){grid-template-columns:repeat(2,minmax(0,1fr))}[data-staff-layout=custom][data-staff-columns="3"] :is(.counter-launcher,.menu-grid){grid-template-columns:repeat(3,minmax(0,1fr))}.layout-settings-fixed{margin-bottom:8px}

[data-staff-layout=custom] :is(.counter-home-page>[hidden],.menu-organized>[hidden]){display:none!important}.staff-editor-sections{border-top:1px solid var(--line);padding-top:8px}.staff-editor-sections summary{font-size:12px;cursor:pointer;margin-bottom:8px}.staff-editor-section{display:grid;grid-template-columns:1fr 65px;gap:8px;align-items:center;border-top:1px solid var(--line);padding-block:7px}.staff-editor-section>label:first-child{display:flex;align-items:center;gap:7px;color:inherit}.staff-editor-section input[type=checkbox]{width:18px;height:18px;accent-color:var(--action,var(--green))}.staff-editor-section input[type=number]{padding:5px}.staff-editor-presentation>label{margin-top:7px}.staff-editor-foot{flex-wrap:wrap}.staff-editor-foot [data-editor-save]{margin-left:auto}

/* On phones these four actions are already fixed in the bottom bar. Keep
   their desktop shortcuts and saved layout intact; hide only duplicates in
   Home, including ones moved into a custom Home grid. */
@media(max-width:850px){
 .counter-home-page > .counter-launcher{display:none}
 .counter-home-page > .staff-layout-home > :is([data-staff-shortcut="sell"],[data-staff-shortcut="receive"],[data-staff-shortcut="stock"],[data-staff-shortcut="notebook"]){display:none}
 .counter-home-page > .staff-layout-home:not(:has(> .staff-layout-shortcut:not([data-staff-shortcut="sell"]):not([data-staff-shortcut="receive"]):not([data-staff-shortcut="stock"]):not([data-staff-shortcut="notebook"]))){display:none}
}

/* The three main Home shortcuts share a compact line on phones. Keep them as
   direct children: the personal layout editor uses those same controls. */
@media(max-width:850px){
 .content:not([data-staff-layout=custom]) .counter-home-page{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:6px}
 .content:not([data-staff-layout=custom]) .counter-home-page > *{grid-column:1/-1;order:5;min-width:0}
 .content:not([data-staff-layout=custom]) .counter-home-page > .page-heading{order:0}
 .content:not([data-staff-layout=custom]) .counter-home-page > .resume-sale-note{order:1}
 .content:not([data-staff-layout=custom]) .counter-home-page > .counter-launcher{order:2}
 .content:not([data-staff-layout=custom]) .counter-home-page > :is(.defective-stock-shortcut,.home-xitique-shortcut,.tech-requests-shortcut){grid-column:auto;order:3;min-width:0;width:100%;min-height:52px;height:auto;margin:0 0 6px;padding:5px;gap:3px 5px;border-radius:10px;display:flex;align-items:center;justify-content:center;align-content:center;flex-wrap:wrap;text-align:center}
 .content:not([data-staff-layout=custom]) .counter-home-page:not(:has(> .defective-stock-shortcut)) > .tech-requests-shortcut{grid-column:1/-1}
 .content:not([data-staff-layout=custom]) .counter-home-page > :is(.home-sales-trends-shortcut,.home-profits-shortcut){order:4}
 .content:not([data-staff-layout=custom]) .counter-home-page > :is(.defective-stock-shortcut,.home-xitique-shortcut,.tech-requests-shortcut) > .icon{width:17px;height:17px}
 .content:not([data-staff-layout=custom]) .counter-home-page > .defective-stock-shortcut strong,.content:not([data-staff-layout=custom]) .counter-home-page > .home-xitique-shortcut strong,.content:not([data-staff-layout=custom]) .counter-home-page > .tech-requests-shortcut > span:not(.tech-requests-arrow){flex:0 1 auto;min-width:0;font-size:.75rem;line-height:1.2;overflow-wrap:anywhere}
 .content:not([data-staff-layout=custom]) .counter-home-page > .home-xitique-shortcut > span{display:contents}
 .content:not([data-staff-layout=custom]) .counter-home-page > .home-xitique-shortcut small,.content:not([data-staff-layout=custom]) .counter-home-page > .home-xitique-shortcut > b,.content:not([data-staff-layout=custom]) .counter-home-page > .defective-stock-shortcut > span,.content:not([data-staff-layout=custom]) .counter-home-page > .defective-stock-shortcut > .icon:last-child,.content:not([data-staff-layout=custom]) .counter-home-page > .tech-requests-shortcut > .tech-requests-arrow{display:none}
 .content:not([data-staff-layout=custom]) .counter-home-page > .tech-requests-shortcut{position:relative}
 .content:not([data-staff-layout=custom]) .counter-home-page > .tech-requests-shortcut > [data-tech-count]{position:absolute;top:2px;right:2px;font-size:.625rem;padding:1px 3px}
 [data-staff-layout=custom] .counter-home-page > :is(.defective-stock-shortcut,.home-xitique-shortcut,.tech-requests-shortcut){min-height:44px;margin:0 0 5px;padding:6px 10px;gap:7px}
 [data-staff-layout=custom] .counter-home-page > .staff-layout-home > :is([data-staff-shortcut="defectiveStock"],[data-staff-shortcut="xitique"],[data-staff-shortcut="technicianRequests"]){min-height:44px;padding:6px 9px;gap:7px}
}
