@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --ks-ink: #17231b;
  --ks-muted: #6c776f;
  --ks-green: #123d2e;
  --ks-green-2: #1f5a43;
  --ks-lime: #d7ef78;
  --ks-canvas: #f4f5ef;
  --ks-line: #e3e6dc;
  --ks-white: #fff;
  --ks-danger: #be3e4b;
  --ks-radius: 20px;
  --ks-shadow: 0 10px 35px rgba(31, 50, 39, .06);
}

#wpcontent { padding-left: 0; }
#wpbody-content { padding-bottom: 0; }
.kiwi-sales-wrap, .kiwi-sales-wrap * { box-sizing: border-box; }
.kiwi-sales-wrap { min-height: calc(100vh - 32px); background: var(--ks-canvas); color: var(--ks-ink); display: flex; font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; margin: 0; }
.kiwi-sales-wrap button, .kiwi-sales-wrap input, .kiwi-sales-wrap textarea, .kiwi-sales-wrap select { font: inherit; }

.ks-sidebar { background: var(--ks-green); color: #fff; width: 232px; padding: 28px 18px 20px; flex: 0 0 232px; display: flex; flex-direction: column; min-height: calc(100vh - 32px); position: sticky; top: 32px; z-index: 30; }
.ks-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 27px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ks-brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px 13px 13px 4px; background: var(--ks-lime); color: var(--ks-green); font: 800 25px/1 Georgia, serif; }
.ks-brand div { display: flex; flex-direction: column; }
.ks-brand strong { color: #fff; font: 700 22px/1.1 Georgia, serif; letter-spacing: .4px; }
.ks-brand small { color: #b8cabe; margin-top: 4px; font-size: 11px; }
.ks-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 24px; }
.ks-nav button { appearance: none; border: 0; background: transparent; color: #c6d6cc; padding: 11px 13px; border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: right; transition: .18s ease; }
.ks-nav button span { width: 24px; text-align: center; font-size: 18px; color: #98b2a3; }
.ks-nav button:hover { color: #fff; background: rgba(255,255,255,.07); }
.ks-nav button.is-active { color: var(--ks-green); background: var(--ks-lime); font-weight: 700; box-shadow: 0 5px 20px rgba(0,0,0,.12); }
.ks-nav button.is-active span { color: var(--ks-green); }
.ks-store-link { margin-top: auto; text-decoration: none; color: #c1d0c7; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; text-align: center; }
.ks-store-link:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.ks-workspace { min-width: 0; flex: 1; }
.ks-topbar { height: 92px; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); display: flex; align-items: center; padding: 0 34px; border-bottom: 1px solid var(--ks-line); position: sticky; top: 32px; z-index: 20; }
.ks-topbar h1 { margin: 0; font-size: 25px; line-height: 1.3; color: var(--ks-ink); font-weight: 700; }
.ks-topbar p { margin: 3px 0 0; color: var(--ks-muted); font-size: 12px; }
.ks-user { margin-right: auto; display: flex; align-items: center; gap: 10px; color: var(--ks-muted); }
.ks-user b { width: 38px; height: 38px; display: grid; place-items: center; background: #e9ecdf; color: var(--ks-green); border-radius: 50%; }
.ks-menu-toggle { display: none; border: 0; background: none; color: var(--ks-green); font-size: 24px; margin-left: 12px; }
.ks-main { padding: 28px 34px 50px; max-width: 1600px; margin: 0 auto; }

.ks-notice { position: fixed; top: 58px; right: 50%; transform: translateX(50%); z-index: 99999; min-width: 280px; padding: 13px 19px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.16); text-align: center; font-weight: 600; }
.ks-notice.is-success { background: #173e2f; color: #fff; }
.ks-notice.is-error { background: #b23b47; color: #fff; }

.ks-loading { min-height: 430px; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ks-muted); }
.ks-loading i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #dce2d6; border-top-color: var(--ks-green); animation: ks-spin .7s linear infinite; }
@keyframes ks-spin { to { transform: rotate(360deg); } }

.ks-card { background: var(--ks-white); border: 1px solid var(--ks-line); border-radius: var(--ks-radius); box-shadow: var(--ks-shadow); overflow: hidden; }
.ks-card-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 16px; gap: 16px; }
.ks-card-head h2 { font-size: 17px; line-height: 1.3; color: var(--ks-ink); margin: 0; }
.ks-card-head p { font-size: 12px; color: var(--ks-muted); margin: 4px 0 0; }

.ks-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.ks-metric { background: #fff; border: 1px solid var(--ks-line); border-radius: 18px; padding: 20px; display: flex; gap: 15px; align-items: center; box-shadow: var(--ks-shadow); min-width: 0; }
.ks-metric-icon { width: 45px; height: 45px; flex: 0 0 45px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; font-weight: 700; }
.ks-metric div:last-child { min-width: 0; display: flex; flex-direction: column; }
.ks-metric span { color: var(--ks-muted); font-size: 12px; }
.ks-metric strong { color: var(--ks-ink); font-size: 22px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-metric small { color: #8a938d; font-size: 10px; }
.ks-metric.is-green .ks-metric-icon { background: #e6f4b3; color: #36550a; }
.ks-metric.is-blue .ks-metric-icon { background: #dcecf4; color: #236078; }
.ks-metric.is-orange .ks-metric-icon { background: #fff0d3; color: #a26519; }
.ks-metric.is-rose .ks-metric-icon { background: #f8e0e4; color: #a43745; }

.ks-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.ks-grid-dashboard { grid-template-columns: 1.45fr 1fr; }
.ks-welcome { background: var(--ks-green); color: #fff; padding: 26px 28px; display: flex; justify-content: space-between; min-height: 220px; }
.ks-welcome h2 { font-size: 27px; color: #fff; margin: 8px 0 8px; }
.ks-welcome p { color: #c5d5cb; max-width: 520px; margin: 0 0 20px; line-height: 1.8; }
.ks-eyebrow { color: var(--ks-lime); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.ks-welcome-art { min-width: 145px; display: flex; align-items: center; justify-content: center; position: relative; }
.ks-welcome-art b { width: 98px; height: 98px; border-radius: 36px 36px 36px 9px; display: grid; place-items: center; background: var(--ks-lime); color: var(--ks-green); font: 800 60px/1 Georgia, serif; transform: rotate(-6deg); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.ks-welcome-art i { position: absolute; border: 1px solid rgba(215,239,120,.3); border-radius: 50%; width: 140px; height: 140px; }
.ks-welcome-art i:last-child { width: 180px; height: 180px; opacity: .6; }

.ks-btn { border: 0; appearance: none; padding: 10px 17px; min-height: 40px; border-radius: 11px; cursor: pointer; font-weight: 700; transition: .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.ks-btn:disabled { opacity: .45; cursor: not-allowed; }
.ks-btn-primary { color: #fff; background: var(--ks-green); box-shadow: 0 6px 18px rgba(18,61,46,.18); }
.ks-btn-primary:hover { color: #fff; background: var(--ks-green-2); transform: translateY(-1px); }
.ks-btn-secondary { color: var(--ks-green); background: #edf1e5; border: 1px solid #dce3d4; }
.ks-btn-light { color: var(--ks-green); background: var(--ks-lime); }
.ks-link { border: 0; background: transparent; color: var(--ks-green-2); cursor: pointer; font-weight: 700; padding: 4px; }
.ks-icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--ks-muted); font-size: 20px; }
.ks-icon-btn.is-danger { color: var(--ks-danger); border-color: #f0d3d6; background: #fff8f8; }

.ks-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 5px 24px 24px; }
.ks-quick-actions button { border: 1px solid var(--ks-line); background: #fbfcf8; color: var(--ks-ink); border-radius: 14px; padding: 17px 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; text-align: right; }
.ks-quick-actions button:hover { border-color: #bbcba6; background: #f7faef; }
.ks-quick-actions span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #e9efdc; color: var(--ks-green); font-size: 18px; }
.ks-quick-actions b { font-size: 13px; }

.ks-card-table { margin-bottom: 20px; }
.ks-table-wrap { width: 100%; overflow-x: auto; }
.ks-table { width: 100%; border-collapse: collapse; min-width: 690px; }
.ks-table th { background: #f8f9f5; color: #7a847e; font-size: 11px; padding: 11px 18px; text-align: right; font-weight: 600; border-top: 1px solid var(--ks-line); border-bottom: 1px solid var(--ks-line); }
.ks-table td { color: #4e5a52; padding: 14px 18px; text-align: right; border-bottom: 1px solid #eef0e9; font-size: 12px; vertical-align: middle; }
.ks-table tbody tr:hover { background: #fafbf7; }
.ks-table tbody tr:last-child td { border-bottom: 0; }
.ks-table td b, .ks-table td strong { color: var(--ks-ink); }
.ks-table td small { display: block; color: #969e99; margin-top: 2px; }
.ks-status { display: inline-flex; padding: 4px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.ks-status.is-success { color: #246439; background: #e2f3e5; }
.ks-status.is-info { color: #27647b; background: #e0f0f6; }
.ks-status.is-warn { color: #9b621d; background: #fff0d3; }
.ks-status.is-danger { color: #a43b46; background: #f9e1e4; }
.ks-status.is-muted { color: #69736d; background: #ecefeb; }
.ks-product-cell { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.ks-product-cell img { width: 40px; height: 40px; object-fit: cover; border-radius: 9px; background: #f2f3ee; }

.ks-empty { min-height: 190px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 28px; color: var(--ks-muted); }
.ks-empty > span { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: #edf0e8; color: var(--ks-green); font-size: 22px; }
.ks-empty h3 { color: var(--ks-ink); margin: 12px 0 4px; font-size: 16px; }
.ks-empty p { margin: 0 0 15px; font-size: 12px; }

.ks-pos-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(370px, .85fr); gap: 20px; align-items: start; }
.ks-pos-catalog { min-height: calc(100vh - 154px); }
.ks-pos-search { margin: 18px; height: 50px; border: 1px solid var(--ks-line); border-radius: 14px; background: #f8f9f5; display: flex; align-items: center; gap: 10px; padding: 0 15px; }
.ks-pos-search > span { color: var(--ks-green); font-size: 23px; }
.ks-pos-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; outline: 0 !important; box-shadow: none !important; padding: 0 !important; }
.ks-pos-search small { color: var(--ks-muted); white-space: nowrap; }
.ks-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 18px 22px; max-height: calc(100vh - 245px); overflow: auto; align-content: start; }
.ks-product { border: 1px solid var(--ks-line); border-radius: 15px; background: #fff; padding: 0; overflow: hidden; text-align: right; cursor: pointer; min-width: 0; transition: .17s ease; }
.ks-product:hover { transform: translateY(-2px); border-color: #b7c99d; box-shadow: 0 9px 24px rgba(31,50,39,.09); }
.ks-product:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.ks-product > img { width: 100%; aspect-ratio: 1.35; object-fit: cover; display: block; background: #f3f4ef; }
.ks-product > div { padding: 11px 11px 6px; }
.ks-product strong { color: var(--ks-ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.ks-product small { color: #929b95; font-size: 9px; }
.ks-product footer { display: flex; justify-content: space-between; align-items: end; padding: 5px 11px 11px; gap: 5px; }
.ks-product footer b { color: var(--ks-green); font-size: 12px; }
.ks-product footer span { color: #718078; font-size: 9px; }
.ks-product footer span.is-low { color: #b36d16; }

.ks-cart { position: sticky; top: 144px; max-height: calc(100vh - 164px); overflow: auto; }
.ks-cart-items { padding: 0 20px; max-height: 290px; overflow: auto; }
.ks-cart-items .ks-empty { min-height: 170px; padding: 15px; }
.ks-cart-item { display: grid; grid-template-columns: 42px minmax(70px, 1fr) auto auto 24px; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf0e8; }
.ks-cart-item img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.ks-cart-name { min-width: 0; }
.ks-cart-name strong { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-cart-name small { font-size: 9px; color: var(--ks-muted); }
.ks-cart-item > b { font-size: 11px; white-space: nowrap; }
.ks-qty { display: flex; align-items: center; border: 1px solid var(--ks-line); border-radius: 8px; overflow: hidden; }
.ks-qty button { width: 24px; height: 25px; border: 0; background: #f4f6f0; cursor: pointer; padding: 0; }
.ks-qty input { width: 32px; height: 25px; border: 0 !important; box-shadow: none !important; text-align: center; padding: 0 !important; font-size: 10px; }
.ks-remove { border: 0; background: none; color: #b4b9b5; cursor: pointer; font-size: 17px; }
.ks-customer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px 20px 0; }
.ks-cart-adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 20px 0; }
.ks-cart-adjust label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; color: var(--ks-muted); font-size: 10px; }
.ks-cart input, .ks-cart select { width: 100%; border: 1px solid var(--ks-line) !important; box-shadow: none !important; border-radius: 9px !important; min-height: 35px; padding: 4px 9px !important; }
.ks-payment { padding: 14px 20px 0; }
.ks-payment > span { display: block; font-size: 10px; color: var(--ks-muted); margin-bottom: 7px; }
.ks-payment > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ks-payment label { cursor: pointer; }
.ks-payment input { display: none; }
.ks-payment b { display: block; padding: 8px 3px; border: 1px solid var(--ks-line); border-radius: 9px; text-align: center; font-size: 10px; }
.ks-payment input:checked + b { border-color: var(--ks-green); background: #e9f0e1; color: var(--ks-green); }
.ks-cart-totals { margin: 14px 20px 0; border-top: 1px dashed #d5d9d1; padding-top: 11px; }
.ks-cart-totals > div { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--ks-muted); font-size: 11px; }
.ks-cart-totals .is-total { color: var(--ks-ink); align-items: center; font-size: 14px; }
.ks-cart-totals .is-total strong { font-size: 21px; color: var(--ks-green); }
.ks-checkout { width: calc(100% - 40px); margin: 6px 20px 20px; min-height: 48px; }

.ks-two-columns { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(0, 1.5fr); gap: 20px; align-items: start; }
.ks-form-card { padding-bottom: 22px; }
.ks-form { padding: 0 24px; }
.ks-form > label, .ks-form-row label { display: block; color: #566159; font-size: 11px; font-weight: 600; margin: 13px 0 6px; }
.ks-form input, .ks-form textarea, .ks-form select, .ks-search input, .ks-report-filter input { width: 100%; border: 1px solid #dce1d8 !important; box-shadow: none !important; border-radius: 10px !important; background: #fbfcf9 !important; min-height: 40px; padding: 7px 11px !important; color: var(--ks-ink); }
.ks-form input:focus, .ks-form textarea:focus, .ks-form select:focus, .ks-search input:focus { border-color: #83a65a !important; box-shadow: 0 0 0 3px rgba(131,166,90,.12) !important; }
.ks-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ks-form > .ks-btn { margin-top: 18px; min-width: 140px; }
.ks-toolbar { padding-bottom: 20px; }
.ks-search { display: flex; align-items: center; background: #f9faf6; border: 1px solid var(--ks-line); border-radius: 11px; padding: 0 10px; min-width: 290px; }
.ks-search input { border: 0 !important; background: transparent !important; min-height: 38px; }

.ks-purchase-layout { display: grid; grid-template-columns: minmax(460px, 1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.ks-combobox { position: relative; }
.ks-combobox-results { position: absolute; top: 42px; right: 0; left: 0; max-height: 260px; overflow: auto; background: #fff; z-index: 10; border-radius: 11px; box-shadow: 0 12px 35px rgba(0,0,0,.14); }
.ks-combobox-results button { width: 100%; border: 0; border-bottom: 1px solid #edf0e8; background: #fff; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 9px; text-align: right; cursor: pointer; }
.ks-combobox-results button:hover { background: #f7faef; }
.ks-combobox-results img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.ks-combobox-results span { display: flex; flex-direction: column; }
.ks-combobox-results small { color: var(--ks-muted); }
.ks-purchase-lines { margin-top: 12px; }
.ks-purchase-lines > .ks-empty { min-height: 140px; border: 1px dashed var(--ks-line); border-radius: 12px; }
.ks-purchase-lines > div:not(.ks-empty) { display: grid; grid-template-columns: minmax(120px, 1fr) 105px 125px auto 26px; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid #edf0e8; }
.ks-purchase-lines label { margin: 0; font-size: 9px; color: var(--ks-muted); }
.ks-purchase-lines input { min-height: 34px; margin-top: 3px; }
.ks-purchase-lines button { border: 0; background: none; color: var(--ks-danger); cursor: pointer; font-size: 18px; padding-bottom: 7px; }
.ks-purchase-total { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; }
.ks-purchase-total strong { color: var(--ks-green); font-size: 22px; }

.ks-report-filter { display: flex; align-items: end; justify-content: space-between; padding: 16px 20px; margin-bottom: 20px; }
.ks-report-filter > div { display: flex; align-items: end; gap: 10px; }
.ks-report-filter label { color: var(--ks-muted); font-size: 10px; }
.ks-report-filter input { display: block; margin-top: 4px; min-width: 145px; }
.ks-report-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; margin-bottom: 20px; }
.ks-bars { height: 260px; display: flex; align-items: end; gap: 8px; padding: 20px 25px 15px; border-top: 1px solid #edf0e8; overflow-x: auto; }
.ks-bars > div { min-width: 24px; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; flex: 1; }
.ks-bars span { width: min(30px, 80%); min-height: 5px; background: linear-gradient(180deg, var(--ks-lime), #79a744); border-radius: 7px 7px 2px 2px; }
.ks-bars small { font-size: 8px; color: var(--ks-muted); writing-mode: vertical-rl; max-height: 34px; }
.ks-payment-list { padding: 6px 24px 24px; }
.ks-payment-list > div { padding: 12px 0; position: relative; border-bottom: 1px solid #edf0e8; display: flex; justify-content: space-between; }
.ks-payment-list span, .ks-payment-list b { position: relative; z-index: 1; font-size: 11px; }
.ks-payment-list i { position: absolute; right: 0; bottom: 4px; height: 4px; border-radius: 3px; background: var(--ks-lime); }
.ks-settings-card { max-width: 720px; }
.ks-settings-card .ks-form { padding-bottom: 24px; }
.ks-form-hint { display: block; color: var(--ks-muted); font-size: 10px; margin-top: 6px; }

/* Standalone employee portal */
.kiwi-sales-portal-page { margin: 0 !important; overflow: hidden; }
.kiwi-sales-portal-page > header,
.kiwi-sales-portal-page > footer,
.kiwi-sales-portal-page .site-header,
.kiwi-sales-portal-page .site-footer,
.kiwi-sales-portal-page .entry-header { display: none !important; }
.kiwi-sales-portal-page .site,
.kiwi-sales-portal-page .site-main,
.kiwi-sales-portal-page .content-area,
.kiwi-sales-portal-page .entry-content { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; }
.ks-portal-cover { position: fixed; inset: 0; z-index: 999999; overflow: auto; background: var(--ks-canvas); font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; color: var(--ks-ink); }
.kiwi-sales-public { position: fixed; inset: 0; z-index: 999999; min-height: 100vh; }
.kiwi-sales-public .ks-sidebar { top: 0; min-height: 100vh; }
.kiwi-sales-public .ks-topbar { top: 0; }
.kiwi-sales-public .ks-cart { top: 112px; max-height: calc(100vh - 132px); }
.ks-login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; }
.ks-login-brand { background: var(--ks-green); color: #fff; padding: clamp(45px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.ks-login-brand::before, .ks-login-brand::after { content: ""; position: absolute; border: 1px solid rgba(215,239,120,.18); border-radius: 50%; width: 460px; height: 460px; left: -180px; top: -180px; }
.ks-login-brand::after { width: 650px; height: 650px; left: -270px; top: -270px; }
.ks-login-logo { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px 20px 20px 5px; background: var(--ks-lime); color: var(--ks-green); font: 800 39px/1 Georgia, serif; box-shadow: 0 16px 40px rgba(0,0,0,.18); position: relative; z-index: 1; }
.ks-login-brand > span { color: var(--ks-lime); font: 700 17px/1 Georgia, serif; margin-top: 18px; position: relative; z-index: 1; }
.ks-login-brand h1 { color: #fff; font-size: clamp(38px, 5vw, 72px); line-height: 1.18; margin: 50px 0 20px; letter-spacing: -.03em; position: relative; z-index: 1; }
.ks-login-brand > p { color: #c1d3c8; font-size: 16px; line-height: 1.9; max-width: 550px; position: relative; z-index: 1; }
.ks-login-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 42px; position: relative; z-index: 1; }
.ks-login-points > div { display: flex; align-items: center; gap: 8px; color: #dce7e0; font-size: 12px; }
.ks-login-points b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--ks-green); background: var(--ks-lime); }
.ks-login-panel { display: grid; place-items: center; padding: 40px; background: #f8f8f3; }
.ks-login-panel > div { width: min(420px, 100%); background: #fff; border: 1px solid var(--ks-line); border-radius: 28px; padding: 42px; box-shadow: 0 25px 70px rgba(31,50,39,.09); }
.ks-login-eyebrow { display: inline-flex; color: #56751f; background: #eef6d1; padding: 6px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.ks-login-panel h2 { color: var(--ks-ink); font-size: 30px; margin: 16px 0 5px; }
.ks-login-panel > div > p { color: var(--ks-muted); margin: 0 0 28px; }
.ks-login-panel form p { margin: 0 0 16px; }
.ks-login-panel form label { display: block; color: #566159; font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.ks-login-panel form input[type="text"], .ks-login-panel form input[type="password"] { width: 100%; min-height: 48px; border: 1px solid #dce1d8; background: #fbfcf9; border-radius: 12px; padding: 9px 13px; box-shadow: none; }
.ks-login-panel form input:focus { outline: 0; border-color: #83a65a; box-shadow: 0 0 0 3px rgba(131,166,90,.12); }
.ks-login-panel .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.ks-login-panel .login-submit { margin: 22px 0 0; }
.ks-login-panel #wp-submit { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--ks-green); color: #fff; font-weight: 700; cursor: pointer; }
.ks-login-panel #wp-submit:hover { background: var(--ks-green-2); }
.ks-login-panel > div > small { display: block; color: #969e99; text-align: center; margin-top: 20px; font-size: 9px; }
.ks-denied { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; }
.ks-denied > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #f9e1e4; color: var(--ks-danger); font-size: 28px; }
.ks-denied h1 { margin: 18px 0 7px; color: var(--ks-ink); }
.ks-denied p { color: var(--ks-muted); }
.ks-denied a { display: inline-flex; margin-top: 18px; background: var(--ks-green); color: #fff; border-radius: 11px; padding: 11px 20px; text-decoration: none; }
.ks-portal-link { padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ks-portal-link > div { display: flex; flex-direction: column; min-width: 0; }
.ks-portal-link span { color: var(--ks-muted); font-size: 10px; }
.ks-portal-link strong { color: var(--ks-green); direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1250px) {
  .ks-metrics { grid-template-columns: repeat(2, 1fr); }
  .ks-product-grid { grid-template-columns: repeat(3, 1fr); }
  .ks-pos-layout { grid-template-columns: 1fr 360px; }
  .ks-purchase-layout { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .ks-sidebar { position: fixed; top: 32px; right: -250px; transition: .2s ease; box-shadow: -15px 0 40px rgba(0,0,0,.2); }
  .ks-sidebar.is-open { right: 0; }
  .ks-menu-toggle { display: block; }
  .ks-main { padding: 22px; }
  .ks-topbar { padding: 0 22px; }
  .ks-grid-dashboard, .ks-two-columns, .ks-report-grid, .ks-pos-layout { grid-template-columns: 1fr; }
  .ks-cart { position: static; max-height: none; }
  .ks-product-grid { max-height: none; }
  .ks-login-layout { grid-template-columns: 1fr; }
  .ks-login-brand { min-height: 42vh; padding: 45px; }
  .ks-login-brand h1 { margin-top: 30px; }
}

@media (max-width: 600px) {
  #wpcontent { margin-left: 0; }
  .kiwi-sales-wrap { min-height: 100vh; }
  .ks-sidebar { top: 46px; min-height: calc(100vh - 46px); }
  .ks-topbar { top: 0; height: 76px; padding: 0 14px; }
  .ks-topbar h1 { font-size: 20px; }
  .ks-user span { display: none; }
  .ks-main { padding: 14px; }
  .ks-metrics { grid-template-columns: 1fr; }
  .ks-grid-dashboard { grid-template-columns: 1fr; }
  .ks-welcome-art { display: none; }
  .ks-welcome h2 { font-size: 22px; }
  .ks-product-grid { grid-template-columns: repeat(2, 1fr); padding: 0 10px 16px; }
  .ks-pos-search { margin: 10px; }
  .ks-form-row, .ks-customer-fields { grid-template-columns: 1fr; }
  .ks-card-head { padding: 18px 16px 13px; }
  .ks-form { padding: 0 16px; }
  .ks-toolbar { align-items: stretch; flex-direction: column; }
  .ks-search { min-width: 0; width: 100%; }
  .ks-report-filter, .ks-report-filter > div { align-items: stretch; flex-direction: column; }
  .ks-report-metrics { grid-template-columns: 1fr 1fr; }
  .ks-purchase-lines > div:not(.ks-empty) { grid-template-columns: 1fr 1fr; }
  .ks-purchase-lines > div > span { grid-column: 1 / -1; }
  .ks-login-brand { display: none; }
  .ks-login-layout { display: block; background: var(--ks-green); padding: 22px; }
  .ks-login-panel { min-height: calc(100vh - 44px); padding: 15px; border-radius: 24px; }
  .ks-login-panel > div { padding: 28px 22px; border-radius: 20px; }
  .kiwi-sales-public .ks-sidebar { top: 0; min-height: 100vh; }
  .ks-portal-link { align-items: stretch; flex-direction: column; }
}

@media print {
  #adminmenumain, #wpadminbar, .ks-sidebar, .ks-topbar, .ks-report-filter, .ks-notice { display: none !important; }
  #wpcontent, #wpbody, #wpbody-content { margin: 0 !important; padding: 0 !important; }
  .kiwi-sales-wrap { display: block; background: #fff; }
  .ks-main { padding: 0; }
  .ks-card, .ks-metric { box-shadow: none; break-inside: avoid; }
}
