/* Korekt Customer Hub v0.4 – client UI */
:root{
  --kgh-red:#d91f26;
  --kgh-red-dark:#b8141a;
  --kgh-ink:#111214;
  --kgh-muted:#6d7177;
  --kgh-line:#dfe2e6;
  --kgh-soft:#f4f5f6;
  --kgh-soft-2:#eef0f2;
  --kgh-white:#fff;
  --kgh-shadow:0 16px 44px rgba(10,12,15,.13);
  --kgh-shadow-soft:0 8px 24px rgba(10,12,15,.065);
}

/* v0.5.13 — compact manager overview, expandable summaries and badges */
.kgh-manager-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0 0 18px}.kgh-manager-metric{position:relative;display:grid;gap:7px;min-height:104px;padding:15px;text-align:left;border:1px solid #dde1e4;border-radius:15px;background:#fff;color:#111;box-shadow:var(--kgh-shadow-soft);cursor:pointer}.kgh-manager-metric:hover,.kgh-manager-metric[aria-expanded="true"]{border-color:#111;transform:translateY(-1px)}.kgh-manager-metric span{padding-right:18px;font-size:9px;font-weight:850;line-height:1.25;color:#707070;text-transform:uppercase;letter-spacing:.045em}.kgh-manager-metric b{font-size:23px;line-height:1}.kgh-manager-metric i{position:absolute;right:12px;top:12px;font-style:normal;color:#999}.kgh-manager-metric[aria-expanded="true"] i{transform:rotate(180deg)}.kgh-metric-detail{grid-column:1/-1;padding:12px 15px;border:1px solid #dde1e4;border-radius:14px;background:#fff}.kgh-metric-rows{display:grid}.kgh-metric-rows>div{display:flex;justify-content:space-between;gap:15px;padding:9px 2px;border-bottom:1px solid #eceeef}.kgh-metric-rows>div:last-child{border:0}.kgh-metric-rows span{font-size:12px;font-weight:700}.kgh-metric-rows b{font-size:12px;white-space:nowrap}.kgh-metric-empty{margin:0;color:#777;font-size:12px}.kgh-inline-badge,.kgh-link-badge{display:inline-grid!important;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d91f26!important;color:#fff!important;font-size:9px!important;line-height:1!important}.kgh-link-badge{margin-left:auto}.kgh-staff-links>a:has(.kgh-link-badge){grid-template-columns:42px minmax(0,1fr) auto auto}
@media(max-width:900px){.kgh-manager-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.kgh-manager-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.kgh-manager-metric{min-height:86px;padding:12px}.kgh-manager-metric b{font-size:20px}.kgh-metric-detail{grid-column:1/-1}}
/* Keep cards opaque even when the active theme styles button hover/focus. */
.kgh-manager-metric,.kgh-manager-metric:hover,.kgh-manager-metric:focus,.kgh-manager-metric:focus-visible,.kgh-manager-metric[aria-expanded="true"]{background:#fff!important;background-color:#fff!important;background-image:none!important;opacity:1!important;color:#111!important}
.kgh-pay-card{margin-bottom:18px}.kgh-pay-total{font-size:23px;color:#111}.kgh-pay-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.kgh-pay-grid>div{display:grid;gap:5px;padding:13px;border:1px solid #e1e4e7;border-radius:12px;background:#f7f8f9}.kgh-pay-grid span{font-size:9px;font-weight:800;color:#777;text-transform:uppercase}.kgh-pay-grid b{font-size:15px;color:#111}.kgh-pay-grid .is-positive b{color:#18864b}.kgh-pay-grid .is-negative b{color:#d91f26}.kgh-pay-grid .is-total{background:#111;border-color:#111}.kgh-pay-grid .is-total span,.kgh-pay-grid .is-total b{color:#fff}.kgh-pay-history{margin-top:12px;border-top:1px solid #e5e7e9;padding-top:10px}.kgh-pay-history summary{cursor:pointer;font-size:11px;font-weight:800}.kgh-pay-history p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:9px 0;border-bottom:1px solid #eceeef;font-size:11px}.kgh-pay-history small{color:#777;text-align:right}.kgh-pay-history .is-bonus{color:#18864b}.kgh-pay-history .is-fine{color:#d91f26}
.kgh-adjustment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.kgh-adjustment-card form{display:grid;gap:10px}.kgh-adjustment-card label{display:grid;gap:5px;font-size:10px;font-weight:800;text-transform:uppercase;color:#666}.kgh-adjustment-card input,.kgh-adjustment-card select,.kgh-adjustment-card textarea,.kgh-adjustment-card input:hover,.kgh-adjustment-card input:focus,.kgh-adjustment-card select:hover,.kgh-adjustment-card select:focus{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d8dce0!important;border-radius:9px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important;box-shadow:none}.kgh-adjustment-card input::placeholder,.kgh-adjustment-card textarea::placeholder{color:#777!important;-webkit-text-fill-color:#777!important;opacity:1!important}.kgh-adjustment-card option{background:#fff!important;color:#111!important}.kgh-quick-amounts{display:flex;flex-wrap:wrap;gap:6px}.kgh-quick-amounts button{min-width:50px;padding:7px;border:1px solid #d8dce0;border-radius:8px;background:#f3f4f5!important;color:#111!important;font-size:11px;font-weight:800;cursor:pointer}.kgh-quick-amounts button:hover{border-color:#111;background:#fff!important}.kgh-adjustment-status{min-height:18px;margin:0;font-size:11px}.kgh-adjustment-status.is-ok{color:#18864b}.kgh-adjustment-status.is-error{color:#d91f26}
.kgh-reorder-hint{display:block;margin-top:4px;color:#777;font-size:10px;font-weight:600}.kgh-staff-links>a{position:relative;grid-template-columns:42px minmax(0,1fr) auto auto!important}.kgh-staff-links>a:has(.kgh-link-badge){grid-template-columns:42px minmax(0,1fr) auto auto auto!important}.kgh-staff-links>a.is-dragging{opacity:.38!important;outline:2px dashed #d91f26;pointer-events:none}.kgh-staff-links>a[draggable="true"]{cursor:grab}.kgh-staff-links>a[draggable="true"]:active{cursor:grabbing}.kgh-drag-handle{display:grid!important;place-items:center!important;width:25px;height:34px;color:#8b8f93!important;font-size:16px!important;line-height:1!important;cursor:grab;touch-action:none;user-select:none}.kgh-link-arrow{font-size:21px!important;color:#aaa!important}.kgh-order-status{min-height:16px;margin:7px 0 0;text-align:right;color:#666;font-size:10px}
@media(max-width:700px){.kgh-pay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-pay-grid .is-total{grid-column:1/-1}.kgh-adjustment-grid{grid-template-columns:1fr}.kgh-pay-history p{display:grid}.kgh-staff-links>a,.kgh-staff-links>a:has(.kgh-link-badge){grid-template-columns:42px minmax(0,1fr) auto auto auto!important}}
.kgh-pay-grid small{color:#777;font-size:9px;line-height:1.25}.kgh-econt-existing-report{max-width:100%;overflow:auto}.kgh-econt-existing-report table{width:100%;background:#fff;color:#111}.kgh-econt-existing-report input,.kgh-econt-existing-report select{background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important}
/* v0.5.16 — isolate pointer/interaction behavior from aggressive theme CSS. */
.kgh-staff-hub{cursor:default!important}.kgh-staff-hub a,.kgh-staff-hub button,.kgh-staff-hub summary,.kgh-staff-hub select{cursor:pointer!important;pointer-events:auto}.kgh-staff-hub input,.kgh-staff-hub textarea{cursor:text!important;pointer-events:auto}.kgh-staff-links>a[data-kgh-link-key]{cursor:grab!important;user-select:none!important;-webkit-user-drag:none!important;touch-action:pan-y}.kgh-staff-links>a[data-kgh-link-key]:active{cursor:grabbing!important}.kgh-staff-links .kgh-drag-handle{cursor:grab!important;pointer-events:auto!important;touch-action:none!important}.kgh-staff-links.is-reordering,.kgh-staff-links.is-reordering *{cursor:grabbing!important}.kgh-staff-links>a.is-dragging{pointer-events:none!important;cursor:grabbing!important}.kgh-staff-links>a,.kgh-staff-links>a:hover,.kgh-staff-links>a:focus,.kgh-staff-links>a:focus-visible{background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;opacity:1!important}.kgh-adjustment-card,.kgh-pay-card,.kgh-hub-card{opacity:1!important}.kgh-adjustment-card button,.kgh-adjustment-card button:hover,.kgh-adjustment-card button:focus{opacity:1!important;visibility:visible!important}
/* v0.5.17 — manager staff profiles, monthly compensation and swipe navigation */
.kgh-manager-tabs{display:flex;gap:6px;margin:0 0 12px;padding:5px;border:1px solid #dfe2e5;border-radius:13px;background:#fff;box-shadow:var(--kgh-shadow-soft)}
.kgh-manager-tabs a{flex:1;display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border-radius:9px;color:#171717!important;text-decoration:none!important;font-size:12px;font-weight:850;background:#fff!important}
.kgh-manager-tabs a:hover{background:#f3f4f5!important}.kgh-manager-tabs a.is-active{background:#111!important;color:#fff!important}
.kgh-staff-picker{display:grid;grid-template-columns:auto minmax(220px,420px);align-items:center;gap:10px;margin:14px 0;padding:12px;border:1px solid #e2e5e8;border-radius:12px;background:#f6f7f8}
.kgh-staff-picker label{font-size:11px;font-weight:850;color:#555;text-transform:uppercase}.kgh-staff-picker select,.kgh-staff-picker select:hover,.kgh-staff-picker select:focus{width:100%;min-height:42px;border:1px solid #d8dce0!important;border-radius:9px;background:#fff!important;color:#111!important;opacity:1!important}
.kgh-employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.kgh-employee-card,.kgh-employee-card:hover,.kgh-employee-card:focus{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:70px;padding:11px;border:1px solid #e0e3e6;border-radius:12px;background:#fff!important;color:#111!important;text-decoration:none!important;opacity:1!important}.kgh-employee-card:hover{border-color:#d71920!important;transform:translateY(-1px)}
.kgh-employee-card>img,.kgh-employee-card>span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;object-fit:cover;background:#171717;color:#fff;font-size:18px;font-weight:900}.kgh-employee-card div{display:grid;gap:3px;min-width:0}.kgh-employee-card strong{font-size:13px}.kgh-employee-card small{overflow:hidden;color:#747474;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.kgh-employee-card>b{color:#d71920;font-size:10px;white-space:nowrap}
.kgh-employee-name-row{display:flex!important;align-items:center;gap:7px;min-width:0}.kgh-duty-indicator{position:relative;display:inline-block;flex:0 0 auto;width:9px;height:9px;border-radius:50%;cursor:help;outline:none}.kgh-duty-indicator.is-on{background:#20a64a;box-shadow:0 0 0 3px #e3f5e9}.kgh-duty-indicator.is-off{background:#a8adb3;box-shadow:0 0 0 3px #eef0f2}.kgh-duty-indicator:after{content:attr(data-kgh-duty-tip);position:absolute;z-index:80;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);display:none;width:max-content;max-width:260px;padding:7px 9px;border-radius:8px;background:#17191b;color:#fff;font-size:10px;font-weight:700;line-height:1.3;white-space:normal;box-shadow:0 7px 18px rgba(0,0,0,.18);pointer-events:none}.kgh-duty-indicator:hover:after,.kgh-duty-indicator:focus:after,.kgh-duty-indicator.is-open:after{display:block}.kgh-duty-indicator.is-on:before{content:"";position:absolute;inset:-5px;border:1px solid rgba(32,166,74,.22);border-radius:50%}
.kgh-preview-notice{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding:10px 13px;border:1px solid #f0c8ca;border-radius:11px;background:#fff7f8;color:#541014}.kgh-preview-notice span{font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.kgh-preview-notice strong{font-size:12px}.kgh-preview-notice small{margin-left:auto;color:#7a5557;font-size:10px}.kgh-avatar-wrap.is-readonly{cursor:default!important}.is-manager-preview .kgh-staff-links>a[data-kgh-link-key]{cursor:pointer!important}
.kgh-month-swipe{touch-action:pan-y}.kgh-month-swipe.is-month-moving{opacity:.65!important;pointer-events:none}.kgh-month-nav{display:flex;align-items:center;gap:6px}.kgh-month-nav a,.kgh-month-nav a:hover,.kgh-month-nav a:focus{display:grid;place-items:center;width:32px;height:32px;border:1px solid #dce0e3;border-radius:9px;background:#fff!important;color:#111!important;text-decoration:none!important;font-size:21px;font-weight:800;line-height:1;opacity:1!important}.kgh-month-nav a:hover{border-color:#d71920!important;color:#d71920!important}.kgh-month-nav strong{min-width:105px;text-align:center;font-size:10px;text-transform:capitalize}
.kgh-month-statistics{margin-bottom:16px}.kgh-stat-period-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:0 2px}.kgh-stat-period-head>span{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.kgh-month-statistics .kgh-manager-metrics,.kgh-month-statistics .kgh-staff-metrics{margin-bottom:0}
.kgh-pay-head-right,.kgh-target-head-right{display:flex;align-items:center;justify-content:flex-end;gap:12px}.kgh-pay-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.kgh-pay-grid>div{position:relative}.kgh-pay-grid .kgh-percent-box b{font-size:12px;line-height:1.35}.kgh-edit-pencil,.kgh-edit-pencil:hover,.kgh-edit-pencil:focus{position:absolute;right:7px;top:7px;display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid #d9dde0;border-radius:8px;background:#fff!important;color:#d71920!important;font-size:15px;line-height:1;cursor:pointer;opacity:1!important}.kgh-edit-pencil:hover{border-color:#d71920!important}
.kgh-inline-editor{display:grid;gap:12px;margin-top:12px;padding:14px;border:1px solid #dfe3e6;border-radius:12px;background:#f7f8f9}.kgh-inline-editor[hidden]{display:none!important}.kgh-inline-editor>label,.kgh-percent-editor-grid label,.kgh-profit-grid label{display:grid;gap:6px;color:#555;font-size:10px;font-weight:850;text-transform:uppercase}.kgh-inline-editor>p{margin:0;color:#666;font-size:11px}.kgh-percent-editor-grid,.kgh-profit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.kgh-money-input{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;overflow:hidden;border:1px solid #d8dce0;border-radius:9px;background:#fff}.kgh-money-input input,.kgh-money-input input:hover,.kgh-money-input input:focus{width:100%;min-height:40px;margin:0;padding:8px 10px;border:0!important;background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;box-shadow:none!important}.kgh-money-input>b{display:grid;place-items:center;height:100%;background:#f0f2f4;color:#555;font-size:11px}.kgh-manager-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.kgh-manager-save-status{margin:0;color:#666;font-size:11px}.kgh-manager-save-status.is-ok{color:#18864b}.kgh-manager-save-status.is-error{color:#d71920}
.kgh-profit-manager{margin-top:14px}.kgh-profit-manager .kgh-card-head small,.kgh-staff-directory .kgh-card-head small{display:block;margin-top:4px;color:#707070;font-size:10px}.kgh-profit-manager form{display:grid;gap:12px;margin-top:14px}.kgh-year-history p.is-current{font-weight:850;color:#d71920}
@media(max-width:1000px){.kgh-pay-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.kgh-percent-editor-grid,.kgh-profit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.kgh-employee-grid{grid-template-columns:1fr}.kgh-staff-picker{grid-template-columns:1fr}.kgh-preview-notice{display:grid}.kgh-preview-notice small{margin-left:0}.kgh-pay-head-right,.kgh-target-head-right{align-items:flex-end;flex-direction:column;gap:7px}.kgh-pay-card>.kgh-card-head,.kgh-target-card>.kgh-card-head,.kgh-profit-manager>.kgh-card-head{align-items:flex-start}.kgh-month-nav strong{min-width:86px}.kgh-pay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-pay-grid .is-total{grid-column:auto}.kgh-percent-editor-grid,.kgh-profit-grid{grid-template-columns:1fr}.kgh-manager-form-actions .kgh-red-btn,.kgh-manager-form-actions .kgh-outline-btn{flex:1}.kgh-employee-card{grid-template-columns:42px minmax(0,1fr) auto}.kgh-employee-card>img,.kgh-employee-card>span{width:42px;height:42px}}

/* v0.5.18 — monthly turnovers and two separate percentage components */
.kgh-pay-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kgh-pay-grid>div{min-height:96px;align-content:start}.kgh-pay-grid .kgh-component-card{gap:7px;padding-right:42px}.kgh-component-percentages{display:block;color:#555!important;font-size:10px!important;font-weight:800!important;line-height:1.4;text-transform:none!important}.kgh-component-amount{display:block;margin-top:auto;color:#111;font-size:20px;line-height:1.1}.kgh-pay-grid .kgh-component-card.is-coming-soon{background:#f4f5f6}.kgh-coming-soon{margin:auto 0;color:#777!important;font-size:14px!important}.kgh-interest-editor-head{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:12px}.kgh-interest-editor-head>label,.kgh-setting-title{display:grid;gap:6px;color:#555;font-size:10px;font-weight:850;text-transform:uppercase}.kgh-interest-editor-head input[type="text"],.kgh-setting-title input,.kgh-interest-editor-head input[type="text"]:hover,.kgh-interest-editor-head input[type="text"]:focus,.kgh-setting-title input:hover,.kgh-setting-title input:focus{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d8dce0!important;border-radius:9px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important;box-shadow:none!important}.kgh-toggle-setting{display:flex!important;align-items:center;gap:8px;min-height:42px;padding:8px 11px;border:1px solid #d8dce0;border-radius:9px;background:#fff!important;color:#111!important;font-size:11px!important;font-weight:850!important;text-transform:none!important;cursor:pointer!important;opacity:1!important}.kgh-toggle-setting input[type="checkbox"]{appearance:auto!important;width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0!important;accent-color:#d71920;opacity:1!important}.kgh-toggle-setting span{color:#111!important;font-size:11px!important;text-transform:none!important}
.kgh-turnovers-manager>.kgh-card-head small{display:block;max-width:620px;margin-top:4px;color:#707070;font-size:10px}.kgh-turnovers-manager>form{display:grid;gap:14px;margin-top:14px}.kgh-future-component-settings{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;align-items:end;gap:10px;padding:13px;border:1px solid #e1e4e7;border-radius:12px;background:#f7f8f9}.kgh-future-component-settings>div{align-self:center;display:grid;gap:4px}.kgh-future-component-settings>div strong{font-size:12px}.kgh-future-component-settings>div small{color:#707070;font-size:10px;line-height:1.35}.kgh-turnover-grid{display:grid;border:1px solid #e0e3e6;border-radius:13px;background:#fff;overflow:hidden}.kgh-turnover-row{display:grid;grid-template-columns:minmax(130px,.75fr) repeat(2,minmax(170px,1fr));align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid #e8eaec;background:#fff}.kgh-turnover-row:last-child{border-bottom:0}.kgh-turnover-row>strong{font-size:12px}.kgh-turnover-row>label{display:grid;gap:5px}.kgh-turnover-row>label>span:first-child{display:none;color:#686868;font-size:9px;font-weight:850;text-transform:uppercase}.kgh-turnover-head{background:#f2f3f4}.kgh-turnover-head strong,.kgh-turnover-head>span{color:#555;font-size:9px;font-weight:900;text-transform:uppercase}.kgh-turnovers-manager input,.kgh-turnovers-manager input:hover,.kgh-turnovers-manager input:focus{opacity:1!important}.kgh-turnovers-manager button,.kgh-turnovers-manager button:hover,.kgh-turnovers-manager button:focus{opacity:1!important}
@media(max-width:850px){.kgh-future-component-settings{grid-template-columns:1fr 1fr}.kgh-future-component-settings>div{grid-column:1/-1}.kgh-turnover-row{grid-template-columns:minmax(110px,.65fr) repeat(2,minmax(145px,1fr))}}
@media(max-width:700px){.kgh-turnovers-manager>.kgh-card-head{align-items:flex-start}.kgh-turnover-head{display:none}.kgh-turnover-row{grid-template-columns:1fr 1fr;gap:9px;padding:13px}.kgh-turnover-row>strong{grid-column:1/-1}.kgh-turnover-row>label>span:first-child{display:block}.kgh-interest-editor-head{grid-template-columns:1fr}.kgh-manager-tabs a{padding:8px 6px;font-size:10px}}
@media(max-width:480px){.kgh-pay-grid{grid-template-columns:1fr}.kgh-pay-grid .is-total{grid-column:auto}.kgh-future-component-settings,.kgh-turnover-row{grid-template-columns:1fr}.kgh-turnover-row>strong{grid-column:auto}.kgh-manager-tabs{gap:3px;padding:4px}.kgh-manager-tabs a{min-height:38px;padding:7px 3px;font-size:9px}}

/* v0.5.19 — branch reporting cycles and historical calculations */
.kgh-report-cycle-settings{overflow:hidden;border:1px solid #e0e3e6;border-radius:12px;background:#fff}.kgh-report-cycle-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#f4f5f6;color:#111;font-size:11px;font-weight:900;cursor:pointer;list-style-position:inside}.kgh-report-cycle-settings>summary small{color:#777;font-size:9px;font-weight:750}.kgh-report-cycle-settings>div{display:grid;gap:11px;padding:13px}.kgh-report-cycle-settings>div>p{margin:0;color:#666;font-size:10px;line-height:1.45}.kgh-cycle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.kgh-cycle-grid>div{display:grid;grid-template-columns:minmax(0,1fr) 74px 74px;align-items:end;gap:7px;padding:10px;border:1px solid #e3e6e8;border-radius:10px;background:#f8f9fa}.kgh-cycle-grid>div>strong{align-self:center;font-size:11px}.kgh-cycle-grid label{display:grid;gap:4px}.kgh-cycle-grid label>span{color:#6d7177;font-size:8px;font-weight:850;text-transform:uppercase}.kgh-cycle-grid input,.kgh-cycle-grid input:hover,.kgh-cycle-grid input:focus{width:100%;min-height:38px;margin:0;padding:7px;border:1px solid #d8dce0!important;border-radius:8px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important;box-shadow:none!important}.kgh-report-range{display:block;margin-top:4px;color:#777;font-size:8.5px;font-weight:700;line-height:1.35}.kgh-report-detail{display:block;margin-top:3px;color:#777;font-size:9px;font-style:normal}.kgh-report-cycle-settings,.kgh-report-cycle-settings:hover,.kgh-report-cycle-settings:focus-within{background:#fff!important;opacity:1!important}
@media(max-width:1050px){.kgh-cycle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.kgh-cycle-grid{grid-template-columns:1fr}.kgh-cycle-grid>div{grid-template-columns:minmax(0,1fr) 70px 70px}.kgh-report-cycle-settings>summary{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:400px){.kgh-cycle-grid>div{grid-template-columns:1fr 1fr}.kgh-cycle-grid>div>strong{grid-column:1/-1}}

/* v0.5.20 — editable exact dates for every monthly branch report */
.kgh-turnover-row{grid-template-columns:minmax(125px,.65fr) minmax(250px,1.25fr) repeat(2,minmax(160px,1fr))}.kgh-report-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.kgh-report-date-fields label{display:grid;gap:4px}.kgh-report-date-fields label>span{color:#686868;font-size:8px;font-weight:850;text-transform:uppercase}.kgh-report-date-fields input,.kgh-report-date-fields input:hover,.kgh-report-date-fields input:focus{width:100%;min-height:40px;margin:0;padding:7px 8px;border:1px solid #d8dce0!important;border-radius:9px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;color-scheme:light;opacity:1!important;box-shadow:none!important}.kgh-turnover-head{grid-template-columns:minmax(125px,.65fr) minmax(250px,1.25fr) repeat(2,minmax(160px,1fr))}
@media(max-width:850px){.kgh-turnover-row,.kgh-turnover-head{grid-template-columns:minmax(110px,.55fr) minmax(220px,1.2fr) repeat(2,minmax(140px,1fr))}}
@media(max-width:700px){.kgh-turnover-row{grid-template-columns:1fr 1fr}.kgh-report-date-fields{grid-column:1/-1}.kgh-turnover-head{display:none}}
@media(max-width:480px){.kgh-turnover-row{grid-template-columns:1fr}.kgh-report-date-fields{grid-column:auto;grid-template-columns:1fr 1fr}}

/* v0.5.21 — visible report ranges and recurring salary payment dates */
.kgh-pay-date{display:block;margin-top:auto;color:#666!important;font-size:9px!important;font-weight:750;text-transform:none!important}.kgh-component-periods{display:grid!important;gap:2px;margin-top:2px;color:#686868!important;text-transform:none!important}.kgh-component-periods i{display:block;font-size:8.5px;font-style:normal;font-weight:700;line-height:1.35}.kgh-inline-editor>label>input,.kgh-inline-editor>label>input:hover,.kgh-inline-editor>label>input:focus{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d8dce0!important;border-radius:9px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important;box-shadow:none!important}
.kgh-payroll-manager{margin-top:14px}.kgh-payroll-manager .kgh-card-head small{display:block;max-width:700px;margin-top:4px;color:#707070;font-size:10px}.kgh-payroll-manager>form{display:grid;gap:13px;margin-top:14px}.kgh-payroll-grid{display:grid;border:1px solid #e0e3e6;border-radius:13px;background:#fff;overflow:hidden}.kgh-payroll-row{display:grid;grid-template-columns:minmax(180px,1.25fr) minmax(165px,1fr) minmax(145px,.8fr) minmax(120px,.7fr);align-items:center;gap:11px;padding:11px 13px;border-bottom:1px solid #e8eaec;background:#fff}.kgh-payroll-row:last-child{border-bottom:0}.kgh-payroll-head{background:#f2f3f4}.kgh-payroll-head span{color:#555;font-size:9px;font-weight:900;text-transform:uppercase}.kgh-payroll-row>div:first-child{display:grid;gap:3px}.kgh-payroll-row>div:first-child strong{font-size:12px}.kgh-payroll-row>div:first-child small{color:#777;font-size:9px}.kgh-payroll-row>label{display:grid;gap:5px}.kgh-payroll-row>label>span:first-child{display:none;color:#686868;font-size:9px;font-weight:850;text-transform:uppercase}.kgh-pay-day-input,.kgh-pay-day-input:hover,.kgh-pay-day-input:focus{width:100%;min-height:40px;padding:8px 10px;border:1px solid #d8dce0!important;border-radius:9px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important;box-shadow:none!important}.kgh-payroll-row output{font-size:12px;font-weight:850;color:#111}.kgh-payroll-manager input,.kgh-payroll-manager button,.kgh-payroll-manager output{opacity:1!important}
@media(max-width:800px){.kgh-payroll-row{grid-template-columns:minmax(150px,1fr) minmax(145px,1fr) minmax(125px,.8fr) minmax(105px,.7fr)}}
@media(max-width:700px){.kgh-payroll-head{display:none}.kgh-payroll-row{grid-template-columns:1fr 1fr;gap:9px;padding:13px}.kgh-payroll-row>div:first-child,.kgh-payroll-row>output{grid-column:1/-1}.kgh-payroll-row>label>span:first-child{display:block}.kgh-payroll-row>output{padding-top:2px;color:#d71920}}
@media(max-width:430px){.kgh-payroll-row{grid-template-columns:1fr}.kgh-payroll-row>div:first-child,.kgh-payroll-row>output{grid-column:auto}}

/* v0.5.22 — unified branch finance entry, totals and staff management */
.kgh-finance-entry-row{
  grid-template-columns:minmax(115px,.45fr) minmax(255px,.9fr) minmax(0,3fr) 68px!important;
  align-items:start!important;
}
.kgh-finance-entry-row>strong{padding-top:10px}
.kgh-finance-entry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.kgh-finance-entry-grid>label{display:grid;align-content:start;gap:5px;min-width:0}
.kgh-finance-entry-grid>label>span:first-child{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:20px;color:#62676c;font-size:8px;font-weight:900;line-height:1.25;text-transform:uppercase}
.kgh-finance-entry-grid .kgh-money-input{width:100%;background:#fff!important;opacity:1!important}
.kgh-unforeseen-field{padding:0;border:0;border-radius:0;background:transparent!important;transition:.16s ease}
.kgh-unforeseen-field>span:first-child{justify-content:flex-start!important;min-height:20px!important;color:#d71920!important;font-size:15px!important;line-height:1!important}
.kgh-unforeseen-field.is-excluded{background:transparent!important}.kgh-unforeseen-field.is-excluded .kgh-money-input{opacity:.52!important}
.kgh-future-component-settings{grid-template-columns:minmax(195px,.9fr) minmax(205px,1.2fr) auto auto auto!important}.kgh-global-minus-setting strong{color:#d71920;font-size:20px;line-height:1}.kgh-global-minus-setting span{white-space:nowrap}.kgh-finance-settings-save{align-self:end!important;display:flex!important;align-items:center!important;gap:7px!important}.kgh-finance-settings-save .kgh-manager-save-status{max-width:100px;font-size:9px}
.kgh-finance-row-action{display:grid;align-content:start;justify-items:stretch;gap:4px;padding-top:25px}.kgh-finance-row-action .kgh-manager-save-status{min-height:13px;text-align:center;font-size:8px;line-height:1.2}
.kgh-mini-save,.kgh-mini-save:hover,.kgh-mini-save:focus{min-height:34px!important;height:34px!important;padding:0 10px!important;border-radius:8px!important;background:#d71920!important;color:#fff!important;font-size:9px!important;line-height:1!important;opacity:1!important;box-shadow:none!important}.kgh-mini-save:disabled{opacity:.58!important;cursor:wait!important}

.kgh-finance-dashboard{margin-top:14px!important;overflow:visible!important}
.kgh-finance-dashboard>.kgh-card-head{margin-bottom:13px}.kgh-finance-dashboard>.kgh-card-head small{display:block;max-width:760px;margin-top:4px;color:#707070;font-size:10px;line-height:1.45}
.kgh-finance-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 13px}
.kgh-finance-totals>div{position:relative;display:grid;gap:7px;min-height:92px;padding:15px 16px;border:1px solid #dfe3e6;border-radius:14px;background:#f6f7f8!important;color:#111!important;opacity:1!important;overflow:hidden}
.kgh-finance-totals>div:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#73777c}
.kgh-finance-totals span{font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.kgh-finance-totals b{align-self:end;font-size:24px;line-height:1.05}
.kgh-finance-totals .is-income:before,.kgh-finance-totals .is-net-positive:before{background:#16844b}.kgh-finance-totals .is-expense:before,.kgh-finance-totals .is-net-negative:before{background:#d71920}
.kgh-finance-totals .is-net-positive{background:#f0faf5!important}.kgh-finance-totals .is-net-negative{background:#fff3f4!important}
.kgh-finance-branches{display:grid;gap:9px}
.kgh-finance-branch,.kgh-finance-branch:hover,.kgh-finance-branch:focus-within{border:1px solid #dfe3e6;border-radius:14px;background:#fff!important;color:#111!important;opacity:1!important;overflow:hidden;box-shadow:none!important}
.kgh-finance-branch>summary,.kgh-finance-branch>summary:hover,.kgh-finance-branch>summary:focus,.kgh-finance-branch[open]>summary{display:grid;grid-template-columns:minmax(185px,1.3fr) repeat(3,minmax(115px,.75fr)) 24px;align-items:center;gap:12px;min-height:76px;padding:12px 15px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;opacity:1!important;cursor:pointer!important;list-style:none!important;user-select:none}
.kgh-finance-branch>summary::-webkit-details-marker{display:none}.kgh-finance-branch>summary>span{display:grid;gap:4px;min-width:0}.kgh-finance-branch>summary>span:first-child strong{font-size:13px}.kgh-finance-branch>summary small{color:#777;font-size:8.5px;line-height:1.3}.kgh-finance-branch>summary b{font-size:13px;white-space:nowrap}.kgh-finance-branch>summary .is-positive b{color:#16844b}.kgh-finance-branch>summary .is-negative b{color:#d71920}.kgh-finance-branch>summary>i{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#f0f2f4;color:#111;font-size:16px;font-style:normal;transition:transform .16s ease}.kgh-finance-branch[open]>summary>i{transform:rotate(180deg)}
.kgh-finance-branch[open]>summary{border-bottom:1px solid #e5e8ea}.kgh-finance-branch.is-management>summary{background:#f8f9fa!important}
.kgh-finance-branch-body{display:grid;gap:16px;padding:15px;background:#f7f8f9!important}
.kgh-finance-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.kgh-finance-breakdown>section{padding:13px;border:1px solid #e0e3e6;border-radius:12px;background:#fff!important;color:#111!important;opacity:1!important}.kgh-finance-breakdown h3,.kgh-finance-staff>h3{margin:0 0 8px!important;color:#111!important;font-size:14px!important}.kgh-finance-breakdown p{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:7px 0;border-bottom:1px solid #eceef0;color:#45494d;font-size:10.5px}.kgh-finance-breakdown p:last-child{border-bottom:0}.kgh-finance-breakdown p b{color:#111;font-size:11px;white-space:nowrap}.kgh-finance-breakdown p.is-excluded{opacity:.48}.kgh-finance-breakdown p.is-total{margin-top:3px;padding-top:10px;border-top:1px solid #ccd1d5;border-bottom:0;color:#111;font-weight:900}.kgh-finance-breakdown p.is-total b{font-size:13px}
.kgh-finance-staff{min-width:0}.kgh-branch-staff-form{display:grid;gap:11px}.kgh-finance-staff-grid{display:grid;border:1px solid #e0e3e6;border-radius:12px;background:#fff!important;overflow:hidden}
.kgh-finance-staff-row{display:grid;grid-template-columns:minmax(135px,1.05fr) minmax(105px,.7fr) minmax(68px,.38fr) minmax(100px,.65fr) minmax(108px,.7fr) minmax(100px,.65fr) minmax(90px,.56fr) minmax(90px,.56fr);align-items:center;gap:8px;padding:10px 11px;border-bottom:1px solid #e8eaec;background:#fff!important;color:#111!important;opacity:1!important}.kgh-finance-staff-row:last-child{border-bottom:0}.kgh-branch-staff-form.is-management .kgh-finance-staff-row{grid-template-columns:minmax(180px,1.2fr) minmax(145px,.85fr) minmax(100px,.55fr) minmax(120px,.65fr) minmax(110px,.6fr)}
.kgh-finance-staff-head{background:#f1f3f4!important}.kgh-finance-staff-head>span{color:#5e6368;font-size:8px;font-weight:900;text-transform:uppercase}.kgh-finance-staff-row>div:first-child{display:grid;gap:3px;min-width:0}.kgh-finance-staff-row>div:first-child strong{overflow:hidden;font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}.kgh-finance-staff-row>div:first-child small{color:#777;font-size:8.5px}.kgh-finance-staff-row>label{display:grid;gap:4px;min-width:0}.kgh-finance-staff-row>label>span:first-child{display:none;color:#686d71;font-size:8px;font-weight:900;text-transform:uppercase}.kgh-finance-staff-row label>small{min-height:12px;color:#555;font-size:8.5px;font-weight:800}.kgh-finance-staff-row .kgh-pay-day-input,.kgh-finance-staff-row .kgh-pay-day-input:hover,.kgh-finance-staff-row .kgh-pay-day-input:focus{min-height:40px;background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important}.kgh-finance-staff-row .kgh-money-input,.kgh-finance-staff-row input{opacity:1!important}.kgh-not-applicable{color:#92969a;font-size:9px;font-weight:750}.kgh-adjustment-cost{display:grid;gap:3px}.kgh-adjustment-cost>b{font-size:10.5px;color:#111}.kgh-adjustment-cost>small{color:#777;font-size:8px;white-space:nowrap}.kgh-staff-cost-total{display:block;padding:8px 7px;border-radius:8px;background:#111;color:#fff;font-size:11px;text-align:center;white-space:nowrap}
.kgh-branch-staff-form .kgh-manager-form-actions{padding-top:1px}.kgh-branch-staff-form button,.kgh-branch-staff-form button:hover,.kgh-branch-staff-form button:focus{opacity:1!important}

@media(max-width:1050px){
  .kgh-finance-entry-row{grid-template-columns:minmax(110px,.45fr) minmax(220px,.9fr) minmax(0,1.65fr) 68px!important}.kgh-finance-entry-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .kgh-future-component-settings{grid-template-columns:1fr 1fr auto!important}.kgh-finance-settings-save{grid-column:1/-1}
  .kgh-finance-staff-row{grid-template-columns:minmax(120px,1fr) minmax(100px,.72fr) 64px minmax(96px,.66fr) minmax(102px,.7fr) minmax(96px,.66fr) 84px 84px}
}
@media(max-width:800px){
  .kgh-finance-entry-row{grid-template-columns:minmax(105px,.45fr) minmax(205px,1fr) minmax(0,1.3fr) 66px!important}.kgh-finance-entry-grid{grid-template-columns:repeat(2,minmax(115px,1fr))}
  .kgh-finance-branch>summary,.kgh-finance-branch>summary:hover,.kgh-finance-branch>summary:focus,.kgh-finance-branch[open]>summary{grid-template-columns:minmax(145px,1.2fr) repeat(3,minmax(90px,.75fr)) 22px;gap:8px;padding:11px}.kgh-finance-branch>summary b{font-size:11px}
  .kgh-finance-staff-head{display:none}.kgh-finance-staff-row,.kgh-branch-staff-form.is-management .kgh-finance-staff-row{grid-template-columns:1fr 1fr;align-items:start;gap:9px;padding:12px}.kgh-finance-staff-row>div:first-child{grid-column:1/-1;padding-bottom:2px}.kgh-finance-staff-row>label>span:first-child{display:block}.kgh-finance-staff-row>.kgh-not-applicable{align-self:center}.kgh-finance-staff-row.is-commission-only>.kgh-not-applicable:nth-of-type(2){display:none}
}
@media(max-width:700px){
  .kgh-finance-entry-row{grid-template-columns:1fr 1fr!important}.kgh-finance-entry-row>strong{grid-column:1/-1;padding-top:0}.kgh-finance-entry-row>.kgh-report-date-fields{grid-column:1/-1}.kgh-finance-entry-grid{grid-column:1/-1;grid-template-columns:1fr 1fr}
  .kgh-finance-row-action{grid-column:1/-1;justify-self:end;width:92px;padding-top:0}.kgh-future-component-settings{grid-template-columns:1fr 1fr!important}.kgh-finance-settings-save{grid-column:1/-1}.kgh-finance-settings-save .kgh-manager-save-status{max-width:none}
  .kgh-finance-totals{grid-template-columns:1fr 1fr}.kgh-finance-totals>div:last-child{grid-column:1/-1}.kgh-finance-totals>div{min-height:78px;padding:13px}.kgh-finance-totals b{font-size:20px}
  .kgh-finance-branch>summary,.kgh-finance-branch>summary:hover,.kgh-finance-branch>summary:focus,.kgh-finance-branch[open]>summary{grid-template-columns:repeat(3,minmax(0,1fr)) 22px;gap:8px}.kgh-finance-branch>summary>span:first-child{grid-column:1/4}.kgh-finance-branch>summary>i{grid-column:4;grid-row:1}.kgh-finance-branch>summary>span:nth-child(2){grid-column:1}.kgh-finance-branch>summary>span:nth-child(3){grid-column:2}.kgh-finance-branch>summary>span:nth-child(4){grid-column:3}.kgh-finance-branch>summary>span:nth-child(2),.kgh-finance-branch>summary>span:nth-child(3),.kgh-finance-branch>summary>span:nth-child(4){grid-row:2}
  .kgh-finance-breakdown{grid-template-columns:1fr}.kgh-finance-branch-body{padding:11px}.kgh-finance-dashboard>.kgh-card-head{align-items:flex-start}
}
@media(max-width:480px){
  .kgh-finance-entry-row{grid-template-columns:1fr!important}.kgh-finance-entry-row>strong,.kgh-finance-entry-row>.kgh-report-date-fields,.kgh-finance-entry-grid,.kgh-finance-row-action{grid-column:auto}.kgh-finance-entry-grid{grid-template-columns:1fr}.kgh-finance-entry-grid>label>span:first-child{font-size:8.5px}.kgh-finance-row-action{justify-self:stretch;width:auto}.kgh-future-component-settings{grid-template-columns:1fr!important}
  .kgh-finance-totals{grid-template-columns:1fr}.kgh-finance-totals>div:last-child{grid-column:auto}
  .kgh-finance-branch>summary,.kgh-finance-branch>summary:hover,.kgh-finance-branch>summary:focus,.kgh-finance-branch[open]>summary{grid-template-columns:repeat(3,minmax(0,1fr)) 22px;align-items:start}.kgh-finance-branch>summary>span:first-child{grid-column:1/4}.kgh-finance-branch>summary>i{grid-column:4}.kgh-finance-branch>summary>span:nth-child(2){grid-column:1}.kgh-finance-branch>summary>span:nth-child(3){grid-column:2}.kgh-finance-branch>summary>span:nth-child(4){grid-column:3}.kgh-finance-branch>summary b{font-size:10.5px}
  .kgh-finance-staff-row,.kgh-branch-staff-form.is-management .kgh-finance-staff-row{grid-template-columns:1fr}.kgh-finance-staff-row>div:first-child{grid-column:auto}.kgh-finance-staff-row.is-commission-only>.kgh-not-applicable{display:none}.kgh-finance-breakdown p{font-size:9.5px}
}

/* v0.5.25 — branch fines, equal distribution and reversible fine history */
.kgh-adjustment-card>.kgh-card-head{align-items:center}.kgh-group-adjustment-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.kgh-group-fine-toggle,.kgh-group-fine-toggle:hover,.kgh-group-fine-toggle:focus{min-height:36px!important;height:36px!important;padding:0 11px!important;border:1px solid #d71920!important;border-radius:9px!important;background:#fff!important;color:#d71920!important;font-size:9px!important;font-weight:900!important;opacity:1!important}
.kgh-group-fine-form{grid-template-columns:1fr 1fr;gap:10px!important;margin-top:14px;padding:13px;border:1px solid #edc8ca;border-radius:12px;background:#fff7f8!important;color:#111!important;opacity:1!important}.kgh-group-fine-form.is-bonus{border-color:#bcdccb;background:#f5fbf7!important}.kgh-group-fine-head,.kgh-group-fine-people,.kgh-group-fine-form>label:last-of-type,.kgh-group-fine-form>.kgh-manager-form-actions,.kgh-group-fine-form>.kgh-adjustment-status{grid-column:1/-1}.kgh-group-fine-head{display:grid;gap:3px}.kgh-group-fine-head strong{font-size:13px}.kgh-group-fine-head small{color:#777;font-size:9px;line-height:1.4}.kgh-group-fine-people{display:grid;gap:7px}.kgh-group-fine-people>span{color:#666;font-size:10px;font-weight:800;text-transform:uppercase}.kgh-group-fine-people>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.kgh-group-fine-people>.kgh-group-fine-people-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}.kgh-group-fine-people-head>span{color:#666;font-size:10px;font-weight:800;text-transform:uppercase}.kgh-group-fine-people-head button,.kgh-group-fine-people-head button:hover,.kgh-group-fine-people-head button:focus{min-height:29px!important;padding:4px 9px!important;border:1px solid #d8dce0!important;border-radius:8px!important;background:#fff!important;color:#111!important;font-size:9px!important;font-weight:850!important;opacity:1!important}.kgh-group-fine-people label,.kgh-group-fine-people label:hover{display:flex!important;align-items:center!important;gap:8px!important;min-height:39px!important;padding:8px 9px!important;border:1px solid #dfe2e5!important;border-radius:9px!important;background:#fff!important;color:#111!important;font-size:10px!important;font-weight:800!important;text-transform:none!important;opacity:1!important;cursor:pointer!important}.kgh-group-fine-people label[hidden]{display:none!important}.kgh-group-fine-people input[type="checkbox"]{appearance:auto!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;padding:0!important;accent-color:#d71920;opacity:1!important}.kgh-group-fine-people p{margin:0;padding:8px 10px;border-radius:8px;background:#111;color:#fff;font-size:10px;font-weight:850}
.kgh-fine-admin-list{display:grid;gap:7px;margin-top:15px;padding-top:13px;border-top:1px solid #e3e6e8}.kgh-fine-admin-list>h3{margin:0 0 2px!important;color:#111!important;font-size:14px!important}.kgh-fine-admin-list>article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;border:1px solid #e1e4e7;border-radius:10px;background:#fff!important;color:#111!important;opacity:1!important}.kgh-fine-admin-list>article>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;min-width:0}.kgh-fine-admin-list>article>div:first-child strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.kgh-fine-admin-list>article>div:first-child span{color:#d71920;font-size:11px;font-weight:900;white-space:nowrap}.kgh-fine-admin-list>article>div:first-child small{grid-column:1/-1;overflow:hidden;color:#72767a;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.kgh-fine-row-actions{display:flex;gap:5px}.kgh-fine-row-actions button,.kgh-fine-row-actions button:hover,.kgh-fine-row-actions button:focus{min-height:30px!important;padding:0 8px!important;border:1px solid #d8dce0!important;border-radius:7px!important;background:#f4f5f6!important;color:#111!important;font-size:8.5px!important;font-weight:850!important;opacity:1!important}.kgh-fine-row-actions button:last-child{border-color:#e8b9bb!important;color:#b31219!important}.kgh-fine-admin-list article>form{grid-column:1/-1;grid-template-columns:110px minmax(0,1fr);gap:8px!important;padding-top:8px;border-top:1px solid #eceef0}.kgh-fine-admin-list article>form>div,.kgh-fine-admin-list article>form>p{grid-column:1/-1}.kgh-fine-admin-list article>form>div{display:flex;gap:6px}.kgh-fine-admin-list article.is-cancelled{opacity:.52!important}.kgh-fine-admin-list article.is-cancelled>b{padding:5px 7px;border-radius:7px;background:#eceef0;color:#666;font-size:8px;text-transform:uppercase}
.kgh-fine-limit-modal{position:fixed;z-index:1000000;inset:0;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.74)!important;opacity:1!important;cursor:pointer}.kgh-fine-limit-modal>div{position:relative;display:grid;justify-items:center;gap:8px;width:min(420px,calc(100vw - 36px));padding:34px 24px 28px;border:2px solid #d71920;border-radius:18px;background:#fff!important;color:#111!important;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.45);cursor:default}.kgh-fine-limit-modal button,.kgh-fine-limit-modal button:hover,.kgh-fine-limit-modal button:focus{position:absolute;right:10px;top:8px;display:grid;place-items:center;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#f0f1f2!important;color:#111!important;font-size:22px!important;line-height:1!important;opacity:1!important;cursor:pointer!important}.kgh-fine-limit-modal strong{color:#d71920;font-size:31px;line-height:1.1}.kgh-fine-limit-modal span{color:#555;font-size:12px;font-weight:750}
@media(max-width:700px){.kgh-adjustment-card>.kgh-card-head{align-items:flex-start;flex-direction:column}.kgh-group-adjustment-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.kgh-group-fine-toggle{width:100%}.kgh-group-fine-form{grid-template-columns:1fr}.kgh-group-fine-head,.kgh-group-fine-people,.kgh-group-fine-form>label:last-of-type,.kgh-group-fine-form>.kgh-manager-form-actions,.kgh-group-fine-form>.kgh-adjustment-status{grid-column:auto}.kgh-group-fine-people>div{grid-template-columns:1fr}.kgh-group-fine-people>.kgh-group-fine-people-head{display:flex!important}.kgh-fine-admin-list>article{grid-template-columns:1fr}.kgh-fine-row-actions{justify-content:flex-start}.kgh-fine-admin-list article>form{grid-template-columns:1fr}.kgh-fine-limit-modal strong{font-size:25px}}

html.kgh-modal-open,html.kgh-lightbox-open{overflow:hidden!important}
[hidden]{display:none!important}

/* =========================================================
   HEADER ACCOUNT ICON
   ========================================================= */
.kgh-menu-account-item{display:flex!important;align-items:center!important;justify-content:center!important;list-style:none!important;margin:0!important;padding:0!important}
.kgh-account-btn{
  position:relative!important;display:inline-grid!important;place-items:center!important;
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  margin:0 0 0 7px!important;padding:0!important;border:0!important;border-radius:10px!important;
  background:transparent!important;box-shadow:none!important;text-decoration:none!important;line-height:1!important;
  overflow:visible!important;vertical-align:middle!important;transform:none!important;
  transition:background .18s ease,transform .18s ease!important;
}
.kgh-account-btn:hover,.kgh-account-btn:focus-visible{background:rgba(255,255,255,.075)!important;transform:translateY(-1px)!important;outline:none!important}
.kgh-account-btn svg{display:block!important;width:30px!important;height:30px!important;fill:var(--kgh-red)!important;stroke:#fff!important;stroke-width:1.25!important;stroke-linejoin:round!important;paint-order:stroke fill!important;filter:drop-shadow(0 1px 1px rgba(0,0,0,.18))!important;pointer-events:none!important}
.kgh-account-notice{
  position:absolute;right:2px;top:2px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;background:#fff;color:var(--kgh-red);border:2px solid var(--kgh-red);font:800 10px/1 Arial,sans-serif;
  box-shadow:0 2px 8px rgba(0,0,0,.18);z-index:2
}

/* =========================================================
   SHARED BUTTONS / INPUTS
   ========================================================= */
.kgh-red-btn,.kgh-outline-btn,.kgh-install-btn{
  appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:44px!important;padding:0 17px!important;border-radius:11px!important;font:800 13px/1 inherit!important;
  text-decoration:none!important;cursor:pointer!important;box-shadow:none!important;transition:.18s ease!important;white-space:nowrap!important
}
.kgh-red-btn{border:1px solid var(--kgh-red)!important;background:var(--kgh-red)!important;color:#fff!important}
.kgh-red-btn:hover,.kgh-red-btn:focus-visible{background:var(--kgh-red-dark)!important;border-color:var(--kgh-red-dark)!important;color:#fff!important;transform:translateY(-1px)}
.kgh-outline-btn,.kgh-install-btn{border:1.4px solid var(--kgh-ink)!important;background:#fff!important;color:var(--kgh-ink)!important}
.kgh-outline-btn:hover,.kgh-install-btn:hover{background:var(--kgh-soft)!important;color:#000!important}
.kgh-install-btn svg{width:17px;height:17px;fill:currentColor}
.kgh-push-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;cursor:pointer!important;white-space:nowrap}
.kgh-push-btn>b{font:inherit;font-weight:800}.kgh-push-btn>span{font-size:15px;line-height:1}
.kgh-push-btn.is-on{border-color:#13843c!important;background:#eaf8ef!important;color:#096b2c!important}
.kgh-push-btn.is-busy{opacity:.72;cursor:wait!important}.kgh-push-btn.is-unavailable{border-color:#b8bcc1!important;background:#f2f3f4!important;color:#666!important}
.kgh-overline{display:block;color:var(--kgh-red);font-size:10px;font-weight:900;letter-spacing:.15em;line-height:1.2;text-transform:uppercase}
.kgh-muted{color:var(--kgh-muted)!important}

/* =========================================================
   AUTH / REGISTRATION
   ========================================================= */
.kgh-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:18px;font-family:inherit}
.kgh-modal.is-open{display:flex}
.kgh-modal-backdrop{position:absolute;inset:0;background:rgba(5,6,8,.62);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.kgh-auth-card{
  position:relative;z-index:1;width:min(100%,430px);max-height:calc(100dvh - 36px);overflow:auto;padding:30px 28px 25px;
  border:1px solid rgba(0,0,0,.13);border-radius:22px;background:#fff;color:var(--kgh-ink);box-shadow:0 24px 70px rgba(0,0,0,.28)
}
.kgh-x{
  position:absolute!important;right:14px!important;top:14px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  padding:0!important;margin:0!important;border:1px solid #d6d9dd!important;border-radius:50%!important;background:#fff!important;color:#111!important;
  display:grid!important;place-items:center!important;box-shadow:none!important;cursor:pointer!important;z-index:3!important
}
.kgh-x:hover{background:#f1f2f3!important;border-color:#111!important}.kgh-x svg{display:block;width:18px;height:18px;fill:currentColor}
.kgh-brand{margin:0 48px 8px 0;color:var(--kgh-red);font-size:10px;font-weight:900;letter-spacing:.14em}
.kgh-auth-card h2{margin:0 45px 6px 0!important;font-size:30px!important;line-height:1.08!important;letter-spacing:-.02em!important;color:#111!important}
.kgh-auth-card h3{margin:7px 0 5px!important;font-size:22px!important;color:#111!important}
.kgh-auth-card>p{margin:0 0 20px!important;font-size:13px!important;line-height:1.55!important}
.kgh-auth-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;margin:0 0 18px;border:1px solid #d7dadd;border-radius:12px;background:#f2f3f4}
.kgh-auth-tabs.is-hidden{display:none}.kgh-auth-tabs button{height:40px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#5e6268!important;font:800 13px/1 inherit!important;box-shadow:none!important;cursor:pointer!important}
.kgh-auth-tabs button.is-active{background:#fff!important;color:#111!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important}
.kgh-google-wrap{min-height:42px;display:flex;justify-content:center;margin:0 0 13px}.kgh-google-wrap.is-hidden,.kgh-or.is-hidden{display:none!important}
.kgh-auth-pane>.kgh-google-wrap{margin:0}.kgh-auth-pane>.kgh-or{margin:0 0 2px}
.kgh-or{display:flex;align-items:center;gap:10px;margin:4px 0 15px;color:#969a9f;font-size:10px;font-weight:800}.kgh-or:before,.kgh-or:after{content:"";height:1px;background:#e0e2e5;flex:1}.kgh-or span{white-space:nowrap}
.kgh-auth-pane{display:none}.kgh-auth-pane.is-active{display:grid;gap:13px}
.kgh-auth-pane label,.kgh-profile-form label{display:grid;gap:6px;color:#191a1c;font-size:11px;font-weight:850;line-height:1.3}
.kgh-auth-pane input,.kgh-profile-form input{
  appearance:none!important;width:100%!important;height:48px!important;margin:0!important;padding:0 13px!important;border:1.5px solid #111!important;border-radius:10px!important;
  background:#f2f3f4!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;
  font:600 14px/1 inherit!important;outline:none!important;box-shadow:none!important;opacity:1!important
}
.kgh-auth-pane input:focus,.kgh-profile-form input:focus{background:#fff!important;box-shadow:0 0 0 3px rgba(217,31,38,.10)!important}
.kgh-auth-pane input:disabled,.kgh-profile-form input:disabled{background:#eceeef!important;color:#777!important;-webkit-text-fill-color:#777!important;cursor:not-allowed}
.kgh-password-field{position:relative}.kgh-password-field input{padding-right:48px!important}.kgh-password-toggle{position:absolute!important;right:5px!important;top:5px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#555!important;box-shadow:none!important;display:grid!important;place-items:center!important;cursor:pointer!important}.kgh-password-toggle:hover{background:#e5e7e9!important;color:#111!important}.kgh-password-toggle svg{width:19px;height:19px;fill:currentColor}.kgh-password-toggle.is-visible{color:var(--kgh-red)!important}
.kgh-auth-pane small{font-size:10px;color:#777;font-weight:600}.kgh-login-help{display:flex;justify-content:flex-end;margin-top:-4px}.kgh-link-btn,.kgh-inline-back,.kgh-text-btn{appearance:none!important;border:0!important;background:transparent!important;color:#111!important;box-shadow:none!important;padding:2px 0!important;margin:0!important;font:800 11px/1.3 inherit!important;text-decoration:underline!important;cursor:pointer!important}.kgh-link-btn:hover,.kgh-inline-back:hover,.kgh-text-btn:hover{color:var(--kgh-red)!important}.kgh-inline-back{justify-self:start;margin-bottom:4px!important;text-decoration:none!important}
.kgh-auth-consent{display:flex!important;grid-template-columns:none!important;align-items:flex-start!important;gap:9px!important;padding:10px 11px;border:1px solid #d9dcdf;border-radius:10px;background:#f6f7f8;font-size:10.5px!important;font-weight:650!important;line-height:1.5!important}.kgh-auth-consent input[type="checkbox"]{appearance:auto!important;flex:0 0 auto!important;width:17px!important;height:17px!important;min-width:17px!important;margin:1px 0 0!important;padding:0!important;border:1px solid #111!important;border-radius:3px!important;accent-color:var(--kgh-red)!important}.kgh-auth-consent span{display:block}.kgh-auth-consent a,.kgh-auth-legal-note a{color:#111!important;font-weight:800;text-decoration:underline!important}.kgh-auth-legal-note{margin:0!important;color:#73777d;font-size:9.5px!important;line-height:1.45!important;text-align:center}
.kgh-code{font-size:22px!important;font-weight:900!important;letter-spacing:.26em;text-align:center}
.kgh-auth-msg{min-height:16px;margin-top:12px;font-size:11px;font-weight:750;line-height:1.45}.kgh-auth-msg.is-error{color:#b4161c}.kgh-auth-msg.is-ok{color:#147a3c}

/* =========================================================
   CUSTOMER HUB
   ========================================================= */
.kgh-hub{--r:var(--kgh-red);width:min(100%,1240px);margin:0 auto;padding:30px 16px 44px;color:var(--kgh-ink);font-family:inherit;box-sizing:border-box}.kgh-hub *{box-sizing:border-box}
.kgh-hub-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 22px;border-bottom:1px solid #e3e5e8}
.kgh-profile-mini{display:flex;align-items:center;gap:15px;min-width:0}.kgh-avatar-wrap{position:relative!important;display:grid!important;place-items:center!important;width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important;margin:0!important;padding:0!important;border:1px solid #d8dbe0!important;border-radius:50%!important;background:#161719!important;color:#fff!important;overflow:visible!important;box-shadow:0 7px 19px rgba(0,0,0,.10)!important;cursor:pointer!important}.kgh-avatar-wrap img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.kgh-avatar-wrap>span{font-size:25px;font-weight:900}.kgh-avatar-edit{position:absolute;right:-1px;bottom:0;display:grid;place-items:center;width:22px;height:22px;border:2px solid #fff;border-radius:50%;background:var(--kgh-red);color:#fff;font:900 14px/1 Arial,sans-serif;font-style:normal}
.kgh-profile-copy{min-width:0}.kgh-profile-copy h1{margin:4px 0 2px!important;color:#111!important;font-size:29px!important;line-height:1.08!important;letter-spacing:-.02em!important}.kgh-profile-copy p{margin:0!important;color:#70747a!important;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:450px}
.kgh-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.kgh-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:20px 0 14px}.kgh-stat-card{
  appearance:none!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) 22px!important;align-items:center!important;gap:13px!important;width:100%!important;min-height:116px!important;margin:0!important;padding:17px!important;
  border:1px solid #dfe2e6!important;border-radius:17px!important;background:#fff!important;color:#111!important;text-decoration:none!important;text-align:left!important;box-shadow:var(--kgh-shadow-soft)!important;cursor:pointer!important;transition:.18s ease!important
}
.kgh-stat-card:hover{border-color:#bfc3c8!important;transform:translateY(-2px)!important;box-shadow:0 12px 30px rgba(0,0,0,.09)!important}.kgh-stat-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#f0f1f2;color:#111}.kgh-stat-icon svg{width:24px;height:24px;fill:currentColor}.kgh-stat-copy{display:grid;gap:3px;min-width:0}.kgh-stat-copy strong{font-size:14px;line-height:1.2}.kgh-stat-copy b{font-size:18px;line-height:1.2;color:#111}.kgh-stat-copy small{font-size:10px;color:#777b80;line-height:1.35}.kgh-stat-arrow{font-size:28px;font-weight:300;color:#999;text-align:right}
.kgh-hub-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:14px}.kgh-hub-card{background:#fff;border:1px solid #dfe2e6;border-radius:18px;padding:20px;box-shadow:var(--kgh-shadow-soft)}.kgh-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.kgh-card-head h2{margin:4px 0 0!important;color:#111!important;font-size:22px!important;line-height:1.15!important}.kgh-profile-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f1f2f3}.kgh-profile-icon svg{width:20px;height:20px;fill:#111}
.kgh-timeline{display:grid}.kgh-timeline-row{appearance:none!important;display:grid!important;grid-template-columns:12px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;padding:12px 2px!important;border:0!important;border-bottom:1px solid #eceef0!important;border-radius:0!important;background:transparent!important;color:#111!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important}.kgh-timeline-row:last-child{border-bottom:0!important}.kgh-timeline-row:hover .kgh-timeline-copy strong{color:var(--kgh-red)}.kgh-dot{display:block;width:8px;height:8px;border-radius:50%;background:#b7bbc0}.kgh-dot.is-open{background:var(--kgh-red);box-shadow:0 0 0 4px rgba(217,31,38,.08)}.kgh-timeline-copy{display:grid;gap:3px;min-width:0}.kgh-timeline-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-timeline-copy small{font-size:9.5px;color:#777b80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-timeline-row time{font-size:9.5px;color:#8b8f94}.kgh-empty-line{padding:22px 4px;color:#777;font-size:12px}
.kgh-profile-form{display:grid;gap:13px}.kgh-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kgh-form-msg{min-height:14px;font-size:10px;font-weight:800}.kgh-form-msg.is-ok{color:#147a3c}.kgh-form-msg.is-error{color:#b4161c}
.kgh-orders-card{margin-top:14px}.kgh-orders-list{display:grid}.kgh-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:12px 3px;border-top:1px solid #eceef0}.kgh-order-row:first-child{border-top:0}.kgh-order-row>div{display:grid;gap:2px}.kgh-order-row strong{font-size:12px}.kgh-order-row small{font-size:9.5px;color:#777}.kgh-order-row>b{font-size:12px}.kgh-order-status{padding:6px 9px;border-radius:999px;background:#f0f1f2;font-size:9.5px;font-weight:850;color:#333}
.kgh-hub-guest{padding-top:40px}.kgh-guest-card{max-width:660px;margin:0 auto;text-align:center;padding:36px 28px}.kgh-guest-card h1{margin:7px 0 8px!important;font-size:32px!important;color:#111!important}.kgh-guest-card p{margin:0 auto 20px!important;max-width:520px;color:#686d73!important;font-size:14px!important;line-height:1.65!important}

/* PWA install help */
.kgh-install-help{position:fixed;inset:0;z-index:100010;display:flex;align-items:center;justify-content:center;padding:18px}.kgh-install-backdrop{position:absolute;inset:0;background:rgba(5,6,8,.62);backdrop-filter:blur(5px)}.kgh-install-card{position:relative;z-index:1;width:min(100%,430px);padding:28px;border-radius:22px;background:#fff;border:1px solid rgba(0,0,0,.13);box-shadow:0 24px 70px rgba(0,0,0,.28);color:#111}.kgh-install-mark{display:grid;place-items:center;width:54px;height:54px;margin:0 0 14px;border-radius:14px;background:var(--kgh-red);color:#fff;font-size:18px;font-weight:900}.kgh-install-card h2{margin:5px 44px 8px 0!important;font-size:25px!important;color:#111!important}.kgh-install-card>p{font-size:12px;line-height:1.6;color:#676b71}.kgh-install-steps{display:grid;gap:8px;margin:16px 0}.kgh-install-steps>div{display:grid;gap:3px;padding:11px 12px;border:1px solid #e0e2e5;border-radius:11px;background:#f5f6f7}.kgh-install-steps b{font-size:11px}.kgh-install-steps span{font-size:10px;line-height:1.5;color:#666}

/* =========================================================
   CHAT LAUNCHER
   ========================================================= */
.kgh-chat-launch{position:fixed;right:22px;bottom:22px;z-index:99992;width:66px;height:66px;touch-action:none;user-select:none;-webkit-user-select:none}.kgh-chat-launch[hidden]{display:none!important}.kgh-chat-bubble{
  appearance:none!important;display:grid!important;place-items:center!important;width:66px!important;height:66px!important;min-width:66px!important;min-height:66px!important;
  margin:0!important;padding:0!important;border:2px solid #fff!important;border-radius:50%!important;background:var(--kgh-red)!important;color:#fff!important;
  box-shadow:0 12px 30px rgba(0,0,0,.23)!important;cursor:grab!important;transition:transform .18s ease,background .18s ease!important
}
.kgh-chat-bubble:hover{background:var(--kgh-red-dark)!important;transform:translateY(-2px)}.kgh-chat-launch.is-dragging .kgh-chat-bubble{cursor:grabbing!important;transform:scale(1.03)}.kgh-chat-bubble svg{display:block;width:28px;height:28px;fill:#fff;pointer-events:none}.kgh-badge{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;border:2px solid #fff;background:#111;color:#fff;font:800 10px/1 Arial,sans-serif;box-shadow:0 3px 8px rgba(0,0,0,.20)}
.kgh-chat-launch-close{position:absolute!important;right:-5px!important;top:-5px!important;display:grid!important;place-items:center!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;margin:0!important;padding:0!important;border:2px solid #fff!important;border-radius:50%!important;background:#111!important;color:#fff!important;box-shadow:0 3px 10px rgba(0,0,0,.20)!important;cursor:pointer!important;opacity:0;transform:scale(.82);transition:.15s ease;z-index:3}.kgh-chat-launch:hover .kgh-chat-launch-close,.kgh-chat-launch:focus-within .kgh-chat-launch-close{opacity:1;transform:scale(1)}.kgh-chat-launch-close svg{display:block;width:13px;height:13px;fill:currentColor}

/* =========================================================
   CHAT WINDOW
   ========================================================= */
.kgh-chat-window{
  position:fixed;right:20px;bottom:20px;z-index:99995;display:flex;flex-direction:column;width:min(410px,calc(100vw - 28px));height:min(690px,calc(100dvh - 42px));
  border:1px solid #cfd2d6;border-radius:19px;background:#fff;color:#111;box-shadow:0 24px 70px rgba(0,0,0,.26);overflow:hidden;font-family:inherit;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px) scale(.985);transform-origin:bottom right;transition:opacity .18s ease,transform .18s ease,visibility .18s ease
}
.kgh-chat-window.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none}.kgh-chat-window *{box-sizing:border-box}
.kgh-chat-head{flex:0 0 auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:67px;padding:10px 11px 10px 14px;border-bottom:1px solid #e0e2e5;background:#fff}.kgh-chat-head-copy{display:grid;gap:2px;min-width:0}.kgh-chat-head-copy strong{font-size:14px;line-height:1.2;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-chat-head-copy small{font-size:9.5px;font-weight:700;color:#74787d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-head-back,.kgh-head-close{appearance:none!important;display:grid!important;place-items:center!important;width:37px!important;height:37px!important;min-width:37px!important;min-height:37px!important;margin:0!important;padding:0!important;border:1px solid #d9dce0!important;border-radius:50%!important;background:#fff!important;color:#111!important;box-shadow:none!important;cursor:pointer!important}.kgh-head-back:hover,.kgh-head-close:hover{background:#f1f2f3!important;border-color:#111!important}.kgh-head-back svg,.kgh-head-close svg{width:18px;height:18px;fill:currentColor}
.kgh-chat-body{position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;background:#f4f5f6;scrollbar-width:thin;scrollbar-color:#c0c4c9 transparent}.kgh-chat-body::-webkit-scrollbar{width:7px}.kgh-chat-body::-webkit-scrollbar-thumb{background:#c4c7cb;border-radius:999px;border:2px solid #f4f5f6}
.kgh-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:170px;padding:22px;text-align:center;color:#73777d;font-size:11px;line-height:1.55}.kgh-empty strong{font-size:13px;color:#111}.kgh-empty span{max-width:260px}.kgh-empty-soft{margin:8px 0;border:1px dashed #cfd3d7;border-radius:13px;background:#fff;min-height:150px}.kgh-loader{width:22px;height:22px;border:2px solid #ddd;border-top-color:var(--kgh-red);border-radius:50%;animation:kghSpin .75s linear infinite}@keyframes kghSpin{to{transform:rotate(360deg)}}

/* Chat list / branch chooser */
.kgh-chat-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}.kgh-chat-list-toolbar>div{display:grid;gap:2px}.kgh-chat-list-toolbar strong{font-size:12px}.kgh-chat-list-toolbar span{font-size:8.5px;color:#777}.kgh-new-chat-btn{appearance:none!important;display:inline-flex!important;align-items:center!important;gap:5px!important;height:35px!important;min-height:35px!important;padding:0 10px!important;border:1px solid var(--kgh-red)!important;border-radius:9px!important;background:var(--kgh-red)!important;color:#fff!important;font:800 9.5px/1 inherit!important;box-shadow:none!important;cursor:pointer!important}.kgh-new-chat-btn span{font-size:15px!important;color:#fff!important}.kgh-chat-list{display:grid;gap:7px}.kgh-chat-list-item{appearance:none!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;padding:12px!important;border:1px solid #dce0e3!important;border-radius:12px!important;background:#fff!important;color:#111!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important}.kgh-chat-list-item:hover{border-color:#111!important}.kgh-chat-list-copy{display:grid;gap:3px;min-width:0}.kgh-chat-list-copy strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-chat-list-copy small{font-size:9px;color:#60656b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-chat-list-copy em{font-style:normal;font-size:8.5px;color:#90949a}.kgh-list-badge{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--kgh-red);color:#fff;font-size:9px;font-weight:900}.kgh-choice-arrow{font-size:22px;color:#aaa}.kgh-pagination{display:flex;justify-content:center;gap:5px;margin:12px 0 2px}.kgh-pagination button{appearance:none!important;display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border:1px solid #d5d8dc!important;border-radius:8px!important;background:#fff!important;color:#111!important;font:800 9.5px/1 inherit!important;box-shadow:none!important;cursor:pointer!important}.kgh-pagination button.is-current{background:#111!important;border-color:#111!important;color:#fff!important}
.kgh-new-chat-panel{display:grid;gap:12px}.kgh-new-chat-intro{padding:4px 2px}.kgh-new-chat-intro strong{display:block;font-size:13px;margin-bottom:3px}.kgh-new-chat-intro p{margin:0;font-size:9.5px;color:#73777d;line-height:1.5}.kgh-branch-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.kgh-branch-choice{appearance:none!important;display:grid!important;grid-template-columns:35px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:61px!important;margin:0!important;padding:9px!important;border:1px solid #d9dde1!important;border-radius:12px!important;background:#fff!important;color:#111!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important}.kgh-branch-choice:hover{border-color:#111!important;background:#fafafa!important}.kgh-branch-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#f0f1f2;color:var(--kgh-red);font-size:12px;font-weight:900}.kgh-branch-choice strong{font-size:10.5px}.kgh-branch-choice small{display:block;margin-top:2px;color:#7a7e84;font-size:8px;line-height:1.35}.kgh-cancel-new-chat{justify-self:start}

/* Message thread */
.kgh-chat-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px;padding:0 1px}.kgh-chat-meta>span{font-size:8.5px;font-weight:850;color:#777}.kgh-end-chat,.kgh-older-wrap button{appearance:none!important;margin:0!important;padding:3px 0!important;border:0!important;background:transparent!important;color:#555!important;text-decoration:underline!important;font:800 8.5px/1.2 inherit!important;box-shadow:none!important;cursor:pointer!important}.kgh-end-chat:hover{color:var(--kgh-red)!important}.kgh-closed-label{font-size:8.5px;font-weight:850;color:#777}.kgh-older-wrap{text-align:center;margin:2px 0 10px}.kgh-older-wrap button{padding:6px 9px!important;border:1px solid #d8dce0!important;border-radius:999px!important;background:#fff!important;text-decoration:none!important}
.kgh-msgs{display:flex;flex-direction:column;gap:7px}.kgh-msg{align-self:flex-start;max-width:82%;padding:9px 11px;border-radius:14px;background:#fff;border:1px solid #d9dce0;color:#111;font-size:11.5px;line-height:1.48;word-break:break-word;box-shadow:0 2px 7px rgba(0,0,0,.025)}.kgh-msg.is-theirs{border-bottom-left-radius:5px;background:#fff}.kgh-msg.is-mine{align-self:flex-end;border-color:#111;border-bottom-right-radius:5px;background:#111;color:#fff}.kgh-msg.is-system{align-self:stretch;max-width:100%;border-left:3px solid var(--kgh-red);border-radius:10px;background:#fff;color:#333;font-size:10.5px}.kgh-msg.is-optimistic{opacity:.66}.kgh-sender{margin:0 0 4px;font-size:9px;font-weight:900}.kgh-message-text:empty{display:none}.kgh-msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:5px;font-size:7.8px;line-height:1.2;opacity:.62}.kgh-receipt{white-space:nowrap}.kgh-file-link,.kgh-deleted-file{display:block;margin-top:7px;font-size:9px;line-height:1.4}.kgh-file-link{color:inherit;text-decoration:underline}.kgh-deleted-file{opacity:.68}
.kgh-message-gallery{display:grid;gap:3px;margin-top:7px;overflow:hidden;border-radius:10px}.kgh-message-gallery.count-1{grid-template-columns:1fr}.kgh-message-gallery.count-2{grid-template-columns:1fr 1fr}.kgh-message-gallery.count-3,.kgh-message-gallery.count-4,.kgh-message-gallery.count-5,.kgh-message-gallery.count-6{grid-template-columns:repeat(2,1fr)}.kgh-chat-photo{appearance:none!important;display:block!important;width:100%!important;min-width:0!important;height:112px!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;background:#e7e9eb!important;overflow:hidden!important;box-shadow:none!important;cursor:zoom-in!important}.kgh-message-gallery.count-1 .kgh-chat-photo{height:190px!important}.kgh-chat-photo img{display:block;width:100%;height:100%;object-fit:cover}
.kgh-new-message-jump{position:absolute!important;left:50%!important;bottom:74px!important;z-index:5!important;transform:translateX(-50%)!important;height:31px!important;min-height:31px!important;padding:0 11px!important;border:0!important;border-radius:999px!important;background:#111!important;color:#fff!important;font:800 9px/1 inherit!important;box-shadow:0 6px 18px rgba(0,0,0,.18)!important;cursor:pointer!important}

/* Composer */
.kgh-chat-compose{position:relative;flex:0 0 auto;padding:0;background:#edf0f2;border-top:1px solid #d3d6da}.kgh-chat-compose[hidden]{display:none!important}.kgh-attachment-preview{max-height:146px;overflow-x:auto;overflow-y:hidden;padding:8px 9px 7px;background:#fff;border-bottom:1px solid #dde0e3}.kgh-preview-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px}.kgh-preview-head strong{font-size:9.5px}.kgh-preview-head span{font-size:8px;color:#777}.kgh-preview-grid{display:flex;gap:7px;min-width:max-content}.kgh-preview-card{position:relative;width:82px;flex:0 0 82px}.kgh-preview-image{position:relative;width:82px;height:82px;border:1px solid #ced2d6;border-radius:10px;background:#eef0f2;overflow:hidden}.kgh-preview-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .15s ease}.kgh-preview-remove{position:absolute!important;right:4px!important;top:4px!important;display:grid!important;place-items:center!important;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;margin:0!important;padding:0 0 1px!important;border:2px solid #fff!important;border-radius:50%!important;background:#111!important;color:#fff!important;font:800 15px/1 Arial,sans-serif!important;box-shadow:0 2px 8px rgba(0,0,0,.22)!important;cursor:pointer!important}.kgh-preview-tools{display:flex;justify-content:center;gap:4px;margin-top:4px}.kgh-preview-tools button{appearance:none!important;display:grid!important;place-items:center!important;width:30px!important;height:25px!important;min-width:30px!important;min-height:25px!important;margin:0!important;padding:0!important;border:1px solid #ccd0d4!important;border-radius:7px!important;background:#fff!important;color:#111!important;font:900 15px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer!important}.kgh-preview-card.is-file{height:111px;padding:8px;border:1px solid #d5d8dc;border-radius:10px;background:#f5f6f7}.kgh-preview-card.is-file .kgh-preview-remove{right:3px!important;top:3px!important}.kgh-preview-card.is-file>span{display:block;margin-top:7px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-pdf-icon{display:grid;place-items:center;width:42px;height:46px;margin:8px auto 0;border-radius:7px;background:#fff;border:1px solid #d5d8dc;color:var(--kgh-red);font-size:10px;font-weight:900}
.kgh-compose-row{display:grid;grid-template-columns:38px 38px 38px 38px minmax(88px,1fr) 44px;gap:5px;align-items:end;padding:9px}.kgh-compose-icon,.kgh-send-btn{appearance:none!important;display:grid!important;place-items:center!important;width:38px!important;height:42px!important;min-width:38px!important;min-height:42px!important;margin:0!important;padding:0!important;border-radius:10px!important;box-shadow:none!important;cursor:pointer!important}.kgh-compose-icon{border:1.3px solid #111!important;background:#fff!important;color:#111!important}.kgh-compose-icon:hover{background:#f7f7f7!important}.kgh-compose-icon svg{display:block;width:18px;height:18px;fill:currentColor}.kgh-emoji-btn span{font-size:20px;line-height:1}.kgh-send-btn{width:44px!important;min-width:44px!important;border:1px solid var(--kgh-red)!important;background:var(--kgh-red)!important;color:#fff!important}.kgh-send-btn:hover{background:var(--kgh-red-dark)!important}.kgh-send-btn:disabled{opacity:.5;cursor:not-allowed!important}.kgh-send-btn svg{width:19px;height:19px;fill:currentColor}.kgh-chat-compose textarea{appearance:none!important;width:100%!important;height:42px!important;min-height:42px!important;max-height:108px!important;margin:0!important;padding:10px 11px!important;border:1.4px solid #111!important;border-radius:10px!important;background:#f6f7f8!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;font:600 11.5px/1.42 inherit!important;resize:none!important;overflow-y:auto!important;outline:none!important;box-shadow:none!important;opacity:1!important}.kgh-chat-compose textarea::placeholder{color:#85898f!important;-webkit-text-fill-color:#85898f!important;opacity:1!important}.kgh-chat-compose textarea:focus{background:#fff!important;box-shadow:0 0 0 3px rgba(217,31,38,.08)!important}.kgh-upload-state{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;padding:0 10px 8px;color:#60656a;font-size:8.5px;font-weight:750}.kgh-upload-track{height:4px;border-radius:99px;background:#d9dce0;overflow:hidden}.kgh-upload-track i{display:block;width:0;height:100%;background:var(--kgh-red);transition:width .12s linear}
.kgh-emoji-pop{position:absolute;left:9px;bottom:64px;z-index:8;display:grid;grid-template-columns:repeat(6,34px);gap:3px;padding:7px;border:1px solid #cfd2d6;border-radius:12px;background:#fff;box-shadow:0 14px 34px rgba(0,0,0,.18)}.kgh-emoji-pop button{appearance:none!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;background:#fff!important;font-size:18px!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important}.kgh-emoji-pop button:hover{background:#f0f1f2!important}.kgh-chat-toast{position:absolute;left:12px;right:12px;bottom:66px;z-index:10;padding:9px 11px;border-radius:10px;background:#111;color:#fff;font-size:9.5px;font-weight:750;box-shadow:0 7px 22px rgba(0,0,0,.2)}.kgh-chat-toast.is-error{border-left:3px solid var(--kgh-red)}.kgh-chat-toast.is-success{border-left:3px solid #2a9a55}

/* Lightbox */
.kgh-lightbox{position:fixed;inset:0;z-index:100050;display:grid;place-items:center;padding:54px;background:rgba(0,0,0,.91);touch-action:pan-y}.kgh-lightbox img{display:block;max-width:min(1200px,92vw);max-height:88vh;object-fit:contain;border-radius:6px;box-shadow:0 12px 40px rgba(0,0,0,.35)}.kgh-lightbox-close{position:absolute!important;right:18px!important;top:18px!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:50%!important;background:rgba(20,20,20,.75)!important;color:#fff!important;box-shadow:none!important;cursor:pointer!important}.kgh-lightbox-close svg{width:20px;height:20px;fill:currentColor}.kgh-lightbox-nav{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;margin:0!important;padding:0 0 5px!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:50%!important;background:rgba(20,20,20,.66)!important;color:#fff!important;font:300 34px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer!important}.kgh-lightbox-nav.prev{left:20px}.kgh-lightbox-nav.next{right:20px}.kgh-lightbox-count{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:99px;background:rgba(20,20,20,.7);color:#fff;font-size:10px;font-weight:800}

/* =========================================================
   VALUATION V7 — white / black / red
   ========================================================= */
.kgqv7-wrap{--t:#111!important;--m:#666b71!important;--m2:#7a7f85!important;--l:#e1e4e7!important;--ls:#dce0e4!important;--r:var(--kgh-red)!important;--r2:var(--kgh-red-dark)!important;--p:#fff!important;--ps:#f4f5f6!important;--f:#f5f6f7!important;--s:0 9px 28px rgba(0,0,0,.06)!important;--ss:none!important;color:#111!important;font-family:inherit!important}
.kgqv7-wrap .kgqv7-hero,.kgqv7-wrap .kgqv7-card,.kgqv7-wrap .kgqv7-mode-card,.kgqv7-wrap .kgqv7-branch,.kgqv7-wrap .kgqv7-bottom-card,.kgqv7-wrap .kgqv7-viber-card{background:#fff!important;border:1px solid #dce0e4!important;box-shadow:0 9px 28px rgba(0,0,0,.055)!important}.kgqv7-wrap .kgqv7-chip-box{background:#f4f5f6!important;border:1px solid #dce0e4!important;box-shadow:none!important}.kgqv7-wrap .kgqv7-title,.kgqv7-wrap .kgqv7-chip-box h3,.kgqv7-wrap .kgqv7-mode-card h3,.kgqv7-wrap .kgqv7-card h2,.kgqv7-wrap .kgqv7-branches-head h2,.kgqv7-wrap .kgqv7-form label,.kgqv7-wrap .kgqv7-viber-card label,.kgqv7-wrap .kgqv7-branch-title{color:#111!important}.kgqv7-wrap .kgqv7-lead,.kgqv7-wrap .kgqv7-mini-note,.kgqv7-wrap .kgqv7-mode-card p,.kgqv7-wrap .kgqv7-card p,.kgqv7-wrap .kgqv7-branch-meta,.kgqv7-wrap .kgqv7-bottom-card p,.kgqv7-wrap .kgqv7-help,.kgqv7-wrap .kgqv7-upload-help,.kgqv7-wrap .kgqv7-geo-result,.kgqv7-wrap .kgqv7-viber-list{color:#6e7379!important}.kgqv7-wrap .kgqv7-topline{color:var(--kgh-red)!important}.kgqv7-wrap .kgqv7-chip{background:#fff!important;border:1px solid #d7dade!important;color:#111!important}.kgqv7-wrap .kgqv7-field,.kgqv7-wrap .kgqv7-field-full,.kgqv7-wrap .kgqv7-upload-box,.kgqv7-wrap .kgqv7-geo-box{background:#f6f7f8!important;border:1px solid #dfe2e5!important;box-shadow:none!important}.kgqv7-wrap .kgqv7-input,.kgqv7-wrap .kgqv7-select,.kgqv7-wrap .kgqv7-textarea,.kgqv7-wrap .kgqv7-phone-prefix{background:#f3f4f5!important;color:#111!important;-webkit-text-fill-color:#111!important;border:1.4px solid #111!important;box-shadow:none!important}.kgqv7-wrap .kgqv7-input::placeholder,.kgqv7-wrap .kgqv7-textarea::placeholder{color:#888!important;-webkit-text-fill-color:#888!important}.kgqv7-wrap .kgqv7-input:focus,.kgqv7-wrap .kgqv7-select:focus,.kgqv7-wrap .kgqv7-textarea:focus{background:#fff!important;border-color:#000!important;box-shadow:0 0 0 3px rgba(217,31,38,.09)!important}.kgqv7-wrap .kgqv7-inline-toggle,.kgqv7-wrap .kgqv7-consent{color:#555!important}.kgqv7-wrap .kgqv7-consent a{color:#111!important}.kgqv7-wrap .kgqv7-btn--primary{background:var(--kgh-red)!important;color:#fff!important;box-shadow:none!important}.kgqv7-wrap .kgqv7-btn--secondary,.kgqv7-wrap .kgqv7-btn--ghost{background:#fff!important;color:#111!important;border-color:#111!important;box-shadow:none!important}.kgqv7-wrap .kgqv7-btn--viber{box-shadow:none!important}.kgqv7-wrap .kgqv7-gallery-card,.kgqv7-wrap .kgqv7-gallery-empty,.kgqv7-wrap .kgqv7-success-card{background:#fff!important;color:#111!important;border:1px solid #dfe2e5!important;box-shadow:0 20px 60px rgba(0,0,0,.18)!important}.kgqv7-wrap .kgqv7-gallery-card h1,.kgqv7-wrap .kgqv7-gallery-card p,.kgqv7-wrap .kgqv7-success-card h3,.kgqv7-wrap .kgqv7-success-card p{color:#111!important}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:960px){
  .kgh-hub-grid{grid-template-columns:1fr}.kgh-hub-columns{grid-template-columns:1fr}.kgh-stat-card{min-height:96px!important}.kgh-orders-card{margin-top:12px}
}
@media(max-width:767px){
  .kgh-account-btn{width:46px!important;height:44px!important;min-width:46px!important;min-height:44px!important;margin-left:5px!important}.kgh-account-btn svg{width:29px!important;height:29px!important}.kgh-account-notice{right:1px;top:0}
  .kgh-auth-card{width:min(100%,398px);padding:27px 17px 20px;border-radius:19px}.kgh-auth-card h2{font-size:27px!important}.kgh-x{right:12px!important;top:12px!important}
  .kgh-hub{padding:18px 10px 32px}.kgh-hub-top{align-items:flex-start;gap:12px;padding-bottom:17px}.kgh-profile-mini{gap:10px;min-width:0}.kgh-avatar-wrap{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important}.kgh-avatar-edit{width:20px;height:20px}.kgh-profile-copy h1{font-size:21px!important}.kgh-profile-copy p{max-width:190px;font-size:10px!important}.kgh-top-actions{display:grid;grid-template-columns:1fr 1fr;width:148px;gap:5px}.kgh-top-actions .kgh-install-btn,.kgh-top-actions .kgh-push-btn{grid-column:1/-1}.kgh-top-actions .kgh-red-btn,.kgh-top-actions .kgh-outline-btn,.kgh-top-actions .kgh-install-btn{min-height:34px!important;height:34px!important;padding:0 8px!important;border-radius:8px!important;font-size:8.5px!important}.kgh-install-btn svg{width:14px;height:14px}.kgh-hub-grid{gap:8px;margin:12px 0}.kgh-stat-card{grid-template-columns:42px minmax(0,1fr) 18px!important;min-height:89px!important;padding:12px!important;gap:10px!important;border-radius:14px!important}.kgh-stat-icon{width:40px;height:40px;border-radius:11px}.kgh-stat-icon svg{width:20px;height:20px}.kgh-stat-copy strong{font-size:12px}.kgh-stat-copy b{font-size:15px}.kgh-stat-copy small{font-size:8.8px}.kgh-hub-card{padding:14px;border-radius:15px}.kgh-card-head h2{font-size:19px!important}.kgh-two{grid-template-columns:1fr}.kgh-timeline-row{grid-template-columns:10px minmax(0,1fr)!important}.kgh-timeline-row time{display:none}.kgh-order-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.kgh-order-row>b{grid-column:2}.kgh-order-status{grid-column:2;grid-row:1}.kgh-install-card{padding:24px 17px;border-radius:19px}

  .kgh-chat-launch{right:13px;bottom:14px;width:64px;height:64px}.kgh-chat-bubble{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important}.kgh-chat-bubble svg{width:27px;height:27px}.kgh-chat-launch-close{opacity:1;transform:scale(1)}
  .kgh-chat-window{right:7px;bottom:7px;width:calc(100vw - 14px);height:calc(100dvh - 70px);max-height:760px;border-radius:17px;transform-origin:bottom center}.kgh-chat-head{min-height:62px;padding:9px 9px 9px 12px}.kgh-head-back,.kgh-head-close{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important}.kgh-chat-body{padding:10px}.kgh-msg{max-width:88%;font-size:11px}.kgh-branch-choice-grid{grid-template-columns:1fr}.kgh-chat-list-toolbar span{display:none}.kgh-new-chat-btn{height:34px!important;min-height:34px!important}
  .kgh-compose-row{grid-template-columns:35px 35px 35px 35px minmax(70px,1fr) 41px;gap:4px;padding:8px}.kgh-compose-icon{width:35px!important;height:40px!important;min-width:35px!important;min-height:40px!important;border-radius:9px!important}.kgh-send-btn{width:41px!important;height:40px!important;min-width:41px!important;min-height:40px!important;border-radius:9px!important}.kgh-chat-compose textarea{height:40px!important;min-height:40px!important;padding:9px!important;font-size:11px!important}.kgh-emoji-pop{left:8px;bottom:59px;grid-template-columns:repeat(6,32px);gap:2px}.kgh-emoji-pop button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;font-size:17px!important}.kgh-attachment-preview{max-height:140px}.kgh-preview-card{width:78px;flex-basis:78px}.kgh-preview-image{width:78px;height:78px}.kgh-new-message-jump{bottom:67px!important}.kgh-chat-photo{height:100px!important}.kgh-message-gallery.count-1 .kgh-chat-photo{height:175px!important}
  .kgh-lightbox{padding:48px 8px}.kgh-lightbox img{max-width:96vw;max-height:82vh}.kgh-lightbox-nav{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:28px!important}.kgh-lightbox-nav.prev{left:8px}.kgh-lightbox-nav.next{right:8px}.kgh-lightbox-close{right:10px!important;top:10px!important}
}
@media(max-width:390px){
  .kgh-compose-row{grid-template-columns:33px 33px 33px 33px minmax(58px,1fr) 39px;gap:3px;padding:7px}.kgh-compose-icon{width:33px!important;min-width:33px!important}.kgh-send-btn{width:39px!important;min-width:39px!important}.kgh-profile-copy p{max-width:155px}.kgh-top-actions{width:136px}.kgh-chat-window{height:calc(100dvh - 58px)}
}

/* =========================================================
   v0.4 FINAL POLISH — readable production sizing
   ========================================================= */
.kgh-account-btn svg{width:32px!important;height:32px!important;stroke-width:1.4!important}
.kgh-auth-pane label,.kgh-profile-form label{font-size:12.5px;font-weight:800}
.kgh-chat-launch{bottom:96px}
.kgh-chat-head-copy strong{font-size:15px}.kgh-chat-head-copy small{font-size:11px}
.kgh-empty{font-size:13px}.kgh-empty strong{font-size:15px}
.kgh-chat-list-toolbar strong{font-size:14px}.kgh-chat-list-toolbar span{font-size:11px}.kgh-new-chat-btn{font-size:11.5px!important}
.kgh-chat-list-copy strong{font-size:13.5px}.kgh-chat-list-copy small{font-size:11px}.kgh-chat-list-copy em{font-size:10.5px}.kgh-list-badge{font-size:10.5px}
.kgh-new-chat-intro strong{font-size:14px}.kgh-new-chat-intro p{font-size:11.5px}.kgh-branch-choice strong{font-size:12px}.kgh-branch-choice small{font-size:10px}
.kgh-chat-meta>span,.kgh-end-chat,.kgh-older-wrap button,.kgh-closed-label{font-size:10px!important}
.kgh-msg{font-size:13.5px;line-height:1.5}.kgh-msg.is-system{font-size:12.5px}.kgh-sender{font-size:10.5px}.kgh-msg-meta{font-size:9.5px}.kgh-file-link,.kgh-deleted-file{font-size:11px}
.kgh-msg.is-failed{opacity:1;border-color:var(--kgh-red)!important}.kgh-msg.is-failed .kgh-msg-meta{color:#ffd7d9;opacity:1}
.kgh-preview-head strong{font-size:11.5px}.kgh-preview-head span{font-size:10.5px}.kgh-preview-card.is-file>span{font-size:10px}
.kgh-chat-compose textarea{font-size:14px!important;font-weight:550!important}.kgh-upload-state{font-size:10.5px}.kgh-chat-toast{font-size:11.5px}
.kgh-compose-icon:disabled{opacity:.45!important;cursor:not-allowed!important}.kgh-chat-compose textarea[readonly]{opacity:.72!important}
@media(max-width:767px){
  .kgh-account-btn svg{width:31px!important;height:31px!important}
  .kgh-chat-launch{bottom:92px}
  .kgh-chat-window{height:min(760px,calc(var(--kgh-vvh,100dvh) - 14px));bottom:7px}
  .kgh-chat-head-copy strong{font-size:14.5px}.kgh-chat-head-copy small{font-size:10.5px}
  .kgh-msg{max-width:88%;font-size:13.5px}.kgh-msg.is-system{font-size:12px}
  .kgh-chat-compose textarea{font-size:14px!important}
}
@media(max-width:390px){.kgh-chat-window{height:calc(var(--kgh-vvh,100dvh) - 10px);bottom:5px}}

/* =========================================================
   v0.4 MOBILE ERGONOMICS — readable labels and reliable taps
   ========================================================= */
@media(max-width:767px){
  .kgh-hub-top{flex-direction:column;align-items:stretch;gap:13px}
  .kgh-profile-mini{width:100%}
  .kgh-profile-copy p{max-width:none;font-size:11.5px!important;line-height:1.35!important}
  .kgh-top-actions{width:100%;grid-template-columns:1fr 1fr;gap:7px}
  .kgh-top-actions .kgh-install-btn,.kgh-top-actions .kgh-push-btn{grid-column:1/-1}
  .kgh-top-actions .kgh-red-btn,.kgh-top-actions .kgh-outline-btn,.kgh-top-actions .kgh-install-btn{min-height:44px!important;height:44px!important;padding:0 12px!important;border-radius:10px!important;font-size:11px!important}
  .kgh-install-btn svg{width:16px;height:16px}
  .kgh-stat-copy strong{font-size:12.5px!important}.kgh-stat-copy b{font-size:15.5px!important}.kgh-stat-copy small{font-size:10.5px!important}
  .kgh-compose-row{grid-template-columns:38px 38px 38px 38px minmax(64px,1fr) 44px;gap:4px;padding:8px}
  .kgh-compose-icon{width:38px!important;height:44px!important;min-width:38px!important;min-height:44px!important}
  .kgh-send-btn{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  .kgh-chat-compose textarea{height:44px!important;min-height:44px!important;padding:10px!important;font-size:14px!important}
  .kgh-upload-state{font-size:10.5px!important}
}
@media(max-width:390px){
  .kgh-compose-row{grid-template-columns:36px 36px 36px 36px minmax(54px,1fr) 42px;gap:3px;padding:7px}
  .kgh-compose-icon{width:36px!important;min-width:36px!important;height:44px!important;min-height:44px!important}
  .kgh-send-btn{width:42px!important;min-width:42px!important;height:44px!important;min-height:44px!important}
  .kgh-profile-copy p{max-width:none!important}
  .kgh-top-actions{width:100%!important}
}

/* =========================================================
   v0.5 – unified Hub / commerce / chat polish
   ========================================================= */
.kgh-lightbox[hidden],.kgh-install-help[hidden],.kgh-chat-launch[hidden],.kgh-attachment-preview[hidden],.kgh-upload-state[hidden],.kgh-emoji-pop[hidden]{display:none!important}
.kgh-receipt{display:inline-flex;align-items:center;min-width:15px;justify-content:flex-end;font-weight:900;letter-spacing:-2px;opacity:.8}.kgh-receipt.is-read{color:#42c96b!important;opacity:1;text-shadow:0 0 8px rgba(66,201,107,.18)}
.kgh-msg.is-mine .kgh-receipt.is-read{color:#58dc7b!important}
.kgh-chat-photo.is-broken{display:grid;place-items:center;min-height:96px;padding:12px;background:#eceff1;color:#666;border:1px dashed #c6cbd0;cursor:default}.kgh-chat-photo.is-broken span{font-size:10px;font-weight:800;text-align:center}

/* Composer has Camera + Gallery + Emoji only. */
.kgh-compose-row{grid-template-columns:40px 40px 40px minmax(110px,1fr) 46px!important;gap:6px!important;padding:10px!important}
.kgh-compose-icon{width:40px!important;height:44px!important;min-width:40px!important;min-height:44px!important;border-radius:11px!important}
.kgh-send-btn{width:46px!important;height:44px!important;min-width:46px!important;min-height:44px!important;border-radius:11px!important}
.kgh-chat-compose textarea{height:44px!important;min-height:44px!important;max-height:132px!important;padding:11px 12px!important;font-size:13px!important;line-height:1.45!important}
.kgh-emoji-pop{left:10px;bottom:67px}

/* Profile commerce */
.kgh-commerce-card,.kgh-orders-card,.kgh-profile-vouchers{margin-top:18px}
.kgh-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.kgh-card-head h2{margin:3px 0 0!important;color:#111!important;font-size:24px!important;line-height:1.12!important}.kgh-commerce-count{display:grid;place-items:center;min-width:34px;height:34px;padding:0 10px;border-radius:999px;background:#111;color:#fff;font-size:12px;font-weight:900}
.kgh-empty-line{padding:18px;border:1px dashed #d3d7db;border-radius:14px;background:#f7f8f9;color:#6d7177;font-size:13px;text-align:center}
.kgh-profile-cart-list{display:grid;gap:8px}.kgh-profile-cart-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px;border:1px solid #e0e3e6;border-radius:14px;background:#fff;color:#111!important;text-decoration:none!important;transition:.18s ease}.kgh-profile-cart-item:hover{border-color:#111;transform:translateY(-1px);box-shadow:var(--kgh-shadow-soft)}.kgh-profile-cart-img{display:grid;place-items:center;width:58px;height:58px;border-radius:11px;background:#f0f1f2;overflow:hidden}.kgh-profile-cart-img img{width:100%;height:100%;object-fit:cover}.kgh-profile-cart-img span{font-size:12px;font-weight:900;color:var(--kgh-red)}.kgh-profile-cart-item>span:nth-child(2){display:grid;gap:4px;min-width:0}.kgh-profile-cart-item strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-profile-cart-item small{font-size:11px;color:#696e74}.kgh-profile-cart-item>b{font-size:24px;font-weight:400;color:#a0a4a9}.kgh-cart-go{margin-top:13px}
.kgh-customer-orders{display:grid;gap:14px}.kgh-customer-order{padding:17px;border:1px solid #dde1e4;border-radius:17px;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.035)}.kgh-order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid #eceef0}.kgh-order-top h3{margin:2px 0 3px!important;color:#111!important;font-size:20px!important}.kgh-order-top small{font-size:10.5px;color:#777}.kgh-order-total{font-size:18px;color:#111;white-space:nowrap}.kgh-order-current{display:flex;align-items:center;gap:10px;margin:14px 0 11px;padding:11px 12px;border-radius:12px;background:#f4f5f6}.kgh-order-current>i{width:10px;height:10px;border-radius:50%;background:var(--kgh-red);box-shadow:0 0 0 4px rgba(217,31,38,.09)}.kgh-order-current>div{display:grid;gap:2px}.kgh-order-current small{font-size:9px;color:#7a7e84;text-transform:uppercase;letter-spacing:.08em}.kgh-order-current strong{font-size:13px;color:#111}.kgh-order-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:6px 0 14px}.kgh-order-progress>span{position:relative;display:grid;grid-template-rows:22px auto;justify-items:center;gap:5px;text-align:center;color:#a1a5aa}.kgh-order-progress>span:before{content:"";position:absolute;top:10px;right:50%;left:-50%;height:2px;background:#e0e3e6;z-index:0}.kgh-order-progress>span:first-child:before{display:none}.kgh-order-progress i{position:relative;z-index:1;display:grid;place-items:center;width:22px;height:22px;border:2px solid #d5d9dd;border-radius:50%;background:#fff;color:#fff;font:900 9px/1 Arial}.kgh-order-progress b{font-size:8.7px;line-height:1.25;font-weight:800}.kgh-order-progress>span.is-done{color:#2f3337}.kgh-order-progress>span.is-done:before{background:var(--kgh-red)}.kgh-order-progress>span.is-done i{border-color:var(--kgh-red);background:var(--kgh-red)}.kgh-order-alert{margin:13px 0;padding:11px 12px;border-radius:11px;font-size:12px;font-weight:850}.kgh-order-alert.is-danger{background:#fff0f0;color:#a20f15;border:1px solid #efc6c8}.kgh-shipment-list{display:grid;gap:7px;margin-top:10px}.kgh-shipment-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #e2e5e8;border-radius:11px;background:#fafafa}.kgh-shipment-list span{display:grid;gap:2px}.kgh-shipment-list span:last-child{text-align:right}.kgh-shipment-list small{font-size:8.5px;color:#7a7e84;text-transform:uppercase;letter-spacing:.06em}.kgh-shipment-list strong{font-size:11.5px;color:#111}.kgh-order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.kgh-order-actions button{appearance:none;min-height:38px;padding:0 13px;border:1px solid #111;border-radius:10px;background:#fff;color:#111;font-size:11px;font-weight:850;cursor:pointer}.kgh-order-actions button:hover{background:#f3f4f5}.kgh-order-actions .is-primary{border-color:var(--kgh-red);background:var(--kgh-red);color:#fff}
.kgh-pickup-order-info{display:grid;gap:3px;margin:10px 0;padding:11px 12px;border:1px solid #efc7ca;border-radius:11px;background:#fff8f8}.kgh-pickup-order-info small{color:var(--kgh-red);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.kgh-pickup-order-info strong{color:#111;font-size:13px}.kgh-pickup-order-info span{color:#676b70;font-size:11px}
.kgh-voucher-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.kgh-voucher-card{position:relative;display:grid;align-content:start;gap:8px;min-height:190px;padding:16px;border:1px solid #d9dde0;border-radius:16px;background:linear-gradient(145deg,#fff 0%,#f4f5f6 100%)!important;color:#111!important;overflow:hidden;opacity:1!important}.kgh-voucher-card:after{content:"";position:absolute;right:-25px;top:-25px;width:85px;height:85px;border-radius:50%;background:rgba(217,31,38,.08)}.kgh-voucher-card-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px}.kgh-voucher-card-top>span{font-size:8.5px;font-weight:900;letter-spacing:.08em;color:#777;text-transform:uppercase}.kgh-voucher-card-top>em{padding:5px 8px;border-radius:999px;background:#e8f7ee;color:#137442;font-size:8px;font-style:normal;font-weight:900;text-transform:uppercase}.kgh-voucher-card.is-used,.kgh-voucher-card.is-expired{filter:saturate(.55)}.kgh-voucher-card.is-used .kgh-voucher-card-top>em,.kgh-voucher-card.is-expired .kgh-voucher-card-top>em{background:#eceeef;color:#666}.kgh-voucher-card.is-paused .kgh-voucher-card-top>em{background:#fff0cf;color:#925f00}.kgh-voucher-card>b{font-size:30px;line-height:1;color:var(--kgh-red)}.kgh-voucher-card>strong{display:grid;gap:2px;font-size:14px;letter-spacing:.06em;color:#111}.kgh-voucher-card>strong small{font-size:8px;letter-spacing:.08em;color:#777;text-transform:uppercase}.kgh-voucher-card>p{margin:0;color:#555;font-size:10px;font-weight:750}.kgh-voucher-validity{margin-top:auto;font-size:9px;color:#666}

/* v0.5.27 — manager gift vouchers */
.kgh-gift-manager-card{max-width:920px;margin:0 auto}.kgh-gift-manager-card>.kgh-card-head h1{margin:3px 0 4px!important;color:#111!important;font-size:28px!important}.kgh-gift-manager-card>.kgh-card-head small{color:#666;font-size:11px;line-height:1.5}.kgh-gift-search{position:relative;display:grid;gap:8px}.kgh-gift-search>label,.kgh-gift-fields>label:not(.kgh-toggle-setting),.kgh-gift-dates>label{display:grid;gap:6px;color:#555;font-size:10px;font-weight:850;text-transform:uppercase}.kgh-gift-search input,.kgh-gift-dates input,.kgh-gift-search input:hover,.kgh-gift-search input:focus,.kgh-gift-dates input:hover,.kgh-gift-dates input:focus{width:100%;min-height:46px;padding:9px 12px;border:1px solid #d7dce0!important;border-radius:11px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important;box-shadow:none!important}.kgh-gift-results{position:absolute;z-index:20;top:70px;right:0;left:0;display:grid;gap:5px;max-height:330px;padding:7px;border:1px solid #d8dce0;border-radius:12px;background:#fff!important;box-shadow:0 18px 45px rgba(0,0,0,.18);overflow:auto}.kgh-gift-results[hidden]{display:none!important}.kgh-gift-results>p{margin:0;padding:13px;color:#666;font-size:11px}.kgh-gift-results>button,.kgh-gift-results>button:hover,.kgh-gift-results>button:focus{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px;border:1px solid #e2e5e8;border-radius:10px;background:#fff!important;color:#111!important;text-align:left;opacity:1!important;cursor:pointer}.kgh-gift-results>button:hover{border-color:#d71920!important}.kgh-gift-results i,.kgh-gift-selected>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#111;color:#fff;font-size:13px;font-style:normal;font-weight:900}.kgh-gift-results button>span,.kgh-gift-selected>div{display:grid;gap:3px;min-width:0}.kgh-gift-results strong,.kgh-gift-selected strong{font-size:11px}.kgh-gift-results small,.kgh-gift-selected small{color:#6e7378;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kgh-gift-results button>b{color:#d71920;font-size:9px}.kgh-gift-manager-card>form{display:grid;gap:13px;margin-top:15px;padding-top:15px;border-top:1px solid #eceef0}.kgh-gift-manager-card>form[hidden]{display:none!important}.kgh-gift-selected{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid #dfe3e6;border-radius:12px;background:#f7f8f9}.kgh-gift-selected>button,.kgh-gift-selected>button:hover,.kgh-gift-selected>button:focus{min-height:34px;padding:6px 10px;border:1px solid #d8dce0!important;border-radius:9px;background:#fff!important;color:#111!important;font-size:9px;font-weight:850;opacity:1!important}.kgh-gift-fields{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:10px}.kgh-gift-term-toggle{margin:0!important}.kgh-gift-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kgh-gift-dates[hidden]{display:none!important}.kgh-gift-summary{display:grid;gap:3px;padding:11px 12px;border-left:3px solid #d71920;border-radius:9px;background:#f5f6f7}.kgh-gift-summary strong{font-size:11px}.kgh-gift-summary small{color:#656a70;font-size:9.5px;line-height:1.45}
.kgh-gift-master-switch{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid #bfe1cd;border-radius:12px;background:#f2fbf6}.kgh-gift-master-switch.is-paused{border-color:#efc2c5;background:#fff4f4}.kgh-gift-master-switch>div{display:grid;gap:3px}.kgh-gift-master-switch strong{font-size:12px}.kgh-gift-master-switch small{color:#596860;font-size:9.5px}.kgh-gift-master-switch>label{display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #d9dfe0;border-radius:9px;background:#fff;font-size:10px;font-weight:850;cursor:pointer}.kgh-gift-master-switch>label input{width:18px;height:18px;margin:0;accent-color:#168149}.kgh-gift-master-switch>p{grid-column:1/-1;margin:0;color:#666;font-size:9px}.kgh-gift-contact-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.kgh-gift-contact-fields>label{display:grid;gap:6px;color:#555;font-size:10px;font-weight:850;text-transform:uppercase}.kgh-gift-contact-fields label>small{color:#92979b;font-size:8px}.kgh-gift-contact-fields input,.kgh-gift-contact-fields input:hover,.kgh-gift-contact-fields input:focus{width:100%;min-height:46px;padding:9px 12px;border:1px solid #d7dce0!important;border-radius:11px;background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important;box-shadow:none!important}.kgh-gift-selected[hidden]{display:none!important}
@media(max-width:650px){.kgh-manager-tabs{overflow-x:auto;justify-content:flex-start}.kgh-manager-tabs a{flex:0 0 auto;min-width:92px}.kgh-gift-contact-fields,.kgh-gift-fields,.kgh-gift-dates{grid-template-columns:1fr}.kgh-gift-master-switch{grid-template-columns:1fr}.kgh-gift-master-switch>label{justify-self:start}.kgh-gift-results>button{grid-template-columns:36px minmax(0,1fr)}.kgh-gift-results button>b{display:none}.kgh-gift-selected{grid-template-columns:40px minmax(0,1fr)}.kgh-gift-selected>button{grid-column:1/-1}.kgh-gift-manager-card>.kgh-card-head h1{font-size:24px!important}}

/* v0.5.29 — staff voucher approval requests */
.kgh-voucher-request-card form{display:grid;gap:12px}.kgh-voucher-request-card textarea,.kgh-voucher-request-card textarea:hover,.kgh-voucher-request-card textarea:focus,.kgh-voucher-request-card input,.kgh-voucher-request-card input:hover,.kgh-voucher-request-card input:focus{background:#fff!important;background-color:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important}.kgh-voucher-request-list{display:grid;gap:10px}.kgh-voucher-request-list>article{display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(150px,.8fr) 150px minmax(170px,.9fr);align-items:end;gap:10px;padding:13px;border:1px solid #e1e4e7;border-radius:13px;background:#fafafa}.kgh-voucher-request-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}.kgh-voucher-request-main>strong{font-size:13px}.kgh-voucher-request-main>span{color:#d71920;font-size:14px;font-weight:900}.kgh-voucher-request-main>small,.kgh-voucher-request-who small{color:#777;font-size:9px}.kgh-voucher-request-main>p{grid-column:1/-1;margin:4px 0 0;font-size:10px}.kgh-voucher-request-who{display:grid;gap:3px;align-self:center}.kgh-voucher-request-who b{font-size:10px}.kgh-voucher-request-list label{display:grid;gap:5px;color:#555;font-size:9px;font-weight:850;text-transform:uppercase}.kgh-voucher-request-list label>input{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d8dce0!important;border-radius:9px}.kgh-voucher-request-actions{display:flex;gap:6px}.kgh-voucher-request-actions button{flex:1;min-height:42px!important;padding:0 9px!important;font-size:9px!important}.kgh-voucher-request-list>article>.kgh-manager-save-status{grid-column:1/-1}.kgh-voucher-request-history>div:last-child{display:grid;gap:7px}.kgh-voucher-request-history article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px 10px;align-items:center;padding:10px 11px;border:1px solid #e1e4e7;border-radius:10px}.kgh-voucher-request-history article>div{display:grid;gap:2px}.kgh-voucher-request-history article strong{font-size:11px}.kgh-voucher-request-history article p,.kgh-voucher-request-history article small{margin:0;color:#777;font-size:9px}.kgh-voucher-request-history article>span{font-weight:900}.kgh-voucher-request-history article>b{padding:5px 7px;border-radius:999px;background:#fff4d7;color:#765300;font-size:8px}.kgh-voucher-request-history article.is-approved>b{background:#e4f6eb;color:#146d39}.kgh-voucher-request-history article.is-rejected>b{background:#fde5e7;color:#a31219}.kgh-voucher-request-history article>small{grid-column:1/-1}.kgh-manager-tabs a b{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:#d71920;color:#fff;font-size:8px}.kgh-empty-note{margin:0;padding:15px;border-radius:10px;background:#f4f5f6;color:#666;font-size:11px}
@media(max-width:900px){.kgh-voucher-request-list>article{grid-template-columns:1fr 1fr}.kgh-voucher-request-main{grid-column:1/-1}.kgh-voucher-request-history article{grid-template-columns:minmax(0,1fr) auto}.kgh-voucher-request-history article>b{grid-column:2}.kgh-voucher-request-history article>small{grid-column:1/-1}}
@media(max-width:620px){.kgh-voucher-request-list>article{grid-template-columns:1fr}.kgh-voucher-request-main,.kgh-voucher-request-list>article>.kgh-manager-save-status{grid-column:auto}.kgh-voucher-request-actions{display:grid;grid-template-columns:1fr 1fr}.kgh-manager-tabs{overflow-x:auto;scrollbar-width:none}.kgh-manager-tabs a{min-width:max-content}}

/* Staff portal */
.kgh-staff-hub{max-width:1180px}.kgh-staff-top{border-bottom:0}.kgh-staff-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}.kgh-staff-metrics>div{display:grid;gap:5px;padding:18px;border:1px solid #dde1e4;border-radius:16px;background:#fff;box-shadow:var(--kgh-shadow-soft)}.kgh-staff-metrics span{font-size:10px;font-weight:800;color:#777;text-transform:uppercase;letter-spacing:.06em}.kgh-staff-metrics b{font-size:28px;line-height:1;color:#111}.kgh-staff-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.kgh-staff-links>a{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:70px;padding:11px;border:1px solid #dde1e4;border-radius:14px;background:#fff;color:#111!important;text-decoration:none!important;transition:.18s ease}.kgh-staff-links>a:hover{border-color:#111;transform:translateY(-1px);box-shadow:var(--kgh-shadow-soft)}.kgh-staff-links i{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#f1f2f3;color:var(--kgh-red);font-style:normal;font-size:18px;font-weight:900}.kgh-staff-links strong{font-size:12.5px}.kgh-staff-links span{font-size:21px;color:#aaa}

@media(max-width:767px){
  .kgh-account-btn{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;margin-left:5px!important}.kgh-account-btn svg{width:34px!important;height:34px!important;stroke-width:1.4!important}
  .kgh-compose-row{grid-template-columns:38px 38px 38px minmax(74px,1fr) 44px!important;gap:5px!important;padding:8px!important}.kgh-compose-icon{width:38px!important;min-width:38px!important;height:42px!important;min-height:42px!important}.kgh-send-btn{width:44px!important;min-width:44px!important;height:42px!important;min-height:42px!important}.kgh-chat-compose textarea{height:42px!important;min-height:42px!important;font-size:12.5px!important}
  .kgh-voucher-cards,.kgh-staff-links{grid-template-columns:1fr}.kgh-staff-metrics{grid-template-columns:repeat(3,1fr);gap:7px}.kgh-staff-metrics>div{padding:12px 9px}.kgh-staff-metrics b{font-size:22px}.kgh-staff-metrics span{font-size:8px}
  .kgh-order-progress b{font-size:7.5px}.kgh-order-progress{gap:1px}.kgh-order-actions{display:grid;grid-template-columns:1fr 1fr}.kgh-order-actions button{width:100%}.kgh-shipment-list>div{display:grid;grid-template-columns:1fr 1fr}.kgh-profile-cart-item{grid-template-columns:50px minmax(0,1fr) auto}.kgh-profile-cart-img{width:50px;height:50px}
}
@media(max-width:390px){.kgh-compose-row{grid-template-columns:36px 36px 36px minmax(60px,1fr) 42px!important;gap:4px!important;padding:7px!important}.kgh-compose-icon{width:36px!important;min-width:36px!important}.kgh-send-btn{width:42px!important;min-width:42px!important}.kgh-order-progress b{font-size:6.8px}.kgh-card-head h2{font-size:21px!important}}

/* v0.5 – compact order contents */
.kgh-order-items{display:grid;gap:6px;margin:12px 0}.kgh-order-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 9px;border:1px solid #e5e7e9;border-radius:11px;background:#fafafa;color:#111!important;text-decoration:none!important}.kgh-order-item:hover{border-color:#c8ccd0;background:#fff}.kgh-order-item-img{display:grid;place-items:center;width:44px;height:44px;border-radius:9px;background:#eceeef;overflow:hidden}.kgh-order-item-img img{width:100%;height:100%;object-fit:cover}.kgh-order-item-img b{font-size:9px;color:var(--kgh-red)}.kgh-order-item-copy{display:grid;gap:2px;min-width:0}.kgh-order-item-copy strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-order-item-copy small{font-size:9px;color:#73777c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-order-item>b{font-size:11px;white-space:nowrap}
@media(max-width:480px){.kgh-order-item{grid-template-columns:40px minmax(0,1fr) auto}.kgh-order-item-img{width:40px;height:40px}.kgh-order-item-copy small{max-width:190px}}

/* v0.5.32 — reliable ordering controls and notification preferences */
.kgh-staff-links>.kgh-staff-link{position:relative;display:grid;min-width:0;border:1px solid #d8dde1;border-radius:14px;background:#fff!important;color:#111!important;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.kgh-staff-links>.kgh-staff-link:hover{border-color:#111;box-shadow:var(--kgh-shadow-soft);transform:translateY(-1px)}.kgh-staff-links>.kgh-staff-link.is-sortable{grid-template-columns:minmax(0,1fr) 34px}.kgh-staff-link-main,.kgh-staff-link-main:hover,.kgh-staff-link-main:focus{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center;gap:10px;min-width:0;min-height:68px;padding:10px 8px 10px 11px;border:0!important;background:#fff!important;color:#111!important;text-decoration:none!important;box-shadow:none!important;transform:none!important}.kgh-staff-link-main:has(.kgh-link-badge){grid-template-columns:42px minmax(0,1fr) auto auto!important}.kgh-staff-link-main .kgh-link-arrow{font-size:21px!important;color:#858a90!important}.kgh-staff-links>.kgh-staff-link.is-dragging{z-index:3;opacity:.55!important;border:2px dashed #d71920!important;box-shadow:0 10px 25px rgba(0,0,0,.12);transform:scale(.985)}.kgh-staff-links>.kgh-staff-link .kgh-drag-handle{display:grid!important;place-items:center!important;width:34px;height:auto;min-height:68px;border-left:1px solid #d8dde1;background:#eef0f2!important;color:#151719!important;cursor:grab!important;touch-action:none!important;user-select:none!important}.kgh-drag-handle svg{display:block;width:13px;height:22px;fill:currentColor;pointer-events:none}.kgh-mobile-order-controls{display:none}.kgh-reorder-mobile{display:none}.kgh-staff-links.is-reordering,.kgh-staff-links.is-reordering *{cursor:grabbing!important}.kgh-staff-links.is-reordering>.kgh-staff-link:not(.is-dragging){border-color:#c8ccd0}
@media(hover:hover) and (pointer:fine){.kgh-staff-links>.kgh-staff-link.is-sortable,.kgh-staff-links>.kgh-staff-link.is-sortable .kgh-staff-link-main,.kgh-staff-links>.kgh-staff-link.is-sortable .kgh-staff-link-main *{cursor:grab!important}.kgh-staff-links>.kgh-staff-link.is-sortable:active,.kgh-staff-links>.kgh-staff-link.is-sortable:active *{cursor:grabbing!important}}

.kgh-bell-symbol{display:grid!important;place-items:center!important;width:21px;height:21px;min-width:21px;color:currentColor!important}.kgh-bell-symbol svg{display:block;width:20px;height:20px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.kgh-bell-slash{opacity:1;stroke:#d71920!important;stroke-width:2.3!important;transition:opacity .15s ease}.is-on>.kgh-bell-symbol .kgh-bell-slash,.is-on .kgh-bell-symbol .kgh-bell-slash{opacity:0}.kgh-push-btn{min-width:112px}.kgh-push-btn:not(.is-on){border-color:#cfd3d6!important;background:#fff!important;color:#303438!important}.kgh-push-btn.is-on{border-color:#158042!important;background:#eaf8ef!important;color:#096b2c!important}.kgh-push-btn>b{font-size:inherit!important;color:inherit!important}
.kgh-push-settings[hidden]{display:none!important}.kgh-push-settings{position:fixed;inset:0;z-index:100300;display:grid;place-items:center;padding:18px}.kgh-push-backdrop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(0,0,0,.70)!important;backdrop-filter:blur(4px);cursor:pointer!important}.kgh-push-panel{position:relative;z-index:1;width:min(520px,100%);max-height:min(760px,calc(100vh - 36px));overflow:auto;padding:22px;border:1px solid #dfe2e5;border-radius:22px;background:#fff;color:#111;box-shadow:0 22px 70px rgba(0,0,0,.35)}.kgh-push-close{position:absolute!important;right:13px!important;top:13px!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:0 0 3px!important;border:1px solid #d9dde0!important;border-radius:50%!important;background:#f3f4f5!important;color:#111!important;font:700 23px/1 Arial,sans-serif!important;cursor:pointer!important}.kgh-push-panel>header{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;padding:1px 42px 15px 0;border-bottom:1px solid #eceef0}.kgh-push-panel>header>.kgh-bell-symbol{width:48px;height:48px;border-radius:14px;background:#111;color:#fff!important}.kgh-push-panel>header>.kgh-bell-symbol svg{width:25px;height:25px}.kgh-push-panel>header .kgh-bell-slash{opacity:0}.kgh-push-panel>header span:not(.kgh-bell-symbol){color:#d71920;font-size:9px;font-weight:900;letter-spacing:.12em}.kgh-push-panel h2{margin:2px 0 3px!important;color:#111!important;font-size:25px!important;line-height:1.05!important}.kgh-push-panel header p{margin:0;color:#70757a;font-size:10.5px;line-height:1.45}.kgh-push-master,.kgh-push-category{appearance:none!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:64px!important;margin:0!important;padding:10px 12px!important;border:1px solid #dce0e3!important;border-radius:13px!important;background:#fff!important;color:#111!important;text-align:left!important;box-shadow:none!important;opacity:1!important;cursor:pointer!important}.kgh-push-master{margin:15px 0 10px!important;border-color:#c7ccd0!important;background:#f5f6f7!important}.kgh-push-master.is-on,.kgh-push-category.is-on{border-color:#9cd3b3!important;background:#effaf3!important}.kgh-push-master>.kgh-bell-symbol,.kgh-push-category>.kgh-bell-symbol{width:36px;height:36px;border-radius:10px;background:#e7e9eb;color:#282c30!important}.kgh-push-master.is-on>.kgh-bell-symbol,.kgh-push-category.is-on>.kgh-bell-symbol{background:#d8f0e1;color:#087333!important}.kgh-push-master>span:not(.kgh-bell-symbol),.kgh-push-category>span:not(.kgh-bell-symbol){display:grid;gap:3px;min-width:0}.kgh-push-master strong,.kgh-push-category strong{color:#111!important;font-size:11.5px!important;line-height:1.2}.kgh-push-master small,.kgh-push-category small{color:#74797e!important;font-size:9px!important;line-height:1.35}.kgh-push-master>b,.kgh-push-category>b{padding:5px 7px;border-radius:999px;background:#e5e7e9;color:#555!important;font-size:8px!important;font-weight:900!important}.kgh-push-master.is-on>b,.kgh-push-category.is-on>b{background:#158042;color:#fff!important}.kgh-push-master.is-busy{opacity:.65!important;cursor:wait!important}.kgh-push-category-list{display:grid;gap:7px}.kgh-push-category:disabled{opacity:.58!important;cursor:wait!important}.kgh-push-settings-status{min-height:17px;margin:11px 2px 0;color:#666;font-size:9.5px}.kgh-push-modal-open{overflow:hidden!important}
@media(max-width:767px){.kgh-reorder-desktop{display:none}.kgh-reorder-mobile{display:inline}.kgh-staff-links>.kgh-staff-link.is-sortable{grid-template-columns:minmax(0,1fr) 76px}.kgh-staff-links>.kgh-staff-link .kgh-drag-handle{display:none!important}.kgh-mobile-order-controls{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:4px;padding:6px;border-left:1px solid #d8dde1;background:#f2f3f4}.kgh-mobile-order-controls button,.kgh-mobile-order-controls button:hover,.kgh-mobile-order-controls button:focus{display:grid!important;place-items:center!important;width:29px!important;min-width:29px!important;height:100%!important;min-height:45px!important;margin:0!important;padding:0 0 3px!important;border:1px solid #cbd0d4!important;border-radius:8px!important;background:#fff!important;color:#111!important;font:900 20px/1 Arial,sans-serif!important;opacity:1!important;touch-action:manipulation!important;-webkit-touch-callout:none!important;user-select:none!important}.kgh-mobile-order-controls button:disabled{color:#b9bdc1!important;background:#eaedef!important;opacity:.75!important}.kgh-staff-link-main,.kgh-staff-link-main *{cursor:pointer!important}.kgh-push-settings{align-items:end;padding:10px}.kgh-push-panel{width:100%;max-height:calc(100vh - 20px);padding:18px 14px;border-radius:20px}.kgh-push-panel>header{grid-template-columns:43px minmax(0,1fr);padding-right:38px}.kgh-push-panel>header>.kgh-bell-symbol{width:43px;height:43px}.kgh-push-master,.kgh-push-category{grid-template-columns:34px minmax(0,1fr) auto!important;min-height:62px!important;padding:9px!important}.kgh-push-master>.kgh-bell-symbol,.kgh-push-category>.kgh-bell-symbol{width:34px;height:34px}}

/* v0.5.36 — fixed quick links and compact global +/- finance columns */
.kgh-staff-links>.kgh-staff-link{grid-template-columns:minmax(0,1fr)!important}.kgh-staff-link-main,.kgh-staff-link-main *{cursor:pointer!important;user-select:auto!important;touch-action:auto!important}
.kgh-future-component-settings{grid-template-columns:minmax(175px,.85fr) minmax(190px,1.05fr) auto auto auto auto!important;gap:7px!important}.kgh-global-plus-setting strong,.kgh-global-minus-setting strong{font-size:20px;line-height:1}.kgh-global-plus-setting strong{color:#16844b}.kgh-global-minus-setting strong{color:#d71920}.kgh-global-plus-setting span,.kgh-global-minus-setting span{white-space:nowrap}
.kgh-finance-entry-row{grid-template-columns:minmax(105px,.42fr) minmax(235px,.92fr) minmax(0,3.8fr) 42px!important;gap:7px!important}.kgh-finance-entry-grid{grid-template-columns:repeat(6,minmax(72px,1fr))!important;gap:5px!important}.kgh-finance-entry-grid>label>span:first-child{font-size:7.2px!important;letter-spacing:-.01em}.kgh-finance-entry-grid .kgh-money-input{grid-template-columns:minmax(0,1fr)!important}.kgh-finance-entry-grid .kgh-money-input input{min-width:0!important;padding:7px 6px!important;font-size:12px!important;-moz-appearance:textfield!important;appearance:textfield!important}.kgh-finance-entry-grid input[type="number"]::-webkit-inner-spin-button,.kgh-finance-entry-grid input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}.kgh-additional-field,.kgh-unforeseen-field{padding:0;border:0;border-radius:0;background:transparent!important;transition:.16s ease}.kgh-additional-field>span:first-child,.kgh-unforeseen-field>span:first-child{justify-content:flex-start!important;min-height:20px!important;font-size:15px!important;line-height:1!important}.kgh-additional-field>span:first-child{color:#16844b!important}.kgh-unforeseen-field>span:first-child{color:#d71920!important}.kgh-additional-field.is-excluded .kgh-money-input,.kgh-unforeseen-field.is-excluded .kgh-money-input{opacity:.48!important}
.kgh-finance-row-action{position:relative;width:42px;padding-top:25px!important}.kgh-square-save,.kgh-square-save:hover,.kgh-square-save:focus{display:grid!important;place-items:center!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 0 2px!important;border:0!important;border-radius:8px!important;background:#d71920!important;color:#fff!important;font:900 20px/1 Arial,sans-serif!important;opacity:1!important;box-shadow:none!important;cursor:pointer!important}.kgh-square-save.is-saved{background:#16844b!important}.kgh-finance-row-action .kgh-manager-save-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.kgh-finance-row-action .kgh-manager-save-status.is-error{top:68px;right:0;width:130px;height:auto;overflow:visible;clip:auto;padding:5px 7px;border-radius:6px;background:#fff0f1;color:#b20f18;font-size:8px;text-align:right;white-space:normal;box-shadow:0 4px 12px rgba(0,0,0,.08)}
@media(max-width:1050px){.kgh-future-component-settings{grid-template-columns:1fr 1fr auto auto!important}.kgh-finance-settings-save{grid-column:auto!important}.kgh-finance-entry-row{grid-template-columns:minmax(105px,.42fr) minmax(220px,.9fr) minmax(0,2.4fr) 42px!important}.kgh-finance-entry-grid{grid-template-columns:repeat(3,minmax(100px,1fr))!important}}
@media(max-width:800px){.kgh-future-component-settings{grid-template-columns:1fr 1fr!important}.kgh-finance-settings-save{grid-column:1/-1!important}.kgh-finance-entry-row{grid-template-columns:1fr 1fr!important}.kgh-finance-entry-row>strong,.kgh-finance-entry-row>.kgh-report-date-fields,.kgh-finance-entry-grid{grid-column:1/-1}.kgh-finance-entry-grid{grid-template-columns:repeat(2,minmax(110px,1fr))!important}.kgh-finance-row-action{grid-column:1/-1;justify-self:end;padding-top:0!important}.kgh-finance-row-action .kgh-manager-save-status{top:44px}}
@media(max-width:480px){.kgh-future-component-settings,.kgh-finance-entry-row{grid-template-columns:1fr!important}.kgh-finance-entry-row>strong,.kgh-finance-entry-row>.kgh-report-date-fields,.kgh-finance-entry-grid,.kgh-finance-row-action{grid-column:auto}.kgh-finance-entry-grid{grid-template-columns:1fr!important}.kgh-finance-row-action{justify-self:end!important;width:42px!important}}

/* Product-specific internal gifts. */
.kgh-gift-product-rule{display:grid;grid-template-columns:minmax(230px,.65fr) minmax(280px,1.35fr);align-items:start;gap:10px;padding:12px;border:1px solid #dfe3e6;border-radius:12px;background:#f7f8f9}.kgh-voucher-product-picker{position:relative;display:grid;gap:7px;min-width:0}.kgh-voucher-product-picker>label{display:grid;gap:5px;color:#555;font-size:9px;font-weight:850;text-transform:uppercase}.kgh-voucher-product-picker input[type="search"],.kgh-voucher-product-picker input[type="search"]:hover,.kgh-voucher-product-picker input[type="search"]:focus{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:9px 11px;border:1px solid #c9cfd4!important;border-radius:10px;background:#fff!important;background-color:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;box-shadow:none!important;opacity:1!important;cursor:text!important}.kgh-voucher-product-results{position:absolute;z-index:80;top:58px;left:0;right:0;display:grid;max-height:330px;overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid #c9cfd4;border-radius:12px;background:#fff!important;color:#111!important;box-shadow:0 16px 38px rgba(0,0,0,.22)}.kgh-voucher-product-results[hidden]{display:none!important}.kgh-voucher-product-results>button,.kgh-voucher-product-results>button:hover,.kgh-voucher-product-results>button:focus{display:grid!important;grid-template-columns:50px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;width:100%!important;min-height:64px!important;margin:0!important;padding:7px!important;border:0!important;border-bottom:1px solid #eceef0!important;border-radius:8px!important;background:#fff!important;background-color:#fff!important;color:#111!important;text-align:left!important;opacity:1!important;box-shadow:none!important;transform:none!important;cursor:pointer!important}.kgh-voucher-product-results>button:last-child{border-bottom:0!important}.kgh-voucher-product-results>button:hover,.kgh-voucher-product-results>button:focus{background:#f2f4f5!important;outline:2px solid transparent!important}.kgh-voucher-result-image{display:grid!important;place-items:center!important;width:50px!important;height:50px!important;overflow:hidden;border-radius:9px;background:#eceff1!important;color:#d71920!important;font-size:9px!important;font-weight:900!important}.kgh-voucher-result-image img{display:block;width:100%;height:100%;object-fit:cover}.kgh-voucher-result-copy{display:grid!important;gap:4px!important;min-width:0!important}.kgh-voucher-result-copy strong{overflow:hidden;color:#111!important;font-size:11px!important;line-height:1.2!important;text-overflow:ellipsis;white-space:nowrap}.kgh-voucher-result-copy small{overflow:hidden;color:#656a6f!important;font-size:8.5px!important;line-height:1.35!important;text-overflow:ellipsis;white-space:nowrap}.kgh-voucher-product-results>button>b{padding:6px 8px;border-radius:8px;background:#111;color:#fff!important;font-size:8px!important}.kgh-voucher-product-message{margin:0!important;padding:11px!important;color:#555!important;font-size:9.5px!important;text-align:center}.kgh-voucher-product-selected{display:grid;grid-template-columns:50px minmax(0,1fr) 32px;align-items:center;gap:9px;padding:8px;border:1px solid #8dcea9;border-radius:11px;background:#effaf3!important;color:#111!important}.kgh-voucher-product-selected[hidden]{display:none!important}.kgh-voucher-product-selected>[data-kgh-voucher-selected-image]{display:grid;place-items:center;width:50px;height:50px;overflow:hidden;border-radius:9px;background:#fff;color:#d71920;font-size:9px;font-weight:900}.kgh-voucher-product-selected>[data-kgh-voucher-selected-image] img{display:block;width:100%;height:100%;object-fit:cover}.kgh-voucher-product-selected>div{display:grid;gap:3px;min-width:0}.kgh-voucher-product-selected small{color:#14814a!important;font-size:7.5px!important;font-style:normal;font-weight:900;letter-spacing:.08em}.kgh-voucher-product-selected strong{overflow:hidden;color:#111!important;font-size:11px!important;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.kgh-voucher-product-selected em{overflow:hidden;color:#60666b!important;font-size:8.5px!important;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.kgh-voucher-product-selected>button,.kgh-voucher-product-selected>button:hover,.kgh-voucher-product-selected>button:focus{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;margin:0!important;padding:0 0 2px!important;border:1px solid #cad0d4!important;border-radius:50%!important;background:#fff!important;color:#111!important;font:800 21px/1 Arial,sans-serif!important;opacity:1!important;cursor:pointer!important}.kgh-voucher-product-help{color:#6b7075!important;font-size:8.5px!important;font-weight:600!important;line-height:1.4!important;text-transform:none!important}.kgh-voucher-product{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:center;margin-top:10px;padding:9px;border:1px solid rgba(0,0,0,.1);border-radius:11px;background:#f6f7f8}.kgh-voucher-product>img{width:70px;height:70px;border-radius:9px;object-fit:cover;background:#fff}.kgh-voucher-product>div{display:grid;gap:4px}.kgh-voucher-product small{color:#d71920!important;font-size:8px!important;font-weight:900}.kgh-voucher-product strong{font-size:11px!important;letter-spacing:0!important}.kgh-voucher-product span{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.kgh-voucher-product del{color:#777;font-size:10px}.kgh-voucher-product span b{font-size:12px!important;color:#168347!important}.kgh-voucher-product a{width:max-content;color:#111!important;font-size:9px;font-weight:850;text-decoration:underline!important}

/* Salary request states reuse the calculated compensation instead of duplicating payroll data. */
.kgh-pay-card.is-salary-due,.kgh-pay-card.is-salary-pending{border-color:#b40913!important;background:#c9141f!important;background-color:#c9141f!important;color:#fff!important;box-shadow:0 12px 32px rgba(163,9,18,.28)}.kgh-pay-card.is-salary-approved{border-color:#0f713d!important;background:#16864a!important;background-color:#16864a!important;color:#fff!important;box-shadow:0 12px 32px rgba(10,96,51,.25)}.kgh-pay-card.is-salary-due:hover,.kgh-pay-card.is-salary-pending:hover,.kgh-pay-card.is-salary-approved:hover{opacity:1!important}.kgh-pay-card.is-salary-due .kgh-card-head h2,.kgh-pay-card.is-salary-due .kgh-card-head span,.kgh-pay-card.is-salary-due .kgh-pay-total,.kgh-pay-card.is-salary-pending .kgh-card-head h2,.kgh-pay-card.is-salary-pending .kgh-card-head span,.kgh-pay-card.is-salary-pending .kgh-pay-total,.kgh-pay-card.is-salary-approved .kgh-card-head h2,.kgh-pay-card.is-salary-approved .kgh-card-head span,.kgh-pay-card.is-salary-approved .kgh-pay-total{color:#fff!important}.kgh-pay-card.is-salary-due .kgh-month-nav a,.kgh-pay-card.is-salary-pending .kgh-month-nav a,.kgh-pay-card.is-salary-approved .kgh-month-nav a{border-color:rgba(255,255,255,.5)!important;background:#fff!important;color:#111!important}.kgh-pay-card.is-salary-due .kgh-month-nav strong,.kgh-pay-card.is-salary-pending .kgh-month-nav strong,.kgh-pay-card.is-salary-approved .kgh-month-nav strong{color:#fff!important}.kgh-pay-card.is-salary-due .kgh-pay-grid>div,.kgh-pay-card.is-salary-pending .kgh-pay-grid>div,.kgh-pay-card.is-salary-approved .kgh-pay-grid>div{border-color:rgba(255,255,255,.28)!important;background:rgba(255,255,255,.13)!important;color:#fff!important}.kgh-pay-card.is-salary-due .kgh-pay-grid span,.kgh-pay-card.is-salary-due .kgh-pay-grid b,.kgh-pay-card.is-salary-due .kgh-pay-grid strong,.kgh-pay-card.is-salary-due .kgh-pay-grid small,.kgh-pay-card.is-salary-pending .kgh-pay-grid span,.kgh-pay-card.is-salary-pending .kgh-pay-grid b,.kgh-pay-card.is-salary-pending .kgh-pay-grid strong,.kgh-pay-card.is-salary-pending .kgh-pay-grid small,.kgh-pay-card.is-salary-approved .kgh-pay-grid span,.kgh-pay-card.is-salary-approved .kgh-pay-grid b,.kgh-pay-card.is-salary-approved .kgh-pay-grid strong,.kgh-pay-card.is-salary-approved .kgh-pay-grid small{color:#fff!important}.kgh-pay-card.is-salary-due .kgh-pay-grid .is-total,.kgh-pay-card.is-salary-pending .kgh-pay-grid .is-total,.kgh-pay-card.is-salary-approved .kgh-pay-grid .is-total{background:rgba(0,0,0,.28)!important}.kgh-salary-card-state{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 12px;margin:0 0 12px;padding:10px 12px;border:1px solid rgba(255,255,255,.35);border-radius:11px;background:rgba(0,0,0,.16)}.kgh-salary-card-state>strong{font-size:12px;color:#fff}.kgh-salary-card-state>small{grid-column:1;color:rgba(255,255,255,.86);font-size:9px}.kgh-salary-card-state>button,.kgh-salary-card-state>button:hover,.kgh-salary-card-state>button:focus{grid-column:2;grid-row:1/3;min-height:38px;padding:0 15px;border:1px solid #fff!important;border-radius:9px;background:#18a85a!important;background-color:#18a85a!important;color:#fff!important;font-size:11px;font-weight:900;opacity:1!important;cursor:pointer!important}.kgh-salary-card-state>.kgh-manager-save-status{grid-column:1/-1;margin:0;color:#fff!important}.kgh-pay-card.is-salary-due .kgh-pay-history,.kgh-pay-card.is-salary-pending .kgh-pay-history,.kgh-pay-card.is-salary-approved .kgh-pay-history{border-color:rgba(255,255,255,.3)}.kgh-pay-card.is-salary-due .kgh-pay-history summary,.kgh-pay-card.is-salary-pending .kgh-pay-history summary,.kgh-pay-card.is-salary-approved .kgh-pay-history summary{color:#fff}.kgh-pay-card.is-salary-due .kgh-inline-editor,.kgh-pay-card.is-salary-pending .kgh-inline-editor,.kgh-pay-card.is-salary-approved .kgh-inline-editor{color:#111;background:#fff;border-radius:12px;padding:12px}
@media(hover:hover) and (pointer:fine){.kgh-pay-card.is-salary-due .kgh-salary-card-state>button{opacity:0!important;transform:translateY(4px);transition:.16s ease}.kgh-pay-card.is-salary-due:hover .kgh-salary-card-state>button,.kgh-pay-card.is-salary-due:focus-within .kgh-salary-card-state>button{opacity:1!important;transform:none}}

.kgh-salary-routing-card,.kgh-salary-approval-card{margin-bottom:14px}.kgh-salary-branch-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kgh-salary-branch-checks label{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 11px;border:1px solid #dce1e5;border-radius:10px;background:#f7f8f9;color:#111;font-size:11px;font-weight:800;cursor:pointer}.kgh-salary-branch-checks input{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;accent-color:#d71920}.kgh-salary-request-list{display:grid;gap:10px}.kgh-salary-request-list>article{display:grid;grid-template-columns:minmax(185px,.9fr) minmax(210px,1.1fr) 150px minmax(160px,.8fr);gap:10px;align-items:end;padding:13px;border:1px solid #dfe3e6;border-radius:13px;background:#fafafa}.kgh-salary-request-person{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:9px}.kgh-salary-request-person img{width:46px;height:46px;border-radius:50%;object-fit:cover}.kgh-salary-request-person>div{display:grid;gap:3px}.kgh-salary-request-person strong{font-size:12px}.kgh-salary-request-person small{color:#777;font-size:9px}.kgh-salary-request-breakdown{display:grid;gap:3px;align-self:center}.kgh-salary-request-breakdown span{display:flex;justify-content:space-between;gap:8px;color:#666;font-size:9px}.kgh-salary-request-breakdown b{color:#111}.kgh-salary-request-list label{display:grid;gap:5px;color:#555;font-size:9px;font-weight:850;text-transform:uppercase}.kgh-salary-request-list label>input{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d5dbe0!important;border-radius:9px;background:#fff!important;background-color:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important}.kgh-salary-request-actions{display:flex;gap:6px}.kgh-salary-request-actions button{flex:1;min-height:42px!important;padding:0 9px!important;font-size:9px!important}.kgh-salary-request-list>article>.kgh-manager-save-status{grid-column:1/-1}.kgh-salary-request-history>div:last-child{display:grid;gap:7px}.kgh-salary-request-history article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px 10px;padding:10px 11px;border:1px solid #e1e4e7;border-radius:10px}.kgh-salary-request-history article>div{display:grid;gap:2px}.kgh-salary-request-history article strong{font-size:11px}.kgh-salary-request-history article small{color:#777;font-size:9px}.kgh-salary-request-history article>b{padding:5px 7px;border-radius:999px;background:#fde5e7;color:#a31219;font-size:8px}.kgh-salary-request-history article.is-approved>b{background:#e4f6eb;color:#146d39}.kgh-salary-request-history article>span{font-size:12px;font-weight:900}.kgh-salary-request-history article>small{grid-column:1/-1}
@media(max-width:900px){.kgh-salary-request-list>article{grid-template-columns:1fr 1fr}.kgh-salary-request-person,.kgh-salary-request-breakdown{grid-column:1/-1}.kgh-salary-branch-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.kgh-gift-product-rule,.kgh-salary-request-list>article,.kgh-salary-branch-checks{grid-template-columns:1fr}.kgh-salary-request-person,.kgh-salary-request-breakdown,.kgh-salary-request-list>article>.kgh-manager-save-status{grid-column:auto}.kgh-salary-card-state{grid-template-columns:1fr}.kgh-salary-card-state>button{grid-column:1;grid-row:auto;width:100%;opacity:1!important}.kgh-salary-card-state>small{grid-column:1}.kgh-salary-request-actions{display:grid;grid-template-columns:1fr 1fr}.kgh-voucher-product{grid-template-columns:58px minmax(0,1fr)}.kgh-voucher-product>img{width:58px;height:58px}}
@media(max-width:620px){.kgh-gift-product-rule{gap:12px;padding:10px}.kgh-voucher-product-results{position:relative;top:auto;max-height:44vh;margin-top:-2px;box-shadow:0 10px 26px rgba(0,0,0,.16)}.kgh-voucher-product-results>button,.kgh-voucher-product-results>button:hover,.kgh-voucher-product-results>button:focus{grid-template-columns:54px minmax(0,1fr)!important;min-height:70px!important;padding:8px!important}.kgh-voucher-result-image{width:54px!important;height:54px!important}.kgh-voucher-product-results>button>b{grid-column:2;justify-self:start}.kgh-voucher-product-selected{grid-template-columns:54px minmax(0,1fr) 34px}.kgh-voucher-product-selected>[data-kgh-voucher-selected-image]{width:54px;height:54px}.kgh-voucher-result-copy small,.kgh-voucher-product-selected em{white-space:normal}.kgh-voucher-product-help{font-size:9px!important}}

/* =========================================================
   v0.5.1 – auth/account cleanup + compact UX polish
   ========================================================= */

/* Fallback only: raw WooCommerce account screens should redirect to My Korekt,
   but if another plugin prevents the redirect they must still remain readable. */
.woocommerce-account .woocommerce{max-width:1180px;margin:24px auto;padding:22px;border:1px solid #dfe2e5;border-radius:18px;background:#fff;color:#111;box-shadow:0 16px 42px rgba(0,0,0,.12)}
.woocommerce-account .woocommerce a{color:#111}.woocommerce-account .woocommerce input,.woocommerce-account .woocommerce select,.woocommerce-account .woocommerce textarea{background:#f4f5f6!important;color:#111!important;-webkit-text-fill-color:#111!important;border:1.3px solid #111!important;border-radius:10px!important}
.woocommerce-account .woocommerce-MyAccount-navigation{padding:12px;border:1px solid #e0e3e6;border-radius:14px;background:#fff}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0;list-style:none}.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:10px 12px;border-radius:9px;text-decoration:none}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:#111;color:#fff}.woocommerce-account .woocommerce-MyAccount-content{padding:4px 8px}

/* Profile cart: product link + independent remove control. */
.kgh-profile-cart-item{grid-template-columns:minmax(0,1fr) 38px!important;padding:7px 8px 7px 7px!important}
.kgh-profile-cart-main{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:12px;min-width:0;color:#111!important;text-decoration:none!important}
.kgh-profile-cart-main>span:nth-child(2){display:grid;gap:4px;min-width:0}.kgh-profile-cart-main strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kgh-profile-cart-main small{font-size:11px;color:#696e74}
.kgh-profile-cart-remove{appearance:none!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:1px solid #d8dce0!important;border-radius:50%!important;background:#fff!important;color:#8b8f94!important;font:500 22px/1 Arial,sans-serif!important;cursor:pointer!important;box-shadow:none!important;transition:.15s ease}.kgh-profile-cart-remove:hover{border-color:var(--kgh-red)!important;background:#fff2f3!important;color:var(--kgh-red)!important}.kgh-profile-cart-remove:disabled{opacity:.45!important;cursor:wait!important}

/* v0.5.34 — customer watched products, sourced from KG Product Alerts. */
.kgh-watched-card .kgh-card-head small{display:block;margin-top:5px;color:#73777c;font-size:10px;line-height:1.4}.kgh-watched-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kgh-watched-item{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:8px;padding:8px;border:1px solid #e0e3e6;border-radius:14px;background:#fff;transition:opacity .22s ease,transform .22s ease}.kgh-watched-main{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:11px;min-width:0;color:#111!important;text-decoration:none!important}.kgh-watched-img{display:grid;place-items:center;width:58px;height:58px;border-radius:11px;background:#f0f1f2;overflow:hidden}.kgh-watched-img img{width:100%;height:100%;object-fit:cover}.kgh-watched-img>span{color:var(--kgh-red);font-size:12px;font-weight:950}.kgh-watched-copy{display:grid;gap:4px;min-width:0}.kgh-watched-copy strong{overflow:hidden;color:#111;font-size:12.5px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.kgh-watched-copy small{color:#6b7075;font-size:9.5px;line-height:1.35}.kgh-watched-copy em{width:max-content;padding:4px 7px;border-radius:999px;background:#e8f7ee;color:#08753d;font-size:8px;font-style:normal;font-weight:900;text-transform:uppercase}.kgh-watched-item.is-unavailable{border-color:#d9dcdf;background:#eceeef;filter:grayscale(1)}.kgh-watched-item.is-unavailable .kgh-watched-main{cursor:default}.kgh-watched-item.is-unavailable .kgh-watched-copy strong{color:#686d72}.kgh-watched-unavailable{color:#676b70!important;font-weight:800}.kgh-watched-item.is-removing{opacity:0;transform:scale(.98)}
@media(max-width:1050px) and (min-width:768px){.kgh-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-watched-list{grid-template-columns:1fr}}
@media(max-width:767px){.kgh-watched-list{grid-template-columns:1fr}.kgh-watched-main{grid-template-columns:50px minmax(0,1fr)}.kgh-watched-img{width:50px;height:50px}.kgh-watched-copy strong{font-size:11.5px}.kgh-watched-copy small{font-size:8.8px}}

/* Chat conversation actions. */
.kgh-chat-meta-actions{display:flex;align-items:center;gap:10px}.kgh-delete-chat{appearance:none!important;margin:0!important;padding:3px 0!important;border:0!important;background:transparent!important;color:#9b2228!important;text-decoration:underline!important;font:800 10px/1.2 inherit!important;box-shadow:none!important;cursor:pointer!important}.kgh-delete-chat:hover{color:var(--kgh-red)!important}

/* Return the customer chat to the lighter Messenger-like proportions. */
.kgh-chat-window{width:min(430px,calc(100vw - 28px));height:min(640px,calc(100dvh - 36px));border-radius:20px;border-color:#d9dcdf;box-shadow:0 22px 64px rgba(0,0,0,.24)}
.kgh-chat-head{min-height:60px;padding:8px 10px 8px 12px}.kgh-chat-head-copy strong{font-size:14.5px}.kgh-chat-head-copy small{font-size:10.5px}.kgh-head-back,.kgh-head-close{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
.kgh-chat-body{padding:10px 11px 12px;background:#f5f6f7}.kgh-msgs{gap:6px}.kgh-msg{max-width:84%;padding:8px 10px;border-radius:13px;font-size:13px;line-height:1.46}.kgh-msg.is-mine{background:#171717}.kgh-msg.is-system{font-size:11.5px;background:#fff}.kgh-msg-meta{font-size:9px}.kgh-sender{font-size:10px}
.kgh-message-gallery{gap:3px;margin-top:6px;border-radius:9px}.kgh-chat-photo{height:108px!important}.kgh-message-gallery.count-1 .kgh-chat-photo{height:180px!important}
.kgh-chat-compose{background:#fff;border-top:1px solid #e0e3e6}.kgh-compose-row{grid-template-columns:40px 40px 40px minmax(120px,1fr) 46px!important;gap:5px!important;padding:9px!important}.kgh-chat-compose textarea{min-height:44px!important;height:44px!important;max-height:132px!important;background:#f1f2f3!important;border:1.35px solid #111!important;border-radius:11px!important;color:#111!important;-webkit-text-fill-color:#111!important;font-size:13px!important}.kgh-compose-icon{border-color:#cfd3d7!important;background:#fff!important}.kgh-compose-icon:hover{border-color:#111!important}

/* Compact online valuation form – one clean form instead of a card around every input. */
#kgqv7-site-form{padding:20px 20px 18px!important}#kgqv7-site-form>h2{margin:0 0 4px!important;font-size:27px!important}#kgqv7-site-form>p{margin:0 0 14px!important;font-size:13px!important}
#kgqv7-site-form .kgqv7-form{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px 12px!important}
#kgqv7-site-form .kgqv7-field,#kgqv7-site-form .kgqv7-field-full,#kgqv7-site-form .kgqv7-upload-box,#kgqv7-site-form .kgqv7-geo-box{gap:5px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
#kgqv7-site-form .kgqv7-field{grid-column:span 2!important}#kgqv7-site-form .kgqv7-field-full{grid-column:span 3!important}#kgqv7-site-form .kgqv7-geo-box{grid-column:span 3!important;padding:9px 10px!important;border:1px solid #dfe2e5!important;border-radius:10px!important;background:#f7f8f9!important}#kgqv7-site-form .kgqv7-upload-box{grid-column:1/-1!important;padding:10px 11px!important;border:1px dashed #bfc4c8!important;border-radius:11px!important;background:#fafafa!important}
#kgqv7-site-form .kgqv7-form label{font-size:11px!important;line-height:1.25!important}#kgqv7-site-form .kgqv7-input,#kgqv7-site-form .kgqv7-select{height:42px!important;min-height:42px!important;padding:8px 10px!important;border-radius:9px!important;font-size:13px!important}#kgqv7-site-form .kgqv7-textarea{min-height:82px!important;max-height:150px!important;padding:9px 10px!important;border-radius:9px!important;font-size:13px!important}#kgqv7-site-form .kgqv7-phone-main{grid-template-columns:74px 1fr!important;gap:7px!important}#kgqv7-site-form .kgqv7-phone-prefix{min-height:42px!important;border-radius:9px!important;font-size:12px!important}#kgqv7-site-form .kgqv7-help,#kgqv7-site-form .kgqv7-upload-help,#kgqv7-site-form .kgqv7-geo-result{font-size:9.5px!important;line-height:1.4!important}#kgqv7-site-form .kgqv7-inline-toggle{font-size:9.5px!important;margin-top:1px!important}
#kgqv7-site-form .kgqv7-consent{grid-column:1/-1!important;padding:2px 0!important;font-size:10.5px!important;line-height:1.45!important}#kgqv7-site-form .kgqv7-submit{grid-column:1/-1!important;display:flex!important;gap:8px!important;padding-top:2px!important}#kgqv7-site-form .kgqv7-submit .kgqv7-btn{min-height:42px!important;padding:9px 15px!important;border-radius:10px!important;font-size:11px!important}

@media(max-width:767px){
  .woocommerce-account .woocommerce{margin:12px 8px;padding:14px;border-radius:14px}.woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:12px}.woocommerce-account .woocommerce-MyAccount-content{padding:0}
  .kgh-profile-cart-main{grid-template-columns:50px minmax(0,1fr)}.kgh-profile-cart-remove{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}
  .kgh-chat-window{right:5px;bottom:5px;width:calc(100vw - 10px);height:calc(var(--kgh-vvh,100dvh) - 10px);max-height:none;border-radius:17px}.kgh-chat-head{min-height:58px}.kgh-chat-body{padding:9px}.kgh-msg{max-width:88%;font-size:13px}.kgh-compose-row{grid-template-columns:38px 38px 38px minmax(72px,1fr) 44px!important;gap:4px!important;padding:8px!important}
  #kgqv7-site-form{padding:15px 12px 14px!important}#kgqv7-site-form>h2{font-size:23px!important}#kgqv7-site-form .kgqv7-form{grid-template-columns:1fr!important;gap:9px!important}#kgqv7-site-form .kgqv7-field,#kgqv7-site-form .kgqv7-field-full,#kgqv7-site-form .kgqv7-geo-box,#kgqv7-site-form .kgqv7-upload-box{grid-column:1!important}#kgqv7-site-form .kgqv7-input,#kgqv7-site-form .kgqv7-select{height:44px!important;min-height:44px!important}#kgqv7-site-form .kgqv7-submit{flex-direction:column!important}#kgqv7-site-form .kgqv7-submit .kgqv7-btn{width:100%!important}
}
#kgqv7-site-form .kgqv7-field--purpose,#kgqv7-site-form .kgqv7-field--amount,#kgqv7-site-form .kgqv7-field--geo{grid-column:span 2!important}
#kgqv7-site-form .kgqv7-field--branch,#kgqv7-site-form .kgqv7-field--description{grid-column:span 3!important}
@media(max-width:767px){#kgqv7-site-form .kgqv7-field--purpose,#kgqv7-site-form .kgqv7-field--amount,#kgqv7-site-form .kgqv7-field--geo,#kgqv7-site-form .kgqv7-field--branch,#kgqv7-site-form .kgqv7-field--description{grid-column:1!important}}


/* =========================================================
   v0.5.5 – stable account routing + premium identity header
   ========================================================= */

/* The identity block is intentionally dark so the name never disappears into
   the site's patterned background. */
.kgh-identity-hero{
  position:relative;
  overflow:hidden;
  padding:18px 20px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-bottom:1px solid rgba(217,31,38,.78)!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 18% 12%,rgba(217,31,38,.18),transparent 34%),
    linear-gradient(135deg,rgba(10,10,11,.97),rgba(28,29,31,.95))!important;
  box-shadow:0 14px 38px rgba(0,0,0,.24)!important;
}
.kgh-identity-hero:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--kgh-red),transparent);
  opacity:.9;
  pointer-events:none;
}
.kgh-identity-hero .kgh-profile-mini,
.kgh-identity-hero .kgh-profile-copy,
.kgh-identity-hero .kgh-top-actions{position:relative;z-index:1}
.kgh-identity-hero .kgh-avatar-wrap{
  border:2px solid rgba(255,255,255,.92)!important;
  background:#111!important;
  box-shadow:0 0 0 3px rgba(217,31,38,.55),0 10px 28px rgba(0,0,0,.34)!important;
}
.kgh-identity-hero .kgh-hero-kicker{
  color:#fff!important;
  letter-spacing:.16em!important;
  text-shadow:0 1px 0 rgba(0,0,0,.35),0 0 10px rgba(217,31,38,.45);
}
.kgh-identity-hero .kgh-hero-name{
  margin:5px 0 3px!important;
  color:#fff!important;
  -webkit-text-stroke:.45px var(--kgh-red);
  paint-order:stroke fill;
  text-shadow:
    1px 0 0 rgba(217,31,38,.75),
    -1px 0 0 rgba(217,31,38,.75),
    0 1px 0 rgba(217,31,38,.75),
    0 -1px 0 rgba(217,31,38,.75),
    0 4px 16px rgba(0,0,0,.45)!important;
}
.kgh-identity-hero .kgh-hero-sub{
  color:#eceef0!important;
  opacity:.9;
}
.kgh-identity-hero .kgh-install-btn,
.kgh-identity-hero .kgh-outline-btn{
  border-color:rgba(255,255,255,.88)!important;
  background:#fff!important;
  color:#111!important;
}
.kgh-identity-hero .kgh-install-btn:hover,
.kgh-identity-hero .kgh-outline-btn:hover{
  border-color:#fff!important;
  background:#f0f1f2!important;
}
.kgh-staff-top.kgh-identity-hero>.kgh-profile-copy{min-width:0}
.kgh-staff-top.kgh-identity-hero .kgh-profile-copy h1{font-size:29px!important}

/* Keep the header account icon a navigation item, not a shortcut to CHAT. */
.kgh-account-btn[aria-label="Моят Корект"]{cursor:pointer!important}

@media(max-width:767px){
  .kgh-identity-hero{
    padding:14px!important;
    gap:12px!important;
    border-radius:15px!important;
  }
  .kgh-identity-hero .kgh-hero-name{
    font-size:21px!important;
    line-height:1.08!important;
  }
  .kgh-identity-hero .kgh-hero-sub{
    max-width:210px!important;
    font-size:10px!important;
  }
  .kgh-staff-top.kgh-identity-hero .kgh-profile-copy h1{font-size:21px!important}
}

/* v0.5.6 — staff target card */
.kgh-target-card{position:relative;overflow:hidden}.kgh-target-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#df1520}.kgh-target-card.is-complete:before{background:#16844b}.kgh-target-percent{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:32px;border-radius:999px;background:#111;color:#fff;font-weight:850;font-size:12px}.kgh-target-card.is-complete .kgh-target-percent{background:#16844b}.kgh-target-numbers{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:10px 0 12px}.kgh-target-numbers strong{font-size:34px;line-height:1;color:#111}.kgh-target-numbers strong span{font-size:18px;color:#8a8a8a}.kgh-target-numbers small{color:#666;font-weight:700}.kgh-target-progress{height:10px;background:#eceef0;border-radius:999px;overflow:hidden}.kgh-target-progress i{display:block;height:100%;background:linear-gradient(90deg,#b80d16,#ed1b24);border-radius:999px;transition:width .35s ease}.kgh-target-card.is-complete .kgh-target-progress i{background:#16844b}
@media(max-width:650px){.kgh-target-numbers strong{font-size:29px}.kgh-target-numbers{align-items:flex-start;flex-direction:column;gap:5px}}

/* v0.5.9 — complete customer order history */
.kgh-orders-pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:14px 0 2px;padding-top:12px;border-top:1px solid #eceef1}
.kgh-orders-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 9px;border:1px solid #dfe2e6;border-radius:9px;background:#fff;color:#171717;text-decoration:none;font-size:12px;font-weight:800;box-shadow:none}
.kgh-orders-pagination .page-numbers.current{background:#111;border-color:#111;color:#fff}
.kgh-orders-pagination a.page-numbers:hover{border-color:#d71920;color:#b51219}
@media(max-width:650px){.kgh-orders-pagination{gap:5px}.kgh-orders-pagination .page-numbers{min-width:32px;height:32px;border-radius:8px}}


/* v0.5.11 — compact chat image thumbnails; full image remains in lightbox on click */
.kgh-message-gallery{
  width:min(100%,300px)!important;
  max-width:300px!important;
}
.kgh-message-gallery.count-1{
  width:min(100%,220px)!important;
  max-width:220px!important;
}
.kgh-chat-photo{
  height:100px!important;
}
.kgh-message-gallery.count-1 .kgh-chat-photo{
  height:145px!important;
}
.kgh-message-gallery.count-3 .kgh-chat-photo,
.kgh-message-gallery.count-4 .kgh-chat-photo,
.kgh-message-gallery.count-5 .kgh-chat-photo,
.kgh-message-gallery.count-6 .kgh-chat-photo{
  height:92px!important;
}
@media(max-width:520px){
  .kgh-message-gallery{width:min(100%,270px)!important;max-width:270px!important}
  .kgh-message-gallery.count-1{width:min(100%,205px)!important;max-width:205px!important}
  .kgh-message-gallery.count-1 .kgh-chat-photo{height:135px!important}
}
\n\n/* =========================================================\n   v0.5.12 — mobile header account icon stays on the SAME row\n   with НАЧАЛО / КОНТАКТИ / МАГАЗИН / ЗА НАС.\n   Scoped only to the menu row where JS mounts the account icon.\n   ========================================================= */\n@media(max-width:767px){\n  .kgh-account-menu-row{\n    display:flex!important;\n    flex-wrap:nowrap!important;\n    align-items:center!important;\n    justify-content:space-between!important;\n    gap:0!important;\n    column-gap:0!important;\n    width:100%!important;\n    max-width:100%!important;\n  }
  .kgh-account-menu-row>li{\n    margin-left:0!important;\n    margin-right:0!important;\n  }
  .kgh-account-menu-row>li:not(.kgh-menu-account-item){\n    flex:1 1 0!important;\n    min-width:0!important;\n  }
  .kgh-account-menu-row>li:not(.kgh-menu-account-item)>a{\n    display:flex!important;\n    align-items:center!important;\n    justify-content:center!important;\n    white-space:nowrap!important;\n    min-width:0!important;\n    padding-left:3px!important;\n    padding-right:3px!important;\n    font-size:clamp(12px,3.7vw,15px)!important;\n  }
  .kgh-account-menu-row>.kgh-menu-account-item{\n    display:flex!important;\n    align-items:center!important;\n    justify-content:center!important;\n    flex:0 0 34px!important;\n    width:34px!important;\n    max-width:34px!important;\n    min-width:34px!important;\n    padding:0!important;\n  }
  .kgh-account-menu-row .kgh-account-btn{\n    display:grid!important;\n    place-items:center!important;\n    width:34px!important;\n    height:42px!important;\n    min-width:34px!important;\n    min-height:42px!important;\n    margin:0!important;\n    padding:0!important;\n    border-radius:8px!important;\n  }
  .kgh-account-menu-row .kgh-account-btn svg{\n    width:26px!important;\n    height:26px!important;\n  }
}
@media(max-width:390px){\n  .kgh-account-menu-row>li:not(.kgh-menu-account-item)>a{\n    padding-left:2px!important;\n    padding-right:2px!important;\n    font-size:clamp(11.5px,3.45vw,13.5px)!important;\n  }
  .kgh-account-menu-row>.kgh-menu-account-item{\n    flex-basis:31px!important;\n    width:31px!important;\n    max-width:31px!important;\n    min-width:31px!important;\n  }
  .kgh-account-menu-row .kgh-account-btn{\n    width:31px!important;\n    min-width:31px!important;\n  }
  .kgh-account-menu-row .kgh-account-btn svg{\n    width:24px!important;\n    height:24px!important;\n  }
}


/* =========================================================
   v0.6.0 — integrated internal system UI
   Complex logic stays behind compact white management cards.
   ========================================================= */

/* Voucher collections stay one row and become horizontally scrollable. */
.kgh-voucher-cards{
  display:flex!important;
  grid-template-columns:none!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:2px 2px 10px!important;
  scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.kgh-voucher-cards>.kgh-voucher-card{
  flex:0 0 min(330px,86vw)!important;
  min-width:min(330px,86vw)!important;
  scroll-snap-align:start;
}

/* Month navigation must remain readable on the dark site background. */
.kgh-month-statistics>.kgh-stat-period-head{
  padding:7px 8px!important;
  border:1px solid #e3e5e7;
  border-radius:12px;
  background:#fff!important;
  color:#111!important;
}
.kgh-month-statistics>.kgh-stat-period-head>span,
.kgh-month-statistics>.kgh-stat-period-head .kgh-month-nav strong{color:#111!important;opacity:1!important}

/* Central management navigation is one clean horizontal strip on mobile. */
.kgh-manager-tabs,.kgh-subtabs{
  display:flex;align-items:center;gap:5px;overflow-x:auto;overflow-y:hidden;
  white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
}
.kgh-manager-tabs>a,.kgh-subtabs>a{flex:0 0 auto}

/* Permissions / feature switches */
.kgh-access-card form,.kgh-system-settings-page form{display:grid;gap:14px}
.kgh-access-status-row,.kgh-report-cycle-grid,.kgh-security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kgh-access-status-row label,.kgh-access-preset,.kgh-report-cycle-grid label,
.kgh-finance-entry-grid label,.kgh-inline-entry label,.kgh-task-create label,.kgh-task-template-form label{
  display:grid;gap:5px;font-size:10px;font-weight:850;color:#555
}
.kgh-access-status-row select,.kgh-access-preset select,.kgh-report-cycle-grid input,
.kgh-finance-entry-grid input,.kgh-finance-entry-grid textarea,.kgh-inline-entry input,.kgh-inline-entry select,
.kgh-task-create input,.kgh-task-create textarea,.kgh-task-create select,
.kgh-task-template-form input,.kgh-task-template-form textarea,.kgh-task-template-form select,
.kgh-audit-filters select,.kgh-finance-view-switch select,.kgh-finance-custom-range input{
  width:100%;min-height:42px;border:1px solid #d9dde1;border-radius:10px;background:#fff;color:#111;padding:8px 10px
}
.kgh-access-branches,.kgh-access-permissions,.kgh-feature-switches{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px
}
.kgh-access-branches>label,.kgh-access-permissions>label,.kgh-feature-switches>label,.kgh-toggle-setting{
  display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 10px;border:1px solid #e1e3e5;border-radius:10px;background:#fafafa;color:#222;font-size:10px;font-weight:800
}
.kgh-access-permissions>label.is-disabled{opacity:.45}
.kgh-security-principles{display:grid;gap:8px}
.kgh-security-principles>div,.kgh-security-grid>div{padding:11px;border:1px solid #e3e5e7;border-radius:11px;background:#fafafa}

/* Tasks */
.kgh-task-manager-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:12px}
.kgh-task-create,.kgh-task-template-form{display:grid;gap:9px;padding:12px;border:1px solid #e2e4e6;border-radius:13px;background:#fafafa}
.kgh-task-list,.kgh-task-template-list,.kgh-schedule-list,.kgh-assignment-list,.kgh-leave-list{display:grid;gap:8px}
.kgh-task-list>article,.kgh-task-template-list>article,.kgh-schedule-list>article,.kgh-assignment-list>article,.kgh-leave-list>article{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px;border:1px solid #e1e3e5;border-radius:11px;background:#fff
}
.kgh-task-main{display:grid;gap:4px}.kgh-task-main small{color:#666}.kgh-task-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}

/* Workforce */
.kgh-workforce-assignment-box,.kgh-self-schedule-proposal,.kgh-finance-entry-panel{
  padding:12px;border:1px solid #e1e3e5;border-radius:13px;background:#fff
}
.kgh-on-duty-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.kgh-on-duty-grid>article{padding:11px;border:1px solid #e1e3e5;border-radius:11px;background:#fff}

/* Finance — source data, report views and management KPI stay visually distinct. */
.kgh-finance-entry-intro,.kgh-finance-entry-rules,.kgh-scope-note{padding:10px 12px;border:1px solid #e1e3e5;border-radius:11px;background:#fafafa;color:#444}
.kgh-finance-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.kgh-finance-v2-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.kgh-finance-v2-cards>div{padding:12px;border:1px solid #e0e3e5;border-radius:12px;background:#fff}
.kgh-finance-v2-cards span{display:block;color:#777;font-size:9px;font-weight:850;text-transform:uppercase}
.kgh-finance-v2-cards b{display:block;margin-top:5px;color:#111;font-size:20px}
.kgh-finance-v2-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.kgh-finance-v2-breakdown>section{padding:12px;border:1px solid #e0e3e5;border-radius:12px;background:#fafafa}
.kgh-finance-daily-history{overflow-x:auto;-webkit-overflow-scrolling:touch}
.kgh-finance-daily-table{min-width:760px;width:100%;border-collapse:collapse;background:#fff}
.kgh-finance-daily-table th,.kgh-finance-daily-table td{padding:8px;border-bottom:1px solid #eceef0;text-align:right;font-size:10px}
.kgh-finance-daily-table th:first-child,.kgh-finance-daily-table td:first-child{text-align:left}

/* Voucher administration */
.kgh-voucher-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kgh-voucher-kpis>div{padding:11px;border:1px solid #e1e3e5;border-radius:11px;background:#fafafa}
.kgh-voucher-compact-list,.kgh-voucher-event-history{display:grid;gap:7px}
.kgh-voucher-compact-list>article,.kgh-voucher-event-history>article{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid #e1e3e5;border-radius:10px;background:#fff
}
.kgh-voucher-x{display:grid;place-items:center;width:32px;height:32px;border:1px solid #e0e2e4;border-radius:9px;background:#fff;color:#d71920;font-weight:900;cursor:pointer}

/* Audit */
.kgh-audit-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.kgh-audit-v2-list{display:grid;gap:6px}
.kgh-audit-v2-list>article{display:grid;grid-template-columns:105px minmax(0,1fr) auto;gap:10px;padding:9px 0;border-bottom:1px solid #eceef0}
.kgh-audit-v2-list time{color:#777;font-size:9px}.kgh-audit-v2-list small{display:block;color:#666}

/* Fine appeal and lightweight editing controls */
.kgh-mini-pencil,.kgh-edit-pencil{cursor:pointer}
.kgh-fine-appeal-actions{display:flex;gap:6px;flex-wrap:wrap}

@media(max-width:767px){
  .kgh-access-status-row,.kgh-access-branches,.kgh-access-permissions,.kgh-feature-switches,.kgh-report-cycle-grid,.kgh-security-grid,
  .kgh-task-manager-grid,.kgh-on-duty-grid,.kgh-finance-v2-breakdown{grid-template-columns:1fr}
  .kgh-finance-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kgh-finance-v2-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kgh-audit-v2-list>article{grid-template-columns:1fr}.kgh-audit-v2-list>article>span{text-align:left}
  .kgh-task-list>article,.kgh-task-template-list>article,.kgh-schedule-list>article,.kgh-assignment-list>article,.kgh-leave-list>article{grid-template-columns:1fr}
  .kgh-task-actions{justify-content:flex-start}
}
@media(max-width:440px){
  .kgh-finance-entry-grid{grid-template-columns:1fr}
  .kgh-voucher-kpis{grid-template-columns:1fr}
}

/* v0.6.1-dev.2 rules/workforce refinements */
.kgh-task-weekdays{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.kgh-task-weekdays label{display:flex!important;align-items:center;gap:7px;padding:7px 8px;border:1px solid #e3e5e7;border-radius:9px;background:#fff}
.kgh-schedule-period-statuses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 14px}
.kgh-schedule-period-statuses>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;padding:9px 10px;border:1px solid #e1e3e5;border-radius:10px;background:#fafafa}
.kgh-schedule-period-statuses strong{font-size:11px}.kgh-schedule-period-statuses span{font-size:9px;color:#666}
.kgh-schedule-period-statuses button{grid-row:1/3;grid-column:2;border:1px solid #d7dade;border-radius:8px;background:#fff;padding:7px 9px;font-size:9px;font-weight:800;cursor:pointer}
.kgh-leave-manager-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.kgh-leave-manager-actions input,.kgh-leave-manager-actions select{min-height:36px;border:1px solid #d9dde1;border-radius:9px;background:#fff;padding:6px 8px;font-size:9px}
.kgh-target-rule-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:end}
.kgh-target-rule-form>label,.kgh-target-rule-form fieldset{display:grid;gap:4px;font-size:10px;font-weight:800;color:#555}
.kgh-target-rule-form input,.kgh-target-rule-form select{width:100%;min-height:39px;border:1px solid #d9dde1;border-radius:9px;background:#fff;padding:7px 8px}
.kgh-target-rule-form fieldset{grid-column:span 2;border:1px solid #e1e3e5;border-radius:10px;padding:8px;grid-template-columns:repeat(7,auto)}
.kgh-target-rule-form fieldset legend{grid-column:1/-1;padding:0 4px}.kgh-target-rule-form fieldset label{display:flex;gap:4px;align-items:center}.kgh-target-rule-form fieldset input{width:auto;min-height:0}
@media(max-width:900px){.kgh-schedule-period-statuses{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-target-rule-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.kgh-task-weekdays,.kgh-schedule-period-statuses,.kgh-target-rule-form{grid-template-columns:1fr}.kgh-target-rule-form fieldset{grid-column:auto;grid-template-columns:repeat(4,auto)}.kgh-leave-manager-actions{justify-content:flex-start}.kgh-leave-manager-actions input,.kgh-leave-manager-actions select{width:100%}}

/* v0.6.1-dev.2 — Стоки напред / свободни записи */
.kgh-goods-form{display:grid;gap:12px;margin-top:12px}.kgh-goods-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;align-items:end}.kgh-goods-form-grid>label{display:grid;gap:5px;color:#555;font-size:10.5px;font-weight:800}.kgh-goods-form-grid input,.kgh-goods-form-grid select,.kgh-goods-form-grid textarea{width:100%;min-height:40px;border:1px solid #d9dde1;border-radius:9px;background:#fff;padding:8px 9px;color:#111}.kgh-goods-form-grid textarea{min-height:76px;resize:vertical}.kgh-goods-note{grid-column:span 2}.kgh-inline-field{display:flex;gap:5px}.kgh-inline-field input{min-width:0}.kgh-inline-field button{flex:0 0 auto;border:1px solid #d71920;border-radius:8px;background:#fff;color:#b80d16;font-weight:850;padding:0 10px;cursor:pointer}.kgh-goods-form-grid fieldset{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;border:1px solid #e0e3e6;border-radius:10px;padding:8px 10px}.kgh-goods-form-grid fieldset legend{padding:0 5px;font-size:10px;font-weight:850}.kgh-goods-form-grid fieldset label{display:flex;gap:6px;align-items:center;font-size:10px}.kgh-goods-form-grid fieldset input{width:auto;min-height:0}.kgh-goods-warning{padding:10px 12px;border:1px solid #e4b9bd;border-radius:10px;background:#fff5f6;color:#721c24;font-size:11px;line-height:1.5}.kgh-goods-warning .kgh-red-btn{margin-top:8px}.kgh-goods-list{display:grid;gap:8px;margin-top:16px}.kgh-goods-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e2e5e8;border-radius:11px;background:#fff}.kgh-goods-row-main>span{display:block;color:#777;font-size:9.5px;font-weight:850;text-transform:uppercase}.kgh-goods-row-main h3{margin:3px 0;color:#111;font-size:15px}.kgh-goods-row-main h3 b{margin-left:6px;color:#b80d16}.kgh-goods-row-main p{margin:3px 0;color:#333;font-size:11px}.kgh-goods-row-main small,.kgh-goods-row-main em{display:block;margin-top:3px;color:#73777b;font-size:10px}.kgh-goods-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}.kgh-goods-actions button,.kgh-goods-actions a{min-height:32px;padding:6px 9px;border:1px solid #d9dde1;border-radius:8px;background:#fff;color:#222;font-size:10px;font-weight:850;text-decoration:none;cursor:pointer}.kgh-goods-list article.is-payment_pending,.kgh-goods-list article.is-return_pending{border-color:#e6b0b4;background:#fffafa}
@media(max-width:950px){.kgh-goods-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-goods-list article{grid-template-columns:1fr}.kgh-goods-actions{justify-content:flex-start}}
@media(max-width:620px){.kgh-goods-form-grid{grid-template-columns:1fr}.kgh-goods-note,.kgh-goods-form-grid fieldset{grid-column:auto}.kgh-goods-form-grid fieldset{grid-template-columns:1fr}.kgh-goods-actions>*{flex:1;text-align:center}}

/* v0.6.1-dev.2 — Control Center */
.kgh-control-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.kgh-control-head h1{margin:3px 0}.kgh-control-head>strong{display:grid;place-items:center;min-width:82px;height:70px;border-radius:14px;background:#111;color:#fff;font-size:26px;line-height:1}.kgh-control-head>strong span{font-size:9px;font-weight:800;text-transform:uppercase;color:#ddd}.kgh-attention-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.kgh-attention-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;min-height:108px;padding:13px 14px;border:1px solid #e1e4e7;border-radius:12px;background:#fff;color:#111;text-decoration:none}.kgh-attention-card>span{font-size:11px;font-weight:850}.kgh-attention-card>b{font-size:22px;color:#b80d16}.kgh-attention-card>small{grid-column:1/-1;padding-right:16px;color:#6f7478;font-size:10px;line-height:1.4}.kgh-attention-card>i{position:absolute;right:11px;bottom:10px;font-size:18px;color:#bbb}.kgh-attention-card.is-clear{opacity:.68}.kgh-attention-card.is-clear>b{color:#16844b}.kgh-attention-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:5px;border-radius:999px;background:#d71920;color:#fff;font-size:9px;font-style:normal}
@media(max-width:900px){.kgh-attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.kgh-control-head{align-items:flex-start}.kgh-control-head>strong{min-width:68px;height:60px;font-size:21px}.kgh-attention-grid{grid-template-columns:1fr}}


/* v0.6.1-dev.2 — persistent Notification Center */
.kgh-notification-total{display:grid;justify-items:end;gap:1px;min-width:68px;font-size:24px;line-height:1;font-weight:900}
.kgh-notification-total span{font-size:9px;font-weight:800;color:#777;text-transform:uppercase;letter-spacing:.04em}
.kgh-notification-list{display:grid;gap:7px;margin-top:12px}
.kgh-notification-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #e1e3e5;border-radius:11px;background:#fff;color:#111;text-decoration:none}
.kgh-notification-row:hover{border-color:#cfd3d7}
.kgh-notification-row>i{width:7px;height:7px;border-radius:50%;background:#cfd3d7}
.kgh-notification-row.is-unread{font-weight:700;background:#fafafa}
.kgh-notification-row.is-unread>i{background:#d71920}
.kgh-notification-row strong{display:block;font-size:11px}
.kgh-notification-row p{margin:3px 0;color:#444;font-size:10px;font-weight:600}
.kgh-notification-row small{display:block;color:#777;font-size:9px;font-weight:600}
.kgh-notification-row>span{font-size:20px;color:#777}
.kgh-notification-prefs,.kgh-comp-visibility-settings{display:grid;gap:7px}
.kgh-notification-prefs>label,.kgh-comp-visibility-settings>label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:9px 10px;border:1px solid #e1e3e5;border-radius:10px;background:#fafafa;color:#222;font-size:10px;font-weight:800}
.kgh-comp-visibility-settings{padding:11px;border:1px solid #e1e3e5;border-radius:11px;background:#fff}
.kgh-comp-visibility-settings>strong{font-size:11px}
.kgh-comp-visibility-settings>small{color:#666;font-size:9px}
@media(max-width:600px){
  .kgh-notification-row{grid-template-columns:8px minmax(0,1fr) auto}
  .kgh-notification-total{min-width:54px;font-size:20px}
}


/* Employee-only target history */
.kgh-target-self-nav{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}
.kgh-target-self-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.kgh-target-self-kpis>div{padding:11px;border:1px solid #e1e3e5;border-radius:11px;background:#fafafa}
.kgh-target-self-kpis span{display:block;color:#777;font-size:9px;font-weight:800;text-transform:uppercase}.kgh-target-self-kpis strong{display:block;margin-top:4px;font-size:20px}
.kgh-target-self-note{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px;color:#555;font-size:10px}
.kgh-target-self-history{display:grid;gap:6px}.kgh-target-self-history>a{display:grid;grid-template-columns:70px 110px minmax(0,1fr);gap:10px;align-items:center;padding:9px 10px;border:1px solid #e1e3e5;border-radius:10px;color:#111;text-decoration:none;background:#fff}.kgh-target-self-history small{color:#666}
@media(max-width:600px){.kgh-target-self-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-target-self-history>a{grid-template-columns:58px 92px minmax(0,1fr)}}


.kgh-system-warning-list{display:grid;gap:7px}.kgh-system-warning{position:relative;display:grid;gap:3px;padding:12px 40px 12px 13px;border:1px solid #e2e4e7;border-left:4px solid #d69b00;border-radius:10px;background:#fff;color:#111;text-decoration:none}.kgh-system-warning.is-danger{border-left-color:#d71920}.kgh-system-warning b{font-size:11px}.kgh-system-warning small{color:#686d72;font-size:9.5px;line-height:1.4}.kgh-system-warning>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px;color:#aaa}.kgh-system-ok{display:grid;gap:4px;padding:16px;border:1px solid #d7e8dd;border-radius:11px;background:#f7fbf8}.kgh-system-ok strong{font-size:12px;color:#167446}.kgh-system-ok small{color:#647069;font-size:10px}.kgh-preview-banner{display:flex;justify-content:space-between;align-items:end;gap:16px}.kgh-preview-banner form{min-width:240px}.kgh-preview-banner select{width:100%}.kgh-preview-surface{margin-top:12px}.kgh-preview-lock{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f0f1f2;color:#555;font-size:9px;font-weight:800;text-transform:uppercase}.kgh-preview-disabled{cursor:not-allowed;opacity:.74}.kgh-preview-actions{display:flex;justify-content:flex-end;margin-top:10px}@media(max-width:680px){.kgh-preview-banner{align-items:stretch;flex-direction:column}.kgh-preview-banner form{min-width:0;width:100%}}

.kgh-hub a:focus-visible,.kgh-hub button:focus-visible,.kgh-hub input:focus-visible,.kgh-hub select:focus-visible,.kgh-hub textarea:focus-visible{outline:2px solid #d71920!important;outline-offset:2px!important}.kgh-manager-tabs{scrollbar-width:thin}.kgh-manager-tabs::-webkit-scrollbar{height:5px}.kgh-manager-tabs::-webkit-scrollbar-thumb{background:#c9cdd1;border-radius:99px}

/* v0.6.1-rc.1 — Finance period locking / immutable snapshots */
.kgh-finance-lock-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:12px 0;padding:12px 14px;border:1px solid #dfe3e7;border-radius:12px;background:#fafafa}
.kgh-finance-lock-box.is-locked{border-color:#e7b8bc;background:#fff7f8}
.kgh-finance-lock-box>div{display:grid;gap:3px}.kgh-finance-lock-box strong{font-size:12px;color:#111}.kgh-finance-lock-box small{font-size:9.5px;line-height:1.45;color:#666}
.kgh-finance-lock-box form{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:0}.kgh-finance-lock-box input[type="text"]{min-width:220px;min-height:36px;border:1px solid #d9dde1;border-radius:9px;background:#fff;padding:7px 9px;color:#111;font-size:10px}
.kgh-finance-lock-history{margin:8px 0 14px;border:1px solid #e3e6e8;border-radius:11px;background:#fff;overflow:hidden}.kgh-finance-lock-history>summary{padding:9px 12px;cursor:pointer;font-size:10px;font-weight:850;color:#333;list-style-position:inside}.kgh-finance-lock-history>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:8px 12px;border-top:1px solid #eceef0;font-size:9.5px}.kgh-finance-lock-history b{color:#111}.kgh-finance-lock-history small{color:#686d72}.kgh-finance-lock-history .is-locked{color:#b60f18}.kgh-finance-lock-history .is-unlocked{color:#5e6368}
.kgh-finance-locked-note{margin:10px 0;padding:10px 12px;border:1px solid #e7b8bc;border-radius:10px;background:#fff7f8;color:#7b151c;font-size:10.5px;font-weight:750}
@media(max-width:700px){.kgh-finance-lock-box{grid-template-columns:1fr}.kgh-finance-lock-box form{justify-content:flex-start}.kgh-finance-lock-box input[type="text"]{min-width:0;flex:1 1 100%}.kgh-finance-lock-history>div{grid-template-columns:1fr}.kgh-finance-lock-history>div>*{justify-self:start}}

/* v0.6.1-rc.1 — controlled production rollout */
.kgh-release-gates{display:grid;gap:8px;margin:14px 0;padding:12px;border:1px solid #e1e4e7;border-radius:12px;background:#fafafa}.kgh-release-gates>strong{font-size:12px;color:#111}.kgh-release-gates>small{color:#666;font-size:9.5px;line-height:1.45}.kgh-release-gates>label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #e2e5e8;border-radius:10px;background:#fff}.kgh-release-gates>label span{display:grid;gap:2px}.kgh-release-gates>label strong{font-size:10.5px}.kgh-release-gates>label small{font-size:9px;color:#70757a}.kgh-release-gates>label input{width:18px;height:18px}

/* Shift handover notes */
.kgh-handover-head{gap:14px}.kgh-handover-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:11px 13px;border:1px solid #e6c9c9;border-radius:12px;background:#fff7f7}.kgh-handover-alert strong{font-size:14px}.kgh-handover-alert span{font-size:12px;color:#666;white-space:nowrap}.kgh-handover-form{display:grid;gap:10px;margin:14px 0 10px}.kgh-handover-form textarea{width:100%;min-height:82px;resize:vertical;border:1px solid #d8d8d8;border-radius:12px;padding:11px 12px;background:#fff;color:#111;box-sizing:border-box}.kgh-handover-form>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.kgh-handover-form small{color:#6c6c6c}.kgh-handover-tabs{display:flex;gap:8px;margin:14px 0 10px;overflow:auto}.kgh-handover-tabs a{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #ddd;border-radius:999px;text-decoration:none;color:#222;background:#fff;white-space:nowrap}.kgh-handover-tabs a.is-active{border-color:#c71920;color:#a70e15;background:#fff5f5}.kgh-handover-list{display:grid;gap:9px}.kgh-handover-note{border:1px solid #e5e5e5;border-radius:13px;padding:12px;background:#fff}.kgh-handover-note-meta{display:flex;justify-content:space-between;gap:10px;align-items:center}.kgh-handover-note-meta span,.kgh-handover-note>small{font-size:12px;color:#777}.kgh-handover-note p{margin:9px 0 10px;white-space:normal;overflow-wrap:anywhere}.kgh-handover-note form{display:flex;justify-content:flex-end}.kgh-inline-success,.kgh-inline-error{margin:10px 0;padding:9px 11px;border-radius:10px;font-size:13px}.kgh-inline-success{background:#f1f8f2;border:1px solid #cfe5d1}.kgh-inline-error{background:#fff3f3;border:1px solid #edcaca}
@media(max-width:680px){.kgh-handover-head{align-items:stretch}.kgh-handover-alert,.kgh-handover-form>div,.kgh-handover-note-meta{align-items:flex-start;flex-direction:column}.kgh-handover-form .kgh-red-btn{width:100%}.kgh-handover-note form .kgh-outline-btn{width:100%}}
/* rc.2 — PROMO claim history */
.kgh-promo-claims{grid-column:1/-1;margin-top:8px;border-top:1px solid #eceef0;padding-top:8px}.kgh-promo-claims summary{cursor:pointer;color:#555;font-size:10px;font-weight:850}.kgh-promo-claims>div{display:grid;gap:6px;margin-top:8px}.kgh-promo-claims p{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;margin:0;padding:8px 9px;border:1px solid #eceef0;border-radius:9px;background:#fafafa}.kgh-promo-claims p>span{display:grid;gap:2px;min-width:0}.kgh-promo-claims p strong{font-size:10px}.kgh-promo-claims p small{color:#73777c;font-size:9px;overflow:hidden;text-overflow:ellipsis}.kgh-promo-claims p>b{font-size:9px;white-space:nowrap}.kgh-promo-claims p>b.is-issued{color:#217a36}.kgh-promo-claims p>b.is-failed{color:#b5121b}.kgh-promo-claims p>b.is-pending_contact{color:#9a6712}@media(max-width:680px){.kgh-promo-claims p{grid-template-columns:minmax(0,1fr) auto}.kgh-promo-claims p>small{grid-column:1/-1}}

/* 0.6.1-rc.20 — richer Online Orders / Econt tracking */
.kgh-order-item.is-order-rejected{opacity:.68}.kgh-order-item.is-order-rejected .kgh-order-item-copy strong{text-decoration:line-through}.kgh-order-item>b s{color:#8a8a8a;font-weight:600}.kgh-shipment-list [data-kgh-shipment]{align-items:flex-start}.kgh-shipment-live{display:grid!important;gap:3px}.kgh-shipment-live>b{line-height:1.35}.kgh-shipment-live em{font-style:normal;color:#5f646b;font-size:11px;line-height:1.35}.kgh-shipment-live small[data-kgh-shipment-updated]{color:#8a8e94;font-size:10px}

/* pickup reservation in customer profile */
.kgh-pickup-order-info{display:grid;gap:4px;margin-top:10px;padding:11px 12px;border:1px solid #e7e7ea;border-radius:12px;background:#fafafa}.kgh-pickup-order-info.is-active{border-color:#efbfc2;background:#fff8f8}.kgh-pickup-order-info>small{color:#d71920;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.kgh-pickup-order-info>strong{font-size:14px}.kgh-pickup-order-info>span{color:#666;font-size:11px}.kgh-pickup-phone{width:max-content;color:#17783c!important;font-size:11px;font-weight:800;text-decoration:none}.kgh-pickup-waiting{margin-top:5px;color:#805400;font-size:11px}.kgh-pickup-ready{margin-top:5px;color:#17783c;font-size:11px}.kgh-pickup-expired{margin-top:5px;color:#a11;font-size:11px}

/* v0.6.1-rc.22 · protected problem reports */
.kgh-problem-entry{width:100%;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;margin-top:14px;padding:13px 14px;border:2px solid #d71920;border-radius:15px;background:#d71920;color:#fff;text-align:left;cursor:pointer;box-shadow:0 8px 22px rgba(215,25,32,.14)}
.kgh-problem-entry:hover{transform:translateY(-1px);box-shadow:0 11px 26px rgba(215,25,32,.2)}
.kgh-problem-entry-icon{width:34px;height:34px;border:2px solid #fff;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:20px}
.kgh-problem-entry b,.kgh-problem-entry small{display:block;color:#fff}.kgh-problem-entry small{margin-top:2px;opacity:.88;font-size:11px}.kgh-problem-entry .kgh-choice-arrow{color:#fff}
.kgh-problem-form-wrap{padding:14px}.kgh-problem-form-head{padding:14px 15px;margin-bottom:12px;border:1px solid #f0c4c6;border-radius:15px;background:#fff7f7}.kgh-problem-form-head span{display:block;color:#d71920;font-size:10px;font-weight:900;letter-spacing:.13em}.kgh-problem-form-head strong{display:block;margin-top:4px;font-size:19px}.kgh-problem-form-head p{margin:5px 0 0;color:#5c6268;font-size:12px;line-height:1.45}
#kgh-problem-form{display:grid;gap:11px}#kgh-problem-form label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#24272a}#kgh-problem-form input,#kgh-problem-form textarea{width:100%;box-sizing:border-box;border:1px solid #d6d9dc;border-radius:11px;background:#fff;padding:10px 11px;color:#16181a;font:inherit;font-weight:500;outline:none}#kgh-problem-form input:focus,#kgh-problem-form textarea:focus{border-color:#d71920;box-shadow:0 0 0 3px rgba(215,25,32,.08)}
.kgh-problem-two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.kgh-problem-email-row{display:grid;grid-template-columns:1fr auto;gap:7px}.kgh-problem-email-row button{border:1px solid #d71920;border-radius:10px;background:#fff;color:#c4141b;font-weight:900;padding:0 12px;cursor:pointer}.kgh-problem-email-row button:disabled{opacity:.55;cursor:wait}
.kgh-problem-anon{grid-template-columns:auto 1fr!important;align-items:flex-start!important;padding:10px 11px;border:1px solid #e4e5e7;border-radius:12px;background:#f7f8f9}.kgh-problem-anon input{width:auto!important;margin-top:3px}.kgh-problem-anon b,.kgh-problem-anon small{display:block}.kgh-problem-anon small{margin-top:2px;color:#666;font-size:10px;font-weight:500;line-height:1.4}
.kgh-problem-submit{border:2px solid #fff;border-radius:12px;background:#d71920;color:#fff;padding:12px 14px;font-weight:900;letter-spacing:.03em;cursor:pointer;box-shadow:0 0 0 1px #d71920}.kgh-problem-submit:disabled{opacity:.6;cursor:wait}.kgh-problem-status{min-height:18px;margin:0;font-size:11px;color:#63686e}.kgh-problem-status.is-error{color:#b10f15}.kgh-problem-status.is-success{color:#18783b}.kgh-problem-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}
.kgh-problem-success{padding:35px 20px;text-align:center}.kgh-problem-success>span{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border-radius:50%;background:#eaf7ef;color:#18783b;font-size:26px;font-weight:900}.kgh-problem-success strong{display:block;font-size:20px}.kgh-problem-success p{color:#5c6268}.kgh-problem-success b{display:inline-block;margin:4px 0 18px;padding:6px 10px;border-radius:8px;background:#f1f2f3;font-size:12px;letter-spacing:.06em}
@media(max-width:520px){.kgh-problem-two{grid-template-columns:1fr}.kgh-problem-email-row{grid-template-columns:1fr}.kgh-problem-email-row button{padding:10px 12px}}


/* =========================================================
   rc.26 UI HOTFIX — presentation and isolated profile archive only
   ========================================================= */
.kgh-hub input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.kgh-hub select,.kgh-hub textarea,
.kgh-system-settings-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.kgh-system-settings-page select,.kgh-system-settings-page textarea{background-color:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111!important;opacity:1!important}
.kgh-hub input::placeholder,.kgh-hub textarea::placeholder,.kgh-system-settings-page input::placeholder,.kgh-system-settings-page textarea::placeholder{color:#73777c!important;-webkit-text-fill-color:#73777c!important;opacity:1!important}
.kgh-hub select option,.kgh-system-settings-page select option{background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important}
.kgh-hub input[type="date"]::-webkit-datetime-edit,.kgh-hub input[type="month"]::-webkit-datetime-edit,.kgh-hub input[type="time"]::-webkit-datetime-edit,.kgh-hub input[type="datetime-local"]::-webkit-datetime-edit,
.kgh-system-settings-page input[type="date"]::-webkit-datetime-edit,.kgh-system-settings-page input[type="month"]::-webkit-datetime-edit,.kgh-system-settings-page input[type="time"]::-webkit-datetime-edit,.kgh-system-settings-page input[type="datetime-local"]::-webkit-datetime-edit{color:#111!important;-webkit-text-fill-color:#111!important}
.kgh-hub input:disabled,.kgh-hub select:disabled,.kgh-hub textarea:disabled,.kgh-hub input[readonly],.kgh-system-settings-page input:disabled,.kgh-system-settings-page select:disabled,.kgh-system-settings-page textarea:disabled,.kgh-system-settings-page input[readonly]{background:#f0f1f2!important;color:#62676c!important;-webkit-text-fill-color:#62676c!important;opacity:1!important}

.kgh-identity-hero{border:1px solid #dadde0!important;border-bottom:2px solid #d71920!important;background:linear-gradient(135deg,#f8f8f9 0%,#eceef0 100%)!important;box-shadow:0 10px 28px rgba(0,0,0,.12)!important}
.kgh-identity-hero:after{background:linear-gradient(90deg,transparent,#d71920,transparent)!important}
.kgh-identity-hero .kgh-avatar-wrap{background:#171719!important;border-color:#fff!important;box-shadow:0 0 0 3px rgba(217,25,32,.78),0 7px 18px rgba(0,0,0,.18)!important}
.kgh-identity-hero .kgh-hero-kicker,.kgh-identity-hero .kgh-hero-name,.kgh-identity-hero .kgh-hero-sub{color:#fff!important;-webkit-text-stroke:.55px #c5121a;paint-order:stroke fill;text-shadow:1px 0 #c5121a,-1px 0 #c5121a,0 1px #c5121a,0 -1px #c5121a,0 2px 4px rgba(0,0,0,.82)!important;opacity:1!important}
.kgh-identity-hero .kgh-hero-kicker{font-weight:950!important}.kgh-identity-hero .kgh-hero-sub{font-weight:850!important}

.kgh-voucher-card.is-inactive{background:linear-gradient(145deg,#f4f4f5,#e8eaec)!important;filter:saturate(.25);opacity:.88!important}
.kgh-voucher-card.is-inactive .kgh-voucher-card-top>em{background:#ffe4e5!important;color:#b20f17!important}
.kgh-voucher-card.is-expired,.kgh-voucher-card.is-used{background:linear-gradient(145deg,#f3f4f5,#e7e9eb)!important;filter:saturate(.18);opacity:.82!important}
.kgh-voucher-card.is-expired .kgh-voucher-card-top>em,.kgh-voucher-card.is-used .kgh-voucher-card-top>em{background:#e1e3e5!important;color:#555!important}
.kgh-voucher-archive-x{position:absolute;z-index:4;right:10px;bottom:10px;width:28px;height:28px;padding:0;border:0!important;background:transparent!important;color:#d71920!important;font-size:23px;font-weight:900;line-height:28px;text-align:center;cursor:pointer}
.kgh-voucher-archive-x:hover{transform:scale(1.08);color:#a80d14!important}
.kgh-voucher-archive{margin-top:14px;border-top:1px solid #e3e5e7;padding-top:10px}.kgh-voucher-archive>summary{cursor:pointer;color:#555;font-size:11px;font-weight:850}.kgh-voucher-archive>.kgh-voucher-cards{margin-top:10px}
.kgh-voucher-restore{position:absolute;z-index:4;right:12px;bottom:12px;border:0;background:transparent;color:#b4131b;font-size:10px;font-weight:900;cursor:pointer;text-decoration:underline}
.kgh-voucher-x{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#d71920!important;font-size:24px!important;line-height:30px!important;font-weight:900!important}
.kgh-voucher-compact-list span.is-inactive{color:#b20f17!important;font-weight:900}.kgh-voucher-compact-list span.is-expired,.kgh-voucher-compact-list span.is-used{color:#666!important;font-weight:850}

.kgh-targets-wrap .kgh-target-period{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 18px}
.kgh-targets-wrap .kgh-target-period input[type="month"]{width:180px;min-height:42px;border:1px solid #ccd1d5;border-radius:10px;padding:7px 10px}
.kgh-targets-wrap .kgh-target-form{overflow:hidden;border:1px solid #dfe3e6;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.kgh-targets-wrap .kgh-target-grid-head,.kgh-targets-wrap .kgh-target-row{display:grid;grid-template-columns:minmax(220px,1.55fr) minmax(145px,.9fr) minmax(110px,.65fr) minmax(150px,.8fr) minmax(135px,.75fr);gap:16px;align-items:center}
.kgh-targets-wrap .kgh-target-grid-head{padding:13px 18px;background:#f2f3f4;color:#555;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.kgh-targets-wrap .kgh-target-grid{display:grid}.kgh-targets-wrap .kgh-target-row{padding:17px 18px;border-top:1px solid #e8eaec;background:#fff}.kgh-targets-wrap .kgh-target-row:nth-child(even){background:#fafafa}
.kgh-targets-wrap .kgh-target-person strong{display:block;font-size:15px;color:#111}.kgh-targets-wrap .kgh-target-person small{display:block;margin-top:3px;color:#757a7e;font-size:11px}
.kgh-targets-wrap .kgh-target-branch{display:inline-flex;padding:6px 9px;border-radius:999px;background:#f0f1f2;color:#333;font-size:11px;font-weight:850}
.kgh-targets-wrap .kgh-target-result strong{display:block;font-size:24px;color:#111}.kgh-targets-wrap .kgh-target-result small{display:block;margin-top:2px;color:#666;font-size:11px}
.kgh-targets-wrap .kgh-target-input{width:110px!important;min-height:42px!important;border:1px solid #cfd3d7!important;border-radius:9px!important;background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;text-align:center;font-size:15px!important;font-weight:900}
.kgh-targets-wrap .kgh-switch{display:flex!important;align-items:center;gap:9px;margin:0!important;cursor:pointer}.kgh-targets-wrap .kgh-switch input{position:absolute;opacity:0;pointer-events:none}.kgh-targets-wrap .kgh-switch span{position:relative;width:42px;height:23px;border-radius:999px;background:#c5c9cd}.kgh-targets-wrap .kgh-switch span:after{content:"";position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}.kgh-targets-wrap .kgh-switch input:checked+span{background:#d71920}.kgh-targets-wrap .kgh-switch input:checked+span:after{transform:translateX(19px)}.kgh-targets-wrap .kgh-switch em{font-size:11px;font-style:normal;color:#555;font-weight:800}
.kgh-targets-wrap .kgh-target-actions{display:flex;align-items:center;gap:14px;padding:16px 18px;border-top:1px solid #e5e7e9;background:#fafafa}.kgh-targets-wrap .kgh-target-actions span{color:#666;font-size:11px}
@media(max-width:920px){.kgh-targets-wrap .kgh-target-grid-head{display:none}.kgh-targets-wrap .kgh-target-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kgh-targets-wrap .kgh-target-person{grid-column:1/-1}.kgh-targets-wrap .kgh-target-row>div:nth-child(2):before,.kgh-targets-wrap .kgh-target-row>div:nth-child(3):before,.kgh-targets-wrap .kgh-target-row>div:nth-child(4):before,.kgh-targets-wrap .kgh-target-row>div:nth-child(5):before{display:block;margin-bottom:5px;color:#8a8e92;font-size:9px;font-weight:900;text-transform:uppercase}.kgh-targets-wrap .kgh-target-row>div:nth-child(2):before{content:"Обект"}.kgh-targets-wrap .kgh-target-row>div:nth-child(3):before{content:"Резултат"}.kgh-targets-wrap .kgh-target-row>div:nth-child(4):before{content:"Таргет"}.kgh-targets-wrap .kgh-target-row>div:nth-child(5):before{content:"В профила"}}
@media(max-width:560px){.kgh-targets-wrap .kgh-target-row{grid-template-columns:1fr}.kgh-targets-wrap .kgh-target-person{grid-column:auto}.kgh-targets-wrap .kgh-target-actions{align-items:stretch;flex-direction:column}.kgh-targets-wrap .kgh-target-actions .kgh-red-btn{width:100%}}

.kgh-system-settings-page .kgh-feature-switches{gap:10px}.kgh-system-settings-page .kgh-feature-switches>label{min-height:58px;padding:12px 14px;justify-content:space-between;gap:14px}.kgh-system-settings-page .kgh-feature-switches>label>span{display:grid;gap:4px}.kgh-system-settings-page .kgh-feature-switches>label strong{font-size:13px!important;line-height:1.25;color:#171717}.kgh-system-settings-page .kgh-feature-switches>label small{font-size:10.5px!important;line-height:1.4;color:#666}.kgh-system-settings-page .kgh-feature-switches>label input{flex:0 0 auto;width:19px;height:19px}
.kgh-system-settings-page .kgh-comp-visibility-settings,.kgh-system-settings-page .kgh-release-gates{padding:16px!important}.kgh-system-settings-page .kgh-comp-visibility-settings>strong,.kgh-system-settings-page .kgh-release-gates>strong{font-size:14px!important}.kgh-system-settings-page .kgh-comp-visibility-settings>small,.kgh-system-settings-page .kgh-release-gates>small{font-size:11px!important;line-height:1.5}.kgh-system-settings-page .kgh-release-gates>label{padding:12px 13px!important}.kgh-system-settings-page .kgh-release-gates>label strong{font-size:12px!important}.kgh-system-settings-page .kgh-release-gates>label small{font-size:10.5px!important;line-height:1.45}
@media(max-width:720px){.kgh-system-settings-page .kgh-feature-switches{grid-template-columns:1fr}}

.kgh-audit-v2-list>article{padding:12px 4px!important}.kgh-audit-v2-list>article strong{font-size:12px;color:#171717}.kgh-audit-v2-list>article small{font-size:10px;line-height:1.45}
.kgh-system-warning{gap:5px!important;padding:14px 42px 14px 14px!important}.kgh-system-warning b{font-size:12px!important}.kgh-system-warning small{font-size:10.5px!important;line-height:1.5!important}.kgh-system-warning-action{margin-top:3px;padding-top:6px;border-top:1px dashed #e1e3e5;color:#4b5055!important}.kgh-system-warning-action b{font-size:10.5px!important;color:#222}


/* rc.27: dashboard accordion/readability + branch-only Econt summary */
.kgh-metric-detail,
.kgh-metric-detail[hidden="false"]{
  background:#fff!important;
  color:#111!important;
}
.kgh-metric-detail *:not(.kgh-red-btn):not(.kgh-inline-badge):not(.kgh-link-badge){
  color:#111!important;
}
.kgh-metric-detail a{color:#111!important;text-decoration:none}
.kgh-metric-detail small{color:#666!important}
.kgh-metric-detail .kgh-outline-btn{background:#fff!important;color:#111!important;border-color:#cfd4d8!important}
.kgh-metric-detail .kgh-outline-btn:hover{border-color:#d91f26!important;color:#d91f26!important}
.kgh-staff-metrics>.kgh-manager-metric{min-height:88px;width:100%;margin:0}
.kgh-staff-metrics>.kgh-metric-detail{grid-column:1/-1;margin-top:0}
.kgh-staff-econt-detail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.kgh-staff-econt-detail>div{display:grid;gap:4px;padding:10px 12px;border:1px solid #e3e6e8;border-radius:10px;background:#f7f8f9}
.kgh-staff-econt-detail span{font-size:10px;font-weight:800;color:#666!important;text-transform:uppercase;letter-spacing:.04em}
.kgh-staff-econt-detail b{font-size:15px;color:#111!important}
.kgh-econt-branch-summary{align-items:center}
@media(max-width:700px){.kgh-staff-econt-detail{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* rc.28 — Excel-style schedule editor */
.kgh-schedule-excel-page .kgh-card-head{align-items:flex-start}
.kgh-schedule-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0 12px}
.kgh-schedule-branch-picker label{display:grid;gap:5px;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.kgh-schedule-branch-picker select{min-width:180px;height:42px;border:1px solid #d7d9dd;border-radius:10px;background:#fff;padding:0 34px 0 12px;font-size:15px}
.kgh-schedule-status{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;font-weight:800;font-size:13px;border:1px solid #d7d9dd;background:#f6f7f8;color:#34373c}
.kgh-schedule-status.is-published{background:#edf8ef;border-color:#b8dfbf;color:#17652a}
.kgh-schedule-status.is-draft{background:#fff7df;border-color:#ead58b;color:#6d5810}
.kgh-schedule-sheet-wrap{width:100%;overflow:auto;border:1px solid #d9d4a4;border-radius:12px;background:#fffde7;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.kgh-schedule-sheet{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;background:#fffde7;font-size:13px}
.kgh-schedule-sheet th,.kgh-schedule-sheet td{box-sizing:border-box;width:46px;min-width:46px;height:37px;padding:0;text-align:center;border-right:1px solid #d9d4a4;border-bottom:1px solid #d9d4a4;background:#fffde7}
.kgh-schedule-sheet thead th{height:29px;font-size:11px;font-weight:900;color:#252525;white-space:nowrap}
.kgh-schedule-sheet thead tr:last-child th{height:27px;font-size:12px}
.kgh-schedule-sheet .is-weekend{background:#fff8c9}
.kgh-schedule-name-head,.kgh-schedule-name-cell{position:sticky;left:0;z-index:4;width:128px!important;min-width:128px!important;max-width:128px!important;text-align:left!important;padding:0 9px!important;background:#fffde7!important;box-shadow:2px 0 0 rgba(217,212,164,.75)}
.kgh-schedule-name-head{z-index:6;text-align:center!important}
.kgh-schedule-name-head strong,.kgh-schedule-name-head small{display:block;line-height:1.25}
.kgh-schedule-name-head strong{font-size:12px}.kgh-schedule-name-head small{font-size:11px;margin-top:2px}
.kgh-schedule-name-cell{font-size:12px;font-weight:900;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kgh-schedule-cell{display:block;width:100%;height:36px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:900 17px/36px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;color:#111;outline:none}
.kgh-schedule-cell.is-day,.kgh-schedule-cell.is-full{color:#0b8994}.kgh-schedule-cell.is-night{color:#275f9a}.kgh-schedule-cell.is-empty{color:transparent}
.kgh-schedule-cell:hover,.kgh-schedule-cell:focus-visible{box-shadow:inset 0 0 0 2px #e11d2e!important;background:rgba(255,255,255,.45)!important}
.kgh-schedule-cell.is-dirty{box-shadow:inset 0 0 0 2px #e11d2e!important;background:#fff!important}
.kgh-schedule-sheet td.is-leave{background:#ffe8e8}.kgh-schedule-sheet td.is-conflict{background:#ffd9d9}.kgh-schedule-sheet td.is-conflict .kgh-schedule-cell{color:#b00020}
.kgh-schedule-help{margin:9px 0 0;color:#666;font-size:12px;line-height:1.45}
.kgh-schedule-checks,.kgh-schedule-advanced{margin-top:12px;border:1px solid #e2e2e2;border-radius:12px;background:#fff}
.kgh-schedule-checks>summary,.kgh-schedule-advanced>summary{cursor:pointer;padding:12px 14px;font-weight:800;list-style:none}.kgh-schedule-checks>summary::-webkit-details-marker,.kgh-schedule-advanced>summary::-webkit-details-marker{display:none}
.kgh-schedule-checks[open],.kgh-schedule-advanced[open]{padding-bottom:12px}.kgh-schedule-checks>p,.kgh-schedule-checks>ul,.kgh-schedule-advanced>form,.kgh-schedule-advanced>.kgh-assignment-list,.kgh-schedule-advanced>.kgh-schedule-list{margin-left:14px;margin-right:14px}
.kgh-schedule-technical-list{margin-top:12px}
@media(max-width:680px){.kgh-schedule-toolbar{gap:7px;align-items:center}.kgh-schedule-branch-picker{width:100%}.kgh-schedule-branch-picker label{width:100%}.kgh-schedule-branch-picker select{width:100%;min-width:0}.kgh-schedule-toolbar .kgh-red-btn,.kgh-schedule-toolbar .kgh-outline-btn{min-height:40px;padding:8px 12px;font-size:13px}.kgh-schedule-name-head,.kgh-schedule-name-cell{width:105px!important;min-width:105px!important;max-width:105px!important;padding:0 7px!important}.kgh-schedule-sheet th,.kgh-schedule-sheet td{width:42px;min-width:42px}.kgh-schedule-cell{height:35px;line-height:35px}.kgh-schedule-help{font-size:11px}}


/* rc.29 — editable schedule roster + full-screen matrix */
.kgh-schedule-fullscreen-shell{position:relative}
.kgh-schedule-person-cell{display:flex;align-items:center;gap:3px;width:100%;min-width:0}
.kgh-schedule-person-name{min-width:0;flex:1;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#222!important;font:inherit!important;font-weight:900!important;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.kgh-schedule-person-name:hover,.kgh-schedule-person-name:focus-visible{color:#d91f26!important;text-decoration:underline}
.kgh-schedule-person-remove{flex:0 0 22px;width:22px;height:26px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#aaa!important;font-size:18px!important;line-height:24px!important;cursor:pointer}
.kgh-schedule-person-remove:hover,.kgh-schedule-person-remove:focus-visible{background:#ffe8e8!important;color:#b00020!important}
.kgh-schedule-add-person-row th,.kgh-schedule-add-person-row td{height:34px!important;background:#fff!important}
.kgh-schedule-add-person{width:100%;height:33px;padding:0 7px!important;border:0!important;background:transparent!important;color:#d91f26!important;font-size:11px!important;font-weight:900!important;text-align:left;cursor:pointer;white-space:nowrap}
.kgh-schedule-person-modal{position:fixed;inset:0;z-index:1000000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.55)}
.kgh-schedule-person-modal[hidden]{display:none!important}
.kgh-schedule-person-dialog{width:min(430px,100%);padding:18px;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.kgh-schedule-person-dialog h3{margin:0 0 12px;font-size:20px;color:#111}
.kgh-schedule-person-dialog select{width:100%;height:48px;border:1px solid #cfd4d8;border-radius:10px;background:#fff;padding:0 36px 0 12px;font-size:16px}
.kgh-schedule-person-note{margin:10px 0 0;color:#666;font-size:12px;line-height:1.45}
.kgh-schedule-person-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
.kgh-schedule-fullscreen-shell:fullscreen,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen{box-sizing:border-box;width:100%;height:100%;padding:8px;background:#fff;overflow:hidden}
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen{position:fixed;inset:0;z-index:999999}
body.kgh-schedule-body-locked{overflow:hidden!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-toolbar,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-toolbar{position:relative;z-index:20;margin:0 0 7px;padding:0 0 7px;background:#fff;border-bottom:1px solid #eee}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet-wrap,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet-wrap{height:calc(100vh - 86px);max-height:none;border-radius:8px}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-help,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-help{display:none}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet thead tr:first-child th,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet thead tr:first-child th{position:sticky;top:0;z-index:8}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet thead tr:nth-child(2) th,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet thead tr:nth-child(2) th{position:sticky;top:29px;z-index:8}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-head,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-head{z-index:12!important}
@media(max-width:680px){
  .kgh-schedule-fullscreen-btn{margin-left:auto}
  .kgh-schedule-person-remove{flex-basis:20px;width:20px}
  .kgh-schedule-add-person{font-size:10px!important;padding-left:3px!important}
  .kgh-schedule-fullscreen-shell:fullscreen,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen{padding:4px}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-toolbar,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-toolbar{gap:5px}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-branch-picker,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-branch-picker{width:auto;flex:1 1 150px}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-branch-picker label,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-branch-picker label{font-size:9px}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-branch-picker select,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-branch-picker select{height:36px;font-size:13px}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-status,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-status{min-height:36px;padding:0 9px;font-size:11px}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-toolbar .kgh-red-btn,.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-toolbar .kgh-outline-btn,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-toolbar .kgh-red-btn,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-toolbar .kgh-outline-btn{min-height:36px;padding:6px 8px;font-size:11px}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet-wrap,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet-wrap{height:calc(100vh - 92px)}
}


/* rc.30 — staff sees the same schedule matrix in read-only mode */
.kgh-schedule-branch-label{display:grid;gap:3px;min-width:180px;padding:7px 12px;border:1px solid #d7d9dd;border-radius:10px;background:#fff}
.kgh-schedule-branch-label small{font-size:9px;font-weight:900;letter-spacing:.05em;color:#777}
.kgh-schedule-branch-label strong{font-size:14px;line-height:1.2;color:#171717}
.kgh-schedule-person-readonly{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kgh-schedule-cell-readonly{display:block;width:100%;height:36px;font:900 17px/36px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;color:#111}
.kgh-schedule-cell-readonly.is-day,.kgh-schedule-cell-readonly.is-full{color:#0b8994}.kgh-schedule-cell-readonly.is-night{color:#275f9a}.kgh-schedule-cell-readonly.is-empty{color:transparent}
.kgh-schedule-fullscreen-shell.is-readonly .kgh-schedule-sheet-wrap{user-select:none}
.kgh-schedule-not-published{display:grid;gap:6px;padding:18px;border:1px solid #ead58b;border-radius:12px;background:#fff9e6;color:#5e4a08}
.kgh-schedule-not-published strong{font-size:16px}.kgh-schedule-not-published span{font-size:12px;line-height:1.5;color:#71662f}
@media(max-width:680px){.kgh-schedule-branch-label{min-width:0;flex:1 1 150px}.kgh-schedule-cell-readonly{height:35px;line-height:35px}.kgh-schedule-fullscreen-shell.is-readonly .kgh-schedule-fullscreen-btn{margin-left:auto}}


/* rc.31 — rest-day markers, schedule statistics, staff fullscreen fix and visual On Duty cards */
.kgh-schedule-off-mode-btn{border-color:#e3a8ad!important;color:#a81521!important;background:#fff7f7!important;font-weight:900!important}
.kgh-schedule-off-mode-btn.is-active{background:#d91f26!important;border-color:#d91f26!important;color:#fff!important;box-shadow:0 5px 16px rgba(217,31,38,.18)}
.kgh-schedule-sheet td.is-off-day{background:#ffe4e6!important}
.kgh-schedule-cell.is-off,.kgh-schedule-cell-readonly.is-off{color:#b51222!important;background:#ffe4e6!important}
.kgh-schedule-cell.is-off{font-size:18px!important}
.kgh-schedule-month-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px;padding:10px;border:1px solid #ece7c9;border-radius:13px;background:linear-gradient(180deg,#fffef5,#fff)}
.kgh-schedule-stats-title{grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;gap:10px;padding:0 2px 4px}
.kgh-schedule-stats-title strong{font-size:14px;color:#171717}.kgh-schedule-stats-title small{font-size:10px;color:#777}
.kgh-schedule-month-stats article{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:6px;padding:8px 9px;border:1px solid #ececec;border-radius:10px;background:#fff}
.kgh-schedule-stat-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:900;color:#222}
.kgh-schedule-stat-chip{display:inline-flex;align-items:center;gap:4px;min-width:42px;justify-content:center;padding:5px 7px;border-radius:999px;font-size:10px;font-weight:900}
.kgh-schedule-stat-chip b{font-size:11px}.kgh-schedule-stat-chip.is-day{background:#e5f7f8;color:#087a84}.kgh-schedule-stat-chip.is-night{background:#e9f0fb;color:#275f9a}.kgh-schedule-stat-chip.is-off{background:#ffe4e6;color:#a81521}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-month-stats,.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-month-stats{display:none}

.kgh-on-duty-page .kgh-hub-card{overflow:visible}
.kgh-on-duty-head{align-items:center!important;padding-bottom:4px}
.kgh-on-duty-head h1{margin:2px 0 3px!important;font-size:25px!important}
.kgh-on-duty-head small{color:#666!important}
.kgh-on-duty-date{display:flex;gap:7px;align-items:center;padding:6px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}
.kgh-on-duty-date input{min-height:40px;border:0!important;background:transparent!important}
.kgh-on-duty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.kgh-on-duty-grid>.kgh-on-duty-branch-card{position:relative;overflow:hidden;padding:0;border:1px solid #e2e5e8;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(18,24,31,.06)}
.kgh-on-duty-branch-card:before{content:"";position:absolute;left:0;top:0;width:4px;height:100%;background:#d91f26}
.kgh-on-duty-branch-card>header{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;padding:13px 13px 11px 16px;border-bottom:1px solid #eef0f2;background:linear-gradient(135deg,#fff,#fafafa)}
.kgh-on-duty-branch-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#fff0f1;color:#c81725;font-size:19px;font-weight:900}
.kgh-on-duty-branch-card header span{display:block;font-size:8px;font-weight:900;letter-spacing:.08em;color:#999}
.kgh-on-duty-branch-card h3{margin:2px 0 0!important;font-size:14px!important;line-height:1.2;color:#151515}
.kgh-on-duty-count{display:flex;align-items:center;justify-content:center;min-width:29px;height:29px;padding:0 7px;border-radius:999px;background:#181a1d;color:#fff;font-size:11px}
.kgh-on-duty-people{display:grid;gap:0;padding:4px 11px 8px 15px}
.kgh-on-duty-person{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 2px;border-bottom:1px solid #f0f1f2}
.kgh-on-duty-person:last-child{border-bottom:0}
.kgh-on-duty-avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#f1f2f3;color:#202327;font-size:12px;font-weight:950}
.kgh-on-duty-person strong{display:block;font-size:12px;color:#181818;line-height:1.25}.kgh-on-duty-person small{display:block;margin-top:2px;font-size:9px;color:#777}
.kgh-on-duty-shift{display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:9px;font-size:13px;font-weight:950}.kgh-on-duty-shift.is-day,.kgh-on-duty-shift.is-full{background:#e5f7f8;color:#087a84}.kgh-on-duty-shift.is-night{background:#e9f0fb;color:#275f9a}
.kgh-on-duty-empty{display:flex;align-items:center;gap:8px;min-height:56px;padding:9px 2px;color:#8a8d91}.kgh-on-duty-empty span{display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:50%;background:#f5f5f5;font-weight:900}.kgh-on-duty-empty p{margin:0;font-size:10px}
@media(max-width:980px){.kgh-on-duty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.kgh-schedule-month-stats{grid-template-columns:1fr}.kgh-schedule-stats-title{align-items:flex-start;flex-direction:column;gap:1px}.kgh-schedule-off-mode-btn{order:4}.kgh-on-duty-head{align-items:flex-start!important}.kgh-on-duty-date{width:100%;box-sizing:border-box}.kgh-on-duty-date input{flex:1;min-width:0}.kgh-on-duty-grid{grid-template-columns:1fr;gap:9px}.kgh-on-duty-branch-card>header{padding:11px 11px 10px 14px}.kgh-on-duty-people{padding-left:13px}}


/* rc.32 — stable roster order + safe row drag */
.kgh-schedule-row-drag{flex:0 0 20px;width:20px;height:26px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#888!important;font-size:13px!important;line-height:26px!important;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.kgh-schedule-row-drag:hover,.kgh-schedule-row-drag:focus-visible{background:#f0eee1!important;color:#222!important}
.kgh-schedule-row-drag:active{cursor:grabbing}
.kgh-schedule-sheet tr.is-row-dragging>th,.kgh-schedule-sheet tr.is-row-dragging>td{background:#fff4c8!important;box-shadow:inset 0 1px 0 #e3bc4a,inset 0 -1px 0 #e3bc4a}
.kgh-schedule-sheet tr.is-row-dragging .kgh-schedule-name-cell{background:#fff4c8!important}
.kgh-schedule-sheet-wrap.is-row-reordering,.kgh-schedule-sheet-wrap.is-row-reordering *{cursor:grabbing!important}
@media(max-width:680px){.kgh-schedule-row-drag{flex-basis:17px;width:17px;font-size:11px!important}.kgh-schedule-person-cell{gap:1px}}
/* rc.33 — robust document-level schedule row drag */
body.kgh-schedule-row-drag-active{user-select:none!important;-webkit-user-select:none!important}
.kgh-schedule-sheet.is-row-reordering{cursor:grabbing!important}
.kgh-schedule-sheet.is-row-reordering .kgh-schedule-row-drag{cursor:grabbing!important}

/* rc.34 — explicit reorder mode + true matrix-only fullscreen */
.kgh-schedule-reorder-btn{font-weight:850!important}
.kgh-schedule-reorder-btn.is-active{background:#17191c!important;border-color:#17191c!important;color:#fff!important;box-shadow:0 5px 16px rgba(0,0,0,.12)}
.kgh-schedule-fullscreen-shell:not(.is-reorder-mode) .kgh-schedule-row-drag{display:none!important}
.kgh-schedule-fullscreen-shell.is-reorder-mode .kgh-schedule-row-drag{display:inline-block!important}
.kgh-schedule-fullscreen-shell.is-reorder-mode .kgh-schedule-cell{pointer-events:none}
.kgh-schedule-fullscreen-shell.is-reorder-mode .kgh-schedule-person-name,
.kgh-schedule-fullscreen-shell.is-reorder-mode .kgh-schedule-person-remove,
.kgh-schedule-fullscreen-shell.is-reorder-mode .kgh-schedule-add-person{pointer-events:none;opacity:.45}

/* Fullscreen means the schedule matrix only. The table is compressed to the viewport width,
   so a landscape phone can show the complete month without horizontal panning. */
.kgh-schedule-fullscreen-shell:fullscreen,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen{
  width:100dvw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:#fffde7!important;overflow:hidden!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-toolbar,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-toolbar{
  position:absolute!important;inset:0!important;z-index:50!important;
  width:0!important;height:0!important;margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;overflow:visible!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-toolbar>*:not(.kgh-schedule-fullscreen-btn),
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-toolbar>*:not(.kgh-schedule-fullscreen-btn){display:none!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-fullscreen-btn,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-fullscreen-btn{
  display:flex!important;position:fixed!important;top:max(5px,env(safe-area-inset-top))!important;right:max(5px,env(safe-area-inset-right))!important;
  z-index:80!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;
  padding:0!important;border:1px solid rgba(0,0,0,.28)!important;border-radius:50%!important;
  align-items:center!important;justify-content:center!important;background:rgba(255,255,255,.88)!important;color:#111!important;
  font-size:16px!important;font-weight:900!important;line-height:1!important;box-shadow:0 3px 12px rgba(0,0,0,.18)!important;
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet-wrap,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet-wrap{
  position:absolute!important;inset:0!important;width:100dvw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  overflow:hidden!important;background:#fffde7!important;overscroll-behavior:none!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet{
  width:100%!important;min-width:100%!important;max-width:100%!important;margin:0!important;
  table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;font-size:clamp(7px,1.25vw,12px)!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet th,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet td,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet th,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet td{
  position:static!important;width:auto!important;min-width:0!important;max-width:none!important;
  height:clamp(26px,7.4dvh,40px)!important;padding:0!important;overflow:hidden!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-head,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-cell,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-head,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-cell{
  position:static!important;width:clamp(62px,12vw,115px)!important;min-width:clamp(62px,12vw,115px)!important;max-width:clamp(62px,12vw,115px)!important;
  padding:0 clamp(2px,.5vw,7px)!important;box-shadow:none!important;font-size:clamp(7px,1.25vw,12px)!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-head strong,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-head strong{font-size:clamp(7px,1.25vw,12px)!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-head small,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-head small{font-size:clamp(6px,1vw,10px)!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet thead th,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet thead th{
  height:clamp(22px,5.5dvh,30px)!important;font-size:clamp(5.5px,.9vw,10px)!important;letter-spacing:-.02em!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet thead tr:last-child th,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet thead tr:last-child th{height:clamp(21px,5dvh,28px)!important;font-size:clamp(7px,1.05vw,11px)!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-cell,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-cell-readonly,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-cell,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-cell-readonly{
  width:100%!important;height:100%!important;min-height:0!important;font-size:clamp(10px,2vw,18px)!important;line-height:1!important;
  display:flex!important;align-items:center!important;justify-content:center!important;touch-action:manipulation!important;
}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-person-cell,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-person-cell{gap:0!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-row-drag,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-person-remove,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-row-drag,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-person-remove{display:none!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-person-name,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-person-name{font-size:inherit!important;text-decoration:none!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-add-person-row,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-add-person-row,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-help,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-help,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-month-stats,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-month-stats{display:none!important}

@media (orientation:landscape) and (max-height:600px){
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet th,
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet td,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet th,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet td{height:clamp(24px,10dvh,38px)!important}
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet thead th,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet thead th{height:clamp(20px,7dvh,26px)!important}
}


/* rc.35 — fullscreen landscape fit polish */
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-col,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-col{width:11.5%!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-day-col,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-day-col{width:auto!important}
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-head,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-cell,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-head,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-cell{
  width:auto!important;min-width:0!important;max-width:none!important;
  white-space:nowrap!important;text-overflow:ellipsis!important
}
/* Keep the close control away from day 30/31. */
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-fullscreen-btn,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-fullscreen-btn{
  top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;
  right:max(8px,env(safe-area-inset-right))!important
}
@media (orientation:landscape) and (max-height:700px){
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet{
    font-size:clamp(9px,1.15vw,14px)!important
  }
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet th,
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet td,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet th,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet td{
    height:clamp(36px,12dvh,54px)!important
  }
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet thead th,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet thead th{
    height:clamp(28px,8dvh,38px)!important;font-size:clamp(7px,.85vw,11px)!important
  }
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-sheet thead tr:last-child th,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-sheet thead tr:last-child th{
    height:clamp(28px,8dvh,38px)!important;font-size:clamp(9px,1vw,13px)!important
  }
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-head,
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-cell,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-head,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-cell{
    padding:0 clamp(4px,.55vw,9px)!important;font-size:clamp(9px,1.05vw,14px)!important
  }
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-cell,
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-cell-readonly,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-cell,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-cell-readonly{
    font-size:clamp(13px,1.55vw,21px)!important
  }
}
@media (orientation:portrait) and (max-width:900px){
  .kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-name-col,
  .kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-name-col{width:14%!important}
}


/* rc.36 — mobile-first schedule layout + direct month/year picker */
.kgh-schedule-period-trigger{
  min-width:118px;min-height:34px;padding:0 10px;border:1px solid #dce0e3;border-radius:9px;
  background:#fff;color:#111;font:850 11px/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-transform:capitalize;cursor:pointer
}
.kgh-schedule-period-trigger:hover,.kgh-schedule-period-trigger:focus-visible{border-color:#d71920;color:#d71920}
.kgh-month-nav .kgh-schedule-period-trigger{min-width:112px}
.kgh-schedule-mobile-head{display:none}
.kgh-schedule-period-picker{position:fixed;inset:0;z-index:1000002;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(10,12,15,.52);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.kgh-schedule-period-picker[hidden]{display:none!important}
.kgh-schedule-period-dialog{width:min(390px,100%);padding:16px;border:1px solid #e0e2e4;border-radius:17px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.kgh-schedule-period-year{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:8px;align-items:center}
.kgh-schedule-period-year button{height:42px;border:1px solid #d7dade;border-radius:10px;background:#fff;color:#111;font-size:22px;font-weight:900;cursor:pointer}
.kgh-schedule-period-year input{width:100%;height:42px;padding:0 9px;border:1px solid #cfd3d7!important;border-radius:10px;background:#fafafa!important;color:#111!important;-webkit-text-fill-color:#111!important;text-align:center;font-size:18px;font-weight:900;opacity:1!important}
.kgh-schedule-period-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:11px}
.kgh-schedule-period-months button{min-height:42px;padding:7px;border:1px solid #e0e2e4;border-radius:10px;background:#fafafa;color:#222;font-size:12px;font-weight:850;cursor:pointer}
.kgh-schedule-period-months button:hover,.kgh-schedule-period-months button:focus-visible{border-color:#d71920;background:#fff4f4;color:#b3131b}
.kgh-schedule-period-months button.is-current{border-color:#d71920;background:#d71920;color:#fff}
.kgh-schedule-period-close{width:100%;min-height:38px;margin-top:11px;border:1px solid #d7dade;border-radius:10px;background:#fff;color:#444;font-size:11px;font-weight:850;cursor:pointer}
.kgh-schedule-help{border:1px solid #e7e7e7;border-radius:10px;background:#fafafa;color:#555}
.kgh-schedule-help>summary{cursor:pointer;list-style:none;padding:9px 11px;font-size:11px;font-weight:850;color:#444}
.kgh-schedule-help>summary::-webkit-details-marker{display:none}
.kgh-schedule-help>div{padding:0 11px 10px;font-size:11px;line-height:1.5;color:#666}

@media(max-width:700px){
  .kgh-schedule-excel-page{padding-top:0!important}
  .kgh-schedule-excel-page>.kgh-hub-card{padding:7px 6px 12px!important;border-radius:12px!important}
  .kgh-schedule-excel-page>.kgh-hub-card>.kgh-schedule-desktop-head{display:none!important}
  .kgh-schedule-fullscreen-shell{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0!important}
  .kgh-schedule-mobile-head{display:grid;grid-template-columns:auto minmax(0,1fr) 38px;align-items:center;gap:6px;grid-column:1/-1;order:1;padding:1px 0 2px}
  .kgh-schedule-mobile-title{font-size:11px;font-weight:950;letter-spacing:.06em;color:#c81520}
  .kgh-schedule-mobile-period-trigger{width:100%;min-width:0;height:38px;font-size:12px}
  .kgh-schedule-mobile-fullscreen-btn{display:grid!important;place-items:center!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;border-radius:10px!important;font-size:17px!important}
  .kgh-schedule-toolbar{display:contents!important;margin:0!important}
  .kgh-schedule-toolbar .kgh-schedule-branch-picker,.kgh-schedule-toolbar .kgh-schedule-branch-label{grid-column:1/-1;order:2;width:100%;margin:0!important}
  .kgh-schedule-branch-picker label{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px!important;width:100%;font-size:8.5px!important}
  .kgh-schedule-branch-picker select{width:100%!important;min-width:0!important;height:38px!important;padding:0 30px 0 10px!important;border-radius:9px!important;font-size:13px!important}
  .kgh-schedule-branch-label{grid-template-columns:auto minmax(0,1fr)!important;align-items:center;gap:7px!important;min-width:0!important;padding:6px 9px!important;border-radius:9px!important}
  .kgh-schedule-branch-label small{font-size:8px!important}.kgh-schedule-branch-label strong{font-size:12px!important}
  .kgh-schedule-sheet-wrap{grid-column:1/-1;order:3;margin:0!important;border-radius:9px!important}
  .kgh-schedule-not-published{grid-column:1/-1;order:3;margin:0!important;padding:12px!important}
  .kgh-schedule-status{grid-column:1;order:4;width:100%;min-height:36px!important;padding:0 8px!important;border-radius:9px!important;font-size:11px!important;box-sizing:border-box}
  .kgh-schedule-save-btn{grid-column:2;order:4;width:100%;min-height:36px!important;height:36px!important;padding:0 8px!important;border-radius:9px!important;font-size:11px!important;margin:0!important}
  .kgh-schedule-reorder-btn{grid-column:1;order:5;width:100%;min-height:36px!important;height:36px!important;padding:0 7px!important;border-radius:9px!important;font-size:10.5px!important;margin:0!important}
  .kgh-schedule-off-mode-btn{grid-column:2;order:5;width:100%;min-height:36px!important;height:36px!important;padding:0 7px!important;border-radius:9px!important;font-size:10.5px!important;margin:0!important}
  .kgh-schedule-publish-btn{grid-column:1/-1;order:6;justify-self:stretch;width:100%;min-height:34px!important;height:34px!important;padding:0 8px!important;border-radius:9px!important;font-size:10px!important;margin:0!important}
  .kgh-schedule-publish-btn[data-kgh-schedule-period-status="draft"]{min-height:28px!important;height:28px!important;border-color:transparent!important;background:transparent!important;color:#777!important;text-decoration:underline}
  .kgh-schedule-desktop-fullscreen-btn{display:none!important}
  .kgh-schedule-toolbar>.kgh-manager-save-status{grid-column:1/-1;order:7;min-height:0;margin:0!important;font-size:9px!important;text-align:center}
  .kgh-schedule-help{grid-column:1/-1;order:8;margin:2px 0 0!important}
  .kgh-schedule-month-stats{grid-column:1/-1;order:9;margin-top:2px!important}
  .kgh-schedule-person-modal,.kgh-schedule-period-picker{grid-column:auto;order:initial}
  .kgh-schedule-checks,.kgh-schedule-advanced{margin-top:8px!important}
  .kgh-schedule-sheet th,.kgh-schedule-sheet td{width:40px;min-width:40px}
  .kgh-schedule-name-head,.kgh-schedule-name-cell{width:98px!important;min-width:98px!important;max-width:98px!important;padding:0 5px!important}
}

/* Fullscreen remains matrix-only even though rc.36 adds a mobile top bar. */
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-mobile-head,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-mobile-head,
.kgh-schedule-fullscreen-shell:fullscreen .kgh-schedule-period-picker,
.kgh-schedule-fullscreen-shell.is-fallback-fullscreen .kgh-schedule-period-picker{display:none!important}

/* rc.38 — mobile header guard for workforce views.
   Prevent a full-width control on the right from crushing the title/meta column
   into a few pixels (one-letter / one-word wrapping and huge vertical gaps). */
@media(max-width:700px){
  .kgh-on-duty-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:9px!important;
    width:100%;
  }
  .kgh-on-duty-head>div,
  .kgh-on-duty-head>.kgh-on-duty-date{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }
  .kgh-on-duty-head>div{display:block!important}
  .kgh-on-duty-head .kgh-overline,
  .kgh-on-duty-head h1,
  .kgh-on-duty-head small{
    max-width:100%;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  .kgh-on-duty-head h1{font-size:21px!important;line-height:1.15!important}
  .kgh-on-duty-head small{display:block!important;line-height:1.35!important}
  .kgh-on-duty-date{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:7px!important;
  }
  .kgh-on-duty-date input{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }
  .kgh-on-duty-date .kgh-outline-btn{
    width:auto!important;
    min-width:88px!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  .kgh-on-duty-grid{margin-top:10px!important}
}
@media(max-width:430px){
  .kgh-on-duty-page>.kgh-hub-card{padding:12px 10px!important}
  .kgh-on-duty-date{padding:5px!important}
  .kgh-on-duty-date input{min-height:38px!important;padding-left:8px!important;padding-right:4px!important;font-size:14px!important}
  .kgh-on-duty-date .kgh-outline-btn{min-width:82px!important;min-height:38px!important;padding:0 10px!important;font-size:13px!important}
  .kgh-on-duty-branch-card>header{grid-template-columns:36px minmax(0,1fr) auto!important}
  .kgh-on-duty-person{grid-template-columns:34px minmax(0,1fr) auto!important}
  .kgh-on-duty-person>div{min-width:0!important}
  .kgh-on-duty-person strong,.kgh-on-duty-person small{white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
}


/* 0.6.1-rc.39 — STEP 5: deliberately simple formal leave request flow. */
.kgh-leaves-card{overflow:hidden}
.kgh-leave-request-form{
  display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto;
  gap:9px;align-items:end;margin:2px 0 16px;padding:12px;
  border:1px solid #e1e3e5;border-radius:13px;background:#fafafa
}
.kgh-leave-request-form label{display:grid;gap:5px;min-width:0;color:#555;font-size:10px;font-weight:850}
.kgh-leave-request-form label>span{display:block}
.kgh-leave-request-form input{
  width:100%;min-width:0;min-height:42px;box-sizing:border-box;border:1px solid #d9dde1;
  border-radius:10px;background:#fff;color:#111;padding:8px 10px;font:inherit
}
.kgh-leave-request-form>button{min-height:42px;white-space:nowrap}
.kgh-leave-request-form>.kgh-manager-save-status{grid-column:1/-1;margin:0;min-height:0}
.kgh-leave-row{align-items:center}
.kgh-leave-main{display:grid;gap:3px;min-width:0}
.kgh-leave-main strong{font-size:12px;color:#111}
.kgh-leave-main small{display:block;color:#666;overflow-wrap:anywhere}
.kgh-leave-main .kgh-leave-meta{font-size:9px;color:#8a8a8a}
.kgh-leave-status{justify-self:end;align-self:start;padding:6px 9px;border-radius:999px;font-size:9px;white-space:nowrap;background:#f0f1f2;color:#555}
.kgh-leave-status.is-pending{background:#fff4d8;color:#765600}
.kgh-leave-status.is-approved{background:#e8f7ee;color:#176b37}
.kgh-leave-status.is-rejected{background:#fdebec;color:#a31d29}
.kgh-leave-row>.kgh-leave-manager-actions{grid-column:1/-1;justify-content:flex-end;border-top:1px solid #eef0f1;padding-top:9px}
.kgh-leave-row>.kgh-leave-manager-actions button{min-width:92px}
@media(max-width:600px){
  .kgh-leave-request-form{grid-template-columns:1fr;padding:10px}
  .kgh-leave-request-form>.kgh-manager-save-status{grid-column:auto}
  .kgh-leave-row{grid-template-columns:minmax(0,1fr) auto!important}
  .kgh-leave-row>.kgh-leave-manager-actions{grid-column:1/-1;justify-content:stretch}
  .kgh-leave-row>.kgh-leave-manager-actions button{flex:1 1 0;min-width:0}
}
@media(max-width:380px){
  .kgh-leave-row{grid-template-columns:1fr!important}
  .kgh-leave-status{justify-self:start}
}


/* 0.6.1-rc.40 — manual 2/2/2 forward planner; no background work. */
.kgh-schedule-auto-222-btn{white-space:nowrap}
@media(max-width:700px){.kgh-schedule-auto-222-btn{font-size:12px;padding-inline:10px}}

/* 0.6.1-rc.41 — selected 3-person 2/2/2 planner. Extra/manual staff stay independent. */
.kgh-schedule-auto-222-dialog{width:min(480px,100%)}
.kgh-schedule-auto-222-note{margin:0 0 12px;color:#666;font-size:12px;line-height:1.5}
.kgh-schedule-auto-222-people{display:grid;gap:7px;max-height:min(44vh,360px);overflow:auto;padding:2px}
.kgh-schedule-auto-222-people label{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;border:1px solid #e0e3e6;border-radius:10px;background:#fafafa;color:#222;font-size:13px;font-weight:850;cursor:pointer}
.kgh-schedule-auto-222-people input{width:19px;height:19px;margin:0;accent-color:#d71920;flex:0 0 auto}
.kgh-schedule-auto-222-people label:has(input:checked){border-color:#d71920;background:#fff5f5}
.kgh-schedule-auto-222-people label:has(input:disabled){opacity:.5;cursor:not-allowed}
.kgh-schedule-auto-222-count{display:flex;align-items:baseline;gap:6px;margin:10px 0 0;color:#666;font-size:11px}.kgh-schedule-auto-222-count strong{color:#111;font-size:14px}
@media(max-width:700px){.kgh-schedule-auto-222-dialog{padding:15px}.kgh-schedule-auto-222-dialog h3{font-size:18px}.kgh-schedule-auto-222-people{max-height:48vh}.kgh-schedule-auto-222-people label{min-height:42px}}

/* rc.44 — readable employee listing breakdown on desktop and mobile */
.kgh-metric-rows>.kgh-metric-person-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 2px}
.kgh-metric-person-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;min-width:0;width:100%;color:inherit!important;text-decoration:none!important}
.kgh-metric-person-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px!important;font-weight:750!important}
.kgh-metric-person-stats{display:inline-flex;align-items:center;justify-self:end;gap:9px;min-width:max-content}
.kgh-metric-person-stats b{font-size:12px!important;font-weight:850;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.kgh-metric-person-stats em{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:4px 7px;border-radius:999px;background:#f1f2f3;color:#4d5155;font-size:10px;font-style:normal;font-weight:850;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.kgh-metric-person-row>.kgh-mini-pencil{margin-left:2px;flex:0 0 auto}
@media(max-width:600px){
  .kgh-metric-rows>.kgh-metric-person-row{gap:7px;padding:10px 0}
  .kgh-metric-person-link{gap:10px}
  .kgh-metric-person-name{font-size:11px!important}
  .kgh-metric-person-stats{gap:5px}
  .kgh-metric-person-stats b{font-size:11px!important}
  .kgh-metric-person-stats em{min-width:38px;padding:4px 6px;font-size:9px}
}

/* rc.45 — STEP 6 Tasks: today-first operational UI */
.kgh-tasks-page .kgh-card-head{margin-bottom:12px}
.kgh-task-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.kgh-task-kpis>div{padding:10px 12px;border:1px solid #e1e4e7;border-radius:12px;background:#fafafa}
.kgh-task-kpis span{display:block;color:#777;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.kgh-task-kpis b{display:block;margin-top:3px;color:#111;font-size:22px;line-height:1}
.kgh-task-section{margin:12px 0 16px;padding:12px;border:1px solid #e1e4e7;border-radius:14px;background:#fff}
.kgh-task-section.is-attention{border-color:#efb7bb;background:#fffafa}
.kgh-task-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.kgh-task-section-head span{display:block;color:#d71920;font-size:9px;font-weight:950;letter-spacing:.08em}
.kgh-task-section-head h2{margin:2px 0 0;color:#111;font-size:16px;line-height:1.15}
.kgh-task-section-head>b{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:999px;background:#17191c;color:#fff;font-size:12px}
.kgh-task-row{align-items:center!important;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.kgh-task-row.is-overdue{border-color:#efb7bb!important;background:#fffafa!important}
.kgh-task-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#777;font-size:9px;font-weight:800}
.kgh-task-meta>span:not(.kgh-task-date-badge)::before{content:'·';margin-right:6px;color:#bbb}
.kgh-task-date-badge{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border-radius:999px;background:#f0f2f3;color:#3d4247;font-weight:900}
.kgh-task-date-badge.is-overdue{background:#ffe8ea;color:#b20e16}
.kgh-task-main h3{margin:2px 0;color:#111;font-size:14px;line-height:1.25}
.kgh-task-main p{margin:0;color:#444;font-size:10.5px;line-height:1.45}
.kgh-task-main em{color:#8a4b00;font-size:10px;font-style:normal;font-weight:800}
.kgh-task-critical{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:999px;background:#d71920;color:#fff;font-size:8px;vertical-align:middle}
.kgh-task-manager-tools{display:grid;grid-template-columns:1fr;gap:8px;margin:14px 0}
.kgh-task-tool,.kgh-task-fold{border:1px solid #e1e4e7;border-radius:13px;background:#fff;overflow:hidden}
.kgh-task-tool>summary,.kgh-task-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:10px 12px;cursor:pointer;list-style:none;background:#fafafa;color:#111}
.kgh-task-tool>summary::-webkit-details-marker,.kgh-task-fold>summary::-webkit-details-marker{display:none}
.kgh-task-tool>summary span{display:grid;gap:2px}.kgh-task-tool>summary b{font-size:12px}.kgh-task-tool>summary small{color:#777;font-size:9px;font-weight:700}
.kgh-task-tool>summary::after{content:'+';font-size:18px;font-weight:700;color:#777}.kgh-task-tool[open]>summary::after{content:'−'}
.kgh-task-tool-body{padding:11px}.kgh-task-tool-body .kgh-task-create,.kgh-task-tool-body .kgh-task-template-form{padding:0;border:0;background:transparent}
.kgh-task-create-row,.kgh-task-option-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.kgh-task-postpone-field{max-width:180px}
.kgh-task-template-list{margin-top:12px}
.kgh-task-template-list>article{align-items:center}
.kgh-task-template-list>article>div:first-child{display:grid;gap:3px}.kgh-task-template-list small{color:#777;font-size:9px}
.kgh-task-template-list button{min-height:32px;padding:6px 9px;border:1px solid #d9dde1;border-radius:8px;background:#fff;color:#222;font-size:9px;font-weight:850;cursor:pointer}
.kgh-task-fold{margin-top:9px}
.kgh-task-fold>summary{font-size:11px;font-weight:900}.kgh-task-fold>summary b{display:grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:#eceff1;color:#333;font-size:10px}
.kgh-task-fold>div{padding:10px}
@media(max-width:600px){
  .kgh-task-kpis{gap:5px}.kgh-task-kpis>div{padding:9px 8px}.kgh-task-kpis span{font-size:7.5px;line-height:1.2}.kgh-task-kpis b{font-size:18px}
  .kgh-task-section{padding:9px}.kgh-task-create-row,.kgh-task-option-row{grid-template-columns:1fr}.kgh-task-postpone-field{max-width:none}
  .kgh-task-row{padding:10px!important}.kgh-task-actions>*{flex:1;min-width:110px;text-align:center}.kgh-task-meta{gap:4px}.kgh-task-meta>span:not(.kgh-task-date-badge)::before{margin-right:4px}
}

/* rc.46 — Tasks / Routine progressive UI */
.kgh-tasks-page [hidden]{display:none!important}
.kgh-task-smart-form,.kgh-routine-form{max-width:920px;margin:0 auto}
.kgh-task-step{display:flex;align-items:center;gap:9px;margin:5px 0 0;padding-top:3px}
.kgh-task-step>span{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:999px;background:#17191c;color:#fff;font-size:10px;font-weight:950}
.kgh-task-step>div{display:grid;gap:1px}.kgh-task-step b{font-size:11px;color:#17191c}.kgh-task-step small{font-size:9px;color:#777;line-height:1.35}
.kgh-field{display:grid!important;gap:4px;margin:0!important;color:#222!important;font-size:9px!important;font-weight:850!important}
.kgh-field>span{font-size:9px;font-weight:900;color:#555;text-transform:uppercase;letter-spacing:.035em}
.kgh-field>small{margin-top:-1px;color:#777;font-size:8.5px;font-weight:650;line-height:1.35;text-transform:none;letter-spacing:0}
.kgh-task-smart-form input,.kgh-task-smart-form select,.kgh-task-smart-form textarea,.kgh-routine-form input,.kgh-routine-form select,.kgh-routine-form textarea{min-height:42px}
.kgh-task-smart-form textarea,.kgh-routine-form textarea{min-height:68px}
.kgh-task-segment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.kgh-task-segment label{display:block!important;margin:0!important;cursor:pointer}
.kgh-task-segment input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-height:0!important}
.kgh-task-segment span{display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 10px;border:1px solid #d9dde1;border-radius:10px;background:#fff;color:#34383d;font-size:10px;font-weight:900;text-align:center;transition:.15s ease}
.kgh-task-segment input:checked+span{border-color:#d71920;background:#fff4f4;color:#c6131a;box-shadow:inset 0 0 0 1px #d71920}
.kgh-task-segment input:disabled+span{opacity:.42;cursor:not-allowed}
.kgh-task-advanced{border:1px solid #e3e5e7;border-radius:10px;background:#fafafa;overflow:hidden}
.kgh-task-advanced>summary{padding:9px 11px;cursor:pointer;color:#555;font-size:9px;font-weight:900;list-style:none}
.kgh-task-advanced>summary::-webkit-details-marker{display:none}.kgh-task-advanced>summary::after{content:'+';float:right;font-size:14px}.kgh-task-advanced[open]>summary::after{content:'−'}
.kgh-task-advanced>div{display:grid;gap:8px;padding:0 10px 10px}
.kgh-routine-intro{display:grid;gap:3px;padding:10px 11px;border-left:3px solid #d71920;border-radius:8px;background:#fff6f6}
.kgh-routine-intro b{font-size:10.5px;color:#17191c}.kgh-routine-intro small{font-size:9px;line-height:1.4;color:#666}
.kgh-routine-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.kgh-routine-days label{display:block!important;margin:0!important;cursor:pointer;min-width:0}
.kgh-routine-days input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-height:0!important}
.kgh-routine-days span{display:grid;place-items:center;min-height:39px;border:1px solid #dce0e3;border-radius:9px;background:#fff;color:#555;font-size:10px;font-weight:950;white-space:nowrap}
.kgh-routine-days input:checked+span{border-color:#d71920;background:#d71920;color:#fff}
.kgh-routine-master-toggle{display:flex!important;align-items:center;gap:10px;padding:10px 11px!important;margin:0!important;border:1px solid #dfe3e6;border-radius:11px;background:#fff}
.kgh-routine-master-toggle>input{width:20px!important;height:20px!important;min-height:20px!important;margin:0!important;accent-color:#d71920}
.kgh-routine-master-toggle>span{display:grid;gap:1px}.kgh-routine-master-toggle b{font-size:11px}.kgh-routine-master-toggle small{font-size:8.5px;color:#777}
.kgh-routine-list{margin-top:14px;padding-top:12px;border-top:1px solid #e4e6e8}.kgh-routine-list>h3{margin:0 0 8px;font-size:12px}
.kgh-routine-titleline{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.kgh-routine-state{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border-radius:999px;font-size:8px;font-weight:950;letter-spacing:.03em}
.kgh-routine-state.is-on{background:#e9f8ed;color:#187331}.kgh-routine-state.is-off{background:#eceff1;color:#6d7379}
.kgh-routine-list>article.is-inactive{opacity:.7;background:#fafafa}
.kgh-task-tool>summary{transition:.15s ease}.kgh-task-tool[open]>summary{background:#fff4f4;border-bottom:1px solid #f0d6d8}
.kgh-task-tool[open]>summary b{color:#c6131a}
.kgh-task-tool-body{background:#fff}
@media(min-width:760px){
  .kgh-task-smart-form,.kgh-routine-form{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:9px}
  .kgh-task-smart-form>.kgh-task-step,.kgh-task-smart-form>input[name="title"],.kgh-task-smart-form>.kgh-task-segment,.kgh-task-smart-form>textarea,.kgh-task-smart-form>.kgh-task-advanced,.kgh-task-smart-form>button,.kgh-task-smart-form>.kgh-manager-save-status,
  .kgh-routine-form>.kgh-routine-intro,.kgh-routine-form>.kgh-task-step,.kgh-routine-form>.kgh-task-segment,.kgh-routine-form>.kgh-routine-days,.kgh-routine-form>textarea,.kgh-routine-form>.kgh-routine-master-toggle,.kgh-routine-form>.kgh-task-advanced,.kgh-routine-form>.kgh-manager-form-actions{grid-column:1/-1}
  .kgh-task-smart-form>.kgh-task-create-row{grid-column:1/-1}
}
@media(max-width:759px){
  .kgh-task-smart-form,.kgh-routine-form{gap:8px}
  .kgh-routine-days{grid-template-columns:repeat(4,minmax(0,1fr))}
  .kgh-task-step small{font-size:8.5px}
  .kgh-task-segment span{font-size:9.5px}
}
@media(max-width:420px){
  .kgh-routine-days{grid-template-columns:repeat(4,1fr);gap:5px}
  .kgh-routine-days span{min-height:36px}
}

/* 0.6.1-rc.47 — STEP 8 Goods Forward: pending/archive workflow + compact mobile-first cards. */
.kgh-goods-shell{overflow:visible}.kgh-goods-head{align-items:flex-start;gap:18px}.kgh-goods-head-stats{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.kgh-goods-head-stats strong{min-width:92px;padding:9px 12px;border:1px solid #e1e4e7;border-radius:12px;background:#fafafa;color:#111;font-size:18px;line-height:1}.kgh-goods-head-stats strong span{display:block;margin-top:5px;color:#777;font-size:9px;font-weight:800;text-transform:uppercase}.kgh-goods-head-stats strong.is-alert{border-color:#efb9bd;background:#fff4f5;color:#b80d16}
.kgh-goods-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.kgh-goods-tabs{display:flex;gap:6px;padding:4px;border:1px solid #e1e4e7;border-radius:12px;background:#f6f7f8}.kgh-goods-tabs a{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 12px;border-radius:9px;color:#3a3d40;font-size:11px;font-weight:850;text-decoration:none}.kgh-goods-tabs a b{min-width:21px;padding:3px 6px;border-radius:999px;background:#fff;color:#555;text-align:center}.kgh-goods-tabs a.is-active{background:#151719;color:#fff}.kgh-goods-tabs a.is-active b{background:#e21f26;color:#fff}.kgh-goods-branch-filter select{min-height:40px;min-width:165px;border:1px solid #d8dce0;border-radius:10px;background:#fff;padding:7px 10px;font-weight:750;color:#222}
.kgh-goods-create-panel{margin:10px 0 16px;border:1px solid #e1e4e7;border-radius:13px;background:#fff;overflow:visible}.kgh-goods-create-panel>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:13px 15px;font-weight:900;color:#151719}.kgh-goods-create-panel>summary::-webkit-details-marker{display:none}.kgh-goods-create-panel>summary span{color:#c9161d}.kgh-goods-create-panel>summary small{color:#85898d;font-size:10px;font-weight:700}.kgh-goods-create-panel[open]>summary{border-bottom:1px solid #eceeef}.kgh-goods-create-panel .kgh-goods-form{padding:13px;margin:0;background:#fbfbfc}.kgh-goods-form-section{padding:12px;border:1px solid #e5e7e9;border-radius:12px;background:#fff}.kgh-goods-form-section h3{margin:0 0 10px;color:#222;font-size:12px}.kgh-goods-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.kgh-goods-form-grid .kgh-goods-wide{grid-column:span 2}.kgh-goods-money-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.kgh-goods-more{border:1px solid #e3e6e8;border-radius:11px;background:#fff}.kgh-goods-more>summary{padding:10px 12px;cursor:pointer;color:#555;font-size:11px;font-weight:850}.kgh-goods-more[open]>summary{border-bottom:1px solid #eceeef}.kgh-goods-more>.kgh-goods-form-grid{padding:10px}.kgh-goods-note{grid-column:span 2}
.kgh-goods-product-picker{position:relative;margin-bottom:10px}.kgh-goods-search-label{display:grid;gap:5px;color:#555;font-size:10.5px;font-weight:800}.kgh-goods-search-label>input{width:100%;min-height:43px;border:1px solid #d9dde1;border-radius:10px;background:#fff;padding:9px 11px;color:#111}.kgh-goods-product-results{position:absolute;z-index:25;top:63px;left:0;right:0;max-height:330px;overflow:auto;padding:6px;border:1px solid #d9dde1;border-radius:11px;background:#fff;box-shadow:0 12px 28px rgba(0,0,0,.14)}.kgh-goods-product-results>p{margin:0;padding:12px;color:#777;font-size:11px}.kgh-goods-product-results button{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:8px;border:0;border-bottom:1px solid #eef0f1;background:#fff;text-align:left;cursor:pointer}.kgh-goods-product-results button:last-child{border-bottom:0}.kgh-goods-product-results button:hover{background:#f8f8f8}.kgh-goods-product-results button>span{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;background:#f2f3f4;overflow:hidden;font-weight:900;color:#c9161d}.kgh-goods-product-results img{width:100%;height:100%;object-fit:cover}.kgh-goods-product-results strong,.kgh-goods-product-results small{display:block}.kgh-goods-product-results strong{font-size:11px;color:#111}.kgh-goods-product-results small{margin-top:3px;color:#73777b;font-size:9.5px}.kgh-goods-product-results button>b{color:#c9161d;font-size:10px}.kgh-goods-product-selected{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:8px;padding:8px;border:1px solid #b8ddd9;border-radius:11px;background:#f3fbfa}.kgh-goods-product-selected>span{display:grid;place-items:center;width:48px;height:48px;border-radius:9px;background:#fff;overflow:hidden;color:#008b86;font-weight:900}.kgh-goods-product-selected img{width:100%;height:100%;object-fit:cover}.kgh-goods-product-selected strong,.kgh-goods-product-selected small{display:block}.kgh-goods-product-selected strong{font-size:12px}.kgh-goods-product-selected small{margin-top:3px;color:#687073;font-size:9.5px}.kgh-goods-product-selected button{border:1px solid #c9ced2;border-radius:8px;background:#fff;padding:7px 9px;font-size:9.5px;font-weight:850;cursor:pointer}
.kgh-goods-list{display:grid;gap:10px;margin-top:10px}.kgh-goods-record{padding:0!important;border:1px solid #e0e3e6!important;border-left:4px solid #d81b23!important;border-radius:13px!important;background:#fff!important;overflow:hidden}.kgh-goods-record.is-focused{outline:3px solid rgba(216,27,35,.14);outline-offset:2px}.kgh-goods-record.is-paid,.kgh-goods-record.is-returned,.kgh-goods-record.is-closed,.kgh-goods-record.is-cancelled{border-left-color:#9aa0a5!important}.kgh-goods-record-top{display:flex;align-items:center;gap:8px;padding:8px 11px;border-bottom:1px solid #eceeef;background:#fafafa;color:#767b7f;font-size:9.5px;font-weight:800}.kgh-goods-record-top time{margin-left:auto}.kgh-goods-status{padding:4px 7px;border-radius:999px;background:#fff0f1;color:#b80d16;font-size:9px;font-weight:900}.kgh-goods-record.is-paid .kgh-goods-status,.kgh-goods-record.is-returned .kgh-goods-status{background:#eef8f1;color:#25733b}.kgh-goods-record.is-cancelled .kgh-goods-status,.kgh-goods-record.is-closed .kgh-goods-status{background:#eef0f2;color:#60666b}.kgh-goods-record-body{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;padding:12px}.kgh-goods-record-image{display:grid;place-items:center;width:74px;height:74px;border-radius:11px;background:#f4f5f6;overflow:hidden;color:#c9161d;font-weight:900}.kgh-goods-record-image img{width:100%;height:100%;object-fit:cover}.kgh-goods-record-copy h3{margin:0;color:#111;font-size:15px;line-height:1.25}.kgh-goods-art-recipient{margin:4px 0 0;color:#444;font-size:11px}.kgh-goods-art-recipient b{color:#b80d16}.kgh-goods-contact{display:flex;gap:10px;flex-wrap:wrap;margin-top:5px;color:#6e7478;font-size:10px}.kgh-goods-prices{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.kgh-goods-prices>span{min-width:82px;padding:6px 8px;border:1px solid #e1e4e6;border-radius:9px;background:#fafafa}.kgh-goods-prices small,.kgh-goods-prices b{display:block}.kgh-goods-prices small{color:#777;font-size:8.5px;text-transform:uppercase}.kgh-goods-prices b{margin-top:2px;color:#222;font-size:11px}.kgh-goods-prices>span.is-important{border-color:#efb9bd;background:#fff4f5}.kgh-goods-prices>span.is-important b{color:#b80d16}.kgh-goods-dates{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;color:#777;font-size:9.5px}.kgh-goods-record-note{margin:8px 0 0;padding:7px 9px;border-radius:8px;background:#f7f7f8;color:#555;font-size:10px}.kgh-goods-reminded{margin:8px 0 0!important;padding:7px 9px;border:1px solid #f1d99e;border-radius:8px;background:#fff9e8;color:#765800!important;font-size:9.5px!important;font-weight:800}.kgh-goods-record .kgh-goods-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;padding:9px 11px;border-top:1px solid #eceeef;background:#fcfcfc}.kgh-goods-record .kgh-goods-actions button,.kgh-goods-record .kgh-goods-actions a{min-height:34px;padding:6px 10px;border:1px solid #d8dce0;border-radius:8px;background:#fff;color:#222;font-size:9.5px;font-weight:850;text-decoration:none;cursor:pointer}.kgh-goods-record .kgh-goods-actions .kgh-red-btn{border-color:#d71920;background:#d71920;color:#fff}.kgh-goods-record .kgh-goods-actions .kgh-goods-remind-btn{border-color:#e4c36a;background:#fff9e8;color:#684f00}.kgh-goods-record .kgh-goods-actions .kgh-muted-action{color:#777}.kgh-goods-record .kgh-goods-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:950px){.kgh-goods-money-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.kgh-goods-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-goods-form-grid .kgh-goods-wide{grid-column:span 2}}
@media(max-width:620px){.kgh-goods-head{display:block}.kgh-goods-head-stats{justify-content:flex-start;margin-top:10px}.kgh-goods-toolbar{align-items:stretch;flex-direction:column}.kgh-goods-tabs{width:100%}.kgh-goods-tabs a{flex:1;justify-content:center}.kgh-goods-branch-filter select{width:100%}.kgh-goods-create-panel>summary{align-items:flex-start;flex-direction:column;gap:3px}.kgh-goods-create-panel .kgh-goods-form{padding:8px}.kgh-goods-form-section{padding:9px}.kgh-goods-form-grid,.kgh-goods-money-fields{grid-template-columns:1fr}.kgh-goods-form-grid .kgh-goods-wide,.kgh-goods-note{grid-column:auto}.kgh-goods-product-results{top:63px}.kgh-goods-product-results button{grid-template-columns:40px minmax(0,1fr)}.kgh-goods-product-results button>b{display:none}.kgh-goods-product-results button>span{width:38px;height:38px}.kgh-goods-product-selected{grid-template-columns:44px minmax(0,1fr)}.kgh-goods-product-selected>span{width:42px;height:42px}.kgh-goods-product-selected button{grid-column:1/-1}.kgh-goods-record-body{grid-template-columns:58px minmax(0,1fr);gap:9px;padding:10px}.kgh-goods-record-image{width:58px;height:58px}.kgh-goods-record-copy h3{font-size:14px}.kgh-goods-contact{display:grid;gap:3px}.kgh-goods-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.kgh-goods-prices>span{min-width:0}.kgh-goods-record-top{flex-wrap:wrap}.kgh-goods-record-top time{width:100%;margin-left:0}.kgh-goods-record .kgh-goods-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}.kgh-goods-record .kgh-goods-actions>*{width:100%;text-align:center}.kgh-goods-record .kgh-goods-actions .kgh-red-btn{grid-column:span 2}}

/* rc.47 Goods Forward: employee reminder callout */
.kgh-goods-profile-reminder{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:12px 0;padding:11px 13px;border:1px solid #f1c3c7;border-left:4px solid #d71920;border-radius:12px;background:#fff7f8;color:#3f2023}.kgh-goods-profile-reminder b{font-size:13px}.kgh-goods-profile-reminder span{font-size:12px;color:#6d5558}@media(max-width:620px){.kgh-goods-profile-reminder{align-items:flex-start;flex-direction:column;gap:3px}}

/* 0.6.1-rc.48 — Goods Forward simplified admin/employee workflow. */
.kgh-goods-form input[readonly]{background:#f2f4f5!important;color:#5d6469!important;cursor:not-allowed}.kgh-goods-record.is-pending_approval .kgh-goods-status,.kgh-goods-record.is-draft .kgh-goods-status{background:#fff8df;color:#806100}.kgh-goods-record.is-given{border-left-color:#2f9a55!important}.kgh-goods-record.is-given .kgh-goods-status{background:#edf8f0;color:#23733f}.kgh-goods-record.is-cancelled{border-left-color:#d81b23!important}.kgh-goods-record.is-cancelled .kgh-goods-status{background:#fff0f1;color:#b80d16}.kgh-goods-prices>span.is-approved{border-color:#b9dfc4;background:#f1faf4}.kgh-goods-prices>span.is-approved b{color:#23733f}.kgh-goods-record .kgh-goods-actions .kgh-approve-btn{border-color:#b9dfc4;background:#edf8f0;color:#23733f}.kgh-goods-record .kgh-goods-actions .kgh-reject-btn{border-color:#efb9bd;background:#fff4f5;color:#b80d16}.kgh-goods-page:not(.is-admin) .kgh-goods-record-copy{min-width:0}


/* 0.6.1-rc.49 — Goods Forward temporary-use mode. */
.kgh-goods-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}.kgh-goods-mode-switch label{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #ddd;border-radius:12px;background:#fff;cursor:pointer}.kgh-goods-mode-switch label:has(input:checked){border-color:#d71920;box-shadow:0 0 0 1px #d71920 inset;background:#fff8f8}.kgh-goods-mode-switch input{width:18px;height:18px;accent-color:#d71920}.kgh-goods-mode-switch span{display:flex;flex-direction:column;gap:2px}.kgh-goods-mode-switch small{color:#777;font-size:11px}.kgh-goods-temporary-note{padding:10px 12px;margin:0 0 12px;border:1px solid #b7d9ff;border-radius:10px;background:#f3f9ff;color:#24445f;font-size:12px}.kgh-goods-mode-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#f1f3f5;color:#555;font-size:11px;font-weight:700}.kgh-goods-record.mode-temporary .kgh-goods-mode-badge,.kgh-goods-record.is-temporary_use .kgh-goods-status{background:#e7f3ff;color:#1769aa}.kgh-goods-temporary-copy{margin:8px 0 0;padding:9px 11px;border-radius:9px;background:#f4f8fb;color:#4d6473;font-size:12px}
@media(max-width:700px){.kgh-goods-mode-switch{grid-template-columns:1fr}.kgh-goods-mode-switch label{padding:10px 12px}}


/* 0.6.1-rc.51 — Goods Forward: employee lodging + flatter, lower-friction form. */
.kgh-goods-form-v2{gap:0!important;padding:14px 16px!important;background:#fff!important}
.kgh-goods-form-v2 .kgh-goods-mode-switch{display:flex;gap:3px;margin:0 0 6px;padding:3px;border:1px solid #e3e5e7;border-radius:11px;background:#f3f4f5}
.kgh-goods-form-v2 .kgh-goods-mode-switch label{flex:1;min-width:0;padding:9px 12px;border:0;border-radius:8px;background:transparent;box-shadow:none}
.kgh-goods-form-v2 .kgh-goods-mode-switch label:has(input:checked){border:0;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.09)}
.kgh-goods-form-v2 .kgh-goods-mode-switch label:has(input:checked) b{color:#c9161d}.kgh-goods-form-v2 .kgh-goods-mode-switch small{font-size:9.5px}
.kgh-goods-form-v2 .kgh-goods-temporary-note{margin:8px 0 0;border:0;border-left:3px solid #4a91c8;border-radius:7px;background:#f4f9fd;padding:8px 10px}
.kgh-goods-form-v2 .kgh-goods-form-section{padding:15px 0;border:0;border-top:1px solid #eceeef;border-radius:0;background:transparent}
.kgh-goods-form-v2 .kgh-goods-form-section:first-of-type{margin-top:8px}.kgh-goods-section-title{display:flex;align-items:baseline;gap:8px;margin:0 0 9px}.kgh-goods-section-title b{font-size:12px;color:#17191b}.kgh-goods-section-title span{font-size:9.5px;color:#858a8e}
.kgh-goods-form-v2 .kgh-goods-form-grid>label{font-size:10px}.kgh-goods-form-v2 .kgh-goods-form-grid input,.kgh-goods-form-v2 .kgh-goods-form-grid select,.kgh-goods-form-v2 .kgh-goods-form-grid textarea{min-height:38px;border-radius:8px}
.kgh-goods-form-v2 .kgh-goods-search-label>input{min-height:40px;border-radius:8px}.kgh-goods-form-v2 .kgh-goods-product-selected{border:0;border-left:3px solid #2d9a84;border-radius:8px;background:#f3faf8}
.kgh-goods-form-v2 .kgh-goods-more{margin:0;border:0;border-top:1px solid #eceeef;border-radius:0;background:transparent}.kgh-goods-form-v2 .kgh-goods-more>summary{padding:12px 0}.kgh-goods-form-v2 .kgh-goods-more>.kgh-goods-form-grid{padding:0 0 12px}
.kgh-goods-simple-note{display:grid;gap:5px;padding:13px 0;border-top:1px solid #eceeef;color:#555;font-size:10px;font-weight:800}.kgh-goods-simple-note span{font-weight:600;color:#888}.kgh-goods-simple-note textarea{width:100%;min-height:58px;padding:9px 10px;border:1px solid #d9dde1;border-radius:8px;resize:vertical}
.kgh-goods-form-v2 .kgh-manager-form-actions{padding-top:12px;border-top:1px solid #eceeef}.kgh-goods-form-v2 .kgh-manager-form-actions .kgh-red-btn{min-width:170px}
.kgh-goods-page.is-employee .kgh-goods-head small{max-width:620px}.kgh-goods-page.is-employee .kgh-goods-create-panel>summary small{color:#666}
@media(max-width:700px){.kgh-goods-form-v2{padding:10px 12px!important}.kgh-goods-form-v2 .kgh-goods-mode-switch{display:grid;grid-template-columns:1fr 1fr}.kgh-goods-form-v2 .kgh-goods-mode-switch label{padding:8px}.kgh-goods-section-title{display:block}.kgh-goods-section-title span{display:block;margin-top:2px}.kgh-goods-form-v2 .kgh-manager-form-actions{display:grid;grid-template-columns:1fr 1fr}.kgh-goods-form-v2 .kgh-manager-form-actions .kgh-manager-save-status{grid-column:1/-1}.kgh-goods-form-v2 .kgh-manager-form-actions button{width:100%;min-width:0}}


/* 0.6.1-rc.52 — Goods Forward final UX pass: recipient choices + tighter mobile form. */
.kgh-goods-recipient-switch{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid #e3e5e7;border-radius:10px;background:#f3f4f5}
.kgh-goods-recipient-switch label{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:9px 8px;border-radius:7px;cursor:pointer}
.kgh-goods-recipient-switch label:has(input:checked){background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.09)}
.kgh-goods-recipient-switch input{width:15px;height:15px;accent-color:#d71920}
.kgh-goods-recipient-switch span{display:flex;min-width:0;flex-direction:column;line-height:1.15}
.kgh-goods-recipient-switch b{font-size:11px;color:#24272a}.kgh-goods-recipient-switch label:has(input:checked) b{color:#c9161d}
.kgh-goods-recipient-switch small{margin-top:2px;color:#858a8e;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kgh-goods-form-v2 .kgh-goods-form-section{scroll-margin-top:120px}
.kgh-goods-record.is-focused{outline:2px solid rgba(215,25,32,.24);outline-offset:2px;box-shadow:0 8px 22px rgba(0,0,0,.08)}
@media(max-width:620px){
  .kgh-goods-create-panel>summary{padding:11px 12px}
  .kgh-goods-form-v2{padding:8px 10px!important}
  .kgh-goods-form-v2 .kgh-goods-form-section{padding:12px 0}
  .kgh-goods-recipient-switch{gap:2px;padding:3px}
  .kgh-goods-recipient-switch label{gap:4px;padding:8px 4px}
  .kgh-goods-recipient-switch input{width:14px;height:14px}
  .kgh-goods-recipient-switch b{font-size:10px}
  .kgh-goods-recipient-switch small{font-size:7.5px}
  .kgh-goods-form-v2 .kgh-goods-mode-switch small{display:none}
  .kgh-goods-form-v2 .kgh-goods-mode-switch label{justify-content:center}
  .kgh-goods-form-v2 .kgh-manager-form-actions{grid-template-columns:1fr}
  .kgh-goods-form-v2 .kgh-manager-form-actions .kgh-manager-save-status{grid-column:auto}
}


/* 0.6.1-rc.53 — Goods Forward: aligned fields; hints moved into placeholders. */
.kgh-goods-form-v2 .kgh-goods-money-fields input::placeholder{color:#969b9f;opacity:1;font-weight:500}


/* 0.6.1-rc.54 — STEP 7: compact shift handover / internal notes. */
.kgh-handover-shell{padding:16px!important}
.kgh-handover-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kgh-handover-title h1{margin:2px 0 0;font-size:22px;line-height:1.1}
.kgh-handover-branch-filter{margin:0}.kgh-handover-branch-filter select{min-width:190px;min-height:38px;border:1px solid #d9dde1;border-radius:9px;padding:7px 32px 7px 9px;background:#fff;color:#111;font-weight:750}
.kgh-handover-shift-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
.kgh-handover-shift-strip>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:8px 10px;border:1px solid #e1e4e7;border-radius:10px;background:#fafafa}
.kgh-handover-shift-strip span{color:#70757a;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.kgh-handover-shift-strip strong{font-size:13px;color:#17191b}
.kgh-handover-shift-strip .has-previous{border-color:#e8b8bc;background:#fff7f7}.kgh-handover-shift-strip .has-previous strong{color:#b41018;font-size:18px}
.kgh-handover-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;margin:10px 0 8px}
.kgh-handover-compose textarea{width:100%;min-height:68px;max-height:180px;resize:vertical;box-sizing:border-box;border:1px solid #d9dde1;border-radius:10px;padding:10px 11px;background:#fff;color:#111;line-height:1.45}
.kgh-handover-compose .kgh-red-btn{align-self:stretch;min-width:128px;border-radius:10px}
.kgh-handover-previous-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;padding:9px 11px;border:1px solid #e8b8bc;border-radius:10px;background:#fff7f7}.kgh-handover-previous-banner strong{font-size:12px;color:#981019}.kgh-handover-previous-banner span{font-size:10px;color:#777;white-space:nowrap}
.kgh-handover-tabs{display:flex;gap:6px;margin:12px 0 9px;border-bottom:1px solid #e6e8ea;padding-bottom:8px}.kgh-handover-tabs a{min-height:32px;padding:0 11px;border:1px solid #dcdfe2;border-radius:9px;background:#fff;color:#333;font-size:10.5px;font-weight:850}.kgh-handover-tabs a.is-active{border-color:#d71920;background:#d71920;color:#fff}
.kgh-handover-list{display:grid;gap:7px}.kgh-handover-note{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:10px 11px;border:1px solid #e2e5e8;border-radius:10px;background:#fff}.kgh-handover-note.is-previous-shift{border-left:3px solid #d71920;background:#fffafa}
.kgh-handover-note-meta{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}.kgh-handover-note-meta>div{display:flex;align-items:center;gap:7px;min-width:0}.kgh-handover-note-meta strong{font-size:11px}.kgh-handover-note-meta b{display:inline-flex;align-items:center;min-height:18px;padding:0 6px;border-radius:999px;background:#fde6e8;color:#ae1018;font-size:8px;letter-spacing:.04em}.kgh-handover-note-meta>span{color:#777;font-size:9.5px;white-space:nowrap}
.kgh-handover-note p{margin:3px 0;align-self:center;color:#202326;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.kgh-handover-note form{display:flex;align-items:center;justify-content:flex-end}.kgh-handover-note form .kgh-outline-btn{min-height:30px;padding:5px 9px;font-size:9.5px}.kgh-handover-note>small{grid-column:1/-1;color:#777;font-size:9.5px}
@media(max-width:700px){.kgh-handover-shell{padding:12px!important}.kgh-handover-topbar{align-items:stretch;flex-direction:column}.kgh-handover-branch-filter select{width:100%;min-width:0}.kgh-handover-shift-strip{grid-template-columns:1fr 1fr}.kgh-handover-shift-strip>div:first-child{grid-column:1/-1}.kgh-handover-compose{grid-template-columns:1fr}.kgh-handover-compose .kgh-red-btn{min-height:40px}.kgh-handover-note{grid-template-columns:1fr}.kgh-handover-note-meta{align-items:flex-start;flex-direction:column;gap:3px}.kgh-handover-note-meta>span{white-space:normal}.kgh-handover-note form{justify-content:stretch}.kgh-handover-note form .kgh-outline-btn{width:100%}.kgh-handover-previous-banner{align-items:flex-start;flex-direction:column;gap:3px}}


/* v0.6.1-rc.55 — Control Center + Notification Center runtime pass */
.kgh-control-head-actions{display:flex;align-items:center;gap:9px}.kgh-control-head-actions>strong{display:grid;place-items:center;min-width:82px;height:70px;border-radius:14px;background:#111;color:#fff;font-size:26px;line-height:1}.kgh-control-head-actions>strong span{font-size:9px;font-weight:800;text-transform:uppercase;color:#ddd}.kgh-control-notifications{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:7px 10px;border:1px solid #e0e3e6;border-radius:9px;background:#fff;color:#222;font-size:10px;font-weight:850;text-decoration:none}.kgh-control-all-clear{display:grid;gap:4px;margin-top:10px;padding:15px;border:1px solid #d7e8dd;border-radius:11px;background:#f7fbf8}.kgh-control-all-clear strong{color:#167446;font-size:12px}.kgh-control-all-clear small{color:#647069;font-size:10px;line-height:1.45}
.kgh-notification-routing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}.kgh-notification-routing>div{display:grid;gap:3px;padding:10px 11px;border:1px solid #e2e5e8;border-radius:10px;background:#fafafa}.kgh-notification-routing b{font-size:10px}.kgh-notification-routing small{color:#696e72;font-size:9px;line-height:1.4}.kgh-notification-rules{display:grid;gap:9px}.kgh-notification-rule-master,.kgh-notification-rule-branches>label,.kgh-notification-rule-recipients>label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:9px 10px;border:1px solid #e1e3e5;border-radius:10px;background:#fafafa;font-size:10px;font-weight:800}.kgh-notification-rule-master span,.kgh-notification-rule-recipients>label>span{display:grid;gap:2px}.kgh-notification-rule-master small,.kgh-notification-rule-recipients small{color:#707579;font-size:9px;font-weight:600}.kgh-notification-rule-branches,.kgh-notification-rule-recipients{display:grid;gap:6px;padding:10px;border:1px solid #e1e3e5;border-radius:11px;background:#fff}.kgh-notification-rule-branches>strong,.kgh-notification-rule-recipients>strong{font-size:10px}.kgh-notification-rule-recipients{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-notification-rule-recipients>strong{grid-column:1/-1}
@media(max-width:700px){.kgh-control-head-actions{align-items:flex-end;flex-direction:column}.kgh-control-head-actions>strong{min-width:68px;height:60px;font-size:21px}.kgh-notification-routing{grid-template-columns:1fr}.kgh-notification-rule-recipients{grid-template-columns:1fr}.kgh-notification-rule-recipients>strong{grid-column:auto}}


/* v0.6.1-rc.56 — Control Center hover/readability + operational schedule counts */
.kgh-control-center .kgh-control-head h1,
.kgh-control-center .kgh-control-head h1:hover{
  color:#111!important;-webkit-text-fill-color:#111!important;opacity:1!important;text-shadow:none!important;
}
.kgh-control-center .kgh-control-head small{
  color:#555!important;-webkit-text-fill-color:#555!important;opacity:1!important;
}
.kgh-control-center .kgh-attention-card,
.kgh-control-center .kgh-attention-card:link,
.kgh-control-center .kgh-attention-card:visited,
.kgh-control-center .kgh-attention-card:hover,
.kgh-control-center .kgh-attention-card:focus,
.kgh-control-center .kgh-attention-card:focus-visible{
  background:#fff!important;background-color:#fff!important;background-image:none!important;
  color:#111!important;-webkit-text-fill-color:#111!important;text-decoration:none!important;opacity:1!important;
}
.kgh-control-center .kgh-attention-card:hover,
.kgh-control-center .kgh-attention-card:focus-visible{
  border-color:#d71920!important;box-shadow:0 8px 22px rgba(0,0,0,.10)!important;transform:translateY(-1px);
}
.kgh-control-center .kgh-attention-card>span,
.kgh-control-center .kgh-attention-card:hover>span,
.kgh-control-center .kgh-attention-card:focus>span{
  color:#111!important;-webkit-text-fill-color:#111!important;
}
.kgh-control-center .kgh-attention-card>b,
.kgh-control-center .kgh-attention-card:hover>b,
.kgh-control-center .kgh-attention-card:focus>b{
  color:#b80d16!important;-webkit-text-fill-color:#b80d16!important;
}
.kgh-control-center .kgh-attention-card>small,
.kgh-control-center .kgh-attention-card:hover>small,
.kgh-control-center .kgh-attention-card:focus>small{
  color:#6f7478!important;-webkit-text-fill-color:#6f7478!important;
}
.kgh-control-center .kgh-attention-card>i,
.kgh-control-center .kgh-attention-card:hover>i,
.kgh-control-center .kgh-attention-card:focus>i{
  color:#b8bcc0!important;-webkit-text-fill-color:#b8bcc0!important;
}
.kgh-control-center .kgh-attention-card:hover>i,
.kgh-control-center .kgh-attention-card:focus-visible>i{
  color:#d71920!important;-webkit-text-fill-color:#d71920!important;
}
.kgh-control-center .kgh-control-notifications,
.kgh-control-center .kgh-control-notifications:hover,
.kgh-control-center .kgh-control-notifications:focus,
.kgh-control-center .kgh-control-notifications:visited{
  background:#fff!important;color:#222!important;-webkit-text-fill-color:#222!important;text-decoration:none!important;
}

/* v0.6.1-rc.57 — Targets 2.0 controlled rollout + internal hover guard */
.kgh-system-warning:hover,.kgh-system-warning:focus,.kgh-system-warning:active{background:#fff!important;color:#111!important;text-decoration:none!important}
.kgh-system-warning:hover b,.kgh-system-warning:focus b,.kgh-system-warning:active b{color:#111!important}
.kgh-system-warning:hover small,.kgh-system-warning:focus small,.kgh-system-warning:active small{color:#686d72!important}
.kgh-system-warning:hover .kgh-system-warning-action,.kgh-system-warning:focus .kgh-system-warning-action,.kgh-system-warning:active .kgh-system-warning-action{color:#4b5055!important}
.kgh-system-warning:hover .kgh-system-warning-action b,.kgh-system-warning:focus .kgh-system-warning-action b,.kgh-system-warning:active .kgh-system-warning-action b{color:#222!important}
.kgh-system-warning:hover>span,.kgh-system-warning:focus>span,.kgh-system-warning:active>span{color:#d71920!important}

.kgh-targets-intro{position:relative}
.kgh-target-v2-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #e0e2e4;border-radius:999px;background:#fff;color:#222;font-size:9px;font-weight:900;letter-spacing:.05em}
.kgh-target-rollout-note{display:grid;gap:3px;margin:10px 0 2px;padding:10px 12px;border:1px solid #ead9da;border-left:4px solid #d71920;border-radius:10px;background:#fffafa}
.kgh-target-rollout-note strong{font-size:11px;color:#111}.kgh-target-rollout-note span{font-size:10px;line-height:1.45;color:#62676b}
.kgh-target-v2-head,.kgh-target-v2-row{display:grid;grid-template-columns:minmax(190px,1.5fr) 88px 78px 65px minmax(145px,1.1fr) 72px 105px 36px;gap:10px;align-items:center}
.kgh-target-v2-head{padding:10px 12px;border-radius:9px;background:#f3f4f5;color:#666;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.kgh-target-v2-list{display:grid}.kgh-target-v2-row{padding:12px;border-bottom:1px solid #e8eaec;background:#fff}.kgh-target-v2-row:last-child{border-bottom:0}.kgh-target-v2-row:nth-child(even){background:#fbfbfb}
.kgh-target-v2-row>div:not(.kgh-target-person){display:grid;gap:2px}.kgh-target-v2-row>div>strong{font-size:14px;color:#111}.kgh-target-v2-row>div>small{font-size:9.5px;color:#777}
.kgh-target-edit-link,.kgh-target-edit-link:hover,.kgh-target-edit-link:focus{display:grid;place-items:center;width:30px;height:30px;border:1px solid #d9dde0;border-radius:8px;background:#fff!important;color:#d71920!important;text-decoration:none!important;font-size:15px;font-weight:900}
.kgh-target-edit-link:hover,.kgh-target-edit-link:focus{border-color:#d71920!important;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.kgh-target-rule-card{scroll-margin-top:90px}.kgh-target-switch-line{grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important;padding:7px 8px;border:1px solid #e1e3e5;border-radius:9px;background:#fafafa}.kgh-target-switch-line>input{width:auto!important;min-height:0!important}.kgh-target-switch-line span{display:grid;gap:2px}.kgh-target-switch-line b{font-size:10px;color:#111}.kgh-target-switch-line small{font-size:8.5px;color:#777;font-weight:600}
.kgh-target-rule-actions{display:flex;align-items:center;gap:8px;grid-column:1/-1}.kgh-target-rule-edit,.kgh-target-rule-edit:hover,.kgh-target-rule-edit:focus{display:inline-flex;align-items:center;padding:7px 9px;border:1px solid #d8dce0;border-radius:8px;background:#fff!important;color:#111!important;text-decoration:none!important;font-size:9px;font-weight:850}.kgh-target-rule-edit:hover,.kgh-target-rule-edit:focus{border-color:#d71920!important;color:#d71920!important}
.kgh-target-rules-list-card .kgh-task-template-list article{display:flex;align-items:center;justify-content:space-between;gap:12px}
@media(max-width:1050px){.kgh-target-v2-head{display:none}.kgh-target-v2-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.kgh-target-v2-row .kgh-target-person{grid-column:1/-1}.kgh-target-v2-row>div:nth-child(5){grid-column:span 2}}
@media(max-width:650px){.kgh-target-v2-row{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-target-v2-row>div:nth-child(5){grid-column:1/-1}.kgh-target-v2-row>div:last-child{position:absolute;right:12px;top:12px}.kgh-target-v2-row{position:relative;padding-right:50px}.kgh-target-rule-actions{align-items:stretch;flex-direction:column}.kgh-target-rule-actions .kgh-red-btn,.kgh-target-rule-actions .kgh-outline-btn{width:100%;justify-content:center}.kgh-target-rules-list-card .kgh-task-template-list article{align-items:flex-start;flex-direction:column}}


/* v0.6.1-rc.58 — Targets 2.0 clear scope selector */
.kgh-target-rule-form-v2{grid-template-columns:repeat(4,minmax(0,1fr))}
.kgh-target-mode-picker{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kgh-target-mode-picker label{position:relative;cursor:pointer}.kgh-target-mode-picker input{position:absolute;opacity:0;pointer-events:none;width:1px!important;height:1px!important;min-height:0!important}
.kgh-target-mode-picker span{display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;border:1px solid #d8dce0;border-radius:10px;background:#fff;color:#222;font-size:11px;font-weight:900;text-align:center;transition:.15s ease}
.kgh-target-mode-picker input:checked+span{border-color:#d71920;background:#fff5f5;color:#b10f15;box-shadow:inset 0 0 0 1px #d71920}
.kgh-target-mode-picker label:hover span{border-color:#d71920;color:#b10f15}
.kgh-target-scope-summary{grid-column:1/-1;display:grid;gap:3px;padding:10px 12px;border-left:4px solid #d71920;border-radius:9px;background:#f7f8f9}
.kgh-target-scope-summary strong{font-size:12px;color:#111}.kgh-target-scope-summary span{font-size:10px;color:#666}
.kgh-target-scope-field{position:relative}.kgh-target-scope-field>small{font-size:8.5px;font-weight:600;color:#7a7f84;line-height:1.35}
.kgh-target-scope-field.is-locked{opacity:.55}.kgh-target-scope-field.is-locked select,.kgh-target-scope-field.is-locked input{background:#f0f1f2!important;color:#85898d!important;cursor:not-allowed}
.kgh-target-period-toggle{grid-column:span 2!important}.kgh-target-period-field[hidden]{display:none!important}
.kgh-target-values-title{grid-column:1/-1;display:grid;gap:2px;margin-top:3px;padding-top:10px;border-top:1px solid #eceef0}.kgh-target-values-title strong{font-size:11px;color:#111}.kgh-target-values-title span{font-size:9.5px;color:#70757a}
@media(max-width:900px){.kgh-target-rule-form-v2{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-target-mode-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.kgh-target-rule-form-v2{grid-template-columns:1fr}.kgh-target-mode-picker{grid-template-columns:1fr}.kgh-target-period-toggle{grid-column:auto!important}}


/* rc.59 — staff-only contact phone + shared On Duty directory */
.kgh-staff-contact-line{display:flex;align-items:center;gap:5px;min-height:20px;margin-top:3px;font-size:10px;line-height:1.2;color:#5f646a}
.kgh-staff-contact-label{font-weight:800;color:#70757b}.kgh-staff-contact-value{font-weight:800;color:#202327}
.kgh-staff-contact-edit{appearance:none;border:0;background:transparent;color:#d91f26;padding:0 3px;font-size:13px;line-height:1;cursor:pointer;font-weight:900}
.kgh-staff-contact-editor{display:inline-flex;align-items:center;gap:4px}.kgh-staff-contact-editor[hidden]{display:none!important}
.kgh-staff-contact-editor input{width:142px;min-height:28px;height:28px;padding:3px 7px;border:1px solid #ccd1d6;border-radius:7px;background:#fff;color:#111;font-size:11px;box-sizing:border-box}
.kgh-staff-contact-editor button{appearance:none;min-width:30px;height:28px;padding:0 7px;border:1px solid #d91f26;border-radius:7px;background:#d91f26;color:#fff;font-size:9px;font-weight:900;cursor:pointer}
.kgh-staff-contact-editor [data-kgh-staff-contact-cancel]{min-width:28px;padding:0;background:#fff;color:#666;border-color:#d9dde1;font-size:14px}
.kgh-on-duty-head small b{color:#333;font-weight:900}
.kgh-on-duty-branch-card>header{grid-template-columns:36px minmax(0,1fr) auto!important}
.kgh-on-duty-head-actions,.kgh-on-duty-person-actions{display:flex;align-items:center;gap:6px}
.kgh-on-duty-branch-phone-text{display:block!important;margin-top:3px;font-size:8px!important;font-weight:700!important;letter-spacing:0!important;color:#777!important}
.kgh-call-btn{display:inline-flex!important;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;border-radius:50%;background:#168a43!important;color:#fff!important;text-decoration:none!important;border:0!important;box-shadow:0 3px 9px rgba(22,138,67,.22);transition:.15s ease}
.kgh-call-btn svg{width:15px;height:15px;fill:currentColor}.kgh-call-btn:hover,.kgh-call-btn:focus{background:#107637!important;color:#fff!important;transform:translateY(-1px)}
.kgh-call-btn.is-person{width:29px;height:29px;min-width:29px}.kgh-call-btn.is-person svg{width:14px;height:14px}
.kgh-on-duty-person{grid-template-columns:34px minmax(0,1fr) auto!important}
@media(max-width:680px){.kgh-staff-contact-line{flex-wrap:wrap;max-width:210px}.kgh-staff-contact-editor input{width:125px}.kgh-on-duty-branch-phone-text{display:none!important}.kgh-on-duty-head-actions,.kgh-on-duty-person-actions{gap:5px}}

/* rc.60 — personal phone terminology + direct calls in Staff directory */
.kgh-employee-card-wrap{position:relative;min-width:0}
.kgh-employee-card-wrap .kgh-employee-card{box-sizing:border-box;width:100%;height:100%}
.kgh-employee-card-wrap.has-call .kgh-employee-card{padding-right:118px}
.kgh-employee-call{position:absolute!important;right:77px;top:50%;z-index:3;transform:translateY(-50%);width:31px!important;height:31px!important;min-width:31px!important}
.kgh-employee-call:hover,.kgh-employee-call:focus{transform:translateY(-50%) scale(1.04)!important}
@media(max-width:700px){.kgh-employee-card-wrap.has-call .kgh-employee-card{padding-right:105px}.kgh-employee-call{right:68px;width:29px!important;height:29px!important;min-width:29px!important}}


/* rc.61 — Finance 2.0: compact branch input, management-only reports */
.kgh-finance-simple-intro .kgh-card-head{margin-bottom:0}
.kgh-finance-simple-branch{display:grid;gap:10px}
.kgh-finance-simple-form{display:grid;gap:10px;margin:0}
.kgh-finance-simple-period{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #e2e5e8;border-radius:10px;background:#fafafa;color:#555;font-size:10px}
.kgh-finance-simple-period strong{color:#111;font-size:11px}
.kgh-finance-simple-row{display:grid;grid-template-columns:minmax(135px,.7fr) repeat(3,minmax(120px,1fr));gap:8px;align-items:end;padding:11px;border:1px solid #e0e3e6;border-radius:12px;background:#fff;color:#111}
.kgh-finance-simple-row>strong{align-self:center;font-size:12px}
.kgh-finance-simple-row label{display:grid;gap:5px;min-width:0;color:#666;font-size:9px;font-weight:850;text-transform:uppercase}
.kgh-finance-simple-row .kgh-money-input{width:100%}
.kgh-finance-simple-row.is-return{grid-template-columns:minmax(135px,.7fr) minmax(180px,1fr) minmax(0,2fr)}
.kgh-finance-simple-row.is-return label{grid-column:2}
.kgh-finance-simple-saved{color:#777;font-size:9px}
@media(max-width:760px){.kgh-finance-simple-row,.kgh-finance-simple-row.is-return{grid-template-columns:1fr 1fr}.kgh-finance-simple-row>strong{grid-column:1/-1}.kgh-finance-simple-row.is-return label{grid-column:auto}.kgh-finance-simple-period{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.kgh-finance-simple-row,.kgh-finance-simple-row.is-return{grid-template-columns:1fr}.kgh-finance-simple-row>strong,.kgh-finance-simple-row.is-return label{grid-column:auto}}

/* 0.6.1-rc.62 — PWA appearance settings ported safely onto rc.61. */
/* rc.54 — configurable PWA splash / icon and clearer login progress */
#kgh-login-form>button[type="submit"].is-loading,#kgh-login-form>button[type="submit"].is-success{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important}#kgh-login-form>button[type="submit"].is-success{background:#178743!important;border-color:#178743!important}.kgh-login-spinner{display:block;width:16px;height:16px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:kghLoginSpin .72s linear infinite}@keyframes kghLoginSpin{to{transform:rotate(360deg)}}

/* rc.67 — private reminders, compact management UI and Goods Forward fixes */
.kgh-personal-tasks{margin:16px 0 20px;padding:14px;border:1px solid #e3e5e7;border-radius:16px;background:#f8f9fa}.kgh-personal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.kgh-personal-head h2{margin:2px 0 3px;font-size:20px}.kgh-personal-head small{display:block;max-width:560px;color:#767b80;font-size:10px}.kgh-personal-create{min-width:170px}.kgh-personal-create>summary{list-style:none;cursor:pointer;padding:10px 14px;border:1px solid #d71920;border-radius:10px;background:#fff;color:#c9161d;font-weight:900;text-align:center}.kgh-personal-create>summary::-webkit-details-marker{display:none}.kgh-personal-create[open]{min-width:min(100%,390px)}.kgh-personal-create form{display:grid;gap:9px;margin-top:8px;padding:12px;border:1px solid #e4e6e8;border-radius:12px;background:#fff}.kgh-personal-create label{display:grid;gap:4px;color:#666;font-size:10px;font-weight:800}.kgh-personal-create input,.kgh-personal-create textarea,.kgh-personal-create select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #d8dce0;border-radius:8px;background:#fff;color:#111}.kgh-personal-create textarea{min-height:58px;resize:vertical}.kgh-personal-datetime{display:grid;grid-template-columns:1fr 1fr;gap:8px}.kgh-personal-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.kgh-personal-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:13px 0}.kgh-personal-tabs a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px;border:1px solid #e0e2e4;border-radius:9px;background:#fff;color:#34383b;font-size:10px;font-weight:850;text-decoration:none}.kgh-personal-tabs a.is-active{border-color:#1d1f21;background:#1d1f21;color:#fff}.kgh-personal-tabs b{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:#edf0f2;color:#555;font-size:9px}.kgh-personal-tabs a.is-active b{background:#d71920;color:#fff}.kgh-personal-task-list{display:grid;gap:7px}.kgh-personal-task-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #e0e2e4;border-left:4px solid #b9bdc1;border-radius:11px;background:#fff}.kgh-personal-task-row.is-overdue{border-left-color:#d71920}.kgh-personal-task-row.is-completed{opacity:.7}.kgh-personal-task-copy>div{display:flex;gap:7px;align-items:center}.kgh-personal-status{padding:3px 7px;border-radius:999px;background:#f0f2f4;font-size:8px;font-weight:900;text-transform:uppercase}.is-overdue .kgh-personal-status{background:#fff0f1;color:#b80d16}.kgh-personal-task-copy time{color:#7a7f83;font-size:9px}.kgh-personal-task-copy h3{margin:5px 0 0;font-size:14px}.kgh-personal-task-copy p{margin:3px 0 0;color:#666;font-size:10px}.kgh-personal-task-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.kgh-personal-task-actions button,.kgh-personal-task-actions summary{min-height:31px;padding:6px 9px;border:1px solid #d8dce0;border-radius:8px;background:#fff;color:#222;font-size:9px;font-weight:850;cursor:pointer}.kgh-personal-task-actions details{position:relative}.kgh-personal-task-actions details>summary{list-style:none}.kgh-personal-task-actions details>summary::-webkit-details-marker{display:none}.kgh-personal-task-actions details>div{position:absolute;right:0;top:36px;z-index:5;display:grid;gap:4px;min-width:100px;padding:5px;border:1px solid #ddd;border-radius:9px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.12)}.kgh-personal-delete{color:#b80d16!important}.kgh-personal-calendar{padding:10px;border:1px solid #e2e4e6;border-radius:12px;background:#fff}.kgh-personal-calendar-head{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:7px;margin-bottom:8px;text-align:center}.kgh-personal-calendar-head a{display:grid;place-items:center;height:34px;border:1px solid #ddd;border-radius:8px;color:#111;text-decoration:none;font-size:20px}.kgh-personal-weekdays,.kgh-personal-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.kgh-personal-weekdays span{text-align:center;color:#777;font-size:8px;font-weight:850}.kgh-personal-calendar-grid>a,.kgh-personal-calendar-grid>span{position:relative;display:grid;place-items:center;min-height:38px;border-radius:8px;text-decoration:none}.kgh-personal-calendar-grid>a{border:1px solid #e5e6e8;background:#fafafa;color:#222}.kgh-personal-calendar-grid>a.is-today{border-color:#d71920}.kgh-personal-calendar-grid>a.is-selected{background:#1d1f21;color:#fff}.kgh-personal-calendar-grid>a b{position:absolute;right:2px;top:2px;display:grid;place-items:center;min-width:14px;height:14px;border-radius:999px;background:#d71920;color:#fff;font-size:7px}.kgh-personal-day-title{margin:12px 0 7px;font-size:13px}
.kgh-adjustment-fold{padding:0!important;overflow:hidden}.kgh-adjustment-fold>summary{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 18px;list-style:none;cursor:pointer;font-size:18px;font-weight:900}.kgh-adjustment-fold>summary::-webkit-details-marker{display:none}.kgh-adjustment-fold>summary b{color:#d71920;font-size:18px;transition:transform .18s ease}.kgh-adjustment-fold[open]>summary b{transform:rotate(180deg)}.kgh-adjustment-fold-body{padding:0 18px 18px;border-top:1px solid #eceeef}.kgh-adjustment-fold-body>.kgh-card-head{padding-top:15px}.kgh-adjustment-grid{align-items:start}
.kgh-manager-orders-quick{grid-column:1/-1;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%;min-height:42px!important;padding:8px 12px!important;border:1px solid #d71920!important;border-radius:10px!important;background:#3a3d40!important;color:#fff!important;text-decoration:none!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}.kgh-manager-orders-quick>span{color:#fff!important;font-size:9px!important;font-weight:950!important;letter-spacing:.05em;text-shadow:-1px -1px 0 #a60f15,1px -1px 0 #a60f15,-1px 1px 0 #a60f15,1px 1px 0 #a60f15}.kgh-manager-orders-quick>b{display:flex;align-items:center;gap:6px;color:#fff!important;font-size:9px!important}.kgh-manager-orders-quick i{display:grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:999px;background:#d71920;color:#fff;font-style:normal;font-size:11px}.kgh-econt-branch-summary{display:grid!important;grid-template-columns:minmax(110px,1fr) auto!important;gap:12px!important}.kgh-econt-branch-summary>span{min-width:0;white-space:normal;word-break:normal!important;overflow-wrap:normal!important}.kgh-econt-branch-summary>b{text-align:right;white-space:nowrap}.kgh-goods-delete-btn{border-color:#efb9bd!important;background:#fff4f5!important;color:#b80d16!important}.kgh-goods-store-reserved-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:8px;background:#e11b22;color:#fff!important;font-size:12px;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.02em}.kgh-goods-store-reserved-badge.is-single{margin:4px 0 10px}
.kgh-employee-profile-link{display:block;margin:2px 0 1px;color:#d71920;font-size:9px;font-weight:850}.kgh-employee-profile-link.is-inactive{color:#777}.kgh-employee-card-copy{min-width:0}.kgh-employee-card-copy small{display:block}
@media(max-width:700px){.kgh-personal-tasks{margin:12px 0 16px;padding:10px}.kgh-personal-head{display:grid}.kgh-personal-create,.kgh-personal-create[open]{width:100%;min-width:0}.kgh-personal-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.kgh-personal-task-row{grid-template-columns:1fr}.kgh-personal-task-actions{justify-content:flex-start}.kgh-personal-task-actions>*{flex:1}.kgh-personal-task-actions details>summary{width:100%;text-align:center}.kgh-personal-datetime{grid-template-columns:1fr 1fr}.kgh-adjustment-grid{gap:8px}.kgh-adjustment-fold>summary{min-height:52px;padding:0 14px;font-size:16px}.kgh-adjustment-fold-body{padding:0 14px 14px}.kgh-econt-branch-summary{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}.kgh-econt-branch-summary>span{font-size:10px!important;font-weight:850}.kgh-econt-branch-summary>b{font-size:10px!important}.kgh-econt-refresh-row small{display:none}.kgh-employee-card-wrap.has-call .kgh-employee-card{padding-right:58px!important}.kgh-employee-call{right:14px!important;width:34px!important;height:34px!important;min-width:34px!important}.kgh-employee-card{grid-template-columns:42px minmax(0,1fr)!important}.kgh-employee-name-row{max-width:100%}.kgh-employee-profile-link{font-size:8.5px}.kgh-manager-orders-quick{min-height:40px!important}}


@media(max-width:700px){.kgh-econt-existing-report{overflow:visible!important}.kgh-econt-existing-report td,.kgh-econt-existing-report th,.kgh-econt-existing-report span,.kgh-econt-existing-report b,.kgh-econt-existing-report strong{word-break:normal!important;overflow-wrap:normal!important}.kgh-econt-existing-report table{table-layout:auto!important}.kgh-econt-existing-report tr.kgh-econt-compact-row{display:grid!important;grid-template-columns:minmax(110px,1fr) auto!important;align-items:center!important;gap:10px!important}.kgh-econt-existing-report tr.kgh-econt-compact-row>td{width:auto!important;min-width:0!important}.kgh-econt-existing-report tr.kgh-econt-compact-row>td:first-child{white-space:normal!important}.kgh-econt-existing-report tr.kgh-econt-compact-row>td:last-child{white-space:nowrap!important;text-align:right!important}}

/* 0.6.1-rc.68 — Goods Forward desktop card layout stabilization. */
@media (min-width:760px){
  .kgh-goods-page .kgh-goods-list{gap:14px!important}
  .kgh-goods-page .kgh-goods-record{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .kgh-goods-page .kgh-goods-record-top{
    display:flex!important;
    width:100%!important;
    box-sizing:border-box!important;
    align-items:center!important;
    gap:8px!important;
    padding:10px 14px!important;
    background:#fafafa!important;
  }
  .kgh-goods-page .kgh-goods-record-top time{
    margin-left:auto!important;
    white-space:nowrap!important;
  }
  .kgh-goods-page .kgh-goods-record-body{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    align-items:start!important;
    gap:16px!important;
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:16px!important;
  }
  .kgh-goods-page .kgh-goods-record-image{
    width:92px!important;
    height:92px!important;
    align-self:start!important;
  }
  .kgh-goods-page .kgh-goods-record-copy{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  .kgh-goods-page .kgh-goods-record-copy h3{
    margin:0!important;
    font-size:16px!important;
    line-height:1.3!important;
  }
  .kgh-goods-page .kgh-goods-art-recipient{margin-top:6px!important}
  .kgh-goods-page .kgh-goods-contact{
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    margin-top:8px!important;
  }
  .kgh-goods-page .kgh-goods-prices{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(125px,165px))!important;
    justify-content:start!important;
    gap:8px!important;
    width:100%!important;
    margin-top:12px!important;
  }
  .kgh-goods-page .kgh-goods-prices>span{
    min-width:0!important;
    padding:8px 10px!important;
  }
  .kgh-goods-page .kgh-goods-dates{margin-top:10px!important}
  .kgh-goods-page .kgh-goods-record-note{
    width:100%!important;
    box-sizing:border-box!important;
    margin-top:10px!important;
  }
  .kgh-goods-page .kgh-goods-actions{
    display:flex!important;
    width:100%!important;
    box-sizing:border-box!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:11px 14px!important;
    background:#fbfbfc!important;
  }
  .kgh-goods-page .kgh-goods-actions>*{
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
  }
  .kgh-goods-page .kgh-goods-actions .kgh-red-btn{
    min-width:128px!important;
  }
  .kgh-goods-page .kgh-goods-actions .kgh-goods-delete-btn{
    margin-left:auto!important;
  }
}

/* 0.6.1-rc.69 — Goods pagination + compact Seized Items register. */
.kgh-goods-module-tabs{display:flex;gap:7px;margin:10px 0 12px}.kgh-goods-module-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border:1px solid #dfe2e5;border-radius:10px;background:#fff;color:#222;text-decoration:none;font-size:10px;font-weight:900}.kgh-goods-module-tabs a.is-active{border-color:#d71920;background:#1d1f21;color:#fff}.kgh-record-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 2px;padding-top:12px;border-top:1px solid #eceeef}.kgh-record-pagination>a,.kgh-record-page-numbers>a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border:1px solid #dde0e3;border-radius:8px;background:#fff;color:#222;text-decoration:none;font-size:9px;font-weight:850}.kgh-record-page-numbers{display:flex;gap:5px}.kgh-record-page-numbers>a{min-width:34px;padding-left:8px;padding-right:8px}.kgh-record-page-numbers>a.is-current{border-color:#d71920;background:#d71920;color:#fff}.kgh-record-pagination>a.is-disabled{pointer-events:none;opacity:.4}
.kgh-seized-toolbar{align-items:center}.kgh-seized-search{display:flex;align-items:center;gap:6px;margin-left:auto}.kgh-seized-search input{width:min(360px,38vw);min-height:38px;padding:8px 11px;border:1px solid #dfe2e5;border-radius:9px;background:#fff;font-size:10px}.kgh-seized-search button,.kgh-seized-search a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 11px;border:1px solid #d71920;border-radius:9px;background:#fff;color:#b80d16;text-decoration:none;font-size:9px;font-weight:900}.kgh-seized-search button{background:#d71920;color:#fff}
.kgh-seized-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.kgh-seized-form-grid label{display:grid;gap:5px;color:#666;font-size:9px;font-weight:850}.kgh-seized-form-grid input,.kgh-seized-form-grid select,.kgh-seized-form-grid textarea{width:100%;min-height:40px;box-sizing:border-box;padding:8px 10px;border:1px solid #d9dde0;border-radius:8px;background:#fff;color:#222;font-size:11px}.kgh-seized-form-grid textarea{min-height:76px;resize:vertical}.kgh-seized-form-grid .is-wide{grid-column:span 2}.kgh-seized-form-grid .is-full{grid-column:1/-1}.kgh-seized-form .kgh-manager-form-actions{padding:0 12px 12px}
.kgh-seized-list{display:grid;gap:8px;margin-top:10px}.kgh-seized-row{overflow:hidden;border:1px solid #e0e3e6;border-left:4px solid #d71920;border-radius:11px;background:#fff}.kgh-seized-row.is-paid{border-left-color:#168a50}.kgh-seized-row.is-returned{border-left-color:#777}.kgh-seized-row>summary{display:grid;grid-template-columns:105px minmax(180px,1.7fr) minmax(150px,1.2fr) 95px 105px 78px 24px;gap:10px;align-items:center;min-height:54px;padding:9px 12px;list-style:none;cursor:pointer;background:#fff}.kgh-seized-row>summary::-webkit-details-marker{display:none}.kgh-seized-row>summary:hover{background:#fbfbfc}.kgh-seized-art{color:#d71920;font-size:9px;font-weight:900;white-space:nowrap}.kgh-seized-item{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111;font-size:11px}.kgh-seized-person{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#444;font-size:10px}.kgh-seized-amount{font-size:11px;white-space:nowrap}.kgh-seized-egn-toggle{min-height:30px;padding:5px 8px;border:1px solid #dfe2e5;border-radius:8px;background:#f7f8f9;color:#333;font-size:8.5px;font-weight:850;white-space:nowrap}.kgh-seized-egn-toggle:disabled{opacity:.55}.kgh-seized-status{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:4px 7px;border-radius:999px;background:#fff0f1;color:#b80d16;font-size:8px;font-weight:900}.is-paid .kgh-seized-status{background:#eef9f2;color:#167446}.is-returned .kgh-seized-status{background:#f1f2f3;color:#555}.kgh-seized-row>summary>i{color:#999;font-style:normal;font-size:17px;transition:transform .18s ease}.kgh-seized-row[open]>summary>i{transform:rotate(180deg)}.kgh-seized-details{padding:12px;border-top:1px solid #eceeef;background:#fafafa}.kgh-seized-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.kgh-seized-detail-grid>span{display:grid;gap:3px;padding:8px 9px;border:1px solid #e2e4e6;border-radius:8px;background:#fff}.kgh-seized-detail-grid>span.is-wide{grid-column:span 2}.kgh-seized-detail-grid>span.is-full{grid-column:1/-1}.kgh-seized-detail-grid small{color:#777;font-size:8px}.kgh-seized-detail-grid b{color:#222;font-size:10px;font-weight:750;overflow-wrap:anywhere}.kgh-seized-actions{display:flex;align-items:center;gap:7px;margin-top:10px}.kgh-seized-actions .kgh-goods-delete-btn{margin-left:auto}
@media(max-width:700px){.kgh-goods-module-tabs{display:grid;grid-template-columns:1fr 1fr}.kgh-goods-module-tabs a{min-height:40px;padding:7px 8px}.kgh-record-pagination{display:grid;grid-template-columns:1fr auto 1fr;gap:5px}.kgh-record-pagination>a{padding:6px 5px;font-size:8px}.kgh-record-page-numbers{gap:3px}.kgh-record-page-numbers>a{min-width:30px;min-height:32px;padding:5px}.kgh-seized-toolbar{display:grid!important;gap:8px!important}.kgh-seized-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;width:100%;margin:0}.kgh-seized-search input{width:100%;min-width:0}.kgh-seized-search button,.kgh-seized-search a{padding:7px 8px}.kgh-seized-form-grid{grid-template-columns:1fr 1fr;padding:10px}.kgh-seized-form-grid .is-wide,.kgh-seized-form-grid .is-full{grid-column:1/-1}.kgh-seized-row>summary{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;min-height:0;padding:10px}.kgh-seized-art{grid-column:1}.kgh-seized-status{grid-column:2;grid-row:1}.kgh-seized-item{grid-column:1/-1;grid-row:2;white-space:normal;font-size:12px}.kgh-seized-person{grid-column:1;grid-row:3;white-space:normal}.kgh-seized-amount{grid-column:2;grid-row:3;text-align:right}.kgh-seized-egn-toggle{grid-column:1;grid-row:4;justify-self:start}.kgh-seized-row>summary>i{grid-column:2;grid-row:4;justify-self:end}.kgh-seized-detail-grid{grid-template-columns:1fr 1fr}.kgh-seized-detail-grid>span.is-wide,.kgh-seized-detail-grid>span.is-full{grid-column:1/-1}.kgh-seized-actions{display:grid;grid-template-columns:1fr 1fr}.kgh-seized-actions>*{width:100%!important}.kgh-seized-actions .kgh-goods-delete-btn{margin-left:0;grid-column:1/-1}.kgh-seized-shell .kgh-goods-head{align-items:flex-start}.kgh-seized-shell .kgh-goods-head-stats{margin-left:auto}}

/* 0.6.1-rc.70 — compact Goods Forward / Seized Items header + robust module tabs. */
.kgh-goods-page .kgh-goods-shell{padding:14px 16px!important}
.kgh-goods-page .kgh-goods-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:0!important;margin:0 0 8px!important;padding:0!important}
.kgh-goods-page .kgh-goods-head>div:first-child{display:grid!important;gap:2px!important;min-width:0!important}
.kgh-goods-page .kgh-goods-head .kgh-overline{display:block!important;margin:0!important;color:#d71920!important;font-size:8px!important;font-weight:950!important;line-height:1.2!important;letter-spacing:.14em!important}
.kgh-goods-page .kgh-goods-head h1,
.kgh-goods-page .kgh-goods-head h1:hover,
.kgh-goods-page .kgh-goods-head h1:focus{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:none!important;color:#111!important;-webkit-text-fill-color:#111!important;font-size:22px!important;font-weight:900!important;line-height:1.08!important;text-shadow:none!important}
.kgh-goods-page .kgh-goods-head small{display:block!important;margin:1px 0 0!important;padding:0!important;color:#70757a!important;font-size:9.5px!important;line-height:1.3!important}
.kgh-goods-page .kgh-goods-head-stats{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;margin:0!important}
.kgh-goods-page .kgh-goods-head-stats strong{display:grid!important;gap:2px!important;min-width:72px!important;padding:7px 9px!important;border-radius:9px!important;background:#f7f8f9!important;font-size:15px!important;line-height:1!important;text-align:left!important}
.kgh-goods-page .kgh-goods-head-stats strong span{margin:0!important;font-size:7.5px!important;line-height:1.15!important}

.kgh-goods-page .kgh-goods-module-tabs{display:inline-grid!important;grid-template-columns:repeat(2,minmax(130px,1fr))!important;gap:3px!important;width:auto!important;max-width:360px!important;margin:0 0 9px!important;padding:3px!important;border:1px solid #dde1e4!important;border-radius:11px!important;background:#f1f2f3!important;overflow:visible!important}
.kgh-goods-page .kgh-goods-module-tabs a,
.kgh-goods-page .kgh-goods-module-tabs a:visited{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:34px!important;margin:0!important;padding:6px 12px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;background-image:none!important;color:#303438!important;-webkit-text-fill-color:#303438!important;font-size:9.5px!important;font-weight:900!important;line-height:1.1!important;text-decoration:none!important;opacity:1!important;visibility:visible!important;box-shadow:none!important}
.kgh-goods-page .kgh-goods-module-tabs a:hover,
.kgh-goods-page .kgh-goods-module-tabs a:focus,
.kgh-goods-page .kgh-goods-module-tabs a:focus-visible{border-color:#efb9bd!important;background:#fff7f8!important;background-image:none!important;color:#b80d16!important;-webkit-text-fill-color:#b80d16!important;opacity:1!important;visibility:visible!important;box-shadow:none!important;outline:none!important}
.kgh-goods-page .kgh-goods-module-tabs a.is-active,
.kgh-goods-page .kgh-goods-module-tabs a.is-active:hover,
.kgh-goods-page .kgh-goods-module-tabs a.is-active:focus{border-color:#1c1e20!important;background:#1c1e20!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 2px 5px rgba(0,0,0,.12)!important}

.kgh-goods-page .kgh-goods-toolbar{margin:0 0 9px!important;padding:0!important}
.kgh-goods-page .kgh-goods-create-panel{margin:8px 0 10px!important}
.kgh-goods-page .kgh-goods-list,.kgh-goods-page .kgh-seized-list{margin-top:8px!important}

@media(max-width:700px){
  .kgh-goods-page .kgh-goods-shell{padding:11px!important}
  .kgh-goods-page .kgh-goods-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important;margin-bottom:8px!important}
  .kgh-goods-page .kgh-goods-head h1{font-size:19px!important}
  .kgh-goods-page .kgh-goods-head small{font-size:8.7px!important}
  .kgh-goods-page .kgh-goods-head-stats{margin:0!important;align-self:start!important}
  .kgh-goods-page .kgh-goods-head-stats strong{min-width:58px!important;padding:6px 7px!important;font-size:13px!important}
  .kgh-goods-page .kgh-goods-module-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;max-width:none!important;margin-bottom:8px!important}
  .kgh-goods-page .kgh-goods-module-tabs a{min-height:36px!important;padding:6px 7px!important;font-size:9px!important}
  .kgh-goods-page .kgh-goods-toolbar{margin-bottom:8px!important}
}

/* rc.78 — Google sign-in/sign-up legal notice */
.kgh-google-legal-note{margin:-4px 4px 10px;text-align:center;color:#777;font-size:8px;line-height:1.45}.kgh-google-legal-note a{color:#333;text-decoration:underline;font-weight:700}.kgh-google-legal-note a:hover{color:#d71920}


/* rc.79 — compact non-personalized Google buttons + auth polish */
.kgh-google-wrap{min-height:34px!important;width:100%;display:flex;align-items:center;justify-content:center;margin:1px 0 5px!important;overflow:hidden}
.kgh-google-wrap>div{max-width:100%!important}
.kgh-google-legal-note{margin:1px 10px 11px!important;color:#73777d!important;font-size:9px!important;line-height:1.5!important}
.kgh-google-legal-note a{color:#222!important;text-decoration:underline!important;font-weight:800!important}
.kgh-auth-pane>.kgh-or{margin:1px 0 4px!important}
@media (max-width:480px){.kgh-google-wrap{justify-content:stretch}.kgh-google-wrap>div{margin:0 auto!important}.kgh-google-legal-note{margin-left:4px!important;margin-right:4px!important}}


/* =========================================================
   rc.80 — AUTH VISUAL REFRESH
   Compact, calmer mobile layout. Keeps the existing auth logic.
   ========================================================= */
#kgh-auth-modal{padding:14px!important}
#kgh-auth-modal .kgh-modal-backdrop{background:rgba(3,4,6,.70)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important}
#kgh-auth-modal .kgh-auth-card{
  width:min(100%,404px)!important;max-height:calc(100dvh - 28px)!important;padding:24px 22px 21px!important;
  border:1px solid rgba(17,17,17,.10)!important;border-radius:24px!important;background:#fff!important;
  box-shadow:0 28px 80px rgba(0,0,0,.34)!important;overflow:auto!important;overscroll-behavior:contain
}
#kgh-auth-modal .kgh-auth-card:before{content:"";position:absolute;left:22px;top:0;width:74px;height:3px;border-radius:0 0 999px 999px;background:var(--kgh-red)}
#kgh-auth-modal .kgh-x{right:13px!important;top:13px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-color:#e0e2e5!important;background:#fff!important}
#kgh-auth-modal .kgh-x:hover{background:#f5f5f6!important}
#kgh-auth-modal .kgh-brand{margin:2px 48px 5px 0!important;font-size:9px!important;letter-spacing:.17em!important;line-height:1.2!important}
#kgh-auth-modal .kgh-auth-card h2{margin:0 46px 13px 0!important;font-size:27px!important;line-height:1.05!important;letter-spacing:-.025em!important}
#kgh-auth-modal .kgh-auth-tabs{padding:3px!important;margin:0 0 14px!important;border:1px solid #e0e2e5!important;border-radius:13px!important;background:#f3f4f5!important}
#kgh-auth-modal .kgh-auth-tabs button{height:39px!important;border-radius:10px!important;color:#70747a!important;font-size:13px!important;font-weight:800!important}
#kgh-auth-modal .kgh-auth-tabs button.is-active{color:#111!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.07)!important}
#kgh-auth-modal .kgh-auth-pane.is-active{gap:10px!important}
#kgh-auth-modal .kgh-google-wrap{min-height:40px!important;margin:0!important;overflow:visible!important}
#kgh-auth-modal .kgh-google-wrap>div{max-width:100%!important}
#kgh-auth-modal .kgh-google-wrap iframe{max-width:100%!important}
#kgh-auth-modal .kgh-google-legal-note{margin:0 6px 2px!important;color:#85898f!important;font-size:8.7px!important;line-height:1.42!important;text-align:center!important}
#kgh-auth-modal .kgh-google-legal-note a{color:#555!important;font-weight:750!important;text-decoration:underline!important;text-underline-offset:2px}
#kgh-auth-modal .kgh-or{gap:11px!important;margin:2px 0 1px!important;color:#a2a5aa!important;font-size:9px!important}
#kgh-auth-modal .kgh-or:before,#kgh-auth-modal .kgh-or:after{background:#e7e8ea!important}
#kgh-auth-modal .kgh-auth-pane label{gap:5px!important;font-size:11px!important;font-weight:820!important;line-height:1.25!important}
#kgh-auth-modal .kgh-auth-pane input{height:46px!important;padding:0 13px!important;border:1.3px solid #cfd3d7!important;border-radius:11px!important;background:#fafafa!important;font-size:14px!important;font-weight:600!important;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease!important}
#kgh-auth-modal .kgh-auth-pane input:hover{border-color:#aeb3b8!important}
#kgh-auth-modal .kgh-auth-pane input:focus{border-color:#111!important;background:#fff!important;box-shadow:0 0 0 3px rgba(217,31,38,.08)!important}
#kgh-auth-modal .kgh-password-field input{padding-right:47px!important}
#kgh-auth-modal .kgh-password-toggle{top:4px!important;right:4px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;color:#656a70!important}
#kgh-auth-modal .kgh-auth-pane small{margin-top:-1px!important;color:#85898f!important;font-size:9.5px!important;font-weight:650!important}
#kgh-auth-modal .kgh-login-help{margin-top:-2px!important}
#kgh-auth-modal .kgh-link-btn{font-size:10.5px!important;color:#333!important;text-underline-offset:2px!important}
#kgh-auth-modal .kgh-red-btn{min-height:46px!important;border-radius:11px!important;font-size:13.5px!important;font-weight:850!important;box-shadow:0 7px 18px rgba(217,31,38,.14)!important}
#kgh-auth-modal .kgh-red-btn:hover,#kgh-auth-modal .kgh-red-btn:focus-visible{transform:none!important;box-shadow:0 7px 20px rgba(217,31,38,.20)!important}
#kgh-auth-modal .kgh-auth-consent{gap:9px!important;padding:9px 10px!important;border-color:#e0e2e5!important;border-radius:11px!important;background:#fafafa!important;font-size:9.8px!important;line-height:1.42!important;font-weight:650!important}
#kgh-auth-modal .kgh-auth-consent input[type="checkbox"]{width:17px!important;height:17px!important;min-width:17px!important;margin-top:1px!important;background:#fff!important}
#kgh-auth-modal .kgh-auth-legal-note{margin:1px 5px 0!important;color:#8a8e94!important;font-size:8.6px!important;line-height:1.42!important}
#kgh-auth-modal .kgh-auth-legal-note a{color:#555!important;font-weight:750!important;text-underline-offset:2px}
#kgh-auth-modal .kgh-auth-msg{min-height:0!important;margin-top:8px!important;font-size:10.5px!important}

@media(max-width:480px){
  #kgh-auth-modal{padding:10px!important;align-items:center!important}
  #kgh-auth-modal .kgh-auth-card{width:100%!important;max-height:calc(100dvh - 20px)!important;padding:21px 16px 18px!important;border-radius:21px!important}
  #kgh-auth-modal .kgh-auth-card:before{left:16px;width:64px}
  #kgh-auth-modal .kgh-brand{margin-top:1px!important;font-size:8.6px!important}
  #kgh-auth-modal .kgh-auth-card h2{margin-bottom:11px!important;font-size:25px!important}
  #kgh-auth-modal .kgh-auth-tabs{margin-bottom:12px!important}
  #kgh-auth-modal .kgh-auth-tabs button{height:38px!important;font-size:12.5px!important}
  #kgh-auth-modal .kgh-auth-pane.is-active{gap:9px!important}
  #kgh-auth-modal .kgh-google-legal-note{margin-left:3px!important;margin-right:3px!important;font-size:8.3px!important}
  #kgh-auth-modal .kgh-auth-pane input{height:44px!important}
  #kgh-auth-modal .kgh-password-toggle{top:3px!important}
  #kgh-auth-modal .kgh-red-btn{min-height:44px!important}
  #kgh-auth-modal .kgh-auth-consent{font-size:9.4px!important}
}

@media(max-height:720px){
  #kgh-auth-modal{align-items:flex-start!important;padding-top:8px!important;padding-bottom:8px!important}
  #kgh-auth-modal .kgh-auth-card{max-height:calc(100dvh - 16px)!important}
}

/* =========================================================
   rc.82 — AUTH DIRECT ENTRY + GOOGLE BUTTON SAFE GUTTER
   ========================================================= */
#kgh-auth-modal .kgh-google-wrap{
  box-sizing:border-box!important;
  width:100%!important;
  padding:0 10px!important;
  overflow:visible!important;
  justify-content:center!important;
}
#kgh-auth-modal .kgh-google-wrap>div{
  box-sizing:border-box!important;
  width:auto!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
#kgh-auth-modal .kgh-google-wrap iframe{
  display:block!important;
  max-width:none!important;
  margin:0 auto!important;
}
@media(max-width:480px){
  #kgh-auth-modal .kgh-google-wrap{padding-left:8px!important;padding-right:8px!important}
}
/* rc.84 — compact compensation accordion */
.kgh-pay-collapse-toggle,.kgh-pay-collapse-toggle:hover,.kgh-pay-collapse-toggle:focus{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #d9dde0;border-radius:9px;background:#fff!important;color:#111!important;font-size:19px;font-weight:900;line-height:1;opacity:1!important;transition:transform .18s ease,border-color .18s ease}
.kgh-pay-collapse-toggle:hover,.kgh-pay-collapse-toggle:focus{border-color:#d71920!important;color:#d71920!important}.kgh-pay-collapse-toggle.is-open{transform:rotate(180deg)}.kgh-pay-collapsible[hidden]{display:none!important}.kgh-pay-collapsible{padding-top:12px}.kgh-finance-simple-period small{display:block;margin-top:4px;color:#777;font-size:10px}
@media(max-width:700px){.kgh-pay-head-right{display:grid;grid-template-columns:auto auto;align-items:center}.kgh-pay-head-right .kgh-month-nav{grid-column:1/-1}.kgh-pay-collapse-toggle{justify-self:end}}

/* rc.88 — explicit source report period vs payroll accrual date */
.kgh-finance-simple-explain{display:grid;gap:3px;padding:10px 12px;border:1px solid #dfe3e7;border-left:4px solid #d71920;border-radius:10px;background:#fafafa;color:#555;font-size:10px;line-height:1.45}.kgh-finance-simple-explain strong{color:#111;font-size:11px}.kgh-finance-period-editor{display:grid;grid-template-columns:1fr 1fr 1.25fr;align-items:end}.kgh-finance-period-editor label{display:grid;gap:5px;min-width:0;color:#666;font-size:9px;font-weight:850;text-transform:uppercase}.kgh-finance-period-editor input{width:100%;min-height:38px;padding:7px 9px;border:1px solid #d8dce0;border-radius:8px;background:#fff;color:#111;font-size:11px}.kgh-finance-period-editor .is-accrual{padding-left:10px;border-left:1px solid #e3e5e7}.kgh-finance-simple-saved{display:block;padding:0 2px;line-height:1.45}
@media(max-width:760px){.kgh-finance-period-editor{grid-template-columns:1fr 1fr}.kgh-finance-period-editor .is-accrual{grid-column:1/-1;padding-left:0;border-left:0}}
@media(max-width:480px){.kgh-finance-period-editor{grid-template-columns:1fr}.kgh-finance-period-editor .is-accrual{grid-column:auto}}
