:root {
  --ink: #08172b;
  --muted: #607086;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --line: #dbe4ef;
  --green: #1d9bf0;
  --green-dark: #052e57;
  --coral: #ff8a25;
  --blue: #087bea;
  --shadow: 0 18px 50px rgba(8, 23, 43, 0.12);
  --radius: 22px;
  color-scheme: light;
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); }
body { min-height: 100vh; overflow-x: hidden; color: var(--ink); font-weight: 550; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; font-weight: 650; }
input, textarea, select { color: var(--ink); -webkit-text-fill-color: currentColor; }
h1, h2, h3, strong, b { font-weight: 850; }
small { font-weight: 680; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(49, 86, 232, 0.25); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.is-hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.eyebrow { display: block; color: #718078; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.15em; }
.button { border: 0; border-radius: 13px; cursor: pointer; font-weight: 750; min-height: 46px; padding: 0 18px; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { background: var(--ink); color: white; box-shadow: 0 8px 18px rgba(20, 35, 29, 0.18); }
.button--primary:hover { background: #112d4d; }
.button--secondary { background: #eef1ed; border: 1px solid var(--line); color: var(--ink); }
.button--danger { background: #bb4438; color: white; box-shadow: 0 8px 18px rgba(156, 48, 38, 0.2); }
.button--danger:hover { background: #9f352c; }
.button:disabled { cursor: not-allowed; opacity: 0.52; }
.button--wide { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; min-height: 54px; }
.button--small { min-height: 36px; padding: 0 12px; font-size: 0.67rem; }
.text-button { background: none; border: 0; color: var(--blue); cursor: pointer; font-size: 0.83rem; font-weight: 750; padding: 5px; }
.text-button.danger { color: #c75743; }
.forgot-password-button { display: block; margin: 13px auto 0; padding: 6px 12px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 0.76rem; font-weight: 800; }

/* Login */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(430px, 0.95fr); background: var(--surface); }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 52px 58px; overflow: hidden; color: white; background: var(--ink); }
.login-visual::before { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -130px; border: 90px solid rgba(29, 155, 240, 0.14); border-radius: 50%; }
.login-visual::after { content: ""; position: absolute; width: 310px; height: 310px; left: -100px; bottom: -130px; border-radius: 50%; background: rgba(8, 123, 234, 0.17); filter: blur(2px); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; overflow: hidden; color: white; background: var(--ink); font-weight: 950; font-size: 1.05rem; box-shadow: 0 8px 22px rgba(4, 19, 39, 0.28); }
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; transform: scale(1.13); }
.brand-mark--large { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 17px; font-size: 1.3rem; }
.login-copy { position: relative; z-index: 1; max-width: 680px; margin: auto 0 11vh; }
.login-copy .eyebrow { color: #38a9ff; }
.login-copy h1 { margin: 22px 0 20px; font-size: clamp(3rem, 5.2vw, 5.4rem); line-height: 0.94; letter-spacing: -0.065em; }
.login-copy p { max-width: 540px; margin: 0; color: #b7c5bd; font-size: 1.12rem; line-height: 1.65; }
.floating-receipt { position: absolute; right: 7%; bottom: 10%; z-index: 2; width: 230px; padding: 22px; border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; background: rgba(255,255,255,0.09); backdrop-filter: blur(12px); transform: rotate(-3deg); box-shadow: 0 22px 70px rgba(0,0,0,0.25); }
.floating-receipt > span { color: #9fb1a7; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em; }
.floating-receipt > strong { display: block; margin: 8px 0 20px; font-size: 1.85rem; letter-spacing: -0.04em; }
.receipt-line { display: flex; align-items: center; gap: 9px; color: #cbd6d0; font-size: 0.78rem; }
.receipt-line i { width: 9px; height: 9px; background: var(--green); border-radius: 50%; }
.login-panel { display: grid; place-items: center; padding: 50px clamp(35px, 7vw, 115px); }
.login-card { width: 100%; max-width: 430px; }
.login-card h2 { margin: 10px 0 8px; font-size: 2.5rem; letter-spacing: -0.045em; }
.login-card > p:not(.form-error) { margin: 0 0 34px; color: var(--muted); }
.login-card label, .settings-card label, .product-form label { display: grid; gap: 8px; margin: 0 0 18px; color: #526159; font-size: 0.78rem; font-weight: 750; }
.login-card input, .settings-card input, .settings-card select, .settings-card textarea, .product-form input, .product-form select, .product-form textarea, .customer-list + input, .new-customer-details input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; color: var(--ink); padding: 0 14px; font-size: 0.96rem; }
.settings-card textarea { padding: 13px 14px; resize: vertical; }
.product-form textarea { padding: 13px 14px; resize: vertical; }
.password-field { position: relative; }
.password-field .text-button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.password-field input { padding-right: 70px; }
.remember-option { display: flex !important; align-items: flex-start; gap: 11px !important; margin: -2px 0 17px !important; color: var(--ink) !important; cursor: pointer; }
.remember-option input { flex: 0 0 20px; width: 20px !important; min-height: 20px !important; margin: 1px 0 0; padding: 0 !important; accent-color: var(--ink); }
.remember-option > span { display: grid; gap: 3px; }
.remember-option strong { font-size: 0.8rem; }
.remember-option small { color: var(--muted); font-size: 0.67rem; line-height: 1.4; }
.form-error { min-height: 20px; color: #c14536; font-size: 0.82rem; margin: -5px 0 12px; }
.login-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.74rem; line-height: 1.45; margin-top: 22px; }
.login-note i { flex: 0 0 19px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #e9eeea; font-style: normal; font-weight: 800; }
.mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 50px; }

/* App shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 238px; display: flex; flex-direction: column; background: var(--ink); color: white; padding: 26px 17px 17px; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand > div:last-child { min-width: 0; }
.sidebar-brand strong, .sidebar-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-brand strong { font-size: 0.98rem; }
.sidebar-brand small { margin-top: 2px; color: #8296ae; font-size: 0.68rem; }
.sidebar-nav { display: grid; gap: 5px; margin-top: 24px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 47px; padding: 0 13px; border: 0; border-radius: 13px; background: transparent; color: #91a4ba; cursor: pointer; text-align: left; font-size: 0.85rem; font-weight: 700; transition: 0.18s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item.is-active { color: var(--ink); background: var(--green); }
.nav-icon { display: grid; place-items: center; width: 24px; font-size: 1.2rem; font-weight: 500; }
.sidebar-footer { margin-top: auto; }
.sync-state { display: flex; align-items: center; gap: 7px; width: calc(100% - 16px); margin: 0 8px 14px; padding: 6px 0; border: 0; background: transparent; color: #7f94ab; cursor: pointer; text-align: left; font-size: 0.66rem; }
.sync-state span { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: #173b5f; color: #48b6ff; font-size: 0.65rem; }
.sync-state b { overflow: hidden; text-overflow: ellipsis; font-weight: 750; }
.sync-state.is-pending { color: #ffd991; }
.sync-state.is-pending span { background: #61491f; color: #ffd991; }
.sync-state.is-offline span { background: #563d25; color: #ffb45c; }
.user-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 10px; border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; background: rgba(255,255,255,0.04); color: white; text-align: left; }
.user-card > span:nth-child(2) { min-width: 0; flex: 1; }
.user-card strong, .user-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card strong { font-size: 0.75rem; }
.user-card small { color: #8195ad; margin-top: 2px; font-size: 0.64rem; }
.user-card b { color: #8195ad; }
.avatar { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--green-dark); background: #d8efff; font-size: 0.7rem; font-weight: 900; }
.avatar.has-image { overflow: hidden; background: #e8eeea; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.logout-button { display: none; width: 100%; margin-top: 7px; min-height: 38px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; background: transparent; color: #bdcac4; cursor: pointer; font-size: 0.72rem; }
.logout-button.is-visible { display: block; }
.mobile-logout-button { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid #e7c1bb; border-radius: 12px; background: #fff3f0; color: #a33c32; cursor: pointer; font-size: 0.72rem; font-weight: 850; }
.main-content { grid-column: 2; min-width: 0; padding-bottom: 30px; }
.offline-sync-banner { position: sticky; z-index: 18; top: 0; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; width: 100%; min-height: 54px; padding: 8px 30px; border: 0; border-bottom: 1px solid #e7b95e; background: #fff6dc; color: #67430c; cursor: pointer; text-align: left; box-shadow: 0 8px 18px rgba(91,60,12,0.08); }
.offline-sync-banner > span { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f6c65d; color: #543300; font-size: 0.82rem; }
.offline-sync-banner strong { font-size: 0.75rem; }
.offline-sync-banner small { color: #8b682d; font-size: 0.64rem; }
.offline-sync-banner.is-error { border-bottom-color: #de887a; background: #fff0ed; color: #8f2d24; }
.offline-sync-banner.is-syncing > span { animation: offline-spin 1s linear infinite; }
@keyframes offline-spin { to { transform: rotate(360deg); } }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(243,246,251,0.94); backdrop-filter: blur(10px); }
.topbar h1 { margin: 1px 0 0; font-size: 1.55rem; letter-spacing: -0.035em; }
.today-label { margin: 0; color: #7d8982; font-size: 0.69rem; font-weight: 750; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; font-size: 1.15rem; }
.status-pill { min-height: 39px; padding: 0 14px; border: 1px solid #cfe5d8; border-radius: 12px; background: #edf9f2; color: #236341; font-size: 0.73rem; font-weight: 800; }
.status-pill span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2eb76c; }
.account-session-card { border-color: #e6cdc8; background: linear-gradient(145deg, #fff, #fff8f6); }
.session-help { margin: 0 0 16px; color: #4d5d54; font-size: 0.74rem; font-weight: 680; line-height: 1.55; }
.settings-logout-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dfb5ae; background: #fff0ed; color: #a4372e; font-weight: 850; }
.settings-logout-button:hover { background: #ffe5e0; }
.view { display: none; }
.view.is-active { display: block; }

/* İşFlow dashboard */
.dashboard-view { padding: 28px 30px 42px; }
.dashboard-shell { width: min(1120px, 100%); margin: 0 auto; }
.dashboard-identity { position: relative; display: flex; align-items: center; gap: 20px; min-height: 154px; padding: 26px 34px; border: 1px solid #17375d; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 82% 20%, rgba(22,147,255,0.24), transparent 28%), linear-gradient(135deg, #071425, #0b1d34 65%, #0d2a4c); color: white; box-shadow: 0 22px 55px rgba(8,23,43,0.18); }
.dashboard-identity::after { content: ""; position: absolute; width: 260px; height: 260px; right: -85px; bottom: -190px; border: 36px solid rgba(29,155,240,0.15); border-radius: 50%; }
.dashboard-identity img { position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 25px; object-fit: cover; transform: scale(1.08); box-shadow: 0 15px 34px rgba(0,0,0,0.3); }
.dashboard-identity > div { position: relative; z-index: 1; }
.dashboard-identity strong { display: block; font-size: 2.6rem; letter-spacing: -0.06em; }
.dashboard-identity span { display: block; margin-top: 5px; color: #c4d0df; font-size: 0.87rem; font-style: italic; letter-spacing: 0.04em; }
.dashboard-identity span b { color: #28a5ff; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 32px 2px 18px; }
.dashboard-heading h2 { margin: 7px 0 4px; font-size: 1.75rem; letter-spacing: -0.04em; }
.dashboard-heading h2 span { color: var(--blue); }
.dashboard-heading p { margin: 0; color: var(--muted); font-size: 0.76rem; }
.dashboard-heading-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.dashboard-live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.dashboard-live i { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 5px rgba(46,204,113,0.12); }
.dashboard-customize-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid #d8e3ef; border-radius: 11px; background: white; color: #27415f; cursor: pointer; font-size: 0.65rem; font-weight: 850; box-shadow: 0 6px 18px rgba(8,23,43,0.06); transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease; }
.dashboard-customize-button:hover { transform: translateY(-2px); border-color: #97bde3; box-shadow: 0 10px 23px rgba(8,78,145,0.12); }
.dashboard-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-actions button { position: relative; display: grid; justify-items: start; min-height: 142px; padding: 20px; overflow: hidden; border: 1px solid var(--card-border, var(--line)); border-radius: 21px; background: linear-gradient(145deg, #fff 46%, var(--card-tint, #f7faff)); cursor: pointer; text-align: left; box-shadow: 0 9px 28px rgba(8,23,43,0.06); transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease; }
.dashboard-actions button::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--card-color, var(--blue)); opacity: 0.94; }
.dashboard-actions button::after { content: "›"; position: absolute; top: 18px; right: 17px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card-tint, #edf5fd); color: var(--card-color, var(--blue)); font-size: 1.3rem; font-weight: 900; }
.dashboard-actions button:hover { transform: translateY(-4px); border-color: var(--card-color, #a9c9eb); box-shadow: 0 16px 36px rgba(8,78,145,0.13); }
.dashboard-actions button:focus-visible, .dashboard-customize-button:focus-visible { outline: 3px solid rgba(22,141,240,0.25); outline-offset: 3px; }
.dashboard-action-card.is-sale-card, .is-sale-card { --card-color: #20aa68; --card-tint: #eaf9f1; --card-border: #ccebdc; --card-mobile: #0d302b; }
.dashboard-action-card.is-stock-card, .is-stock-card { --card-color: #ed8b17; --card-tint: #fff4e4; --card-border: #f3dfbf; --card-mobile: #30271d; }
.dashboard-action-card.is-orders-card, .is-orders-card { --card-color: #e05a69; --card-tint: #fff0f2; --card-border: #f2d3d7; --card-mobile: #30212b; }
.dashboard-action-card.is-cash-card, .is-cash-card { --card-color: #7550d3; --card-tint: #f2efff; --card-border: #ded6f6; --card-mobile: #282440; }
.dashboard-action-card.is-current-card, .is-current-card { --card-color: #168df0; --card-tint: #eaf5ff; --card-border: #cde4f7; --card-mobile: #112d46; }
.dashboard-action-card.is-service-card, .is-service-card { --card-color: #0f9f8f; --card-tint: #e8faf7; --card-border: #c8ebe5; --card-mobile: #123632; }
.dashboard-action-card.is-staff-card, .is-staff-card { --card-color: #9a50bf; --card-tint: #f8edfc; --card-border: #ead4f2; --card-mobile: #2d2140; }
.dashboard-action-card.is-report-card, .is-report-card { --card-color: #16a4af; --card-tint: #e9f9fa; --card-border: #c9e8eb; --card-mobile: #0e3038; }
.dashboard-action-card.is-settings-card, .is-settings-card { --card-color: #5d7189; --card-tint: #eef3f7; --card-border: #d8e1e9; --card-mobile: #202b39; }
.dashboard-action-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: var(--card-color, var(--blue)); color: white; font-size: 1.35rem; font-weight: 900; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.13), 0 8px 18px color-mix(in srgb, var(--card-color, var(--blue)) 24%, transparent); }
.dashboard-action-card.is-dashboard-card-hidden { display: none; }
.dashboard-actions strong, .dashboard-actions small { display: block; }
.dashboard-actions strong { color: var(--ink); font-size: 0.92rem; letter-spacing: -0.015em; }
.dashboard-actions small { align-self: end; margin-top: 5px; color: var(--muted); font-size: 0.62rem; }
.dashboard-customize-modal { width: min(610px, calc(100vw - 28px)); }
.dashboard-customize-help { margin: -2px 0 18px; color: var(--muted); font-size: 0.72rem; line-height: 1.55; }
.dashboard-card-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-card-options label { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 11px; min-height: 72px; padding: 11px 13px; border: 1px solid #dde6ef; border-radius: 15px; background: linear-gradient(145deg, white, var(--card-tint, #f6f9fc)); cursor: pointer; transition: border-color 0.16s ease, transform 0.16s ease; }
.dashboard-card-options label:hover { transform: translateY(-2px); border-color: var(--card-color, #9bbfe1); }
.dashboard-card-options input { width: 17px; height: 17px; accent-color: var(--card-color, var(--blue)); }
.dashboard-card-options .option-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--card-color, var(--blue)); color: white; font-size: 1rem; font-weight: 900; }
.dashboard-card-options strong, .dashboard-card-options small { display: block; }
.dashboard-card-options strong { color: var(--ink); font-size: 0.78rem; }
.dashboard-card-options small { margin-top: 3px; color: var(--muted); font-size: 0.58rem; }
.dashboard-customize-actions { margin-top: 19px; }
.dashboard-summary { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: 0 8px 28px rgba(8,23,43,0.05); }
.dashboard-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dashboard-summary-head h3 { margin: 6px 0 0; font-size: 1.05rem; }
.dashboard-summary-head button { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 0.69rem; font-weight: 850; }
.dashboard-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.dashboard-summary-grid article { padding: 17px; border: 1px solid #e0e8f1; border-radius: 16px; background: #f7faff; }
.dashboard-summary-grid span, .dashboard-summary-grid strong, .dashboard-summary-grid small { display: block; }
.dashboard-summary-grid span { color: var(--muted); font-size: 0.64rem; }
.dashboard-summary-grid strong { margin-top: 10px; color: var(--ink); font-size: 1.28rem; letter-spacing: -0.04em; }
.dashboard-summary-grid small { margin-top: 5px; color: #239b62; font-size: 0.57rem; }
.dashboard-flow { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e5ebf2; color: var(--muted); font-size: 0.65rem; }
.dashboard-flow-row { display: grid; grid-template-columns: minmax(90px, 160px) minmax(90px, 1fr) auto; align-items: center; gap: 12px; }
.dashboard-flow-row > span { overflow: hidden; color: #35465b; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-flow-row i { height: 7px; overflow: hidden; border-radius: 8px; background: #e8eef6; }
.dashboard-flow-row i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087bea, #22b8ff); }
.dashboard-flow-row strong { color: #20334b; font-size: 0.62rem; }

/* Sales */
.sale-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; min-height: calc(100vh - 94px); }
.catalog-panel { min-width: 0; padding: 25px 27px; }
.search-row { display: grid; grid-template-columns: 1fr 48px; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: #7e8a83; }
.search-box:focus-within { border-color: #9caee9; box-shadow: 0 0 0 3px rgba(49,86,232,0.08); }
.search-box span { color: #728078; font-size: 1.25rem; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 0.87rem; }
.scan-button { border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; font-size: 1.25rem; }
.category-tabs { display: flex; gap: 8px; margin: 17px 0 25px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #627068; cursor: pointer; font-size: 0.71rem; font-weight: 750; }
.category-tabs button.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.catalog-heading h2 { margin: 0; font-size: 1rem; }
.catalog-heading span { color: var(--muted); font-size: 0.68rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; }
.product-card { position: relative; display: grid; grid-template-rows: 88px 1fr auto auto; min-height: 190px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: white; cursor: pointer; text-align: left; overflow: hidden; transition: transform 0.15s ease, border 0.15s ease, box-shadow 0.15s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #bdc7c0; box-shadow: 0 12px 25px rgba(26,44,35,0.08); }
.product-card:active { transform: scale(0.98); }
.product-visual { position: relative; display: grid; place-items: center; width: 100%; height: 82px; border-radius: 12px; background: color-mix(in srgb, var(--product-color) 14%, white); overflow: hidden; }
.product-visual::before, .product-visual::after { content: ""; position: absolute; border-radius: 50%; background: var(--product-color); opacity: 0.14; }
.product-visual::before { width: 66px; height: 66px; right: -15px; top: -27px; }
.product-visual::after { width: 30px; height: 30px; left: -8px; bottom: -12px; }
.product-initials { position: relative; z-index: 1; color: var(--product-color); font-size: 0.95rem; font-weight: 950; letter-spacing: 0.06em; }
.product-photo { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; background: white; }
.product-card h3 { align-self: end; margin: 11px 0 3px; min-height: 32px; font-size: 0.78rem; line-height: 1.25; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 0.9rem; font-weight: 900; letter-spacing: -0.02em; }
.stock-chip { padding: 3px 6px; border-radius: 6px; background: #eef2ef; color: #718078; font-size: 0.56rem; font-weight: 800; }
.stock-chip.is-low { background: #fff0eb; color: #bd533f; }
.converted-price-badge { margin-top: 5px; color: #23744b; font-size: 0.52rem; font-weight: 850; }
.product-card.is-out { opacity: 0.54; cursor: not-allowed; }
.product-card.is-out::after { content: "TÜKENDİ"; position: absolute; top: 19px; right: 7px; padding: 4px 7px; border-radius: 6px; background: var(--ink); color: white; font-size: 0.53rem; font-weight: 900; transform: rotate(5deg); }
.product-card.is-stockless { border-color: #efc8a5; background: #fffdf9; }
.product-card.is-stockless::after { content: "STOKSUZ SATIŞ"; position: absolute; top: 18px; right: 6px; padding: 4px 6px; border-radius: 6px; background: #a35d22; color: white; font-size: 0.47rem; font-weight: 900; transform: rotate(4deg); }

/* Teknik servis */
.service-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(155px, 190px) auto auto auto; align-items: center; }
.service-filter { display: grid; gap: 5px; color: var(--muted); font-size: 0.61rem; font-weight: 850; }
.service-filter select { min-height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-weight: 750; }
.service-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 17px; }
.service-metric { position: relative; min-height: 104px; padding: 18px 19px; overflow: hidden; border: 1px solid #dce7e4; border-radius: 18px; background: linear-gradient(145deg, #fff, #f4fbf9); box-shadow: 0 7px 22px rgba(17,70,62,0.05); }
.service-metric::after { content: ""; position: absolute; width: 75px; height: 75px; right: -30px; top: -28px; border-radius: 50%; background: var(--metric-color, #0f9f8f); opacity: 0.11; }
.service-metric span, .service-metric strong, .service-metric small { display: block; }
.service-metric span { color: var(--muted); font-size: 0.63rem; font-weight: 780; }
.service-metric strong { margin-top: 8px; color: var(--metric-color, #0f9f8f); font-size: 1.45rem; letter-spacing: -0.04em; }
.service-metric small { margin-top: 3px; color: #74817b; font-size: 0.56rem; }
.service-ticket-list { display: grid; }
.service-ticket-row { display: grid; grid-template-columns: minmax(175px, 0.95fr) minmax(170px, 1.2fr) minmax(145px, 0.85fr) minmax(120px, 0.7fr) auto; align-items: center; gap: 16px; width: 100%; min-height: 92px; padding: 15px 20px; border: 0; border-bottom: 1px solid #edf2f0; background: white; color: var(--ink); cursor: pointer; text-align: left; transition: background 0.15s ease, transform 0.15s ease; }
.service-ticket-row:hover { position: relative; z-index: 1; background: #f3fbf9; }
.service-ticket-row:last-child { border-bottom: 0; }
.service-ticket-row strong, .service-ticket-row small { display: block; }
.service-ticket-number { color: #0a7469; font-size: 0.79rem; font-weight: 930; }
.service-ticket-date { margin-top: 5px; color: var(--muted); font-size: 0.56rem; }
.service-customer-name { overflow: hidden; font-size: 0.77rem; text-overflow: ellipsis; white-space: nowrap; }
.service-customer-contact { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.service-device-summary { overflow: hidden; color: #3f5048; font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.service-device-summary small { margin-top: 4px; color: var(--muted); }
.service-status-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--status-color) 30%, white); border-radius: 999px; background: color-mix(in srgb, var(--status-color) 11%, white); color: var(--status-color); font-size: 0.58rem; font-weight: 900; white-space: nowrap; }
.service-priority { display: inline-block; margin-top: 7px; color: #7a8580; font-size: 0.52rem; font-weight: 850; }
.service-priority.is-urgent, .service-priority.is-high { color: #c34e42; }
.service-row-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #eff5f3; color: #4d6961; font-size: 1.15rem; }
.service-board .empty-data { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 7px; }
.service-board .empty-data strong { color: var(--ink); font-size: 0.9rem; }
.service-board .empty-data span { max-width: 420px; line-height: 1.6; }

.modal--service-create { width: min(940px, calc(100vw - 28px)); max-height: min(920px, calc(100vh - 28px)); background: #f4f8f7; }
.service-ticket-form { display: grid; gap: 16px; margin-top: 22px; }
.service-form-card { padding: 19px; border: 1px solid #dce7e3; border-radius: 18px; background: white; box-shadow: 0 5px 18px rgba(13,67,58,0.04); }
.service-form-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.service-form-card-head strong, .service-form-card-head small { display: block; }
.service-form-card-head strong { font-size: 0.87rem; }
.service-form-card-head small { margin-top: 4px; color: var(--muted); font-size: 0.61rem; }
.service-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.service-form-grid .full { grid-column: 1 / -1; }
.service-form-grid label, .service-item-editor label, .service-status-editor label, .service-note-form, .service-attachment-form { display: grid; gap: 7px; color: #506159; font-size: 0.68rem; font-weight: 780; }
.service-form-grid input, .service-form-grid select, .service-form-grid textarea, .service-item-editor input, .service-item-editor select, .service-item-editor textarea, .service-status-editor select, .service-status-editor textarea, .service-note-form textarea, .service-note-form select, .service-attachment-form input, .service-attachment-form select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d9e3df; border-radius: 11px; outline: 0; background: #fbfdfc; color: var(--ink); font: inherit; }
.service-form-grid textarea, .service-item-editor textarea, .service-status-editor textarea, .service-note-form textarea { padding-top: 11px; resize: vertical; line-height: 1.45; }
.service-form-grid input:focus, .service-form-grid select:focus, .service-form-grid textarea:focus, .service-item-editor input:focus, .service-item-editor select:focus, .service-item-editor textarea:focus { border-color: #65b9ad; box-shadow: 0 0 0 3px rgba(15,159,143,0.1); }
.service-quick-customer-toggle, .service-visible-toggle { display: flex !important; align-items: center; gap: 9px !important; min-height: 34px; }
.service-quick-customer-toggle input, .service-visible-toggle input { width: 17px; min-height: 17px; accent-color: #0f9f8f; }
.service-quick-customer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; border: 1px dashed #b8dcd5; border-radius: 14px; background: #f2fbf8; }
.service-quick-customer:not(.is-hidden) { display: grid; }
.service-item-editor-list { display: grid; gap: 12px; }
.service-item-editor { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; padding: 17px; border: 1px solid #dfe8e4; border-radius: 15px; background: #fbfdfc; }
.service-item-editor .full { grid-column: 1 / -1; }
.service-item-editor-title { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.service-item-editor-title strong { color: #0a7469; font-size: 0.74rem; }
.service-remove-item { border: 0; background: transparent; color: #b94b41; cursor: pointer; font-size: 0.61rem; font-weight: 850; }

.modal--service-detail { width: min(1120px, calc(100vw - 24px)); max-height: min(930px, calc(100vh - 24px)); padding: 0 25px 28px; background: linear-gradient(180deg, #09253a 0, #0b3149 178px, #f4f8f7 178px); }
.modal--service-detail > .modal-close { z-index: 2; top: 17px; color: white; background: rgba(255,255,255,0.14); }
.service-detail-hero { min-height: 178px; margin: 0 -25px; padding: 29px 76px 27px 28px; color: white; }
.service-detail-hero .eyebrow { color: #74dfd0; }
.service-detail-hero h2 { margin: 7px 0 6px; font-size: 1.65rem; letter-spacing: -0.04em; }
.service-detail-hero p { margin: 0; color: #c7dbe6; font-size: 0.69rem; }
.service-detail-hero-grid { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 20px; }
.service-detail-hero-grid span, .service-detail-hero-grid strong { display: block; }
.service-detail-hero-grid span { color: #8fb1c3; font-size: 0.52rem; font-weight: 900; text-transform: uppercase; }
.service-detail-hero-grid strong { margin-top: 4px; color: white; font-size: 0.68rem; }
.service-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; min-height: 69px; padding: 15px 0; }
.service-detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(295px, 0.78fr); gap: 15px; }
.service-detail-main, .service-detail-side { display: grid; align-content: start; gap: 15px; }
.service-detail-section { padding: 18px; border: 1px solid #dce6e2; border-radius: 18px; background: white; box-shadow: 0 5px 18px rgba(13,67,58,0.04); }
.service-detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.service-detail-section-head span { color: #0f9f8f; font-size: 0.49rem; font-weight: 950; letter-spacing: 0.1em; }
.service-detail-section-head h3 { margin: 4px 0 0; font-size: 0.88rem; }
.service-detail-items, .service-note-list, .service-attachment-list { display: grid; gap: 9px; }
.service-detail-item { padding: 14px; border: 1px solid #e0e8e5; border-radius: 14px; background: #fbfdfc; }
.service-detail-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-detail-item strong { font-size: 0.73rem; }
.service-detail-item small { color: var(--muted); font-size: 0.56rem; }
.service-detail-item p { margin: 10px 0 0; color: #3e4d46; font-size: 0.66rem; line-height: 1.5; }
.service-detail-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.service-detail-item-meta span { padding: 4px 7px; border-radius: 7px; background: #edf4f2; color: #536860; font-size: 0.52rem; }
.service-timeline { display: grid; gap: 0; }
.service-timeline-row { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; min-height: 61px; padding-bottom: 13px; }
.service-timeline-row::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: -2px; width: 2px; background: #dceae6; }
.service-timeline-row:last-child::before { display: none; }
.service-timeline-dot { position: relative; z-index: 1; width: 16px; height: 16px; border: 4px solid #d8f4ee; border-radius: 50%; background: #0f9f8f; }
.service-timeline-row strong, .service-timeline-row small { display: block; }
.service-timeline-row strong { font-size: 0.67rem; }
.service-timeline-row p { margin: 5px 0 0; color: #58675f; font-size: 0.59rem; line-height: 1.5; }
.service-timeline-row small { color: var(--muted); font-size: 0.5rem; text-align: right; }
.service-status-editor form, .service-note-form, .service-attachment-form { display: grid; gap: 10px; }
.service-visible-toggle { margin: 2px 0 5px; }
.service-note-list, .service-attachment-list { margin-bottom: 12px; }
.service-note, .service-attachment { padding: 10px 11px; border: 1px solid #e1e9e6; border-radius: 11px; background: #fbfdfc; }
.service-note p { margin: 0; color: #3e4c46; font-size: 0.61rem; line-height: 1.5; }
.service-note small, .service-attachment small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.5rem; }
.service-attachment { display: flex; align-items: center; gap: 9px; color: #176f65; text-decoration: none; font-size: 0.61rem; font-weight: 800; }
.service-attachment span { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 9px; background: #e2f5f1; }
.service-attachment div { min-width: 0; }
.service-attachment strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-quote-list, .service-quote-editor { display: grid; gap: 9px; }
.service-quote-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border: 1px solid #e0e8e5; border-radius: 13px; background: #fbfdfc; }
.service-quote-row > div:last-child { text-align: right; }
.service-quote-row span, .service-quote-row strong, .service-quote-row small { display: block; }
.service-quote-row span { color: #0f9f8f; font-size: 0.49rem; font-weight: 950; letter-spacing: 0.07em; }
.service-quote-row strong { margin-top: 4px; font-size: 0.7rem; }
.service-quote-row small { margin-top: 4px; color: var(--muted); font-size: 0.52rem; }
.service-quote-row .button { margin-top: 8px; }
.service-quote-editor-row { display: grid; grid-template-columns: 120px minmax(180px, 1fr) 85px 110px 110px 75px auto; align-items: end; gap: 8px; padding: 12px; border: 1px solid #dfe8e4; border-radius: 13px; background: #fbfdfc; }
.service-quote-editor-row label { display: grid; gap: 6px; color: #526159; font-size: 0.61rem; font-weight: 800; }
.service-quote-editor-row input, .service-quote-editor-row select { width: 100%; min-height: 40px; padding: 0 9px; border: 1px solid #d9e3df; border-radius: 9px; background: white; }
.service-quote-editor-row > button { min-height: 40px; }
.service-quote-total { margin-top: 13px; padding: 13px; border-radius: 12px; background: #e9f7f3; color: #0b766a; font-size: 0.87rem; font-weight: 950; text-align: right; }
.service-part-list { display: grid; gap: 8px; margin-bottom: 11px; }
.service-part-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e0e8e5; border-radius: 11px; background: #fbfdfc; }
.service-part-row > span { display: grid; place-items: center; min-height: 31px; border-radius: 9px; background: #fff0ed; color: #b84c40; font-size: 0.59rem; font-weight: 900; }
.service-part-row strong, .service-part-row small { display: block; }
.service-part-row strong { font-size: 0.66rem; }
.service-part-row small { margin-top: 3px; color: var(--muted); font-size: 0.51rem; }
.service-part-row b { font-size: 0.65rem; }
.service-part-form { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) 75px auto; gap: 8px; }
.service-part-form select, .service-part-form input { min-width: 0; min-height: 41px; padding: 0 9px; border: 1px solid #d9e3df; border-radius: 10px; background: white; color: var(--ink); font-size: 0.61rem; }

@media (max-width: 920px) {
  .service-toolbar { grid-template-columns: 1fr 1fr; }
  .service-toolbar .search-box { grid-column: 1 / -1; }
  .service-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-ticket-row { grid-template-columns: 1fr 1fr auto; gap: 11px; }
  .service-ticket-row .service-device-summary { grid-column: 1 / 3; grid-row: 2; }
  .service-ticket-row .service-status-area { grid-column: 2; grid-row: 1; text-align: right; }
  .service-ticket-row .service-row-arrow { grid-column: 3; grid-row: 1 / 3; }
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-quote-editor-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-quote-description { grid-column: span 2; }
  .service-part-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .service-view { padding-left: 13px; padding-right: 13px; }
  .service-toolbar { grid-template-columns: 1fr; gap: 9px; }
  .service-toolbar .search-box, .service-toolbar .button { grid-column: auto; width: 100%; }
  .service-filter { grid-template-columns: 58px 1fr; align-items: center; }
  .service-metrics { gap: 8px; }
  .service-metric { min-height: 89px; padding: 14px; }
  .service-metric strong { font-size: 1.2rem; }
  .service-board { border-radius: 17px; }
  .service-ticket-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 112px; padding: 14px; }
  .service-ticket-row .service-customer { grid-column: 1; grid-row: 2; }
  .service-ticket-row .service-device-summary { grid-column: 1 / -1; grid-row: 3; }
  .service-ticket-row .service-status-area { grid-column: 2; grid-row: 1 / 3; align-self: start; }
  .service-ticket-row .service-row-arrow { display: none; }
  .service-status-chip { max-width: 122px; white-space: normal; text-align: center; }
  .modal--service-create { top: 0; left: 0; width: 100vw; max-height: 100dvh; min-height: 100dvh; padding: 22px 14px calc(26px + env(safe-area-inset-bottom)); border-radius: 0; transform: none; }
  .service-form-card { padding: 14px; }
  .service-form-card-head { align-items: flex-start; }
  .service-form-grid, .service-quick-customer, .service-item-editor { grid-template-columns: 1fr; }
  .service-form-grid .full, .service-item-editor .full, .service-item-editor-title { grid-column: auto; }
  .modal--service-detail { top: 0; left: 0; width: 100vw; max-height: 100dvh; min-height: 100dvh; padding: 0 12px calc(25px + env(safe-area-inset-bottom)); border-radius: 0; transform: none; }
  .service-detail-hero { margin: 0 -12px; padding: 25px 53px 23px 17px; }
  .service-detail-hero h2 { font-size: 1.25rem; }
  .service-detail-hero-grid { gap: 13px 20px; }
  .service-detail-actions .button { flex: 1 1 calc(50% - 8px); }
  .service-detail-section { padding: 14px; border-radius: 15px; }
  .service-timeline-row { grid-template-columns: 18px minmax(0, 1fr); }
  .service-timeline-row small { grid-column: 2; text-align: left; }
  .service-quote-editor-row { grid-template-columns: 1fr 1fr; }
  .service-quote-description { grid-column: 1 / -1; }
  .service-quote-row { align-items: flex-start; }
  .service-part-form { grid-template-columns: 1fr; }
}
.cart-panel { position: sticky; top: 0; height: calc(100vh - 94px); display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: white; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 22px 12px; }
.cart-header h2 { margin: 5px 0 0; font-size: 1.15rem; }
.cart-header h2 b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; border-radius: 8px; background: #edf1ee; font-size: 0.67rem; }
.cart-header-actions { display: flex; align-items: center; gap: 7px; }
.sale-currency-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 15px; }
.currency-switch { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #f4f7f5; }
.currency-switch button { min-width: 72px; min-height: 34px; border: 0; border-radius: 9px; background: transparent; color: #66736b; cursor: pointer; font-size: 0.7rem; font-weight: 900; }
.currency-switch button.is-active { background: var(--ink); color: white; box-shadow: 0 3px 9px rgba(16,35,27,0.16); }
.currency-switch button:disabled { opacity: 0.45; cursor: not-allowed; }
.sale-rate-status { color: #67746c; font-size: 0.65rem; font-weight: 750; text-align: right; }
.sale-rate-status.is-live { color: #147c4b; }
.sale-rate-status.is-error { color: #af4639; }
.cart-mobile-close { display: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #f3f5f2; cursor: pointer; font-size: 1.25rem; }
.customer-select { display: flex; align-items: center; gap: 10px; margin: 0 22px 12px; min-height: 48px; padding: 0 11px; border: 1px dashed #bfc9c2; border-radius: 13px; background: #fafbf9; cursor: pointer; text-align: left; }
.customer-select > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: #e9eeea; color: #5e6c64; }
.customer-select div { min-width: 0; flex: 1; }
.customer-select small, .customer-select strong { display: block; }
.customer-select small { color: #89958e; font-size: 0.53rem; font-weight: 900; letter-spacing: 0.08em; }
.customer-select strong { margin-top: 2px; font-size: 0.71rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-select > b { color: #89958e; font-size: 1.3rem; font-weight: 400; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 18px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 13px 4px; border-bottom: 1px solid #edf0ed; }
.cart-item h3 { margin: 0 0 3px; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item > div:first-child > span { color: var(--muted); font-size: 0.64rem; }
.cart-item-price { text-align: right; font-size: 0.77rem; font-weight: 850; }
.quantity-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.quantity-control button { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.quantity-control strong { min-width: 15px; text-align: center; font-size: 0.71rem; }
.remove-item { border: 0 !important; color: #c65a47; background: #fff3ef !important; margin-left: 4px; }
.cart-price-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; }
.cart-price-editor > span { width: 100%; color: var(--muted); font-size: 0.56rem; font-weight: 800; }
.cart-price-editor input { width: 92px; min-height: 31px; padding: 0 8px; border: 1px solid #cfd8d2; border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 0.67rem; font-weight: 800; }
.cart-price-editor button { min-height: 31px; padding: 0 8px; border: 1px solid #d9e0db; border-radius: 8px; background: #f5f7f5; color: #506158; cursor: pointer; font-size: 0.58rem; font-weight: 850; }
.cart-price-editor button:hover { border-color: #83c9a6; background: #eefaf3; }
.cart-price-changed { color: #b56a25 !important; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; color: #8b9790; text-align: center; }
.cart-empty div { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 13px; border: 1px dashed #bdc8c1; border-radius: 17px; color: #8d9a92; font-size: 1.35rem; }
.cart-empty strong { color: #65736b; font-size: 0.85rem; }
.cart-empty span { max-width: 210px; margin-top: 6px; font-size: 0.68rem; line-height: 1.5; }
.cart-summary { padding: 17px 22px 20px; border-top: 1px solid var(--line); background: #fbfcfa; }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 8px; color: #6d7a72; font-size: 0.7rem; }
.cart-summary > div strong { color: #4f5e55; }
.cart-summary .summary-total { align-items: baseline; margin: 14px 0 13px; padding-top: 13px; border-top: 1px dashed #cbd2cd; color: var(--ink); font-size: 0.86rem; font-weight: 800; }
.summary-total strong { color: var(--ink) !important; font-size: 1.42rem; letter-spacing: -0.04em; }
.checkout-button { width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; border-radius: 14px; background: var(--green); color: var(--ink); cursor: pointer; font-weight: 850; box-shadow: 0 10px 22px rgba(73,207,148,0.2); }
.checkout-button:hover:not(:disabled) { background: #73f2ba; }
.checkout-button strong { font-size: 0.93rem; }

/* Inner pages */
.page-view { padding: 27px 30px; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.transaction-toolbar { justify-content: flex-start; flex-wrap: wrap; }
.transaction-toolbar .search-box { flex: 1 1 260px; }
.transaction-type-filter { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--muted); font-size: 0.62rem; font-weight: 800; }
.transaction-type-filter select { min-height: 34px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.transaction-export-actions { margin-left: auto; }
.search-box--compact { width: min(380px, 100%); min-height: 45px; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mini-stat { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink); }
.mini-stat span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #edf9f2; color: #238052; font-weight: 900; }
.mini-stat strong, .mini-stat small { display: block; }
.mini-stat strong { font-size: 1rem; }
.mini-stat small { margin-top: 2px; color: var(--muted); font-size: 0.66rem; }
.data-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink); box-shadow: 0 5px 22px rgba(25,48,37,0.035); overflow: hidden; }
.data-card-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid #edf0ed; }
.data-card-header h2 { margin: 0 0 4px; font-size: 1rem; }
.data-card-header p { margin: 0; color: var(--muted); font-size: 0.68rem; }
.soft-badge { padding: 6px 9px; border-radius: 8px; background: #eef1ee; color: #647169; font-size: 0.62rem; font-weight: 850; }
.product-table { overflow-x: auto; }
.product-row { min-width: 690px; display: grid; grid-template-columns: minmax(220px, 2fr) 1fr 0.7fr 0.7fr 0.65fr auto; align-items: center; gap: 15px; min-height: 66px; padding: 10px 18px; border-bottom: 1px solid #edf0ed; font-size: 0.72rem; }
.product-row:last-child { border-bottom: 0; }
.product-row--head { min-height: 41px; background: #fafbf9; color: #849087; font-size: 0.59rem; font-weight: 850; letter-spacing: 0.07em; }
.table-product { display: flex; align-items: center; gap: 11px; min-width: 0; }
.table-product-color { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, var(--product-color) 18%, white); border: 1px solid color-mix(in srgb, var(--product-color) 24%, white); overflow: hidden; }
.table-product-color .product-initials { font-size: 0.55rem; }
.table-product strong, .table-product small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-product small { margin-top: 2px; color: #89958e; font-size: 0.61rem; }
.table-price { font-weight: 850; }
.table-price small { display: block; margin-top: 3px; color: #23744b; font-size: 0.54rem; }
.status-badge { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 8px; background: #eaf8f0; color: #247249; font-size: 0.59rem; font-weight: 850; }
.status-badge.is-passive { background: #eff1ef; color: #7a857e; }
.row-actions { display: flex; gap: 5px; }
.row-actions button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.row-actions [data-print-product-label] { color: var(--blue); }
.row-actions button:last-child { color: #c35745; }
.order-list { min-height: 200px; }
.order-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) 1fr 0.7fr 0.8fr 0.8fr auto; align-items: center; gap: 15px; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid #edf0ed; cursor: pointer; font-size: 0.71rem; }
.order-row:hover { background: #fafbf9; }
.order-row:last-child { border-bottom: 0; }
.order-number strong, .order-number small { display: block; }
.order-number strong { font-size: 0.74rem; }
.order-number small { margin-top: 3px; color: var(--muted); font-size: 0.59rem; }
.payment-method { display: inline-flex; align-items: center; gap: 5px; }
.payment-method i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.payment-method.cash i { background: #3ca66d; }
.order-total { font-size: 0.82rem; font-weight: 900; }
.order-row > b { color: #929e97; font-size: 1rem; }
.transaction-type-badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 8px; border-radius: 9px; background: #edf1ef; color: #526159; font-size: 0.59rem; font-weight: 850; }
.transaction-type-badge.is-sale, .transaction-type-badge.is-manual_sale, .transaction-type-badge.is-income, .transaction-type-badge.is-customer_payment { background: #e9f8f0; color: #247249; }
.transaction-type-badge.is-expense { background: #fff0ec; color: #b54d3c; }
.transaction-type-badge.is-customer_debit { background: #fff5df; color: #926522; }
.order-total.is-out { color: #be4f3e; }
.order-total.is-neutral { color: #926522; }
.empty-data { padding: 45px 20px; color: var(--muted); text-align: center; font-size: 0.77rem; }
.segmented { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #e9eeea; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: #66736b; cursor: pointer; font-size: 0.7rem; font-weight: 800; }
.segmented button.is-active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(20,35,29,0.08); }
.updated-at { color: var(--muted); font-size: 0.65rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 17px; }
.metric-card { position: relative; min-height: 142px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: white; color: var(--ink); overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -40px; bottom: -45px; border-radius: 50%; background: var(--metric-color, var(--green)); opacity: 0.15; }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.metric-card strong { margin-top: 20px; font-size: 1.75rem; letter-spacing: -0.05em; }
.metric-card small { margin-top: 6px; color: #77857c; font-size: 0.63rem; }
.metric-card.is-negative strong { color: #c74455; }
.report-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 17px; }
.top-products, .payment-breakdown { padding: 7px 22px 20px; }
.top-product-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; border-bottom: 1px solid #edf0ed; font-size: 0.7rem; }
.top-product-row:last-child { border-bottom: 0; }
.top-product-row > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #eef2ef; color: #68766d; font-weight: 900; }
.top-product-row strong, .top-product-row small { display: block; }
.top-product-row small { margin-top: 3px; color: var(--muted); font-size: 0.6rem; }
.top-product-row > b { font-size: 0.74rem; }
.payment-donut { width: 156px; height: 156px; margin: 24px auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) 0 var(--card-share), #55c48b var(--card-share) var(--cash-end), #e3a53d var(--cash-end) 100%); box-shadow: inset 0 0 0 1px rgba(39,67,51,0.05); }
.payment-donut.is-empty { background: #e8ede9; }
.payment-donut-center { display: grid; place-items: center; width: 102px; height: 102px; padding: 8px; border-radius: 50%; background: white; text-align: center; box-shadow: 0 3px 12px rgba(28,46,36,0.08); }
.payment-donut-center strong, .payment-donut-center small { display: block; }
.payment-donut-center strong { max-width: 90px; color: var(--ink); font-size: 0.77rem; line-height: 1.2; }
.payment-donut-center small { margin-top: 4px; color: var(--muted); font-size: 0.52rem; font-weight: 750; }
.legend-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.68rem; }
.legend-row > div { min-width: 0; }
.legend-row small { display: block; margin: 3px 0 0 15px; color: var(--muted); font-size: 0.54rem; }
.legend-row strong { white-space: nowrap; }
.legend-row span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 3px; background: var(--legend-color); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: start; }
.settings-card { padding-bottom: 22px; }
.settings-card > label, .settings-card > button, .settings-card > .provider-card, .settings-card > .security-note, .settings-card > .server-status, .settings-card > .settings-hint { margin-left: 22px; margin-right: 22px; }
.settings-card > label:first-of-type { margin-top: 20px; }
.settings-card > button { width: calc(100% - 44px); }
.currency-settings-group { display: grid; gap: 14px; margin: 4px 22px 20px; padding: 18px; border: 1px solid #dbe5de; border-radius: 16px; background: #f8fbf9; }
.currency-settings-group label { display: grid; gap: 7px; margin: 0; color: #526159; font-size: 0.75rem; font-weight: 800; }
.currency-settings-head strong, .currency-settings-head small { display: block; }
.currency-settings-head strong { color: var(--ink); font-size: 0.82rem; }
.currency-settings-head small { margin-top: 5px; color: var(--muted); font-size: 0.65rem; line-height: 1.45; }
.exchange-rate-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 13px; background: white; }
.exchange-rate-panel strong, .exchange-rate-panel small { display: block; }
.exchange-rate-panel strong { color: var(--ink); font-size: 0.78rem; }
.exchange-rate-panel small { margin-top: 4px; color: var(--muted); font-size: 0.61rem; }
.exchange-rate-source { color: #2456e6; font-size: 0.65rem; font-weight: 800; text-decoration: none; }
.payment-currency-note, .currency-conversion-note { margin: -8px 0 14px; color: var(--muted); font-size: 0.68rem; font-weight: 700; text-align: center; }
.currency-conversion-note { margin: -4px 0 4px; padding: 10px 12px; border-radius: 11px; background: #f1f5f2; text-align: left; }
.currency-conversion-note.is-error { background: #fff0ed; color: #a94336; }
.provider-card { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.provider-logo { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; background: var(--ink); color: var(--green); font-weight: 950; }
.provider-card strong, .provider-card span { display: block; }
.provider-card strong { font-size: 0.78rem; }
.success-text { margin-top: 3px; color: #28945c; font-size: 0.62rem; font-weight: 800; }
.security-note { margin-top: 14px; padding: 13px; border-radius: 13px; background: #f1f6f2; }
.security-note strong { font-size: 0.7rem; }
.security-note p { margin: 5px 0 0; color: #647168; font-size: 0.63rem; line-height: 1.5; }
.server-status { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf0ed; }
.server-status:first-of-type { margin-top: 8px; }
.server-status > span { width: 10px; height: 10px; border-radius: 50%; background: #36b66c; box-shadow: 0 0 0 5px #e7f7ee; }
.server-status strong, .server-status small { display: block; }
.server-status strong { font-size: 0.71rem; }
.server-status small { margin-top: 3px; color: var(--muted); font-size: 0.61rem; }
.settings-hint { margin-top: 18px; color: #718078; font-size: 0.64rem; line-height: 1.5; }
.settings-hint code { padding: 2px 5px; border-radius: 5px; background: #eef1ee; color: #48564e; }
.backup-controls { display: grid; gap: 13px; margin: 18px 22px 0; }
.backup-controls label { display: grid; gap: 8px; color: #526159; font-size: 0.68rem; font-weight: 750; }
.backup-controls select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; color: var(--ink); }
.backup-format-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.backup-controls > .button { width: 100%; }
.backup-controls .backup-restore-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 0; color: var(--ink); font-size: 0.7rem; cursor: pointer; }
.backup-warning { padding: 11px 12px; border-radius: 11px; background: #fff6e6; color: #8a6125; font-size: 0.61rem; line-height: 1.5; }
.audit-log-card { grid-column: 1 / -1; }
.audit-log-card:not([open]) { padding-bottom: 0; }
.audit-log-disclosure { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 86px; padding: 17px 22px; cursor: pointer; list-style: none; user-select: none; }
.audit-log-disclosure::-webkit-details-marker { display: none; }
.audit-log-disclosure:hover { background: #f8fbf9; }
.audit-log-disclosure:focus-visible { outline: 3px solid rgba(22,141,240,0.22); outline-offset: -3px; }
.audit-log-disclosure-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, #e2f5e9, #eef9f2); font-size: 1.12rem; box-shadow: inset 0 0 0 1px #d0e9d9; }
.audit-log-disclosure-copy { min-width: 0; }
.audit-log-disclosure-copy strong, .audit-log-disclosure-copy small { display: block; }
.audit-log-disclosure-copy strong { color: var(--ink); font-size: 0.92rem; }
.audit-log-disclosure-copy small { margin-top: 5px; color: var(--muted); font-size: 0.64rem; line-height: 1.45; }
.audit-log-disclosure-state { display: inline-flex; align-items: center; gap: 9px; min-width: 112px; justify-content: flex-end; color: #32704d; font-size: 0.62rem; font-weight: 850; }
.audit-log-disclosure-state b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; background: #e7f5ec; font-size: 1rem; transition: transform 0.18s ease; }
.audit-log-disclosure .when-open { display: none; }
.audit-log-card[open] .audit-log-disclosure { border-bottom: 1px solid #edf0ed; }
.audit-log-card[open] .audit-log-disclosure-state b { transform: rotate(180deg); }
.audit-log-card[open] .audit-log-disclosure .when-open { display: inline; }
.audit-log-card[open] .audit-log-disclosure .when-closed { display: none; }
.audit-log-disclosure-body { padding: 18px 0 0; }
.audit-log-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px 14px; }
.audit-log-toolbar strong, .audit-log-toolbar small { display: block; }
.audit-log-toolbar strong { color: var(--ink); font-size: 0.76rem; }
.audit-log-toolbar small { margin-top: 3px; color: var(--muted); font-size: 0.59rem; }
.audit-log-summary { display: flex; align-items: center; gap: 12px; margin: 4px 22px 16px; padding: 14px 16px; border: 1px solid #cfe2d6; border-radius: 14px; background: #f2faf5; }
.audit-log-summary > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #dff2e6; font-size: 1.05rem; }
.audit-log-summary strong, .audit-log-summary small { display: block; }
.audit-log-summary strong { color: #183b28; font-size: 0.76rem; }
.audit-log-summary small { margin-top: 3px; color: #5f7668; font-size: 0.62rem; line-height: 1.4; }
.audit-log-list { display: grid; gap: 8px; max-height: 580px; margin: 0 22px; overflow: auto; }
.audit-log-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid #e0e7e2; border-radius: 13px; background: #fff; }
.audit-log-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #eaf4ff; color: #087bea; font-size: 0.85rem; font-weight: 900; }
.audit-log-icon.is-delete, .audit-log-icon.is-deactivate { background: #fff0ed; color: #b34135; }
.audit-log-icon.is-update, .audit-log-icon.is-rename { background: #fff6e6; color: #9b681d; }
.audit-log-main { min-width: 0; }
.audit-log-main strong, .audit-log-main small, .audit-log-main em { display: block; }
.audit-log-main strong { color: var(--ink); font-size: 0.72rem; }
.audit-log-main small { margin-top: 3px; overflow: hidden; color: #53645a; font-size: 0.63rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.audit-log-main em { margin-top: 4px; color: #849087; font-size: 0.57rem; font-style: normal; }
.audit-log-retention { display: grid; justify-items: end; gap: 7px; min-width: 150px; }
.audit-log-retention > small { color: #6d7b72; font-size: 0.57rem; }
.audit-lock { padding: 5px 9px; border-radius: 999px; background: #eef2ef; color: #66736b; font-size: 0.56rem; font-weight: 850; }
.audit-log-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 22px 0; }
.audit-log-footer > small { color: #748078; font-size: 0.61rem; }

/* Finance, barcode and users */
.finance-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 17px; }
.finance-action { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink); cursor: pointer; text-align: left; transition: 0.16s ease; }
.finance-action:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(20,35,29,0.07); }
.finance-action > span { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; background: #ecf0ff; color: var(--blue); font-weight: 950; }
.finance-action--income > span, .finance-action--payment > span { background: #e8f8ef; color: #228452; }
.finance-action--expense > span { background: #fff0eb; color: #be503c; }
.finance-action--debit > span { background: #fff5df; color: #9a681e; }
.finance-action--sale > span { background: #e2faee; color: var(--green-dark); }
.finance-action strong, .finance-action small { display: block; }
.finance-action strong { font-size: 0.7rem; }
.finance-action small { margin-top: 3px; color: var(--muted); font-size: 0.57rem; }
.finance-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 17px; }
.finance-metric { min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); }
.finance-metric span, .finance-metric strong, .finance-metric small { display: block; }
.finance-metric span { color: var(--muted); font-size: 0.63rem; font-weight: 750; }
.finance-metric strong { margin-top: 16px; font-size: 1.22rem; letter-spacing: -0.04em; }
.finance-metric small { margin-top: 5px; color: #819087; font-size: 0.56rem; }
.finance-metric.is-negative strong { color: #c44f3b; }
.finance-chart-card { margin-bottom: 17px; }
.chart-legend { display: flex; gap: 13px; color: var(--muted); font-size: 0.59rem; font-weight: 750; }
.chart-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 3px; background: currentColor; }
.chart-legend .sales { color: #3156e8; }
.chart-legend .profit { color: #37ad70; }
.chart-legend .expense { color: #e0715b; }
.finance-chart { height: 250px; display: flex; align-items: stretch; gap: 5px; padding: 22px 20px 12px; overflow-x: auto; }
.chart-day { flex: 1 0 24px; min-width: 24px; display: grid; grid-template-rows: 1fr 21px; gap: 6px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-height: 190px; border-bottom: 1px solid #e7ebe8; }
.chart-bar { width: min(8px, 31%); min-height: 2px; border-radius: 5px 5px 2px 2px; transition: height 0.25s ease; }
.chart-bar.sales { background: #3156e8; opacity: 0.82; }
.chart-bar.profit { background: #37ad70; }
.chart-bar.expense { background: #e0715b; }
.chart-day > small { color: #89958e; font-size: 0.48rem; text-align: center; white-space: nowrap; }
.finance-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 17px; align-items: start; }
.finance-movement-list, .customer-balance-list { max-height: 520px; overflow-y: auto; }
.finance-movement { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; min-height: 63px; padding: 10px 18px; border-bottom: 1px solid #edf0ed; }
.finance-movement:last-child, .customer-balance-row:last-child { border-bottom: 0; }
.movement-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #eef2ef; color: #64736a; font-size: 0.78rem; font-weight: 900; }
.movement-icon.in { background: #e8f8ef; color: #218353; }
.movement-icon.out { background: #fff0eb; color: #bf513e; }
.movement-main strong, .movement-main small { display: block; }
.movement-main strong { font-size: 0.69rem; }
.movement-main small { margin-top: 3px; color: var(--muted); font-size: 0.56rem; }
.movement-main .movement-label { color: #718078; font-size: 0.58rem; font-weight: 800; }
.movement-main .movement-note { color: #58675f; line-height: 1.35; overflow-wrap: anywhere; }
.movement-main .movement-note b { color: #718078; font-size: 0.55rem; }
.movement-main .movement-meta { color: var(--muted); }
.movement-amount { font-size: 0.74rem; font-weight: 900; }
.movement-amount.out { color: #c1503e; }
.delete-movement { width: 29px; height: 29px; border: 0; border-radius: 8px; background: #fff1ed; color: #bd503d; cursor: pointer; }
.customer-balance-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 63px; padding: 10px 18px; border-bottom: 1px solid #edf0ed; cursor: pointer; }
.customer-balance-row.has-actions { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
.customer-balance-row:hover { background: #fafbf9; }
.customer-balance-row strong, .customer-balance-row small { display: block; }
.customer-balance-row > div:nth-child(2) strong { font-size: 0.7rem; }
.customer-balance-row small { margin-top: 3px; color: var(--muted); font-size: 0.57rem; }
.balance-value { text-align: right; }
.balance-value strong { color: #bd513e; font-size: 0.78rem; }
.balance-value.is-credit strong { color: #258456; }
.customer-balance-actions { display: flex; gap: 4px; }
.customer-balance-actions button { width: 29px; height: 29px; border: 0; border-radius: 8px; background: #edf2ee; color: #536159; cursor: pointer; font-size: 0.75rem; font-weight: 900; }
.customer-balance-actions button:hover { background: #e2ebe5; }
.customer-balance-actions button.is-danger { background: #fff0ed; color: #b54034; }
.current-account-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.current-account-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.current-account-list { min-height: 220px; }
.current-account-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 82px; padding: 13px 18px; border-bottom: 1px solid #edf0ed; }
.current-account-row.is-archived, .staff-row.is-archived { background: #f6f7f6; border-left: 3px solid #a6aea9; }
.current-account-row.is-archived > :not(.current-account-row-actions), .staff-row.is-archived > :not(.staff-actions) { opacity: 0.72; }
.archived-badge { display: inline-flex; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #e6e9e7; color: #536059; font-size: 0.55rem; font-weight: 850; vertical-align: middle; }
.current-account-row:last-child { border-bottom: 0; }
.current-account-row > .avatar { width: 40px; height: 40px; }
.current-account-main { min-width: 0; }
.current-account-main strong, .current-account-main small { display: block; }
.current-account-main strong { overflow: hidden; color: var(--ink); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.current-account-main small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.current-account-balance { min-width: 112px; text-align: right; }
.current-account-balance strong, .current-account-balance small { display: block; }
.current-account-balance strong { color: #b94f3f; font-size: 0.83rem; }
.current-account-balance small { margin-top: 3px; color: var(--muted); font-size: 0.54rem; }
.current-account-balance.is-credit strong { color: #258456; }
.current-account-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.current-account-row-actions button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9f7; color: #526159; cursor: pointer; font-size: 0.55rem; font-weight: 850; }
.current-account-row-actions button:hover { border-color: #9db3a7; background: #edf7f1; }
.current-account-row-actions .is-debit { color: #8c5e16; }
.current-account-row-actions .is-payment { color: #216e43; }
.current-account-row-actions .is-share { border-color: #c7d5fb; background: #f1f5ff; color: #3156b8; }
.current-account-row-actions .is-reminder { border-color: #f0d29a; background: #fff8e9; color: #8b611c; }
.current-account-row-actions .is-danger { border-color: #efc4bd; background: #fff2ef; color: #b34134; }
.current-account-row-actions .is-archive, .staff-actions .is-archive { border-color: #d9d2bd; background: #fffaf0; color: #776027; }
.current-account-row-actions .is-restore, .staff-actions .is-restore { border-color: #b8ddc6; background: #eefaf2; color: #236b3f; }
.record-name-button { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.record-name-button strong { text-decoration: underline; text-decoration-color: rgba(36,86,230,0.25); text-underline-offset: 3px; }
.record-name-button:hover strong { color: #2456e6; text-decoration-color: currentColor; }
.finance-installments-card { margin-top: 17px; }
.installment-list { max-height: 430px; overflow-y: auto; }
.installment-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 66px; padding: 10px 18px; border-bottom: 1px solid #edf0ed; cursor: pointer; }
.installment-row:last-child { border-bottom: 0; }
.installment-row:hover { background: #fafbf9; }
.installment-row.is-paid { cursor: default; opacity: 0.7; }
.installment-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #edf2ff; color: #3156e8; font-size: 0.67rem; font-weight: 900; }
.installment-row.is-overdue .installment-number { background: #fff0eb; color: #bf513e; }
.installment-row.is-paid .installment-number { background: #e8f8ef; color: #258554; }
.installment-row strong, .installment-row small { display: block; }
.installment-row > div:nth-child(2) strong { font-size: 0.71rem; }
.installment-row small { margin-top: 4px; color: var(--muted); font-size: 0.57rem; }
.installment-amount { text-align: right; }
.installment-amount strong { font-size: 0.76rem; }
.installment-row.is-overdue .installment-amount strong, .installment-row.is-overdue .installment-amount small { color: #bd513e; }
.month-filter { display: flex; align-items: center; gap: 9px; color: #64736a; font-size: 0.66rem; font-weight: 800; }
.month-filter input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.staff-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 17px; }
.staff-metric { min-height: 108px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); box-shadow: var(--shadow-soft); }
.staff-metric span, .staff-metric strong, .staff-metric small { display: block; }
.staff-metric span { color: #6e7c74; font-size: 0.61rem; font-weight: 750; }
.staff-metric strong { margin-top: 14px; font-size: 1.1rem; letter-spacing: -0.04em; }
.staff-metric small { margin-top: 4px; color: #8a958f; font-size: 0.54rem; }
.staff-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr); gap: 17px; align-items: start; }
.staff-side-stack { display: grid; gap: 17px; }
.staff-list, .attendance-list, .staff-payment-list { max-height: 620px; overflow-y: auto; }
.staff-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px 17px; border-bottom: 1px solid #edf0ed; }
.staff-row:last-child { border-bottom: 0; }
.staff-row.is-inactive { opacity: 0.57; }
.staff-row.is-inactive.is-archived { opacity: 1; }
.staff-main strong, .staff-main small, .staff-salary strong, .staff-salary small { display: block; }
.staff-main > strong { font-size: 0.72rem; }
.staff-main > small { margin-top: 3px; color: var(--muted); font-size: 0.57rem; }
.staff-stats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.staff-stats span { padding: 4px 7px; border-radius: 8px; background: #f0f3f0; color: #66736b; font-size: 0.52rem; font-weight: 750; }
.staff-salary { text-align: right; }
.staff-salary strong { font-size: 0.75rem; }
.staff-salary small { margin-top: 3px; color: var(--muted); font-size: 0.52rem; }
.staff-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.staff-actions button { min-height: 31px; padding: 0 9px; border: 1px solid #dce3de; border-radius: 9px; background: white; color: #526159; cursor: pointer; font-size: 0.55rem; font-weight: 800; }
.staff-actions button:hover { border-color: #9db3a7; background: #f2faf5; }
.archive-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #37443d; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.archive-filter-toggle input { width: 17px; height: 17px; accent-color: var(--primary); }
.attendance-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 58px; padding: 9px 15px; border-bottom: 1px solid #edf0ed; cursor: pointer; }
.attendance-row:last-child, .staff-payment-row:last-child { border-bottom: 0; }
.attendance-row > span { color: #758179; font-size: 0.56rem; }
.attendance-row strong, .attendance-row small { display: block; }
.attendance-row strong { font-size: 0.66rem; }
.attendance-row small { margin-top: 3px; color: var(--muted); font-size: 0.53rem; }
.attendance-row b { padding: 5px 7px; border-radius: 8px; background: #e8f8ef; color: #258554; font-size: 0.52rem; }
.attendance-row.is-absent b { background: #fff0eb; color: #bf513e; }
.attendance-row.is-leave b, .attendance-row.is-sick b, .attendance-row.is-off b { background: #fff5df; color: #9b7023; }
.staff-payment-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 58px; padding: 9px 15px; border-bottom: 1px solid #edf0ed; }
.staff-payment-row strong, .staff-payment-row small { display: block; }
.staff-payment-row strong { font-size: 0.66rem; }
.staff-payment-row small { margin-top: 3px; color: var(--muted); font-size: 0.53rem; }
.staff-payment-row > b { color: #bf513e; font-size: 0.7rem; }
.modal--record-detail { width: min(1040px, calc(100vw - 28px)); max-height: min(90vh, 880px); overflow-y: auto; padding: 0 26px 26px; border: 1px solid #dce5df; background: linear-gradient(180deg, #f7faf8 0, #fff 210px); box-shadow: 0 32px 100px rgba(8,25,43,0.3); }
.modal--record-detail .modal-close { z-index: 2; top: 18px; right: 19px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.13); color: white; backdrop-filter: blur(8px); }
.modal--record-detail .modal-close:hover { background: rgba(255,255,255,0.24); }
.record-detail-head { margin: 0 -26px; padding: 28px 74px 25px 28px; color: white; }
.record-detail-head--customer { background: radial-gradient(circle at 84% 10%, rgba(67,213,181,0.32), transparent 34%), linear-gradient(135deg, #063c55, #0a6980); }
.record-detail-head--staff { background: radial-gradient(circle at 84% 8%, rgba(172,116,236,0.3), transparent 34%), linear-gradient(135deg, #182f61, #594496); }
.record-detail-head .eyebrow { color: #aeeadd; }
.record-detail-head--staff .eyebrow { color: #d8c8fa; }
.record-detail-head h2 { margin: 8px 0 0; color: white; font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -0.045em; }
.record-detail-head p { margin: 7px 0 0; color: rgba(255,255,255,0.76); font-size: 0.64rem; line-height: 1.5; }
.record-detail-summary { display: grid; grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(140px, 0.75fr)); gap: 11px; margin-top: 18px; }
.record-summary-card { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 96px; padding: 15px; border: 1px solid #dfe8e2; border-radius: 17px; background: rgba(255,255,255,0.94); color: var(--ink); box-shadow: 0 7px 22px rgba(19,45,31,0.055); }
.record-summary-card > div { min-width: 0; }
.record-summary-card strong, .record-summary-card small { display: block; }
.record-summary-card strong { overflow-wrap: anywhere; font-size: 0.86rem; line-height: 1.25; }
.record-summary-card small { margin-top: 4px; color: var(--muted); font-size: 0.56rem; line-height: 1.45; }
.record-summary-card--identity { border-color: #bee0d4; background: linear-gradient(145deg, #effaf6, #fff); }
.record-summary-card--identity.record-summary-card--staff { border-color: #d5caed; background: linear-gradient(145deg, #f5f1fc, #fff); }
.record-summary-avatar, .record-summary-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #dff3eb; color: #087253; font-size: 0.78rem; font-weight: 950; }
.record-summary-card--staff .record-summary-avatar { background: #e9e0f8; color: #5b3d92; }
.record-summary-icon { width: 34px; height: 34px; border-radius: 11px; background: #edf3f0; color: #53645a; font-size: 0.72rem; }
.record-summary-card--balance .record-summary-icon { background: #fff0e8; color: #b24b32; }
.record-summary-card--salary .record-summary-icon, .record-summary-card--paid .record-summary-icon { background: #eee9fa; color: #61449b; }
.record-summary-kicker { margin: 0 0 5px !important; color: #718078 !important; font-size: 0.49rem !important; font-weight: 900; letter-spacing: 0.085em; }
.record-summary-secondary { margin-top: 3px; color: #52645b; font-size: 0.68rem !important; }
.record-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 18px; padding: 11px; border: 1px solid #e1e8e3; border-radius: 16px; background: rgba(255,255,255,0.84); }
.record-detail-actions .button { min-height: 38px; border-radius: 11px; box-shadow: none; font-size: 0.59rem; }
.record-detail-actions .button--primary { box-shadow: 0 7px 16px rgba(36,86,230,0.16); }
.button--reminder { border-color: #e9c779; background: #fff6dd; color: #805810; }
.button--whatsapp { border-color: #1fa75a; background: #25d366; color: #073b1e; }
.button--whatsapp:disabled { opacity: 0.45; cursor: not-allowed; }
.customer-reminder-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 14px 16px; border: 1px solid #eed49b; border-radius: 14px; background: #fff9eb; }
.customer-reminder-summary strong, .customer-reminder-summary span { display: block; }
.customer-reminder-summary strong { font-size: 0.78rem; }
.customer-reminder-summary span { color: #765c2b; font-size: 0.62rem; text-align: right; }
.customer-reminder-form { display: grid; gap: 12px; }
.customer-reminder-form label { display: grid; gap: 7px; color: #526159; font-size: 0.68rem; font-weight: 800; }
.customer-reminder-form textarea { width: 100%; resize: vertical; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; color: var(--ink); font: inherit; line-height: 1.55; }
.customer-reminder-form > small { color: var(--muted); font-size: 0.58rem; line-height: 1.45; }
.customer-reminder-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.record-detail-tabs { display: flex; gap: 7px; margin-bottom: 11px; padding: 5px; border: 1px solid #dfe7e2; border-radius: 14px; background: #edf3ef; }
.record-detail-tabs button { flex: 1; min-height: 41px; border: 0; border-radius: 10px; background: transparent; color: #65736b; cursor: pointer; font-size: 0.64rem; font-weight: 850; }
.record-detail-tabs button.is-active { background: white; color: #123f66; box-shadow: 0 4px 12px rgba(20,44,30,0.1); }
.record-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.record-detail-grid > div { min-width: 0; }
.record-detail-grid h3 { margin: 5px 2px 10px; color: var(--ink); font-size: 0.82rem; }
.record-history-list { max-height: 390px; overflow: auto; border: 1px solid #dde6e0; border-radius: 16px; background: white; box-shadow: 0 6px 20px rgba(20,44,30,0.045); }
.record-history-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; min-height: 72px; padding: 11px 14px; border-bottom: 1px solid #edf0ed; }
.record-history-row:last-child { border-bottom: 0; }
.record-history-row:hover { background: #f8fbf9; }
.record-history-row > div strong, .record-history-row > div small { display: block; }
.record-history-row > div strong { color: #22362b; font-size: 0.69rem; }
.record-history-row > div small { margin-top: 4px; color: var(--muted); font-size: 0.55rem; line-height: 1.48; }
.record-history-amount { padding: 6px 8px; border-radius: 9px; background: #f0f4f1; color: var(--ink); font-size: 0.7rem; white-space: nowrap; }
.record-history-amount.is-out { color: #b94f3f; }
.record-history-amount.is-in { color: #237a4b; }
.record-history-actions { display: flex; align-items: center; gap: 5px; }
.record-history-actions button { min-height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f7; color: #526159; cursor: pointer; font-size: 0.53rem; font-weight: 850; }
.record-history-actions small { color: #7a8780; font-size: 0.49rem; white-space: nowrap; }
.record-history-actions button.is-danger { border-color: #efc4bd; background: #fff2ef; color: #b34134; }
.barcode-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.barcode-input-row button { min-width: 138px; border: 1px solid #bfd1c7; border-radius: 13px; background: #edf9f2; color: #276c49; cursor: pointer; font-size: 0.68rem; font-weight: 800; }
.user-management-list { padding: 5px 18px 0; }
.managed-user-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 62px; border-bottom: 1px solid #edf0ed; }
.managed-user-row.is-archived { margin: 3px 0; padding: 0 8px; border: 1px dashed #d7ddd8; border-radius: 12px; background: #f7f9f7; }
.managed-user-row:last-child { border-bottom: 0; }
.managed-user-row strong, .managed-user-row small { display: block; }
.managed-user-row strong { font-size: 0.69rem; }
.managed-user-row small { margin-top: 3px; color: var(--muted); font-size: 0.56rem; }
.permission-count { color: #65736b; font-size: 0.59rem; }
.managed-user-row button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.managed-user-actions { display: flex; gap: 6px; }
.managed-user-actions button:first-child { width: auto; padding: 0 9px; color: #276c49; font-size: 0.55rem; font-weight: 800; }
.managed-user-actions .user-archive-button { width: auto; padding: 0 9px; border-color: #efc4bd; background: #fff2ef; color: #a73d33; font-size: 0.55rem; font-weight: 850; }
.managed-user-actions .user-archive-button:hover { background: #ffe4df; }
.user-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 23px; }
.user-form > label { display: grid; gap: 8px; margin-bottom: 17px; color: #526159; font-size: 0.72rem; font-weight: 750; }
.user-form input, .user-form select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; }
.user-form .full { grid-column: 1 / -1; }
.permission-section { margin: 4px 0 20px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fafbf9; }
.permission-section > div:first-child strong, .permission-section > div:first-child small { display: block; }
.permission-section > div:first-child strong { font-size: 0.75rem; }
.permission-section > div:first-child small { margin-top: 3px; color: var(--muted); font-size: 0.59rem; }
.permission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 13px; }
.permission-option { display: flex !important; align-items: center; gap: 8px !important; margin: 0 !important; padding: 9px; border: 1px solid #e2e7e3; border-radius: 10px; background: white; color: #4e5e55 !important; font-size: 0.63rem !important; }
.permission-option input { width: 15px !important; min-height: auto !important; accent-color: var(--ink); }
.settings-inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 18px 22px 10px; }
.settings-inline-form input { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.title-chip-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 22px 8px; }
.title-chip { padding: 6px 10px; border-radius: 999px; background: #edf8f1; color: #2b6d47; font-size: 0.62rem; font-weight: 850; }
.company-management-list { padding: 5px 18px 0; }
.company-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0ed; }
.company-row:last-child { border-bottom: 0; }
.company-row > span:first-child { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e9f6ee; color: #277248; font-weight: 950; }
.company-logo.has-image { overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.company-row strong, .company-row small { display: block; }
.company-row strong { font-size: 0.7rem; }
.company-row small { margin-top: 3px; color: var(--muted); font-size: 0.57rem; }
.company-row b { padding: 5px 8px; border-radius: 999px; background: #f2f4f2; color: #58675f; font-size: 0.58rem; }
.company-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.company-row-actions button:not(.company-delete-button):not(.company-edit-button) { min-height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9f7; color: #526159; cursor: pointer; font-size: 0.56rem; font-weight: 800; }
.company-edit-button { min-height: 31px; padding: 0 9px; border: 1px solid #b8d5c3; border-radius: 9px; background: #edf8f1; color: #216e43; cursor: pointer; font-size: 0.58rem; font-weight: 850; }
.company-edit-button:hover { background: #def1e5; }
.company-delete-button { min-height: 31px; padding: 0 9px; border: 1px solid #efc4bd; border-radius: 9px; background: #fff2ef; color: #b34134; cursor: pointer; font-size: 0.58rem; font-weight: 850; }
.company-delete-button:hover:not(:disabled) { background: #ffe6e1; }
.company-delete-button:disabled { cursor: not-allowed; opacity: 0.45; }
.eyebrow--danger { color: #b33d32 !important; }
.company-delete-warning { margin: 10px 0 0; padding: 12px 14px; border: 1px solid #f0c8c1; border-radius: 13px; background: #fff3f0; color: #9b392f; font-size: 0.67rem; font-weight: 750; line-height: 1.55; }
.company-delete-warning.is-blocked { border-color: #e1b2aa; background: #fce9e5; }
.company-delete-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.company-delete-stat { padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; text-align: center; }
.company-delete-stat strong, .company-delete-stat small { display: block; }
.company-delete-stat strong { font-size: 0.9rem; }
.company-delete-stat small { margin-top: 3px; color: var(--muted); font-size: 0.53rem; }
.company-delete-form { display: grid; gap: 13px; margin-top: 18px; }
.company-delete-form > label:not(.danger-confirmation) { display: grid; gap: 7px; color: #526159; font-size: 0.66rem; font-weight: 750; }
.company-delete-form input[type="text"], .company-delete-form input[type="password"], .company-delete-form > label:not(.danger-confirmation) > input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.danger-confirmation { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #efccc6; border-radius: 12px; background: #fff8f6; color: #7f443d; font-size: 0.62rem; font-weight: 700; line-height: 1.5; }
.danger-confirmation input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: #b54034; }
.form-divider { margin: 8px 0 18px; padding: 13px; border-radius: 13px; background: #f1f8f3; }
.form-divider strong, .form-divider small { display: block; }
.form-divider strong { font-size: 0.74rem; }
.form-divider small { margin-top: 4px; color: var(--muted); font-size: 0.61rem; }
.password-reset-form { display: grid; gap: 14px; margin-top: 18px; }
.password-reset-form > p { margin: 0; color: var(--muted); font-size: 0.71rem; line-height: 1.55; }
.password-reset-form label { display: grid; gap: 7px; color: #526159; font-size: 0.68rem; font-weight: 750; }
.password-reset-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; }
.password-reset-back { justify-self: center; }

.modal--scanner { width: min(510px, calc(100vw - 22px)); background: #101c17; color: white; }
.modal--scanner .eyebrow { color: var(--green); }
.scanner-help { margin: 7px 0 16px; color: #a7b6ae; font-size: 0.71rem; }
.scanner-count-status { margin: -5px 0 13px; padding: 10px 12px; border: 1px solid #355545; border-radius: 12px; background: #172b21; }
.scanner-count-status strong, .scanner-count-status span { display: block; }
.scanner-count-status strong { color: white; font-size: 0.7rem; }
.scanner-count-status span { margin-top: 3px; color: #9fd6b5; font-size: 0.62rem; }
.scanner-count-status.is-error { border-color: #7f433a; background: #3e211d; }
.scanner-count-status.is-error span { color: #ffb8ad; }
.scanner-viewport { position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; background: #07100c; }
.scanner-viewport video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; inset: 20%; pointer-events: none; }
.scanner-frame i { position: absolute; width: 28px; height: 28px; border-color: var(--green); border-style: solid; }
.scanner-frame i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.scanner-frame i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.scanner-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.scanner-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.scanner-frame span { position: absolute; left: 5%; right: 5%; top: 50%; height: 2px; background: var(--green); box-shadow: 0 0 12px var(--green); animation: scan-line 2s ease-in-out infinite; }
@keyframes scan-line { 0%,100% { transform: translateY(-55px); } 50% { transform: translateY(55px); } }
.scanner-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,12,8,0.66); color: #d3ded8; font-size: 0.72rem; }
.scanner-error { margin: 10px 0 0; padding: 10px; border-radius: 10px; background: #4f2520; color: #ffd8d0; font-size: 0.66rem; }
.scanner-actions { display: flex; gap: 8px; margin-top: 11px; }
.scanner-actions .button { flex: 1; background: #24342d; border-color: #374b42; color: white; }
.scanner-actions .button--primary { background: var(--green); color: var(--ink); }
.manual-barcode-form { margin-top: 14px; }
.manual-barcode-form label { display: grid; gap: 7px; color: #a8b7af; font-size: 0.63rem; font-weight: 750; }
.manual-barcode-form label > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.manual-barcode-form input { min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #394a42; border-radius: 12px; background: #192720; color: white; }
.manual-barcode-form .button { background: var(--green); color: var(--ink); box-shadow: none; }
.https-note { margin: 11px 0 0; color: #71847a; text-align: center; font-size: 0.55rem; }

/* Modal and toast */
.modal-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(9,20,15,0.55); backdrop-filter: blur(4px); }
.modal-backdrop.is-cart-backdrop { z-index: 75; }
.modal { position: fixed; z-index: 100; left: 50%; top: 50%; width: min(430px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); overflow-y: auto; padding: 29px; border-radius: 24px; background: white; color: var(--ink); box-shadow: 0 28px 90px rgba(9,20,15,0.25); transform: translate(-50%, -50%); }
.modal--wide { width: min(610px, calc(100vw - 28px)); }
.modal--receipt { width: min(470px, calc(100vw - 28px)); text-align: center; }
.modal-close { position: absolute; right: 18px; top: 15px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #eef1ee; color: #68766d; cursor: pointer; font-size: 1.35rem; }
.modal > h2 { margin: 7px 0 0; font-size: 1.65rem; letter-spacing: -0.04em; }
.modal-total { margin: 18px 0 22px; font-size: 2.2rem; font-weight: 950; letter-spacing: -0.055em; }
.payment-options { display: grid; gap: 10px; }
.payment-options button { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 15px; background: white; cursor: pointer; text-align: left; transition: 0.15s ease; }
.payment-options button:hover { border-color: #99a9a0; transform: translateY(-1px); }
.payment-options button > div { flex: 1; }
.payment-options strong, .payment-options small { display: block; }
.payment-options strong { font-size: 0.8rem; }
.payment-options small { margin-top: 4px; color: var(--muted); font-size: 0.63rem; }
.payment-options button > b { color: #8d9992; font-size: 1.3rem; font-weight: 400; }
.payment-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #ecf0ff; color: var(--blue); font-size: 1.1rem; font-weight: 900; }
.payment-options button:last-child .payment-icon { background: #e8f8ef; color: #258554; }
.payment-icon--credit { background: #fff4dc; color: #9a6b1c; }
.payment-icon--installment { background: #f0ecff; color: #6c4cb8; }
.payment-icon--split { background: #e8f8ef; color: #258554; }
.deferred-total { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: #f3f6f3; color: #65736b; font-size: 0.7rem; }
.deferred-total strong { color: var(--ink); font-size: 0.9rem; }
.deferred-summary { margin: 0 0 17px; padding: 13px 15px; border: 1px solid #dce8e0; border-radius: 13px; background: #f1faf5; color: #35664d; font-size: 0.66rem; font-weight: 750; line-height: 1.55; }
.attendance-form { display: grid; gap: 14px; margin-top: 23px; }
.attendance-form > label, .attendance-time-row > label { display: grid; gap: 7px; color: #526159; font-size: 0.68rem; font-weight: 750; }
.attendance-form input, .attendance-form select { width: 100%; min-height: 47px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.attendance-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attendance-form .form-actions { margin-top: 3px; }
.stock-count-help { margin: 9px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.55; }
.stock-count-form { display: grid; gap: 14px; margin-top: 18px; }
.stock-count-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.stock-count-tools .button { min-height: 46px; white-space: nowrap; }
.stock-count-search { width: 100%; }
.stock-count-list { max-height: min(390px, 45vh); overflow-y: auto; border: 1px solid var(--line); border-radius: 15px; }
.stock-count-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 100px; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #edf0ed; }
.stock-count-row:last-child { border-bottom: 0; }
.stock-count-row strong, .stock-count-row small { display: block; }
.stock-count-row strong { font-size: 0.72rem; }
.stock-count-row small { margin-top: 3px; color: var(--muted); font-size: 0.59rem; }
.stock-count-current { color: #607068; font-size: 0.63rem; white-space: nowrap; }
.stock-count-row input { width: 100px; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; text-align: right; font-weight: 850; }
.stock-count-row.is-changed { background: #f3faf6; }
.stock-count-row.is-scanned { box-shadow: inset 4px 0 #55b780; }
.stock-count-scan-hits { color: #268454; font-weight: 850; }
.stock-count-row.is-changed input { border-color: #63b98a; background: white; }
.stock-count-form > label:not(.search-box) { display: grid; gap: 7px; color: #526159; font-size: 0.68rem; font-weight: 750; }
.stock-count-form > label:not(.search-box) input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.stock-count-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f3f6f3; color: #627168; font-size: 0.67rem; }
.stock-count-summary strong { color: var(--ink); }
.staff-payment-person { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 13px 15px; border-radius: 13px; background: #f3f6f3; }
.staff-payment-person strong, .staff-payment-person span { display: block; font-size: 0.67rem; }
.staff-payment-person span { color: var(--muted); }
.demo-banner { margin-top: 15px; padding: 10px; border-radius: 10px; background: #fff5e8; color: #9a6625; text-align: center; font-size: 0.64rem; font-weight: 750; }
.product-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 24px; }
.product-form .full { grid-column: 1 / -1; }
.product-category-field small { color: var(--muted); font-size: 0.58rem; font-weight: 650; line-height: 1.4; }
.product-category-field select.is-new-category { border-color: #8ca1f5; background: #f5f7ff; }
#productNewCategory, #productNewSubcategory { border-color: #8ca1f5; background: #f8f9ff; }
.category-manager-intro { margin: 6px 0 22px; color: var(--muted); font-size: 0.7rem; line-height: 1.55; }
.category-manager-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.category-manager-card { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfa; }
.category-manager-card h3 { margin: 7px 0 17px; color: var(--ink); font-size: 0.92rem; }
.category-level-badge { display: inline-flex; padding: 5px 8px; border-radius: 8px; background: #e9eeff; color: #3156e8; font-size: 0.51rem; font-weight: 900; letter-spacing: 0.07em; }
.category-manager-card label { display: grid; gap: 7px; margin-bottom: 12px; color: #526159; font-size: 0.68rem; font-weight: 800; }
.category-manager-card input, .category-manager-card select { width: 100%; min-height: 47px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }
.category-manager-summary { min-height: 21px; margin: 0 0 13px; color: var(--muted); font-size: 0.61rem; font-weight: 700; }
.category-manager-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.category-manager-actions .button { flex: 1 1 135px; min-height: 43px; }
.category-manager-note { display: block; margin-top: 13px; color: var(--muted); font-size: 0.56rem; line-height: 1.5; }
.product-image-field { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fafbf9; }
.product-image-preview { position: relative; display: grid; place-items: center; width: 118px; aspect-ratio: 1; overflow: hidden; border: 1px dashed #bdc8c1; border-radius: 15px; background: #eef3ef; color: #718078; font-size: 1.1rem; font-weight: 950; }
.product-image-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: white; }
.product-image-copy { min-width: 0; }
.product-image-copy > strong, .product-image-copy > small { display: block; }
.product-image-copy > strong { font-size: 0.78rem; }
.product-image-copy > small { margin-top: 5px; color: var(--muted); font-size: 0.62rem; line-height: 1.45; }
.product-image-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.product-image-buttons .button { min-height: 38px; }
.label-print-intro { margin: 8px 0 18px; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.label-print-controls { display: flex; align-items: end; gap: 10px; }
.label-print-controls label { display: grid; flex: 1; gap: 7px; color: #526159; font-size: 0.68rem; font-weight: 800; }
.label-print-controls input, .label-print-controls select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.label-print-controls .button { flex: 1.4; }
.barcode-label-preview { display: grid; place-items: center; min-height: 142px; margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: repeating-linear-gradient(45deg, #f5f7f4, #f5f7f4 8px, #eef2ee 8px, #eef2ee 16px); overflow-x: auto; }
.barcode-label { box-sizing: border-box; display: grid; grid-template-rows: 4mm 9.5mm 3mm; gap: 0.5mm; width: 60mm; height: 20mm; padding: 1mm 1.5mm; overflow: hidden; background: white; color: #000; font-family: Arial, Helvetica, sans-serif; }
.barcode-label-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5mm; min-width: 0; }
.barcode-label-head strong { min-width: 0; overflow: hidden; font-size: 2.7mm; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.barcode-label-head b { flex: 0 0 auto; font-size: 3.1mm; line-height: 1; letter-spacing: -0.1mm; }
.barcode-bars { display: flex; width: 100%; height: 100%; overflow: hidden; }
.barcode-bars i { display: block; flex: var(--barcode-modules) 1 0; min-width: 0; height: 100%; }
.barcode-bars .is-bar { background: #000; }
.barcode-bars .is-space { background: #fff; }
.barcode-label > small { overflow: hidden; font-size: 2.35mm; font-weight: 700; line-height: 3mm; letter-spacing: 0.35mm; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.qr-label { grid-template-columns: 17mm minmax(0, 1fr); grid-template-rows: 1fr; gap: 1.5mm; padding: 1mm; }
.qr-label-code { display: grid; place-items: center; width: 17mm; height: 17mm; overflow: hidden; }
.qr-label-code svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.qr-label-info { display: grid; align-content: center; min-width: 0; gap: 1.15mm; }
.qr-label-info strong, .qr-label-info b, .qr-label-info small { display: block; overflow: hidden; text-overflow: ellipsis; }
.qr-label-info strong { max-height: 7mm; font-size: 3mm; line-height: 3.5mm; }
.qr-label-info b { font-size: 4mm; line-height: 4.3mm; letter-spacing: -0.15mm; }
.qr-label-info small { font-size: 2.25mm; font-weight: 700; line-height: 2.7mm; letter-spacing: 0.2mm; white-space: nowrap; }
.label-printer-note { margin: 16px 0 0; padding: 11px 13px; border-radius: 11px; background: #fff6e9; color: #8b612a; font-size: 0.62rem; line-height: 1.5; }
.barcode-print-area { display: none; }
.stock-entry-product { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #f7faf7; }
.stock-entry-product .table-product-color { width: 50px; height: 50px; }
.stock-entry-product > div { min-width: 0; }
.stock-entry-product strong, .stock-entry-product small { display: block; }
.stock-entry-product strong { overflow: hidden; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.stock-entry-product small { margin-top: 4px; color: var(--muted); font-size: 0.63rem; }
.stock-match-badge { display: inline-flex; align-items: center; margin-bottom: 6px; padding: 3px 7px; border-radius: 999px; background: #dff5e5; color: #24713c; font-size: 0.55rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.stock-entry-form { margin-top: 18px; }
.stock-entry-form > label { display: grid; gap: 8px; color: #526159; font-size: 0.7rem; font-weight: 800; }
.stock-entry-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; }
.stock-entry-form .form-actions { margin-top: 18px; }
.toggle-label { display: flex !important; align-items: center; gap: 9px !important; }
.toggle-label input { width: 17px !important; min-height: auto !important; accent-color: var(--ink); }
.toggle-label > span { display: grid; gap: 3px; }
.toggle-label small { color: var(--muted); font-size: 0.58rem; font-weight: 600; line-height: 1.4; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.form-protection-note { margin-right: auto; align-self: center; color: #66736b; font-size: 0.57rem; font-weight: 800; }
.movement-protected { color: #829088; font-size: 0.72rem; }
.customer-list { display: grid; gap: 7px; max-height: 300px; margin: 16px 0; overflow-y: auto; }
.customer-row-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.customer-row-wrap .customer-row { min-width: 0; border-radius: 13px 0 0 13px; }
.customer-row { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; text-align: left; }
.customer-row:hover { border-color: #aab7af; }
.customer-row .avatar { background: #edf1ee; }
.customer-row div { flex: 1; }
.customer-row strong, .customer-row small { display: block; }
.customer-row strong { font-size: 0.72rem; }
.customer-row small { margin-top: 3px; color: var(--muted); font-size: 0.61rem; }
.customer-row-actions { display: flex; border: 1px solid var(--line); border-left: 0; border-radius: 0 13px 13px 0; overflow: hidden; background: #f8faf8; }
.customer-row-actions button { width: 38px; border: 0; border-left: 1px solid var(--line); background: transparent; color: #536159; cursor: pointer; font-size: 0.82rem; font-weight: 900; }
.customer-row-actions button:hover { background: #eaf1ec; }
.customer-row-actions button.is-danger { color: #b54034; }
.customer-row-actions button.is-danger:hover { background: #ffe9e5; }
.customer-manage-form { margin-top: 20px; }
.new-customer-details { border-top: 1px solid var(--line); padding-top: 14px; }
.new-customer-details summary { color: var(--blue); cursor: pointer; font-size: 0.72rem; font-weight: 800; }
.new-customer-details form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.new-customer-details input { min-height: 43px; }
.success-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 20px; background: var(--green); color: var(--ink); font-size: 1.5rem; font-weight: 950; transform: rotate(-3deg); }
.receipt { margin: 20px 0; padding: 19px; border: 1px dashed #bfc9c2; border-radius: 15px; background: #fafbf9; text-align: left; }
.receipt-head { padding-bottom: 13px; border-bottom: 1px dashed #cbd3cd; text-align: center; }
.receipt-head strong, .receipt-head span { display: block; }
.receipt-head strong { font-size: 0.9rem; }
.receipt-head span { margin-top: 4px; color: var(--muted); font-size: 0.61rem; }
.receipt-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; font-size: 0.68rem; }
.receipt-row.total { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #cbd3cd; font-size: 0.88rem; font-weight: 900; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-edit-summary { margin: -4px 0 16px; color: var(--muted); font-weight: 750; }
.order-edit-items { display: grid; gap: 10px; }
.order-edit-item { display: grid; grid-template-columns: minmax(0,1fr) 105px 150px 125px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.order-edit-item__name { align-self: center; min-width: 0; }
.order-edit-item__name strong, .order-edit-item__name small { display: block; }
.order-edit-item__name small { margin-top: 3px; color: var(--muted); }
.order-edit-item label span { font-size: .76rem; }
.order-edit-item__line-total { align-self: center; text-align: right; }
.order-edit-item__line-total small, .order-edit-item__line-total strong { display: block; }
.order-edit-item__line-total small { color: var(--muted); }
.order-edit-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #111827; color: #fff; }
.order-edit-total span, .order-edit-total strong { display: block; }
.order-edit-total small { color: #cbd5e1; }
.movement-edit-button { display: grid; min-width: 40px; min-height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-weight: 850; cursor: pointer; }
.finance-document-section { display: grid; gap: 12px; padding: 16px; border: 1px solid #dce4df; border-radius: 16px; background: #f7faf8; }
.finance-document-heading strong, .finance-document-heading small { display: block; }
.finance-document-heading strong { color: var(--ink); font-size: 0.88rem; font-weight: 900; }
.finance-document-heading small { margin-top: 4px; color: var(--muted); font-size: 0.73rem; line-height: 1.45; }
.document-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.document-upload-card { position: relative; display: grid !important; gap: 3px; min-height: 76px; padding: 13px 14px; border: 1px dashed #a7b8ad; border-radius: 13px; background: #fff; cursor: pointer; }
.document-upload-card:hover { border-color: var(--green); background: #f1faf5; }
.document-upload-card span { color: var(--ink); font-weight: 900; }
.document-upload-card small { color: var(--muted); font-size: 0.7rem; }
.document-upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.attachment-list { display: grid; gap: 7px; }
.attachment-list::before { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
#financePendingAttachments::before { content: "Yüklenecek belgeler"; }
#financeExistingAttachments::before { content: "Kayıtlı belgeler"; }
.attachment-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #e0e7e2; border-radius: 11px; background: #fff; }
.attachment-row__icon { flex: 0 0 auto; font-size: 1.1rem; }
.attachment-row__info { min-width: 0; flex: 1; }
.attachment-row__info strong, .attachment-row__info small { display: block; }
.attachment-row__info strong { overflow: hidden; color: var(--ink); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.attachment-row__info small { margin-top: 2px; color: var(--muted); font-size: 0.64rem; }
.attachment-row__actions { display: flex; gap: 5px; }
.attachment-row__actions a, .attachment-row__actions button { min-height: 32px; padding: 6px 9px; border: 1px solid #ccd8d0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 0.68rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.attachment-row__actions button { color: #a92626; }
.attachment-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: #eaf5ee; color: #21653f; font-size: 0.65rem; font-weight: 900; white-space: nowrap; }
.receipt-attachments { display: grid; gap: 7px; margin: 0 0 14px; padding: 12px; border: 1px solid #dce4df; border-radius: 13px; background: #f7faf8; }
.receipt-attachments > strong { color: var(--ink); font-size: 0.75rem; }
.toast-region { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 360px; padding: 13px 15px; border-radius: 13px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 0.72rem; font-weight: 700; animation: toast-in 0.22s ease-out; }
.toast.is-error { background: #a84134; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(118px, 1fr)); }
  .sale-layout { grid-template-columns: minmax(0, 1fr) 338px; }
  .sidebar { width: 215px; }
  .app-shell { grid-template-columns: 215px 1fr; }
}

@media (max-width: 920px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 35px 22px; background: radial-gradient(circle at top right, #e6faef, transparent 40%), white; }
  .mobile-brand { display: flex; }
  .sidebar { display: none; }
  .app-shell { display: block; }
  .main-content { padding-bottom: 78px; }
  .topbar { position: sticky; z-index: 25; top: 0; height: 76px; padding: 0 18px; }
  .topbar h1 { font-size: 1.28rem; }
  .status-pill { display: none; }
  .mobile-logout-button { display: inline-flex; }
  .sale-layout { display: block; min-height: auto; }
  .catalog-panel { padding: 18px; }
  .cart-panel { display: none; position: fixed; z-index: 80; inset: auto 8px calc(76px + env(safe-area-inset-bottom)) 8px; width: auto; height: min(76vh, 680px); max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)); border: 1px solid rgba(216,225,219,0.9); border-radius: 25px; box-shadow: 0 24px 80px rgba(9,20,15,0.3); overflow: hidden; }
  .cart-panel.is-mobile-open { display: flex; }
  .cart-panel.is-mobile-open::before { content: ""; position: absolute; left: 50%; top: 9px; width: 43px; height: 4px; border-radius: 5px; background: #d5dcd7; transform: translateX(-50%); }
  .cart-header { flex: 0 0 auto; padding: 27px 17px 10px; }
  .cart-mobile-close { display: grid; place-items: center; }
  .customer-select { flex: 0 0 auto; margin: 0 17px 10px; }
  .cart-items { padding: 4px 12px 8px; }
  .cart-item { margin-bottom: 7px; padding: 12px; border: 1px solid #e7ece8; border-radius: 14px; background: #fbfcfa; }
  .cart-price-editor input { width: 86px; }
  .cart-summary { flex: 0 0 auto; padding: 13px 17px 15px; box-shadow: 0 -8px 24px rgba(20,35,29,0.05); }
  .cart-summary > div { margin-bottom: 5px; }
  .cart-summary .summary-total { margin: 9px 0 9px; padding-top: 9px; }
  .checkout-button { min-height: 51px; }
  .mobile-nav { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(8, 1fr); height: calc(68px + env(safe-area-inset-bottom)); padding: 7px 1px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); }
  .mobile-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #849087; cursor: pointer; }
  .mobile-nav button > span { font-size: 1.1rem; }
  .mobile-nav button small { font-size: 0.57rem; font-weight: 850; }
  .mobile-nav button.is-active { color: var(--ink); }
  .mobile-nav button.is-active > span { color: #1b9a60; }
  .mobile-nav [data-view="sale"] { grid-column: 1; }
  .mobile-nav [data-view="products"] { grid-column: 2; }
  .mobile-nav [data-view="orders"] { grid-column: 3; }
  .mobile-nav [data-view="finance"] { grid-column: 4; }
  .mobile-cart-button { grid-column: 5; grid-row: 1; }
  .mobile-nav [data-view="personnel"] { grid-column: 6; }
  .mobile-nav [data-view="reports"] { grid-column: 7; }
  .mobile-nav [data-view="settings"] { grid-column: 8; }
  .mobile-cart-button > span { display: grid; place-items: center; width: 42px; height: 42px; margin-top: -25px; border: 5px solid white; border-radius: 15px; background: var(--green); color: var(--ink) !important; box-sizing: content-box; box-shadow: 0 7px 17px rgba(28,113,76,0.2); }
  .mobile-cart-button > b { position: absolute; top: -8px; right: 20%; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid white; border-radius: 9px; background: var(--coral); color: white; font-size: 0.55rem; }
  .page-view { padding: 18px; }
  .settings-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .finance-actions { grid-template-columns: repeat(2, 1fr); }
  .finance-metrics { grid-template-columns: repeat(2, 1fr); }
  .finance-grid { grid-template-columns: 1fr; }
  .staff-metrics { grid-template-columns: repeat(3, 1fr); }
  .staff-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .document-upload-grid { grid-template-columns: 1fr; }
  .topbar-actions .icon-button { display: none; }
  .topbar { padding: 0 14px 0 17px; }
  .topbar h1 { font-size: 1.34rem; font-weight: 900; }
  .today-label { color: #5f6b64; font-size: 0.65rem; }
  .mobile-logout-button { min-height: 39px; padding: 0 10px; font-size: 0.7rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(125px, 1fr)); gap: 10px; }
  .product-card { min-height: 184px; }
  .category-tabs { margin-bottom: 20px; }
  .stats-strip, .metric-grid { grid-template-columns: 1fr; }
  .mini-stat { padding: 13px 15px; }
  .page-toolbar { align-items: stretch; flex-direction: column; }
  .page-toolbar .button { width: 100%; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .transaction-export-actions { width: 100%; margin-left: 0; grid-template-columns: repeat(3, 1fr); }
  .transaction-type-filter { justify-content: space-between; }
  .order-row { grid-template-columns: 1fr auto; gap: 8px; padding: 13px 16px; }
  .order-row > :nth-child(2), .order-row > :nth-child(3), .order-row > :nth-child(4) { display: none; }
  .order-row > b { display: none; }
  .data-card-header { padding: 18px; }
  .metric-card { min-height: 118px; }
  .metric-card strong { margin-top: 12px; }
  .product-form { grid-template-columns: 1fr; }
  .product-form .full { grid-column: auto; }
  .category-manager-grid { grid-template-columns: 1fr; }
  .category-manager-card { padding: 16px; }
  .product-image-field { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .product-image-preview { width: 92px; }
  .label-print-controls { align-items: stretch; flex-direction: column; }
  .label-print-controls .button { width: 100%; }
  .barcode-label-preview { justify-content: start; padding: 16px; }
  .new-customer-details form { grid-template-columns: 1fr; }
  .finance-actions { grid-template-columns: 1fr 1fr; }
  .finance-metrics { grid-template-columns: 1fr 1fr; }
  .current-account-metrics { grid-template-columns: 1fr 1fr; }
  .current-account-metrics .finance-metric:last-child { grid-column: 1 / -1; }
  .finance-metric:last-child { grid-column: 1 / -1; }
  .current-account-toolbar-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .current-account-toolbar-actions #addCurrentAccountButton { grid-column: 1 / -1; }
  .current-account-row { grid-template-columns: 40px minmax(0, 1fr); gap: 9px 11px; padding: 13px 15px; }
  .current-account-balance { grid-column: 2; min-width: 0; text-align: left; }
  .current-account-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .customer-reminder-summary { align-items: flex-start; flex-direction: column; }
  .customer-reminder-summary span { text-align: left; }
  .customer-reminder-actions .button { flex: 1 1 calc(50% - 8px); }
  .staff-metrics { grid-template-columns: 1fr 1fr; }
  .staff-metric:last-child { grid-column: 1 / -1; }
  .staff-row { grid-template-columns: 38px minmax(0, 1fr); }
  .staff-salary { grid-column: 2; text-align: left; }
  .staff-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .installment-row { grid-template-columns: 42px minmax(0, 1fr); }
  .installment-amount { grid-column: 2; text-align: left; }
  .attendance-row { grid-template-columns: 66px minmax(0, 1fr); }
  .attendance-row b { grid-column: 2; justify-self: start; }
  .month-filter { justify-content: space-between; }
  .chart-legend { display: none; }
  .finance-chart { padding-left: 12px; padding-right: 12px; }
  .barcode-input-row { grid-template-columns: 1fr; }
  .barcode-input-row button { min-height: 42px; }
  .user-form, .permission-grid { grid-template-columns: 1fr; }
  .user-form .full { grid-column: auto; }
  .managed-user-row { grid-template-columns: 36px minmax(0, 1fr); padding: 10px 0; }
  .permission-count, .managed-user-actions { grid-column: 2; }
  .managed-user-actions { justify-content: flex-start; }
  .settings-inline-form { grid-template-columns: 1fr; }
  .company-row { grid-template-columns: 40px minmax(0, 1fr); }
  .company-row-actions { grid-column: 2; justify-content: flex-start; }
  .company-delete-summary { grid-template-columns: repeat(2, 1fr); }
  .backup-format-grid { grid-template-columns: 1fr 1fr; }
  .audit-log-row { grid-template-columns: 34px minmax(0, 1fr); }
  .audit-log-disclosure { grid-template-columns: auto minmax(0, 1fr); padding: 15px 18px; }
  .audit-log-disclosure-state { grid-column: 2; justify-self: start; min-width: 0; }
  .audit-log-toolbar { align-items: stretch; flex-direction: column; }
  .audit-log-toolbar .button { width: 100%; }
  .audit-log-retention { grid-column: 2; grid-template-columns: 1fr auto; align-items: center; justify-items: start; min-width: 0; }
  .audit-log-main small { white-space: normal; }
  .audit-log-footer { align-items: stretch; flex-direction: column; }
  .audit-log-footer .button { width: 100%; }
  .stock-count-tools { grid-template-columns: 1fr; }
  .stock-count-row { grid-template-columns: minmax(0, 1fr) 88px; }
  .stock-count-current { grid-column: 1; }
  .stock-count-row input { grid-column: 2; grid-row: 1 / span 2; width: 88px; }
  .modal { padding: 24px 20px; }
  .modal--record-detail { width: calc(100vw - 10px); max-height: calc(100dvh - 10px); padding: 0 14px 18px; border-radius: 21px; }
  .modal--record-detail .modal-close { top: 14px; right: 13px; }
  .record-detail-head { margin: 0 -14px; padding: 24px 56px 21px 17px; }
  .record-detail-head h2 { margin-top: 6px; font-size: 1.35rem; }
  .record-detail-head p { font-size: 0.58rem; }
  .attendance-time-row { grid-template-columns: 1fr; }
  .record-detail-summary { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .record-summary-card { min-height: 88px; padding: 12px; border-radius: 14px; }
  .record-summary-card--identity { grid-column: 1 / -1; }
  .record-summary-avatar { width: 40px; height: 40px; }
  .record-summary-icon { width: 31px; height: 31px; }
  .record-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 11px 0 14px; padding: 8px; border-radius: 14px; }
  .record-detail-actions .button { width: 100%; min-width: 0; padding: 0 7px; }
  .record-detail-actions .button--danger { grid-column: 1 / -1; }
  .record-detail-grid { grid-template-columns: 1fr; gap: 19px; }
  .record-history-list { max-height: none; }
  .record-history-row { grid-template-columns: 38px minmax(0, 1fr); }
  .record-history-amount { grid-column: 2; }
  .record-history-actions { grid-column: 1 / -1; }
  .receipt-actions { grid-template-columns: 1fr; }
  .dashboard-card-options { grid-template-columns: 1fr; }
  .dashboard-customize-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-customize-actions #resetDashboardCardsButton { grid-column: 1 / -1; }
  .toast-region { left: 14px; right: 14px; bottom: 82px; }
  .toast { min-width: 0; max-width: none; width: 100%; }
}

@media (max-width: 420px) {
  .cart-panel { left: 5px; right: 5px; height: min(74vh, 620px); }
  .mobile-nav button small { font-size: 0.46rem; }
  .company-row-actions { flex-wrap: wrap; }
  .record-detail-summary { grid-template-columns: 1fr; }
  .record-summary-card--identity { grid-column: auto; }
  .record-detail-head p { max-width: 250px; }
}

/* İşFlow mobile theme */
@media (max-width: 920px) {
  html, body { background: #071525; }
  .login-panel { background: radial-gradient(circle at top right, rgba(25,151,246,0.22), transparent 38%), #f8fbff; }
  .mobile-brand { margin-bottom: 44px; }
  .mobile-brand .brand-mark { width: 50px; height: 50px; border-radius: 16px; }
  .mobile-brand strong { color: var(--ink); font-size: 1.2rem; letter-spacing: -0.04em; }
  .main-content { min-height: 100dvh; background: #071525; color: white; }
  .offline-sync-banner { position: fixed; z-index: 45; top: max(8px, env(safe-area-inset-top)); left: 50%; width: min(calc(100% - 24px), 520px); min-height: 50px; padding: 7px 12px; border: 1px solid #e9bd61; border-radius: 15px; transform: translateX(-50%); box-shadow: 0 14px 34px rgba(0,0,0,0.3); }
  .offline-sync-banner strong { font-size: 0.69rem; }
  .offline-sync-banner small { font-size: 0.57rem; }
  body.is-offline .topbar { padding-top: 58px; height: 146px; }
  body.is-offline[data-view="dashboard"] .dashboard-view { padding-top: 76px; }
  .topbar { border-bottom-color: #17314e; background: rgba(7,21,37,0.96); }
  .topbar h1 { color: white; }
  .today-label { color: #a7b8ca; }
  .icon-button { border-color: #1c3958; background: #10243b; color: white; }
  .mobile-logout-button { border-color: #254566; background: #10243b; color: #dce9f7; }
  body[data-view="dashboard"] .topbar { display: none; }
  .dashboard-view { min-height: calc(100dvh - 70px); padding: 18px 15px 98px; background: radial-gradient(circle at 88% 3%, rgba(20,136,232,0.2), transparent 26%), #071525; }
  .dashboard-shell { width: 100%; }
  .dashboard-identity { justify-content: center; min-height: 118px; padding: 16px 10px 12px; border: 0; background: transparent; box-shadow: none; }
  .dashboard-identity::after { display: none; }
  .dashboard-identity img { width: 68px; height: 68px; border-radius: 21px; }
  .dashboard-identity strong { font-size: 2rem; }
  .dashboard-identity span { color: #c8d4e2; font-size: 0.69rem; }
  .dashboard-heading { align-items: center; margin: 14px 2px 15px; }
  .dashboard-heading h2 { margin-top: 5px; color: white; font-size: 1.25rem; }
  .dashboard-heading p { color: #a7b8ca; font-size: 0.65rem; }
  .dashboard-heading .eyebrow { color: #239df4; }
  .dashboard-heading-actions { align-items: flex-end; gap: 9px; }
  .dashboard-live { align-self: auto; color: #9fb3c9; font-size: 0.55rem; }
  .dashboard-customize-button { min-height: 33px; padding: 0 10px; border-color: #234768; background: #10263e; color: #dce9f7; box-shadow: none; font-size: 0.58rem; }
  .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-actions button { min-height: 118px; padding: 14px 13px; border-color: color-mix(in srgb, var(--card-color) 36%, #173653); border-radius: 16px; background: linear-gradient(145deg, var(--card-mobile, #10263e), #0d2036); box-shadow: 0 10px 25px rgba(0,0,0,0.16); }
  .dashboard-actions button::before { width: 4px; }
  .dashboard-actions button::after { top: 12px; right: 11px; width: 24px; height: 24px; background: rgba(255,255,255,0.08); color: var(--card-color); font-size: 1.05rem; }
  .dashboard-actions button:hover { border-color: #247cc0; box-shadow: 0 12px 30px rgba(0,0,0,0.22); }
  .dashboard-action-icon { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 11px; font-size: 1.12rem; }
  .dashboard-actions strong { color: white; font-size: 0.76rem; }
  .dashboard-actions small { color: #a4b7cb; font-size: 0.5rem; }
  .dashboard-summary { margin-top: 15px; padding: 17px 14px; border-color: #173653; border-radius: 18px; background: linear-gradient(145deg, #0d2036, #0a1b2e); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
  .dashboard-summary .eyebrow { color: #239df4; }
  .dashboard-summary-head h3 { color: white; font-size: 0.92rem; }
  .dashboard-summary-head button { color: #39aafa; }
  .dashboard-summary-grid { gap: 8px; margin-top: 14px; }
  .dashboard-summary-grid article { min-width: 0; padding: 12px 10px; border-color: #1b3a59; border-radius: 13px; background: #10243b; }
  .dashboard-summary-grid span { color: #a8bbce; font-size: 0.54rem; }
  .dashboard-summary-grid strong { margin-top: 8px; overflow: hidden; color: white; font-size: clamp(0.82rem, 3.4vw, 1.08rem); text-overflow: ellipsis; }
  .dashboard-summary-grid small { color: #35c174; font-size: 0.48rem; }
  .dashboard-flow { border-top-color: #1c3854; color: #a6b9cd; }
  .dashboard-flow-row { grid-template-columns: 76px minmax(60px, 1fr) auto; gap: 8px; }
  .dashboard-flow-row > span, .dashboard-flow-row strong { color: #a9bacd; }
  .dashboard-flow-row i { background: #17314d; }

  .catalog-panel { min-height: calc(100dvh - 144px); background: #071525; }
  .search-box { border-color: #1b3857; background: #10243b; color: #a2b6ca; }
  .search-box input { color: white; }
  .search-box input::placeholder { color: #9bafc3; }
  .scan-button { border-color: #1b456b; background: #0d72c7; color: white; }
  .currency-switch { border-color: #1b3857; background: #0e2137; }
  .currency-switch button { color: #afc1d2; }
  .currency-switch button.is-active { background: #087bea; }
  .sale-rate-status { color: #a8bbcd; }
  .sale-rate-status.is-live { color: #35c174; }
  .category-tabs button { border-color: #1a3754; color: #b2c3d3; }
  .category-tabs button.is-active { border-color: #168eea; background: #087bea; }
  .catalog-heading h2 { color: white; }
  .catalog-heading span { color: #a8bbce; }
  .product-card, .product-card.is-stockless { border-color: #173754; background: linear-gradient(145deg, #10263e, #0d2036); color: white; box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
  .product-card:hover { border-color: #2585cd; box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
  .product-card h3, .product-price { color: white; }
  .stock-chip { background: #193650; color: #bfd0df; }
  .stock-chip.is-low { background: #4a2b2c; color: #ffb5a5; }
  .converted-price-badge { color: #53b9ff; }

  .cart-panel { border-color: #21415f; background: #0b1d32; color: white; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
  .cart-panel.is-mobile-open::before { background: #42617e; }
  .cart-header .eyebrow { color: #2ba5fa; }
  .cart-header h2 b { background: #173957; color: white; }
  .cart-header .text-button { color: #ff937f; }
  .cart-mobile-close { border-color: #284864; background: #132b45; color: white; }
  .customer-select { border-color: #2c4d6c; background: #102842; color: white; }
  .customer-select > span { background: #173a5b; color: #3cacfa; }
  .customer-select small, .customer-select > b { color: #a4b8cb; }
  .cart-item { border-color: #1e3d5a; background: #10263e; }
  .cart-item > div:first-child > span, .cart-price-editor > span { color: #aec0d1; }
  .quantity-control button, .cart-price-editor button { border-color: #2a4a67; background: #16314e; color: white; }
  .cart-price-editor input { border-color: #2a4a67; background: #0a1c30; color: white; }
  .remove-item { background: #422a31 !important; color: #ff9a8c; }
  .cart-empty { color: #a5b8cb; }
  .cart-empty div { border-color: #31506c; color: #4aaef3; }
  .cart-empty strong { color: #d7e4f1; }
  .cart-summary { border-top-color: #1c3955; background: #091a2d; box-shadow: 0 -8px 24px rgba(0,0,0,0.15); }
  .cart-summary > div { color: #afc1d1; }
  .cart-summary > div strong, .cart-summary .summary-total, .summary-total strong { color: white !important; }
  .cart-summary .summary-total { border-top-color: #31506b; }
  .checkout-button { background: linear-gradient(135deg, #087bea, #20a8ff); color: white; box-shadow: 0 12px 26px rgba(8,123,234,0.28); }
  .checkout-button:hover:not(:disabled) { background: #168eea; }

  .mobile-nav { grid-template-columns: repeat(5, 1fr); height: calc(70px + env(safe-area-inset-bottom)); border-top-color: #173653; background: rgba(7,21,37,0.98); }
  .mobile-nav button { color: #9eb2c8; }
  .mobile-nav button.is-active, .mobile-nav button.is-active > span { color: #1b9cf1; }
  .mobile-nav [data-view="dashboard"] { grid-column: 1; }
  .mobile-nav [data-view="sale"] { grid-column: 2; }
  .mobile-cart-button { grid-column: 3; grid-row: 1; }
  .mobile-nav [data-view="reports"] { grid-column: 4; }
  .mobile-nav [data-view="settings"] { grid-column: 5; }
  .mobile-cart-button > span { border-color: #071525; background: linear-gradient(145deg, #0a83e8, #1ba6ff); color: white !important; box-shadow: 0 8px 22px rgba(8,123,234,0.36); }
  .mobile-cart-button > b { right: 14%; border-color: #071525; background: #ff8a25; }
}

@page barcode-label-page { size: 60mm 20mm; margin: 0; }

@media print {
  body.printing-receipt * { visibility: hidden !important; }
  body.printing-receipt #receiptContent, body.printing-receipt #receiptContent * { visibility: visible !important; }
  body.printing-receipt #receiptContent { position: absolute; inset: 0; width: 80mm; margin: 0; border: 0; }

  body.printing-barcode-labels { margin: 0 !important; background: white !important; }
  body.printing-barcode-labels > *:not(#barcodePrintArea) { display: none !important; }
  body.printing-barcode-labels #barcodePrintArea { display: block !important; width: 60mm; margin: 0; padding: 0; }
  body.printing-barcode-labels .barcode-label { page: barcode-label-page; break-after: page; margin: 0; border: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.printing-barcode-labels .barcode-label:last-child { break-after: auto; }
}

.cash-register-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.cash-register-filter select, .checkout-register-field select { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 0 34px 0 12px; font: inherit; font-weight: 750; }
.checkout-register-field { display: grid; gap: 7px; margin: 14px 0; color: var(--muted); font-size: .76rem; font-weight: 850; }
.service-checkout-warning { margin: 0; padding: 12px 14px; border-radius: 14px; background: #eef8f4; color: #176b55; font-size: .74rem; line-height: 1.55; font-weight: 750; }
.service-order-linked { display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 999px; background: #e8f8ef; color: #18734a; font-size: .72rem; font-weight: 850; }
.service-message-form, .service-template-form { display: grid; gap: 9px; }
.service-message-form select, .service-message-form textarea, .service-template-form select, .service-template-form input, .service-template-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 10px 12px; font: inherit; }
.service-message-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; margin-bottom: 10px; }
.service-message-row { padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid #cbd5e1; border-radius: 12px; background: white; }
.service-message-row.is-sent { border-left-color: #16a34a; } .service-message-row.is-failed { border-left-color: #dc2626; } .service-message-row.is-queued { border-left-color: #d97706; }
.service-message-row p { margin: 5px 0; font-size: .72rem; line-height: 1.45; } .service-message-row small { color: var(--muted); font-size: .62rem; }
.service-provider-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 10px; margin: 14px 0; }
.service-provider-summary article { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf9; }
.service-provider-summary span { color: var(--accent); font-size: .62rem; font-weight: 900; letter-spacing: .08em; } .service-provider-summary small { color: var(--muted); font-size: .66rem; }
.service-template-form { grid-template-columns: repeat(3,minmax(0,1fr)); } .service-template-form .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .service-template-form { grid-template-columns: 1fr; } .service-template-form .full { grid-column: auto; } }
.service-report-card { margin-top: 16px; }
.service-report-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; padding: 0 18px 18px; }
.service-report-summary article { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf9; }
.service-report-summary span, .service-report-summary strong { display: block; } .service-report-summary span { color: var(--muted); font-size: .6rem; font-weight: 800; } .service-report-summary strong { margin-top: 6px; font-size: .84rem; }
.service-report-layout { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; padding: 0 18px 20px; }
.service-report-layout > div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; } .service-report-layout h3 { margin: 0 0 13px; font-size: .78rem; }
.service-report-chart { display: flex; align-items: end; gap: 5px; min-height: 180px; overflow-x: auto; }
.service-report-chart article { flex: 1 0 24px; display: grid; grid-template-rows: 150px auto; gap: 5px; min-width: 24px; text-align: center; }
.service-report-chart article > div { display: flex; align-items: end; justify-content: center; gap: 2px; } .service-report-chart i { width: 8px; border-radius: 5px 5px 2px 2px; background: #20a796; } .service-report-chart i.is-delivered { background: #2468e5; } .service-report-chart small { color: var(--muted); font-size: .48rem; }
.service-report-statuses, .service-report-staff { display: grid; gap: 10px; }
.service-report-statuses article > div { display: flex; align-items: center; gap: 7px; font-size: .63rem; } .service-report-statuses article > div span { width: 8px; height: 8px; border-radius: 50%; } .service-report-statuses article > div strong { flex: 1; } .service-report-statuses article > i { display: block; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #edf2f2; } .service-report-statuses article > i b { display: block; height: 100%; border-radius: inherit; }
.service-report-staff article { display: flex; align-items: center; gap: 9px; } .service-report-staff article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e7f7f3; color: var(--accent); font-size: .62rem; font-weight: 900; } .service-report-staff strong, .service-report-staff small { display: block; } .service-report-staff strong { font-size: .68rem; } .service-report-staff small { margin-top: 3px; color: var(--muted); font-size: .55rem; }
@media (max-width: 1050px) { .service-report-summary { grid-template-columns: repeat(3,1fr); } .service-report-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .service-report-summary { grid-template-columns: repeat(2,1fr); padding: 0 12px 12px; } .service-report-layout { padding: 0 12px 14px; } }
.finance-metric[data-finance-register-filter] { cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.finance-metric[data-finance-register-filter]:hover { transform: translateY(-2px); border-color: #238bd0; }
.finance-metric.is-selected-register { border-color: #168eea; box-shadow: 0 0 0 2px rgba(22,142,234,.13); }
.cash-register-help { margin: -4px 0 16px; color: var(--muted); line-height: 1.55; }
.cash-register-management { display: grid; gap: 18px; }
.cash-register-form { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.cash-register-default { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px; }
.cash-register-default input { width: 18px; height: 18px; }
.cash-register-list { display: grid; gap: 10px; }
.cash-register-row { display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.cash-register-row.is-default { border-color: rgba(22,142,234,.45); background: rgba(22,142,234,.055); }
.cash-register-row > div { min-width: 0; display: grid; gap: 4px; }
.cash-register-row strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.cash-register-row small { color: var(--muted); }
.cash-register-row > b { color: var(--text); font-size: 1rem; white-space: nowrap; }
.cash-register-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: rgba(22,142,234,.12); color: #168eea; font-weight: 950; }

@media (max-width: 760px) {
  .finance-toolbar { align-items: stretch; }
  .cash-register-filter { width: 100%; justify-content: space-between; }
  .cash-register-filter select { flex: 1; min-width: 0; }
  #manageCashRegistersButton { width: 100%; }
  .cash-register-row { grid-template-columns: 42px minmax(0,1fr) auto; }
  .cash-register-row > b { grid-column: 2; }
  .cash-register-row > button { grid-column: 3; grid-row: 1 / span 2; }
  .order-edit-item { grid-template-columns: 1fr 1fr; }
  .order-edit-item__name, .order-edit-item__line-total { grid-column: 1 / -1; }
  .order-edit-item__line-total { display: flex; justify-content: space-between; text-align: left; }
}
