:root {
    color-scheme: light;
    --bg: #f7f1ea;
    --text: #2f3a4f;
    --muted: #7f8da4;
    --line: #e7edf5;
    --surface: #ffffff;
    --surface-soft: #f8fafe;
    --primary: #f59e0b;
    --primary-dark: #c46b08;
    --primary-soft: rgba(245, 158, 11, 0.14);
    --cyan: #34c3ee;
    --danger: #f46a6a;
    --page-bg: linear-gradient(180deg, #fff8ef 0%, #f6f8fb 55%, #eef3f9 100%);
    --page-glow-one: radial-gradient(circle, rgba(255, 196, 133, 0.40) 0%, rgba(255, 196, 133, 0.10) 55%, transparent 72%);
    --page-glow-two: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 72%);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
    --transition: .2s ease;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e1524;
    --text: #e7eefb;
    --muted: #9aa9c2;
    --line: rgba(148, 163, 184, 0.16);
    --surface: #121b2d;
    --surface-soft: #162033;
    --primary: #f6b24c;
    --primary-dark: #ffcf85;
    --primary-soft: rgba(246, 178, 76, 0.18);
    --cyan: #4cd0f3;
    --danger: #ff7f7f;
    --page-bg: linear-gradient(180deg, #0b1120 0%, #10192a 52%, #0d1726 100%);
    --page-glow-one: radial-gradient(circle, rgba(255, 191, 132, 0.12) 0%, rgba(255, 191, 132, 0.04) 55%, transparent 72%);
    --page-glow-two: radial-gradient(circle, rgba(246, 178, 76, 0.18) 0%, rgba(246, 178, 76, 0.06) 50%, transparent 72%);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Estedad", "Vazirmatn", sans-serif;
    background: var(--page-bg);
    color: var(--text);
    font-feature-settings: "ss01" 1, "cv01" 1;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    opacity: .6;
}

body::before {
    top: -140px;
    left: -120px;
    background: var(--page-glow-one);
}

body::after {
    right: -160px;
    bottom: -140px;
    background: var(--page-glow-two);
}

input,
textarea,
select,
button,
option,
optgroup {
    font-family: "Estedad", "Vazirmatn", sans-serif;
}

a { color: inherit; text-decoration: none; }

.marketing-shell,
.login-shell { min-height: 100vh; }

.marketing-topbar,
.marketing-main,
.login-stage { width: min(1280px, calc(100% - 36px)); margin: 0 auto; }

.marketing-topbar {
    padding: 28px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.marketing-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.marketing-nav a { padding: 11px 16px; border-radius: 12px; font-weight: 700; color: var(--muted); }
.nav-cta { background: var(--primary-soft); color: var(--primary); }

.brand {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    font-size: 17px;
}
.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-copy strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}
.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
}
.brand-copy .brand-english { color: var(--primary-dark); direction: ltr; letter-spacing: .08em; font-weight: 800; }
.brand-copy .brand-tagline {
    white-space: normal;
    word-break: break-word;
}
.smartlook-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.smartlook-brand-copy {
    gap: 2px;
    align-items: center;
    text-align: center;
}
.smartlook-brand .brand-mark-image {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
    border-radius: 20px;
}
.brand-clock {
    display: block;
    width: 100%;
    color: var(--text);
    font-size: 12px !important;
    font-weight: 800;
    margin-top: 4px;
    direction: rtl;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: nowrap;
}
.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 8px 10px 22px rgba(245,158,11,.22);
}
.brand-mark-image { background: transparent; box-shadow: none; padding: 0; overflow: hidden; }
.brand-mark-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-variant { padding: 46px 0 64px; }

.eyebrow, .page-kicker, .section-kicker, .eyebrow-dark {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}
.eyebrow, .page-kicker, .section-kicker { background: var(--primary-soft); color: var(--primary); }
.eyebrow-dark { background: rgba(255,255,255,.1); color: #eef3ff; }

.hero h1,
.page-header h1,
.login-hero-copy h1 {
    margin: 16px 0 14px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }

.hero p,
.panel-description,
.feature-card p,
.panel-card-text,
.login-hero-copy p,
.catalog-item p { color: var(--muted); line-height: 1.95; }

.button {
    border: 0;
    padding: 13px 20px;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.button-inline {
    width: auto;
    min-height: 44px;
}
.button-primary { background: linear-gradient(135deg, var(--primary), #ffbe55); color: #fff; }
.button-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.button-dark { background: rgba(255,255,255,.08); color: #fff; }
.button-block { width: 100%; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero-showcase { display: flex; justify-content: center; }
.showcase-card {
    width: 100%;
    max-width: 500px;
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(180deg, #1a233a 0%, #222d49 100%);
    box-shadow: 0 20px 50px rgba(18,38,63,.24);
    color: #fff;
}
.showcase-strip { width: 120px; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--cyan)); margin-bottom: 22px; }
.showcase-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.showcase-metrics div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.05); }
.showcase-metrics small { display: block; color: rgba(255,255,255,.66); margin-bottom: 10px; }
.showcase-metrics strong { font-size: 1.5rem; }
.showcase-bars { display: grid; gap: 12px; }
.showcase-bars span { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

.section-block { padding-top: 32px; }
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading span { color: var(--primary); font-weight: 700; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.feature-card, .metric-box, .crmx-card, .catalog-section, .list-card, .panel-card, .login-form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.feature-card { padding: 24px; border-radius: 22px; }

.login-shell { display: flex; align-items: center; padding: 32px 0; }
.login-stage { display: grid; grid-template-columns: 1fr 420px; gap: 24px; }
.login-hero-card {
    min-height: 540px;
    border-radius: 30px;
    padding: 34px;
    background: linear-gradient(180deg, #1a233a 0%, #222d49 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.login-form-card { border-radius: 30px; padding: 30px; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-weight: 700; }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fbfcff;
    font: inherit;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: rgba(245,158,11,.45);
    box-shadow: 0 0 0 4px rgba(245,158,11,.09);
}
.form-error, .field-error { color: #d63031; font-size: .9rem; font-weight: 700; }
.field-help { font-size: .84rem; color: var(--muted); }

/* Login panel adapted from the MedicalAutomation auth layout. */
.auth-page { min-height: 100vh; padding: 28px; background: var(--page-bg); display: grid; place-items: center; }
.auth-panel { width: min(1180px, 100%); min-height: min(680px, calc(100vh - 56px)); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: 0 24px 70px rgba(18, 38, 63, .14); }
.auth-copy { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px 48px 52px; color: #fff; background: linear-gradient(180deg, rgba(6, 25, 20, .08), rgba(6, 25, 20, .78)), url("../images/auth-sidebar.jpg") center / cover; }
.auth-copy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 118, 110, .2), transparent 48%); pointer-events: none; }
.auth-copy > * { position: relative; z-index: 1; }
.auth-brand-mark { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.auth-brand-mark img { width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.92); padding: 7px; }
.auth-brand-mark span { display: grid; gap: 2px; }
.auth-brand-mark strong { font-size: 20px; }
.auth-brand-mark small { color: rgba(255,255,255,.78); font-size: 11px; }
.auth-copy-content { max-width: 430px; }
.auth-copy-content h1 { margin: 16px 0 12px; font-family: "Estedad", "Vazirmatn", sans-serif; font-size: clamp(1.85rem, 3.25vw, 2.55rem); font-weight: 700; line-height: 1.35; letter-spacing: -.025em; white-space: nowrap; text-shadow: none; }
.auth-copy-content p { margin: 0; color: rgba(255,255,255,.9); line-height: 2; }
.auth-smartlook .auth-copy { background: linear-gradient(180deg, rgba(39, 27, 19, .02), rgba(39, 27, 19, .56)), url("../images/auth-sidebar.jpg") center / cover; }
.auth-smartlook .auth-copy::after { background: linear-gradient(135deg, rgba(245, 158, 11, .08), transparent 68%); }
.auth-smartlook .auth-copy { color: #3c2a20; }
.auth-smartlook .auth-brand-mark { color: #3c2a20; }
.auth-smartlook .auth-brand-mark small { color: #7b5b43; }
.auth-smartlook .auth-copy .eyebrow-dark { background: rgba(255, 255, 255, .72); color: #a85c08; box-shadow: 0 8px 20px rgba(122, 74, 25, .08); }
.auth-smartlook .auth-copy-content h1 { color: #3c2a20; text-shadow: none; }
.auth-smartlook .auth-copy-content p { color: #4f392c; font-size: .98rem; font-weight: 600; white-space: nowrap; text-shadow: none; }
.auth-smartlook .auth-form-wrap { background: linear-gradient(180deg, #fffdf9 0%, #fff7eb 100%); }
.auth-smartlook .auth-form-card { background: transparent; }
.auth-smartlook .auth-unified-card { border-color: rgba(245, 158, 11, .2); background: rgba(255, 251, 243, .88); }
.auth-form-wrap { display: grid; place-items: center; padding: 56px; }
.auth-form-card { width: min(500px, 100%); border: 0; box-shadow: none; }
.auth-form-card h2 { font-size: 1.8rem; }
.auth-form-card .form-tabs-nav { margin: 24px 0 4px; }
.auth-form-card .form-field input { background: var(--surface-soft); }
.auth-form-card .auth-form { margin-top: 20px; }
.auth-unified-card { padding: 18px; border: 1px solid rgba(15, 118, 110, .14); border-radius: var(--radius-xl); background: rgba(255,255,255,.72); box-shadow: inset 0 2px 12px rgba(18,38,63,.04); }
.auth-tab-switch { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 22px; padding: 6px; border-radius: 999px; background: rgba(15,118,110,.08); }
.auth-tab-switch .auth-tab,
.auth-tab-switch .section-link { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.auth-tab-switch .auth-tab.is-active,
.auth-tab-switch .section-link.section-link-active { background: rgba(255,255,255,.96); color: #0f766e; box-shadow: var(--shadow); }
.auth-pane { display: none; }
.auth-pane.is-active { display: block; }
.info-strip { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-size: .88rem; line-height: 1.8; }
@media (max-width: 820px) {
    .auth-page { padding: 14px; }
    .auth-panel { min-height: calc(100vh - 28px); grid-template-columns: 1fr; }
    .auth-copy { min-height: 260px; padding: 28px; }
    .auth-copy-content h1 { font-size: 2rem; }
    .auth-form-wrap { padding: 34px 24px 42px; }
}

/* Public advertising homepage */
.public-home { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; background-color: #fffaf3; background-image: linear-gradient(180deg, rgba(255,250,243,.04) 0%, rgba(255,255,255,.08) 55%, rgba(255,248,238,.06) 100%), url("../images/public-home-bg-clean.png"); background-position: center top; background-size: 100% 100%; background-repeat: no-repeat; color: #31251d; }
.public-home::before, .public-home::after { display: none; }
.public-home-nav, .public-home main { position: relative; z-index: 1; }
@media (max-width: 720px) { .public-home { background-attachment: scroll; } }
.public-home-nav { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.public-home-brand { display: inline-flex; align-items: center; gap: 12px; }
.public-home-brand img { width: 96px; height: 96px; padding: 0; border-radius: 18px; background: transparent; box-shadow: none; object-fit: contain; }
.public-home-brand span { display: grid; gap: 2px; }
.public-home-brand strong { color: #3c2a20; font-size: 1.18rem; }
.public-home-brand small { color: #9a7250; font-size: .72rem; }
.public-home-brand .public-home-phone { display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 100%; color: #a85c08; font-size: .86rem; line-height: 1.6; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.public-home-brand .public-home-phone b { font-size: .92rem; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.public-home-login { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid rgba(194, 107, 8, .22); border-radius: 12px; color: #a85c08; background: rgba(255,255,255,.72); font-weight: 700; transition: transform .2s ease, background .2s ease; }
.public-home-login img, .public-home-hero-link img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.public-home-login:hover { transform: translateY(-2px); background: #fff; }
.public-home-hero { position: relative; width: min(1240px, calc(100% - 48px)); min-height: 500px; margin: 2px auto 0; overflow: hidden; border-radius: 30px; background: #4a3020; box-shadow: 0 26px 65px rgba(97, 54, 18, .18); }
.public-home-slide { position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility .65s ease; }
.public-home-slide.is-active { opacity: 1; visibility: visible; }
.public-home-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.public-home-slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 20, 14, .72) 0%, rgba(31, 20, 14, .36) 42%, rgba(31, 20, 14, .08) 100%); }
.public-home-slide-content { position: relative; z-index: 1; max-width: 620px; padding: 58px 64px 64px; color: #fff; }
.public-home-kicker { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: #fff4e6; background: rgba(245,158,11,.24); font-size: .78rem; font-weight: 700; }
.public-home-slide-content h1 { margin: 16px 0 12px; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.35; letter-spacing: -.035em; }
.public-home-slide-content p { max-width: 520px; margin: 0 0 24px; color: rgba(255,255,255,.84); font-size: 1rem; line-height: 2; }
.public-home-hero-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #f59e0b, #c46b08); font-weight: 700; box-shadow: 0 12px 24px rgba(103, 53, 7, .24); }
.public-home-dots { position: absolute; z-index: 2; right: 64px; bottom: 26px; display: flex; gap: 7px; }
.public-home-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.46); cursor: pointer; transition: width .2s ease, background .2s ease; }
.public-home-dots button.is-active { width: 26px; background: #f59e0b; }
.public-home-slide-empty { background: radial-gradient(circle at 75% 22%, rgba(245,158,11,.36), transparent 35%), linear-gradient(135deg, #5a3721, #2f2119); }
.public-home-products { width: min(1240px, calc(100% - 48px)); margin: 48px auto 0; }
.public-product-slider { position: relative; min-height: 458px; }
.public-product-slide { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; opacity: 0; visibility: hidden; transform: perspective(1000px) rotateY(-7deg) translateY(10px); transition: opacity .65s ease, visibility .65s ease, transform .75s cubic-bezier(.2,.75,.25,1); }
.public-product-slide.is-active { opacity: 1; visibility: visible; transform: perspective(1000px) rotateY(0) translateY(0); }
.public-product-slide:has(.public-product-card:only-child) .public-product-card { grid-column: 1 / -1; }
.public-product-card { position: relative; min-width: 0; min-height: 220px; overflow: hidden; display: block; border: 1px solid rgba(194,107,8,.16); border-radius: 24px; background: #2f2119; box-shadow: 0 18px 38px rgba(101,59,20,.09); transition: transform .25s ease, box-shadow .25s ease; }
.public-product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(101,59,20,.15); }
.public-product-card-image { position: absolute; inset: 0; overflow: hidden; background: #2f2119; }
.public-product-card-image::after { content: ''; position: absolute; inset: 0; background: transparent; }
.public-product-card-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; transition: transform .6s ease; }
.public-product-card:hover .public-product-card-image img { transform: scale(1.07); }
.public-product-card-image span { position: absolute; z-index: 1; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.94); color: #a85c08; font-size: .74rem; font-weight: 800; box-shadow: 0 6px 14px rgba(101,59,20,.12); }
.public-product-card-copy { position: relative; z-index: 2; width: 48%; min-height: 220px; margin-inline-start: auto; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 26px; text-align: left; background: linear-gradient(90deg, rgba(31,20,14,.84) 0%, rgba(31,20,14,.5) 68%, rgba(31,20,14,0) 100%); }
.public-product-card-copy small { display: none !important; }
.public-product-card-copy h3 { margin: 0 0 8px; color: #fff; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.5; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.public-product-card-copy p { margin: 0; color: rgba(255,255,255,.86); line-height: 1.9; font-size: .9rem; }
.public-product-dots { position: absolute; right: 50%; bottom: -28px; display: flex; gap: 7px; transform: translateX(50%); }
.public-product-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #e3c59f; cursor: pointer; transition: width .2s ease, background .2s ease; }
.public-product-dots button.is-active { width: 26px; background: #c46b08; }
.product-detail-shell { width: min(1100px, calc(100% - 48px)); margin: 12px auto 90px; }
.product-detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); min-height: 360px; align-items: stretch; overflow: hidden; border-radius: 30px; background: #4a3020; box-shadow: 0 26px 65px rgba(97,54,18,.16); }
.product-detail-hero-image { min-height: 360px; height: 100%; }
.product-detail-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-hero-copy { display: flex; min-height: 360px; height: 100%; box-sizing: border-box; flex-direction: column; justify-content: center; padding: 52px; color: #fff; background: radial-gradient(circle at 20% 15%, rgba(245,158,11,.3), transparent 42%), linear-gradient(135deg,#5a3721,#2f2119); }
.product-detail-hero-copy h1 { margin: 18px 0 12px; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.35; }
.product-detail-hero-copy p { margin: 0; color: rgba(255,255,255,.84); line-height: 2; }
.product-detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 22px; margin-top: 26px; }
.product-description, .product-video-card { padding: 30px; border: 1px solid rgba(194,107,8,.14); border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: 0 14px 32px rgba(101,59,20,.07); }
.product-description { background: rgba(255, 249, 235, .68); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.product-detail-content > .product-description:only-child { grid-column: 1 / -1; min-height: 360px; }
.product-description h2 { margin: 10px 0 18px; color: #3c2a20; font-size: 1.5rem; }
.product-description-text { color: #705744; line-height: 2.2; white-space: pre-line; }
.product-description-text h2, .product-description-text h3 { margin: 0 0 12px; color: #3c2a20; }
.product-description-text p { margin: 0 0 12px; }
.product-description-text ul, .product-description-text ol { margin: 0 0 14px; padding-inline-start: 24px; }
.product-description-text a { color: #a85c08; text-decoration: underline; }
.rich-text-source { display: none !important; }
.rich-text-editor { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.rich-text-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.rich-text-toolbar button { min-height: 34px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.rich-text-toolbar select { min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.rich-text-toolbar button:hover { border-color: var(--primary); color: var(--primary-dark); }
.rich-text-content { min-height: 210px; padding: 14px 16px; outline: none; color: var(--text); line-height: 2; text-align: right; }
.rich-text-content:focus { box-shadow: inset 0 0 0 2px rgba(245,158,11,.18); }
.rich-text-content h3 { margin: 0 0 10px; color: var(--primary-dark); }
.rich-text-content p { margin: 0 0 10px; }
.rich-text-content ul, .rich-text-content ol { padding-inline-start: 24px; }
.album-gallery-admin { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.album-gallery-grid, .public-center-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.album-gallery-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.album-gallery-item img { display: block; width: 100%; height: 130px; object-fit: cover; }
.album-gallery-item form { padding: 8px; text-align: center; }
.album-reference-preview { display: block; width: 180px; height: 110px; margin-top: 8px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.album-current-reference { display: grid; gap: 8px; width: fit-content; color: var(--text); }
.album-current-reference img { display: block; width: 220px; height: 130px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.public-center-shell { width: min(1120px, calc(100% - 48px)); margin: 20px auto 70px; }
.public-center-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); min-height: 330px; overflow: hidden; border-radius: 28px; background: #4a3020; box-shadow: 0 24px 55px rgba(97,54,18,.14); }
.public-center-hero > img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.public-center-hero > div { display: flex; flex-direction: column; justify-content: center; padding: 40px; color: #fff; background: linear-gradient(135deg,#5a3721,#2f2119); }
.public-center-hero h1 { margin: 18px 0 10px; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.public-center-hero p { margin: 0; color: rgba(255,255,255,.82); }
.public-center-description { margin-top: 22px; padding: 26px; border: 1px solid rgba(194,107,8,.14); border-radius: 22px; background: rgba(255,249,235,.68); color: #705744; line-height: 2.1; }
.public-center-gallery { margin-top: 32px; }
.public-center-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-center-gallery-grid figure { margin: 0; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: 0 12px 26px rgba(101,59,20,.07); }
.public-center-gallery-grid img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .3s ease; }
.public-center-gallery-grid figure:hover img { transform: scale(1.04); }
.public-center-gallery-grid figcaption { padding: 10px 13px; color: #705744; font-size: .82rem; }
.public-center-gallery-grid figure a { display: block; cursor: zoom-in; }
.public-gallery-lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 34px; background: rgba(22,14,10,.86); backdrop-filter: blur(8px); }
.public-gallery-lightbox[hidden] { display: none; }
.public-gallery-lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 16px; object-fit: contain; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.public-gallery-lightbox button { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #3c2a20; font-size: 28px; line-height: 1; cursor: pointer; }
.gallery-lightbox-open { overflow: hidden; }
.ck-editor { grid-column: 1 / -1; width: 100%; direction: rtl; }
.ck-editor__editable { min-height: 210px; color: var(--text); line-height: 1.9; }
.ck.ck-toolbar { border-color: var(--line) !important; background: var(--surface-soft) !important; }
.ck.ck-editor__main > .ck-editor__editable { border-color: var(--line) !important; background: var(--surface) !important; }
.ck.ck-button, .ck.ck-button:not(.ck-disabled):hover { color: var(--text); }
.catalog-section:has(.ck-editor) .catalog-section-head { padding: 16px 20px; }
.catalog-section:has(.ck-editor) .catalog-section-body-single { padding: 18px 20px; }
.catalog-section:has(.ck-editor) .catalog-form { gap: 10px; }
.catalog-section:has(.ck-editor) .ui-field { gap: 5px; }
.catalog-section:has(.ck-editor) .ui-field input,
.catalog-section:has(.ck-editor) .ui-field textarea,
.catalog-section:has(.ck-editor) .ui-field select { padding: 10px 12px; border-radius: 10px; }
.catalog-section:has(.ck-editor) .help-text { margin-top: -2px; font-size: .78rem; line-height: 1.6; }
.catalog-section:has(.ck-editor) .form-actions { margin-top: 2px; }
.product-video-card { display: flex; flex-direction: column; gap: 16px; }
.product-video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #241a14; }
.product-video-frame iframe { width: 100%; height: 100%; border: 0; }
.product-video-player { width: 100%; max-height: 360px; border-radius: 16px; background: #241a14; }
.product-video-link { align-self: flex-start; }
.table-subtitle { display: block; margin-top: 4px; color: var(--muted); direction: ltr; text-align: right; font-size: .75rem; }
.public-home-partners { width: min(1240px, calc(100% - 48px)); margin: 74px auto 90px; }
.public-home-section-head { margin-bottom: 24px; text-align: center; }
.public-home-section-head span { color: #c46b08; font-size: .82rem; font-weight: 800; }
.public-home-section-head h2 { margin: 7px 0 0; color: #3c2a20; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.public-home-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.public-home-partners { display: flex; flex-direction: column; }
.public-home-partners .public-home-section-head { order: 1; }
.public-home-partners .public-home-marquee { order: 2; }
.public-home-partners .public-home-partners-help { order: 3; }
.public-home-partners-help { margin: 28px 0 0; color: #8a6245; font-size: .82rem; line-height: 1.8; text-align: center; }
.academy-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.academy-admin-card { padding: 22px; }
.academy-admin-card .list-head { margin-bottom: 16px; }
.academy-library-card { padding: 22px; }
.academy-category-links { display: flex; gap: 8px; flex-wrap: wrap; }
.academy-category-links a { padding: 7px 12px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: .8rem; }
.academy-category-links a.is-active { color: var(--primary-dark); background: var(--primary-soft); font-weight: 700; }
.academy-library-title { min-width: 0; }
.academy-library-title-copy { display: grid; gap: 4px; }
.academy-library-kicker-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.academy-library-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; min-width: 118px; }
.academy-library-head-actions .button { width: 100%; box-sizing: border-box; text-align: center; }
.academy-video-list { display: grid; gap: 10px; }
.academy-video-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border: 1px solid rgba(148, 163, 184, .24); border-radius: 16px; background: linear-gradient(135deg, #fff 0%, #fbfcfe 100%); box-shadow: 0 5px 16px rgba(30, 58, 95, .045); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.academy-video-row:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, .28); box-shadow: 0 10px 24px rgba(30, 58, 95, .10); }
.academy-video-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 11px; background: linear-gradient(135deg, #172033, #334155); box-shadow: 0 4px 12px rgba(15, 23, 42, .14); }
.academy-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.academy-video-thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.72); font-size: 2rem; }
.academy-video-thumb-play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; color: #fff; background: rgba(194,107,8,.9); font-size: .8rem; }
.academy-video-row-main { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; color: inherit; text-decoration: none; }
.academy-video-row-main:hover h3 { color: var(--primary-dark); }
.academy-watermark { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 5px; color: rgba(255,255,255,.78); background: rgba(0,0,0,.36); font-size: .68rem; pointer-events: none; user-select: none; }
.academy-video-meta { display: flex; justify-content: flex-start; gap: 10px; color: #64748b; font-size: .74rem; }
.academy-video-meta span { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; color: #1d4ed8; background: #eff6ff; font-size: .72rem; font-weight: 800; }
.academy-video-row-main h3 { margin: 8px 0 0; color: #1e293b; font-size: 1.04rem; font-weight: 850; line-height: 1.7; }
.academy-video-row-main p { margin: 8px 0 0; color: #64748b; font-size: .82rem; line-height: 1.8; }
.academy-video-published { margin: 4px 0 0 !important; color: #94a3b8 !important; font-size: .72rem !important; font-weight: 600; }
.academy-video-view-count { margin-top: 10px !important; color: #0f766e !important; font-size: .78rem !important; font-weight: 750; }
.academy-video-rating { margin: 5px 0 0 !important; color: #b45309 !important; font-size: .78rem !important; font-weight: 800; }
.academy-video-rating-empty { color: var(--muted) !important; font-weight: 600; }
.academy-video-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; min-width: 118px; padding: 0 4px; }
.academy-video-actions .button, .academy-video-actions .table-action-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: .72rem; font-weight: 800; white-space: nowrap; text-align: center; }
.academy-video-actions .button { width: 100%; }
.academy-video-actions .academy-edit-button { border-color: rgba(37, 99, 235, .25); background: #eff6ff; color: #1d4ed8; }
.academy-video-actions .academy-edit-button:hover { border-color: rgba(37, 99, 235, .45); background: #dbeafe; color: #1e40af; }
.academy-video-actions .academy-sms-button { border-color: rgba(5, 150, 105, .25); background: #ecfdf5; color: #047857; }
.academy-video-actions .academy-sms-button:hover { border-color: rgba(5, 150, 105, .45); background: #d1fae5; color: #065f46; }
.academy-video-actions .table-action-link { width: 100%; border: 1px solid rgba(185, 28, 28, .18); background: rgba(254, 242, 242, .7); color: #b91c1c; }
.academy-video-actions .table-action-link:hover { border-color: rgba(185, 28, 28, .38); background: #fef2f2; }
.academy-access-editor { margin: 0 18px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.academy-access-editor summary { cursor: pointer; color: var(--primary); font-size: .8rem; font-weight: 700; }
.academy-access-editor .catalog-form { margin-top: 12px; }
.academy-delete-form { width: 100%; margin: 0; text-align: left; }
.academy-share-sms-form { width: 100%; margin: 0; }
.academy-access-page .panel-description { margin-bottom: 20px; }
.academy-access-form { max-width: 760px; }
.academy-video-detail-page { padding: 22px; }
.academy-detail-player { position: relative; width: min(900px, 100%); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #171717; }
.academy-detail-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.academy-detail-copy { width: min(900px, 100%); margin: 16px auto 0; }
.academy-detail-copy p { margin: 10px 0 0; color: var(--muted); line-height: 1.9; }
.academy-detail-actions { display: flex; justify-content: flex-start; gap: 10px; width: min(900px, 100%); margin: 18px auto 0; }
.academy-feedback-box, .academy-video-edit-page { margin-top: 18px; padding: 22px; }
.academy-feedback-box { width: min(900px, 100%); margin-inline: auto; border-top: 1px solid var(--line); }
.academy-feedback-box h3 { margin: 0 0 14px; }
.academy-feedback-form { display: grid; gap: 12px; }
.academy-rating-options { display: flex; direction: ltr; gap: 7px; margin-top: 6px; }
.academy-rating-option { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 58px; padding: 2px; border: 0; background: transparent; cursor: pointer; text-decoration: none; transition: .18s ease; }
.academy-rating-option input { position: absolute; opacity: 0; pointer-events: none; }
.academy-rating-option span { filter: grayscale(1); opacity: .45; font-size: 1.25rem; line-height: 1; }
.academy-rating-option em { color: var(--muted); font-size: .68rem; font-style: normal; white-space: nowrap; }
.academy-rating-option:hover, .academy-rating-option:has(input:checked) { background: transparent; }
.academy-rating-option:has(input:checked) span { filter: none; opacity: 1; }
.academy-rating-option:has(input:checked) em { color: var(--primary-dark); font-weight: 800; }
.academy-rating-hint { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.academy-video-edit-form { max-width: 820px; }
.academy-category-manager { margin-top: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.academy-category-manager summary { cursor: pointer; color: var(--primary-dark); font-weight: 800; }
.academy-category-manager .catalog-form { max-width: 820px; margin-top: 16px; }
@media (max-width: 900px) { .academy-video-row { grid-template-columns: 140px minmax(0, 1fr); } .academy-video-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; min-width: 0; } .academy-video-actions .button, .academy-video-actions .table-action-link, .academy-delete-form { width: auto; } }
@media (max-width: 700px) { .academy-admin-grid { grid-template-columns: 1fr; } .academy-video-row { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; } .academy-library-card, .academy-admin-card, .academy-video-detail-page { padding: 16px; } }
.public-home-marquee-track { display: flex; width: max-content; gap: 16px; animation: public-home-marquee 34s linear infinite; }
.public-home-marquee:hover .public-home-marquee-track { animation-play-state: paused; }
.public-home-logo { width: 190px; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; border: 1px solid rgba(194,107,8,.14); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 12px 28px rgba(101, 59, 20, .07); }
.public-home-analytics { width: min(1120px, calc(100% - 48px)); margin: 36px auto 46px; padding-top: 22px; border-top: 1px solid rgba(168,92,8,.24); }
.public-home-analytics-card { width: 50%; margin-left: 0; margin-right: auto; display: grid; grid-template-columns: minmax(135px, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: stretch; padding: 16px; border: 1px solid rgba(194,107,8,.14); border-radius: 20px; background: rgba(255,255,255,.28); box-shadow: 0 12px 26px rgba(101,59,20,.06); backdrop-filter: blur(12px); }
.public-home-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.public-home-bottom-grid > .public-home-analytics-card, .public-home-bottom-grid > .public-home-contact-card { align-self: stretch; }
.public-home-bottom-grid .public-home-analytics-card { width: 100%; margin: 0; }
.public-home-bottom-grid .public-home-analytics-card { order: 2; }
.public-home-contact-card { order: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 11px 15px; border: 1px solid rgba(194,107,8,.14); border-radius: 20px; background: rgba(255,249,235,.54); box-shadow: 0 12px 26px rgba(101,59,20,.06); backdrop-filter: blur(12px); }
.public-home-contact-kicker { color: #a85c08; font-size: .8rem; font-weight: 800; }
.public-home-contact-card h3 { margin: 0 0 2px; color: #3c2a20; font-size: 1.35rem; }
.public-home-contact-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 5px; border-top: 1px solid rgba(194,107,8,.12); color: #705744; font-size: .94rem; font-weight: 700; }
.public-home-contact-item b { flex: 0 0 auto; color: #8a6245; font-size: .92rem; font-weight: 900; }
.public-home-contact-item a { color: #a85c08; direction: ltr; text-align: left; font-weight: 900; }
.public-home-analytics-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.public-home-analytics-summary > div { display: flex; flex-direction: column; justify-content: center; min-height: 86px; padding: 10px 12px; border-radius: 14px; background: rgba(255,249,235,.62); }
.public-home-analytics-summary small { color: #8a6245; font-weight: 800; }
.public-home-analytics-summary strong { margin: 5px 0 2px; color: #3c2a20; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1; }
.public-home-analytics-summary span { color: #a47b5a; font-size: .78rem; }
.public-home-analytics-chart { display: grid; grid-template-columns: repeat(7, minmax(18px, 1fr)); align-items: end; gap: 6px; min-height: 104px; padding: 6px 4px 0; border-bottom: 1px solid rgba(194,107,8,.18); }
.public-home-analytics-bar { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.public-home-analytics-bar i { width: min(30px, 70%); min-height: 4px; border-radius: 10px 10px 3px 3px; background: linear-gradient(180deg, #f6b24c, #a85c08); box-shadow: 0 8px 18px rgba(168,92,8,.18); }
.public-home-analytics-value { color: #7b5b43; font-size: .75rem; font-weight: 800; }
.public-home-analytics-bar small { color: #8a6245; font-size: .72rem; direction: ltr; }
.public-home-logo img { width: 54px; height: 54px; object-fit: contain; border-radius: 13px; }
.public-home-logo span { overflow: hidden; width: 100%; color: #6d5140; font-size: .78rem; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.home-settings-list { margin-top: 18px; }
.sms-template-groups { display: grid; gap: 18px; }
.sms-template-group-card { overflow: hidden; }
.sms-template-group-card .list-head { align-items: center; }
.sms-template-preview { max-width: 520px; color: var(--muted); line-height: 1.9; white-space: pre-line; }
.sms-template-group-card code { direction: ltr; display: inline-block; margin: 0 2px; padding: 2px 6px; border-radius: 6px; background: var(--surface-soft); color: var(--primary-dark); }
.home-settings-thumb { width: 92px; height: 52px; display: block; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-soft); }
.home-logo-thumb { width: 54px; height: 54px; object-fit: contain; }
.home-settings-list td { vertical-align: middle; }
.home-settings-list td:last-child { display: table-cell; vertical-align: middle; white-space: nowrap; }
.home-settings-list td:last-child .inline-form { display: inline-flex; align-items: center; vertical-align: middle; margin: 0 0 0 8px; }
.home-settings-list td:last-child .table-action-link { width: 76px; min-width: 76px; height: 36px; min-height: 36px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; box-sizing: border-box; }
.home-settings-list td:last-child .table-action-link + .table-action-link { margin-right: 8px; }
.home-settings-list td:last-child .inline-form { margin-right: 8px; }
.home-settings-list .table-action-link-muted { background: #eef1f5; color: #98a1ae; cursor: not-allowed; opacity: .9; }
.home-settings-list .table-action-link-status { background: #fff4df; color: #b66b08; }
.home-settings-list .table-action-link-status.is-active { background: #e8f7ee; color: #187a43; }
.home-settings-list td:last-child { min-width: 300px; }
.home-settings-list td:last-child form:has(input[name="toggle_id"]) { display: inline-flex; align-items: center; margin: 0 8px 0 0; }
@keyframes public-home-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .public-home-marquee-track { animation: none; } }
@media (max-width: 720px) {
    .public-home-nav, .public-home-hero, .public-home-partners { width: min(100% - 28px, 1240px); }
    .public-home-nav { align-items: flex-start; flex-direction: column; }
    .public-home-hero { min-height: 390px; border-radius: 22px; }
    .public-home-slide-content { padding: 34px 26px 52px; }
    .public-home-slide-content h1 { font-size: 2rem; }
    .public-home-dots { right: 26px; }
    .public-home-partners { margin-top: 52px; }
    .public-home-analytics { width: calc(100% - 28px); margin: 46px auto; }
    .public-home-analytics-card { width: 100%; grid-template-columns: 1fr; }
    .public-home-analytics-card { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
    .public-home-bottom-grid { grid-template-columns: 1fr; }
    .public-home-analytics-chart { gap: 7px; min-height: 130px; }
    .album-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-center-shell { width: min(100% - 28px, 1120px); }
    .public-center-hero { grid-template-columns: 1fr; }
    .public-center-hero > img { min-height: 220px; height: 220px; }
    .public-center-hero > div { min-height: 220px; padding: 28px 24px; }
    .public-center-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-home-products { width: min(100% - 28px, 1240px); margin-top: 52px; }
    .public-product-slider { min-height: 760px; }
    .public-product-slide { grid-template-columns: 1fr; gap: 14px; }
    .public-product-card { min-height: 180px; }
    .public-product-card-image { min-height: 0; }
    .public-product-card-copy { width: 72%; min-height: 180px; padding: 18px; }
    .product-detail-shell { width: min(100% - 28px, 1100px); }
    .product-detail-hero, .product-detail-content { grid-template-columns: 1fr; }
    .product-detail-hero-image { min-height: 240px; height: 240px; }
    .product-detail-hero-copy { min-height: 240px; height: 240px; padding: 34px 26px; }
}
@media (max-width: 820px) {
    .auth-copy-content h1 { white-space: normal; }
    .auth-smartlook .auth-copy-content p { white-space: normal; }
}
.help-text { font-size: .84rem; color: var(--muted); line-height: 1.8; }
.help-text ul,
.help-text ol {
    margin: 6px 0 0;
    padding-right: 18px;
    padding-left: 0;
    list-style: disc;
    display: block;
}
.help-text li {
    margin: 0 0 4px;
    padding: 0;
    background: transparent;
    border: 0;
    display: list-item;
    color: var(--muted);
    font-weight: 500;
}

.ui-form-grid {
    gap: 18px;
}

.ui-field {
    display: grid;
    gap: 8px;
}

.ui-field > label {
    font-weight: 800;
    color: #34425b;
}

.ui-field input,
.ui-field textarea,
.ui-field select {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fbfcff;
    color: #2f3a4f;
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.ui-field input[type="time"] {
    min-height: 52px;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.ui-field input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
}

.ui-field input[type="time"]::-webkit-datetime-edit {
    padding: 0;
}

.ui-field textarea {
    min-height: 104px;
    resize: vertical;
}

.ui-field input:focus,
.ui-field textarea:focus,
.ui-field select:focus {
    outline: none;
    border-color: rgba(245,158,11,.45);
    box-shadow: 0 0 0 4px rgba(245,158,11,.09);
    background: #fff;
}

.custom-select {
    position: relative;
}

.custom-select-native {
    position: absolute !important;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select-trigger {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcff;
    color: var(--text);
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
    border-color: rgba(245,158,11,.45);
    box-shadow: 0 0 0 4px rgba(245,158,11,.09);
    background: #fff;
}

.custom-select-trigger.is-placeholder,
.custom-select-trigger.is-placeholder .custom-select-trigger-label {
    color: var(--muted);
}

.custom-select-trigger-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-select-arrow {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.8rem;
    transition: transform var(--transition);
}

.custom-select.is-open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 50;
    display: none;
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: #2f3a4f;
    box-shadow: 0 18px 36px rgba(18, 38, 63, 0.14);
}

.custom-select.is-open .custom-select-menu {
    display: grid;
    gap: 6px;
}

.custom-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #2f3a4f;
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    outline: none;
    background: #eef3ff;
    color: #2f3a4f;
}

.custom-select-option.is-selected {
    background: linear-gradient(135deg, var(--primary-soft), rgba(52,195,238,.14));
    color: var(--primary-dark);
    font-weight: 800;
}

.custom-select-option:disabled {
    opacity: 0.55;
    cursor: default;
}

.ui-field ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid var(--line);
    cursor: pointer;
}

.checkbox-card span {
    font-weight: 700;
    color: #34425b;
}

.checkbox-card-single {
    min-height: 52px;
}

.ui-field-label {
    font-weight: 800;
    color: #34425b;
}

.ui-field ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid var(--line);
}

.ui-field .help-text ul,
.ui-field .help-text ol {
    display: block;
    list-style: disc;
    padding-right: 18px;
}

.ui-field .help-text li {
    display: list-item;
    padding: 0;
    background: transparent;
    border: 0;
    margin: 0 0 4px;
}

.ui-field ul li label {
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}

.ui-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.ui-field-boolean {
    gap: 8px;
}

.field-check .errorlist,
.ui-field .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #d63031;
    font-size: .9rem;
    font-weight: 700;
}

.file-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 42px;
    padding: 5px 8px;
    border: 1px dashed rgba(245,158,11,.28);
    border-radius: 10px;
    background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
}

.clearable-file-current {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 180px;
    min-width: 0;
    color: var(--muted);
    font-size: .78rem;
}
.clearable-file-current:empty { display: none; }
.clearable-file-current a {
    min-width: 0;
    overflow: hidden;
    color: var(--primary-dark);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.clearable-file-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 32px;
}
.clearable-file-actions input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.clearable-file-actions input[type="checkbox"] {
    position: static;
    inset: auto;
    width: 18px;
    height: 18px;
    opacity: 1;
    cursor: pointer;
    z-index: 3;
    accent-color: var(--primary);
}
.clearable-file-actions label {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(214, 48, 49, .08);
    color: #b4232a;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}
.clearable-file-actions .file-input-button { cursor: pointer; }
.clearable-file-clear {
    background: rgba(214, 48, 49, .08) !important;
    color: #b4232a !important;
}

.file-input-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #eef3ff;
    color: var(--primary-dark);
    font-weight: 800;
}

.file-input-name {
    color: var(--muted);
    max-width: 180px;
    overflow: hidden;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-field {
    gap: 12px;
}

.location-picker {
    display: grid;
    gap: 12px;
}

.location-map {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}

.location-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.location-toolbar small {
    color: var(--muted);
}

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.app-shell {
    width: min(1540px, calc(100% - 36px));
    min-height: calc(100vh - 36px);
    margin: 18px auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    box-shadow: 18px 20px 45px rgba(72,86,120,.10), -10px -10px 30px rgba(255,255,255,.52);
}

.sidebar {
    min-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    background:
        radial-gradient(circle at top, rgba(245,158,11,.10), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,244,238,.96));
    border-left: 1px solid var(--line);
}

.side-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 48px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
    padding: 10px 13px;
    border-radius: var(--radius-md);
    color: #3c2a20;
    transition: var(--transition);
}
.side-nav-group {
    margin-top: 10px;
    padding-top: 10px;
}
.side-nav-group-top {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.side-nav-group-title {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px 8px;
    color: var(--primary-dark);
    font-weight: 800;
}
.side-nav-group-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: right;
}
.side-nav-group-toggle-copy {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.side-nav-group-caret {
    margin-right: auto;
    color: var(--muted);
    transition: transform var(--transition);
}
.side-nav-group.is-collapsed .side-nav-group-caret {
    transform: rotate(-90deg);
}
.side-nav-group-body {
    display: grid;
    gap: 7px;
}
.side-nav-group.is-collapsed .side-nav-group-body {
    display: none;
}
.side-nav-subitem {
    margin-right: 0;
    font-size: 0.95rem;
}
.side-nav-subitem-icon {
    position: relative;
}
.side-nav-group-body > a {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 13px;
    border-radius: var(--radius-md);
    color: #3c2a20;
    transition: var(--transition);
}
.side-nav-group-body > a .nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    position: static;
    margin: 0;
    transform: none;
}
.side-nav a:hover,
.side-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #ffbe55);
    box-shadow: 0 8px 18px rgba(245,158,11,.2);
    transform: translateX(-3px);
}
.side-nav-subitem-icon:hover,
.side-nav-subitem-icon.active {
    transform: none;
}

.nav-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition), stroke-width var(--transition);
}
.side-nav a:hover .nav-icon,
.side-nav a.active .nav-icon { transform: scale(1.08); stroke-width: 2; }
.side-nav-subitem-icon:hover .nav-icon,
.side-nav-subitem-icon.active .nav-icon {
    transform: none;
    stroke-width: 1.75;
}

.side-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.side-profile > div:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.side-profile strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.side-profile small { color: var(--muted); font-size: 10px; }
.side-profile-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.icon-button-logout {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.icon-button-logout:hover {
    color: #fff;
    background: var(--primary-dark);
}
.avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
}
.user-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
}
.user-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.user-avatar-sm { width: 68px; height: 68px; }
.user-avatar-md { width: 42px; height: 42px; }
.user-avatar-lg { width: 82px; height: 82px; }
.user-identity-cell { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; text-align: center; }
.user-identity-cell > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar-upload { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft, #f8fafc); }
.profile-avatar-upload strong { display: block; margin-bottom: 4px; }
.profile-avatar-upload p { margin: 0; color: var(--muted); font-size: .88rem; }
.profile-contact-settings { margin-top: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft, #f8fafc); }
.profile-contact-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.profile-contact-settings-head h3 { margin: 4px 0 0; }
.profile-contact-settings-head p { max-width: 520px; margin: 4px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.profile-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-contact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; min-width: 0; }
.profile-contact-row > div { min-width: 0; }
.profile-contact-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #34425b; font-size: .84rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.profile-contact-toggle input { width: 17px; height: 17px; margin: 0; accent-color: #d97706; }
.profile-form-actions { justify-content: flex-start; margin-top: 2px; }
@media (max-width: 700px) { .profile-contact-settings-head { flex-direction: column; } .profile-contact-fields { grid-template-columns: 1fr; } }
.icon-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    transition: var(--transition);
}
.icon-button:hover { color: var(--danger); background: rgba(244,106,106,.1); }
.icon-button .nav-icon { width: 19px; height: 19px; }

.main-content {
    min-width: 0;
    padding: 38px 42px 60px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 30%),
        linear-gradient(180deg, rgba(251,248,244,.98) 0%, rgba(243,247,251,.98) 52%, rgba(238,243,249,.99) 100%);
}

/* Preview the exact landing-page artwork behind the authenticated panel. */
.app-body {
    background-color: #fffaf3;
    background-image: url("../images/public-home-bg-clean.png");
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.app-body .smartlook-shell {
    background: rgba(255, 255, 255, .06);
}

.app-body .smartlook-sidebar {
    background:
        radial-gradient(circle at top, rgba(245, 158, 11, .14), transparent 32%),
        rgba(255, 255, 255, .05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.app-body .main-content {
    background:
        linear-gradient(180deg, rgba(255, 250, 243, .12) 0%, rgba(247, 250, 252, .18) 52%, rgba(238, 243, 249, .24) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(245,158,11,.18);
}
.theme-toggle-dashboard {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    width: fit-content;
}
.theme-toggle-inline {
    margin: 0 0 10px;
}
.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 15px;
    line-height: 1;
}

html[data-theme="dark"] .app-shell {
    background: rgba(13, 20, 35, 0.76);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 18px 20px 45px rgba(0, 0, 0, 0.38), -10px -10px 30px rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .sidebar {
    background:
        radial-gradient(circle at top, rgba(246, 178, 76, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(15, 22, 35, 0.98), rgba(11, 18, 30, 0.98));
    border-left-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .main-content {
    background:
        radial-gradient(circle at top right, rgba(246, 178, 76, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(11, 18, 30, 0.99) 0%, rgba(13, 21, 35, 0.99) 52%, rgba(15, 24, 39, 1) 100%);
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .metric-box:not(.metric-box-primary):not(.metric-box-cyan):not(.metric-box-dark),
html[data-theme="dark"] .crmx-card,
html[data-theme="dark"] .catalog-section,
html[data-theme="dark"] .list-card,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .login-form-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .shortcut-card,
html[data-theme="dark"] .dashboard-panel-card,
html[data-theme="dark"] .dashboard-ring-card,
html[data-theme="dark"] .dashboard-bar-card,
html[data-theme="dark"] .date-filter-bar,
html[data-theme="dark"] .dashboard-empty-state,
html[data-theme="dark"] .showcase-card,
html[data-theme="dark"] .login-hero-card {
    background: linear-gradient(180deg, rgba(17, 25, 40, 0.98), rgba(12, 18, 31, 0.98));
    border-color: var(--line);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .panel-description,
html[data-theme="dark"] .panel-card-text,
html[data-theme="dark"] .catalog-item p,
html[data-theme="dark"] .login-hero-copy p,
html[data-theme="dark"] .dashboard-tabs-head p,
html[data-theme="dark"] .dashboard-ring-copy small,
html[data-theme="dark"] .dashboard-bar-meta-copy small,
html[data-theme="dark"] .dashboard-bar-card small,
html[data-theme="dark"] .summary-card span,
html[data-theme="dark"] .today,
html[data-theme="dark"] .side-nav a,
html[data-theme="dark"] .side-nav-group-title,
html[data-theme="dark"] .side-nav-group-body > a {
    color: var(--muted);
}

html[data-theme="dark"] .button-ghost,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .custom-select-trigger,
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .date-filter-bar,
html[data-theme="dark"] .page-header .today,
html[data-theme="dark"] .section-link {
    background: rgba(18, 27, 45, 0.96);
    border-color: rgba(148, 163, 184, 0.16);
    color: var(--text);
}

html[data-theme="dark"] .theme-toggle-icon {
    background: rgba(246, 178, 76, 0.16);
    color: var(--primary);
}

html[data-theme="dark"] .side-nav-group {
    border-top-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .side-profile {
    background: linear-gradient(180deg, rgba(18, 27, 45, 0.96), rgba(12, 18, 31, 0.98));
    border-color: rgba(148, 163, 184, 0.14);
}
html[data-theme="dark"] .icon-button-logout {
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary);
}
html[data-theme="dark"] .icon-button-logout:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fff;
}
.page-header, .dashboard-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.page-header { margin-bottom: 14px; }
.page-header h1 { margin: 8px 0 6px; font-size: clamp(27px, 3vw, 35px); }
.today {
    padding: 7px 13px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--muted);
}
.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(245,158,11,.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(245,158,11,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,255,.96));
    box-shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
    overflow: hidden;
}
.dashboard-hero::before,
.dashboard-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}
.dashboard-hero::before {
    inset: auto -30px -50px auto;
    width: 160px;
    height: 160px;
    background: rgba(245,158,11,.08);
}
.dashboard-hero::after {
    inset: 18px auto auto 22px;
    width: 84px;
    height: 84px;
    background: rgba(52,195,238,.12);
    filter: blur(10px);
}
.dashboard-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 12px;
}
.dashboard-hero-copy h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
}
.dashboard-hero-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    max-width: 58ch;
}
.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.dashboard-hero-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(43,54,87,.96), rgba(34,45,73,.98));
    color: #fff;
    box-shadow: 0 18px 40px rgba(18, 38, 63, 0.18);
}
.dashboard-hero-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.dashboard-hero-panel-head span {
    color: rgba(255,255,255,.72);
    font-weight: 700;
}
.dashboard-hero-panel-head strong {
    font-size: 0.98rem;
}
.dashboard-hero-stat-list {
    display: grid;
    gap: 10px;
}
.dashboard-hero-stat-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.dashboard-hero-stat-list small {
    color: rgba(255,255,255,.68);
    font-weight: 700;
}
.dashboard-hero-stat-list strong {
    font-size: 1.35rem;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.metric-strip-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}
.metric-strip-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-strip-single { grid-template-columns: minmax(260px, 340px); }
.metric-box {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 16px 18px;
}
.metric-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(245,158,11,.8), rgba(255,190,85,.85));
}
.metric-box-copy span { display: block; color: var(--muted); margin-bottom: 8px; font-weight: 700; font-size: .92rem; }
.metric-box-copy strong { display: block; font-size: 1.65rem; margin-bottom: 6px; letter-spacing: -0.03em; }
.metric-box-copy small { color: var(--muted); }
.metric-box-primary { background: linear-gradient(135deg, var(--primary) 0%, #ffbe55 100%); color: #fff; }
.metric-box-cyan { background: linear-gradient(135deg, var(--cyan) 0%, #6fdbff 100%); color: #fff; }
.metric-box-dark { background: linear-gradient(135deg, #2b3657 0%, #3a476a 100%); color: #fff; }
.metric-box-primary::before,
.metric-box-cyan::before,
.metric-box-dark::before {
    background: rgba(255,255,255,.18);
}
.metric-box-primary .metric-box-copy span,
.metric-box-primary .metric-box-copy small,
.metric-box-cyan .metric-box-copy span,
.metric-box-cyan .metric-box-copy small,
.metric-box-dark .metric-box-copy span,
.metric-box-dark .metric-box-copy small { color: rgba(255,255,255,.78); }
.metric-box-lite { background: linear-gradient(180deg, #fff 0%, #fafcff 100%); }
.metric-box-lite::before { background: linear-gradient(180deg, rgba(245,158,11,.55), rgba(255,190,85,.72)); }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 12px;
}
.dashboard-grid-main {
    grid-template-columns: minmax(0, 1fr);
}
.smartlook-page-header + .dashboard-grid-main {
    margin-top: -10px;
}
.dashboard-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-grid-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.daily-activity-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.expense-summary-grid {
    grid-template-columns: minmax(0, 1fr);
}
.summary-card {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface);
}
.summary-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-weight: 700;
}
.summary-card strong {
    display: block;
    font-size: 1.85rem;
    letter-spacing: -0.03em;
}
.summary-card-muted {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.crmx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.crmx-card { border-radius: 20px; padding: 22px; }
.crmx-card-span-2 { grid-column: span 2; }
.crmx-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.crmx-card-head h2, .catalog-section-head h2, .list-head h2 { margin: 10px 0 0; font-size: 1.15rem; font-weight: 700; }

.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.overview-grid-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-stat {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(245,158,11,.08);
}
.overview-stat small { display: block; color: var(--muted); margin-bottom: 10px; }
.overview-stat strong { font-size: 1.6rem; }

.overview-bars, .workflow-stack, .shortcut-grid, .catalog-sections, .catalog-workspace, .message-stack { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 8px; }
.bar-row span { color: var(--muted); font-weight: 700; }
.bar-row div { height: 12px; border-radius: 999px; background: #edf2f9; overflow: hidden; }
.bar-row i { height: 100%; display: block; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

.workflow-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
}
.workflow-item b {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}

.dashboard-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.dashboard-quick-link {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.dashboard-quick-link:hover {
    transform: translateY(-2px);
    border-color: rgba(245,158,11,.22);
    box-shadow: 0 14px 32px rgba(18, 38, 63, 0.11);
}
.dashboard-quick-link span {
    font-weight: 800;
    color: #34425b;
}
.dashboard-quick-link small {
    color: var(--muted);
    line-height: 1.6;
}
.dashboard-quick-link-primary {
    background: linear-gradient(135deg, var(--primary), #ffbe55);
    border-color: transparent;
}
.dashboard-quick-link-primary span,
.dashboard-quick-link-primary small {
    color: #fff;
}

.dashboard-panel-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}
.dashboard-charts-card {
    padding: 22px;
    min-height: 100%;
}
.dashboard-tabs-card {
    display: grid;
    gap: 18px;
}
.dashboard-tabs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.dashboard-tabs-head p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}
.dashboard-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
    overflow: visible;
    padding: 5px;
    border-radius: 14px;
    background: rgba(245,158,11,.06);
    border: 1px solid rgba(245,158,11,.08);
}
.dashboard-tab {
    flex: 0 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: transparent;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.dashboard-tab:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}
.dashboard-tab.is-active {
    background: linear-gradient(135deg, var(--primary), #ffbe55);
    color: #fff;
    box-shadow: 0 10px 20px rgba(245,158,11,.18);
}
.dashboard-tab-panels {
    display: grid;
}
.dashboard-tab-panel {
    display: none;
}
.dashboard-tab-panel.is-active {
    display: block;
}
.dashboard-tab-panel.is-active .dashboard-ring-card,
.dashboard-tab-panel.is-active .dashboard-bar-card {
    animation: dashboardPanelRise .55s ease both;
}
.dashboard-tab-panel.is-active .dashboard-ring-card:nth-child(1),
.dashboard-tab-panel.is-active .dashboard-bar-card:nth-child(1) { animation-delay: .02s; }
.dashboard-tab-panel.is-active .dashboard-ring-card:nth-child(2),
.dashboard-tab-panel.is-active .dashboard-bar-card:nth-child(2) { animation-delay: .08s; }
.dashboard-tab-panel.is-active .dashboard-ring-card:nth-child(3),
.dashboard-tab-panel.is-active .dashboard-bar-card:nth-child(3) { animation-delay: .14s; }
.dashboard-tab-panel.is-active .dashboard-ring-card:nth-child(4),
.dashboard-tab-panel.is-active .dashboard-bar-card:nth-child(4) { animation-delay: .20s; }
.dashboard-bar-grid {
    display: grid;
    gap: 14px;
}
.dashboard-bar-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.05);
}
.dashboard-bar-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.dashboard-bar-meta-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.dashboard-bar-meta strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #34425b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-bar-inline-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(245,158,11,.08);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 900;
    flex: 0 0 auto;
}
.dashboard-bar-meta-copy small {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.82rem;
}
.dashboard-bar-track {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(245,158,11,.08);
}
.dashboard-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--ring-color, var(--primary)), rgba(255,190,85,.95));
    box-shadow: 0 8px 18px rgba(245,158,11,.18);
    transform-origin: right center;
    animation: dashboardBarGrow .9s cubic-bezier(.2,.8,.2,1) both;
}
.dashboard-bar-card-primary { --ring-color: var(--primary); }
.dashboard-bar-card-cyan { --ring-color: var(--cyan); }
.dashboard-bar-card-dark { --ring-color: #2b3657; }
.dashboard-bar-card-lite { --ring-color: #ffbe55; }
.dashboard-bar-card small {
    color: var(--muted);
    line-height: 1.65;
}
.dashboard-card-note {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245,158,11,.08);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-ring-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.dashboard-ring-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
}
.dashboard-tab-panel.is-active .dashboard-ring-chart {
    animation: dashboardRingPop .8s ease both;
}
.dashboard-ring-card-primary { --ring-color: var(--primary); --ring-track: rgba(245,158,11,.12); }
.dashboard-ring-card-cyan { --ring-color: var(--cyan); --ring-track: rgba(52,195,238,.12); }
.dashboard-ring-card-dark { --ring-color: #2b3657; --ring-track: rgba(43,54,87,.14); }
.dashboard-ring-card-lite { --ring-color: #ffbe55; --ring-track: rgba(255,190,85,.14); }
.dashboard-ring-chart {
    position: relative;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--ring-color) 0 var(--value), var(--ring-track) var(--value) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.dashboard-ring-chart::after {
    content: "";
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.06);
}
.dashboard-ring-chart span {
    position: relative;
    z-index: 1;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text);
}
.dashboard-ring-chart-expense span {
    font-size: 0.9rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.dashboard-ring-card-expense .dashboard-ring-chart {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
}
.dashboard-ring-card-expense .dashboard-ring-chart::after {
    inset: 12px;
}
.dashboard-ring-card-primary .dashboard-ring-chart span { color: var(--primary-dark); }
.dashboard-ring-card-cyan .dashboard-ring-chart span { color: #187da4; }
.dashboard-ring-card-dark .dashboard-ring-chart span { color: #2b3657; }
.dashboard-ring-card-lite .dashboard-ring-chart span { color: #c46b08; }
.dashboard-ring-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.dashboard-ring-copy strong {
    font-size: 1.06rem;
    font-weight: 800;
    color: #34425b;
}
.dashboard-ring-copy small {
    color: var(--muted);
    line-height: 1.65;
}

@keyframes dashboardPanelRise {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
        filter: blur(1px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes dashboardRingPop {
    0% {
        opacity: 0;
        transform: scale(0.88);
    }
    65% {
        opacity: 1;
        transform: scale(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dashboardBarGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.dashboard-empty-state {
    padding: 22px;
    border-radius: 18px;
    border: 1px dashed rgba(245,158,11,.18);
    background: linear-gradient(180deg, rgba(245,158,11,.04), rgba(255,190,85,.04));
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.shortcut-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.shortcut-card {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    font-weight: 700;
}

.catalog-section, .list-card, .panel-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.filter-card {
    position: relative;
    z-index: 20;
    overflow: visible !important;
}
.filter-card .catalog-preview-list {
    overflow: visible;
}
.filter-card .custom-select.is-open {
    position: relative;
    z-index: 1001;
}
.filter-card .custom-select-menu {
    z-index: 1002;
}
.list-card-toolbar { margin-bottom: 18px; }
.clinic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.date-filter-bar {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(245,158,11,.12);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 26px rgba(18, 38, 63, 0.06);
}

.date-filter-bar-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-filter-bar-head .nav-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.date-filter-bar-head strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
}

.date-filter-bar-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.7;
}

.date-filter-bar-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.date-filter-field {
    display: grid;
    gap: 8px;
}

.date-filter-field span {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.date-filter-field input[type="text"] {
    min-width: 0;
    min-height: 50px;
    padding-inline: 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.date-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.date-filter-actions .button,
.date-filter-actions .section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    box-sizing: border-box;
    font-weight: 700;
    line-height: 1;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.date-filter-actions .button {
    border: 0;
}
.date-filter-actions .button-primary {
    color: #fff;
}
.date-filter-actions .section-link {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}
.date-filter-actions .section-link-danger {
    border-color: rgba(244, 106, 106, 0.26);
    background: rgba(244, 106, 106, 0.08);
    color: #d63031;
}
.date-filter-actions .section-link-danger:hover {
    border-color: rgba(244, 106, 106, 0.36);
    background: rgba(244, 106, 106, 0.14);
    color: #b71c1c;
    box-shadow: 0 8px 18px rgba(244, 106, 106, 0.14);
}
.supervisor-activity-filter .date-filter-bar-body { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.supervisor-activity-filter .date-filter-field select { min-width: 0; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); font: inherit; }
.supervisor-activity-filter .date-filter-actions { align-self: end; }
.contact-center-checklist { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.contact-center-checklist label { display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--text); font-size: .84rem; font-weight: 700; cursor: pointer; }
.contact-center-checklist input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
@media (max-width: 900px) { .contact-center-checklist { grid-template-columns: repeat(2, minmax(160px, 1fr)); } }
@media (max-width: 560px) { .contact-center-checklist { grid-template-columns: 1fr; } }
.contact-form-tabs { gap: 12px; }
.medical-center-form-tabs { gap: 14px; }
.medical-center-form-tabs > .form-tabs-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; padding: 2px 0 0; border: 0; background: transparent; }
.medical-center-form-tabs > .form-tabs-nav .form-tab-button { width: 100%; min-height: 42px; padding: 10px 12px; border-radius: 14px; font-size: .82rem; white-space: normal; line-height: 1.35; }
.medical-center-form-tabs > form.catalog-form { grid-template-columns: minmax(0, 1fr); width: 100%; }
.medical-center-form-tabs > form.catalog-form > .form-tab-panel,
.medical-center-form-tabs > form.catalog-form > .form-actions { grid-column: 1 / -1; width: 100%; }
.medical-center-form-tabs .form-tab-panel-grid { width: 100%; gap: 14px 18px; }
.medical-center-form-tabs .support-contract-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.contact-form-tabs > .form-tabs-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.contact-form-tabs > .form-tabs-nav .form-tab-button { min-height: 38px; padding: 8px 10px; border-radius: 10px; font-size: .82rem; }
.contact-form-tabs > form.catalog-form { grid-template-columns: minmax(0, 1fr); width: 100%; }
.contact-form-tabs > form.catalog-form > .form-tab-panel,
.contact-form-tabs > form.catalog-form > .form-actions { grid-column: 1 / -1; width: 100%; }
.contact-form-tabs .form-tab-panel-grid { width: 100%; gap: 10px 14px; justify-items: stretch; }
.contact-form-tabs .contact-identity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-form-tabs .contact-account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-form-tabs .contact-identity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "active name role"
        "phone extension mobile"
        "notes notes notes";
    grid-auto-flow: unset;
    direction: rtl;
}
.contact-form-tabs .contact-identity-grid .contact-active-field { grid-area: active; }
.contact-form-tabs .contact-identity-grid .contact-name-field { grid-area: name; }
.contact-form-tabs .contact-identity-grid .contact-role-field { grid-area: role; }
.contact-form-tabs .contact-identity-grid .contact-phone-field { grid-area: phone; }
.contact-form-tabs .contact-identity-grid .contact-extension-field { grid-area: extension; }
.contact-form-tabs .contact-identity-grid .contact-mobile-field { grid-area: mobile; }
.contact-form-tabs .contact-identity-grid .contact-notes-field { grid-area: notes; }
.contact-form-tabs [data-tab-panel="account"] .contact-form-tab-help,
.contact-form-tabs [data-tab-panel="centers"] .form-field-span-2 { grid-column: 1 / -1; }
.contact-location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.contact-location-grid .ui-field { min-width: 0; }
.contact-center-hidden { display: none !important; }
.admin-activity-table { min-width: 0; width: 100%; table-layout: fixed; font-size: .82rem; }
.admin-activity-table th,
.admin-activity-table td { padding: 8px 6px; overflow-wrap: anywhere; }
.admin-activity-table td { vertical-align: top; }
.admin-activity-table th { font-size: .78rem; line-height: 1.45; }
.admin-activity-table .supervisor-approval-cell { gap: 3px; align-items: stretch; }
.admin-activity-table .supervisor-approval-cell { justify-content: flex-start; min-height: 58px; }
.admin-activity-table .supervisor-approve-button { min-width: 0; width: 100%; height: 38px; min-height: 38px; padding: 5px 4px; font-size: .72rem; line-height: 1.35; white-space: normal; }
.admin-activity-table .supervisor-approval-date { font-size: .68rem; line-height: 1.35; }
.admin-activity-table .approval-waiting-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .1);
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    box-sizing: border-box;
}
.daily-expense-action { text-decoration: none; }
.admin-activity-table .supervisor-approve-button,
.admin-activity-table .daily-expense-action {
    display: inline-flex !important;
    width: 96px !important;
    min-width: 96px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-items: center;
    justify-content: center;
    padding: 5px 8px !important;
    box-sizing: border-box;
    text-align: center;
}
.admin-activity-table .table-actions { align-items: flex-start; }
.admin-activity-table .daily-expense-action {
    background: rgba(245, 158, 11, .12) !important;
    border-color: rgba(245, 158, 11, .35) !important;
    color: #b45309 !important;
}
.daily-activity-report-table .supervisor-approval-cell {
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
}
.daily-activity-report-table .supervisor-approve-button,
.daily-activity-report-table .daily-expense-action {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 112px;
    margin-inline: auto;
    box-sizing: border-box;
    text-align: center;
}
.daily-activity-report-table .supervisor-approval-cell .inline-form {
    display: flex;
    justify-content: center;
    width: 100%;
}
.daily-activity-report-table .daily-approval-column {
    width: 108px;
    min-width: 108px;
    padding-inline: 3px !important;
}
.daily-activity-report-table .daily-actions-column {
    width: 100px;
    min-width: 100px;
    padding-inline: 12px !important;
    text-align: center !important;
}
.daily-activity-report-table td[data-label="اقدامات"] .table-actions-left {
    width: 100% !important;
    margin: 0 !important;
    align-items: center;
    justify-content: center !important;
}
.daily-activity-report-table td[data-label="اقدامات"] .daily-expense-action {
    margin: 0;
}
.admin-activity-table .supervisor-approve-button-send {
    background: rgba(37, 99, 235, .1) !important;
    border-color: rgba(37, 99, 235, .3) !important;
    color: #1d4ed8 !important;
}
.admin-activity-table .supervisor-approve-button:disabled:not(.supervisor-approve-button-done) {
    background: rgba(100, 116, 139, .1) !important;
    border-color: rgba(100, 116, 139, .28) !important;
    color: #64748b !important;
}
.dashboard-contact-restricted [data-dashboard-tab="services"],
.dashboard-contact-restricted [data-dashboard-tab="marketing-leads"],
.dashboard-contact-restricted [data-dashboard-tab="marketing-followups"],
.dashboard-contact-restricted [data-dashboard-tab="payroll"],
.dashboard-contact-restricted [data-dashboard-panel="services"],
.dashboard-contact-restricted [data-dashboard-panel="marketing-leads"],
.dashboard-contact-restricted [data-dashboard-panel="marketing-followups"],
.dashboard-contact-restricted [data-dashboard-panel="payroll"] { display: none !important; }
.contact-form-tabs .form-tab-panel-grid .ui-field { gap: 5px; }
.contact-form-tabs .form-tab-panel-grid .ui-field > label,
.contact-form-tabs .form-tab-panel-grid .ui-field > .ui-field-label { font-size: .8rem; }
.contact-form-tabs .form-actions { margin-top: 2px; justify-content: flex-start; }
.contact-form-tabs .contact-identity-grid > div,
.contact-form-tabs .contact-account-grid > div:not(.contact-form-tab-help) { min-width: 0; }
.contact-form-tab-help { padding: 9px 12px; border: 1px dashed rgba(245,158,11,.25); border-radius: 10px; background: rgba(245,158,11,.06); color: var(--muted); font-size: .78rem; line-height: 1.7; }
@media (max-width: 700px) { .contact-form-tabs > .form-tabs-nav { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
    .medical-center-form-tabs > .form-tabs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .medical-center-form-tabs > .form-tabs-nav { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .contact-form-tabs .contact-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-form-tabs .contact-account-grid { grid-template-columns: 1fr; } }
.date-filter-actions .section-link:hover {
    border-color: rgba(245,158,11,.22);
    background: #f6f8ff;
    color: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(18, 38, 63, 0.08);
}
.clinic-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    min-height: 128px;
    height: 128px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    direction: rtl;
}
.clinic-card-content {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 6px;
    align-content: start;
}
.clinic-card-visual {
    position: relative;
    overflow: hidden;
    flex: 0 0 104px;
    width: 104px;
    height: 100%;
    align-self: center;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(255,190,85,.10));
}
.clinic-card-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.clinic-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245,158,11,.22);
    box-shadow: 0 14px 32px rgba(18, 38, 63, 0.11);
}
.clinic-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.clinic-card-head-meta {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}
.clinic-card h3 {
    margin: 2px 0 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clinic-card-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(52,195,238,.12);
    color: #187da4;
    font-weight: 800;
    font-size: .82rem;
    white-space: nowrap;
}
.clinic-card-state {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.14);
    color: #9a6700;
    font-weight: 800;
    font-size: .82rem;
    white-space: nowrap;
}
.clinic-card-meta {
    display: grid;
    gap: 0;
    color: var(--muted);
    line-height: 1.3;
    margin-top: -2px;
}
.clinic-card-meta span {
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clinic-card-area {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clinic-card-meta small {
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.daily-center-requirement-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}
.daily-center-requirement-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}
.daily-center-requirement-pill-pending,
.daily-requirement-summary-card-pending strong { color: #b45309; }
.daily-center-requirement-pill-pending { background: rgba(245, 158, 11, .13); }
.daily-center-requirement-pill-handled,
.daily-requirement-summary-card-handled strong { color: #047857; }
.daily-center-requirement-pill-handled { background: rgba(16, 185, 129, .13); }
.daily-requirement-summary-card {
    display: grid;
    gap: 8px;
}
.daily-requirement-summary-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.daily-requirement-summary-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px solid var(--line);
}
.daily-requirement-summary-value small {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
}
.daily-requirement-summary-value strong { font-size: 1.35rem; }
.center-thumb-cell {
    width: 92px;
}
.center-thumb {
    width: 92px;
    height: 60px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(255,190,85,.10));
}
.selected-center-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}
.empty-state-box {
    padding: 22px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px dashed rgba(245,158,11,.24);
    color: var(--muted);
    font-weight: 700;
}
.form-tabs {
    display: grid;
    gap: 18px;
}
.expert-tab-form,
.document-upload-form {
    grid-template-columns: minmax(0, 1fr);
}
.form-tabs-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 4px;
}
.expert-form-shell .catalog-section-head {
    align-items: flex-start;
}
.expert-form-head-actions {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
    justify-items: start;
}
.expert-form-tabs-nav {
    width: 100%;
    padding: 2px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
}
.expert-form-tabs-nav .form-tab-button {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.35;
}
.expert-form-head-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
.expert-form-head-footer .section-link {
    width: fit-content;
    justify-self: end;
    align-self: start;
    white-space: nowrap;
    padding: 8px 14px;
}
.form-tab-button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f5f8ff;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.form-tab-button.is-active {
    background: linear-gradient(135deg, var(--primary), #ffbe55);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(245,158,11,.18);
}
.form-tab-panel {
    display: none;
    width: 100%;
}
.form-tab-panel.is-active {
    display: block;
}
.form-tab-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.form-field-note-card,
.form-empty-state,
.document-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.form-field-note-card {
    display: grid;
    align-content: center;
    gap: 8px;
}
.form-field-note-card strong,
.form-empty-state strong,
.document-card strong {
    font-weight: 800;
    color: #34425b;
}
.form-field-note-card span,
.form-empty-state p,
.document-card p,
.document-card small {
    color: var(--muted);
    line-height: 1.9;
}
.document-workspace,
.document-list {
    display: grid;
    gap: 16px;
}
.document-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.region-option-hidden {
    display: none !important;
}
.expert-tab-form .form-actions,
.document-upload-form .form-actions {
    justify-content: flex-start;
}
.document-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.catalog-section-head, .list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}
.catalog-section-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.catalog-section-body {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 24px;
    padding: 22px;
}
.catalog-section-body:has(form) {
    background: #fff;
    color: #2f3a4f;
}
.catalog-section-body:has(form) .form-tabs-nav {
    border-color: #e2e8f0;
    background: #f7f9fc;
}
.catalog-section-body:has(form) .medical-center-form-tabs > .form-tabs-nav {
    border: 0;
    background: transparent;
}
.catalog-section-body:has(form) .form-tab-button:not(.is-active) {
    border-color: #e2e8f0;
    color: #6f7d92;
}
.catalog-section-body:has(form) .custom-select-trigger {
    border-color: #e2e8f0;
    background: #fbfcff;
    color: #2f3a4f;
}
.catalog-section-body:has(form) .help-text,
.catalog-section-body:has(form) .ui-field > small {
    color: #6f7d92;
}
.catalog-section-body-wide {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
}
.catalog-section-body-single {
    grid-template-columns: minmax(0, 1fr);
}
.catalog-form { display: grid; gap: 16px; }
.catalog-form-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.center-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-field-span-2 {
    grid-column: span 2;
}
.daily-activity-time-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.daily-activity-time-row .ui-field {
    height: 100%;
}
.daily-activity-time-row .ui-field input {
    min-height: 52px;
}
.future-date-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.daily-activity-files-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.money-field-shell {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.money-field-input {
    flex: 1 1 auto;
    min-width: 0;
}
.money-field-input .ui-field {
    height: 100%;
}
.money-field-input .ui-field input {
    min-height: 52px;
}
.money-field-unit {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 54px;
    padding: 0 4px;
    color: var(--muted);
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
}
.expense-details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    overflow: hidden;
}
.expense-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 800;
    color: var(--primary-dark);
}
.expense-details > summary::-webkit-details-marker {
    display: none;
}
.expense-details[open] > summary {
    border-bottom: 1px solid var(--line);
}
.expense-form {
    padding: 16px;
}
.voice-recorder-shell {
    display: grid;
    gap: 12px;
}
.voice-recorder-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.voice-recorder-status {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}
.voice-recorder-player {
    width: 100%;
    min-height: 40px;
}
.daily-activity-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 22px 18px;
}
.daily-activity-file-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}
.daily-activity-history-panel {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}
.daily-activity-detail-row td {
    padding-top: 0 !important;
    background: rgba(248, 250, 252, .72);
}
.daily-activity-detail-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.daily-activity-detail-box > summary {
    cursor: pointer;
    padding: 10px 14px;
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 900;
    list-style: none;
}
.daily-activity-detail-box > summary::-webkit-details-marker {
    display: none;
}
.daily-activity-detail-box > summary::before {
    content: "＋";
    display: inline-flex;
    margin-left: 8px;
    color: var(--primary);
}
.daily-activity-detail-box[open] > summary {
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}
.daily-activity-detail-box[open] > summary::before {
    content: "−";
}
.daily-activity-detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}
.daily-activity-detail-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid rgba(226, 232, 240, .85);
}
.daily-activity-detail-card span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
}
.daily-activity-detail-card p {
    margin: 0;
    color: #34425b;
    line-height: 1.8;
}
.daily-activity-detail-files div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.daily-activity-detail-files a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(37, 99, 235, .1);
    color: #1d4ed8;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
}
.daily-activity-form {
    gap: 18px;
}
.daily-activity-requirement-box {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(50, 92, 185, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(50, 92, 185, .08), rgba(40, 199, 111, .07));
}
.daily-activity-requirement-title {
    font-weight: 900;
    color: var(--primary-dark);
}
.daily-activity-requirement-box .ui-field textarea {
    min-height: 108px;
    background: #fff;
}
.daily-requirements-list-card {
    margin-bottom: 18px;
}
.daily-requirements-list-card-main {
    margin-top: 18px;
}
.daily-requirements-list {
    display: grid;
    gap: 12px;
    padding: 14px 22px 22px;
}
.daily-requirement-item {
    display: grid;
    gap: 6px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}
.daily-requirement-item-pending {
    border-color: rgba(245, 158, 11, .26);
    background: linear-gradient(135deg, rgba(255, 247, 237, .94), rgba(255, 251, 235, .76));
}
.daily-requirement-item-handled {
    border-color: rgba(34, 197, 94, .26);
    background: linear-gradient(135deg, rgba(240, 253, 244, .94), rgba(236, 253, 245, .76));
}
.daily-requirement-item-head,
.daily-requirement-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.daily-requirement-main {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-top: 0;
}
.daily-requirement-item-head strong {
    color: #253653;
    font-size: 1rem;
    line-height: 1.45;
}
.daily-requirement-item-head span,
.daily-requirement-meta {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}
.daily-requirement-head-actions {
    display: grid;
    justify-items: end;
    justify-content: flex-end;
    align-content: space-between;
    gap: 10px;
    min-width: 190px;
    align-self: stretch;
    text-align: left;
    direction: rtl;
}
.daily-requirement-head-actions .inline-form {
    justify-content: flex-end;
}
.daily-requirement-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: 10px;
    background: rgba(34, 197, 94, .1);
    color: #15803d;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}
.daily-requirement-item-handled .daily-requirement-toggle {
    background: rgba(245, 158, 11, .1);
    border-color: rgba(245, 158, 11, .3);
    color: #b45309;
}
.daily-requirement-date-stack {
    display: grid;
    justify-items: end;
    gap: 3px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.55;
}
.daily-requirement-date-stack span {
    display: block;
}
.daily-requirement-item p {
    margin: 0;
    color: #34425b;
    line-height: 1.65;
}
.daily-requirement-main > span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}
.daily-requirement-meta {
    display: grid;
    justify-content: stretch;
    gap: 3px;
    margin-top: -2px;
}
.daily-requirement-meta span {
    display: block;
}
.daily-activity-expense-section {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}
.daily-activity-expense-head h3 {
    margin: 0;
    font-size: 1.05rem;
}
.daily-activity-expense-head p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.8;
}
.daily-activity-expense-list {
    display: grid;
    gap: 12px;
}
.daily-activity-expense-row {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}
.daily-activity-expense-row-head {
    font-weight: 800;
    color: #34425b;
}
.daily-activity-expense-grid {
    display: grid;
    grid-template-columns: 1.1fr .8fr 1.1fr;
    gap: 12px;
}
.catalog-list-panel { display: grid; gap: 16px; }
.catalog-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-list-head h3 { margin: 0; }
.catalog-preview-list {
    display: grid;
    gap: 10px;
    padding: 18px 22px 22px;
}
.catalog-preview-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}
.catalog-items { display: grid; gap: 12px; max-height: 430px; overflow: auto; }
.catalog-item {
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}
.catalog-item-top,
.table-actions,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.inline-form { margin: 0; }
.table-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: #eef3ff;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.table-actions-compact {
    justify-content: flex-start;
    gap: 8px;
}
.table-actions-left {
    width: fit-content;
    margin-right: auto;
}
.table-row-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0;
}
.table-row-actions .inline-form {
    display: flex;
    flex: 0 0 auto;
}
.table-row-actions .table-action-link {
    min-height: 32px;
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 0.86rem;
}
.table-action-danger {
    background: rgba(244,106,106,.12);
    color: #b23b3b;
}
.table-action-link-danger {
    background: rgba(244,106,106,.12);
    color: #b23b3b;
}
.catalog-item-empty, .empty-cell { color: var(--muted); text-align: center; }

.section-link, .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}
.section-link-active { background: linear-gradient(135deg, var(--primary), #ffbe55); color: #fff; }
.status-pill-approval {
    border: 1px solid transparent;
    font-size: .88rem;
    white-space: nowrap;
}
.status-pill-approval-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.22);
}
.status-pill-approval-approved {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.22);
}
.status-pill-approval-rejected {
    background: rgba(244, 106, 106, 0.14);
    color: #b23b3b;
    border-color: rgba(244, 106, 106, 0.22);
}
.status-pill-muted {
    background: rgba(127, 141, 164, 0.14);
    color: #60708a;
    border-color: rgba(127, 141, 164, 0.18);
}

.payroll-filter-card,
.payroll-create-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow);
}
.payroll-create-card {
    border-color: rgba(245, 158, 11, .24);
    background: linear-gradient(135deg, rgba(255, 249, 235, .98), #fff 72%);
}
.payroll-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.payroll-card-heading h2 { margin: 4px 0 5px; font-size: 1.15rem; }
.payroll-card-heading p { margin: 0; color: var(--muted); line-height: 1.8; }
.payroll-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.payroll-create-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.payroll-form-actions { display: flex; align-items: end; gap: 10px; min-height: 52px; }
.payroll-filter-card .payroll-form-actions { justify-content: flex-start; direction: ltr; }
.payroll-filter-card .payroll-form-actions .button { direction: rtl; }
.payroll-form-actions .button { min-width: 132px; min-height: 50px; }
.payroll-create-badge { flex: 0 0 auto; padding: 9px 13px; border: 1px solid rgba(245, 158, 11, .25); border-radius: 999px; background: rgba(245, 158, 11, .12); color: #a16207; font-weight: 800; white-space: nowrap; }
html[data-theme="dark"] .payroll-filter-card,
html[data-theme="dark"] .payroll-create-card { background: linear-gradient(180deg, rgba(18, 27, 45, .98), rgba(12, 18, 31, .98)); }
@media (max-width: 1100px) {
    .payroll-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .payroll-filter-grid .payroll-form-actions { grid-column: 1 / -1; }
    .payroll-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .payroll-filter-card, .payroll-create-card { padding: 16px; border-radius: 18px; }
    .payroll-card-heading { flex-direction: column; }
    .payroll-filter-grid, .payroll-create-grid { grid-template-columns: 1fr; }
    .payroll-filter-grid .payroll-form-actions { grid-column: auto; }
    .payroll-form-actions .button { flex: 1; }
}

.flash-message { padding: 16px 18px; border-radius: 16px; font-weight: 700; }
.payroll-statements-card { overflow: hidden; }
.payroll-statements-card .table-wrap { overflow-x: auto; padding-bottom: 4px; }
.payroll-table { width: 100%; table-layout: fixed; }
.payroll-table th { white-space: nowrap; }
.payroll-table td { vertical-align: middle; white-space: normal; }
.payroll-breakdown { display: grid; gap: 4px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.payroll-total-cell strong { display: block; font-size: 1rem; }
.payroll-total-cell small, .payroll-status-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.payroll-status-cell .status-pill { min-height: 30px; padding: 6px 9px; font-size: .78rem; }
.payroll-payment-form { display: flex; align-items: center; gap: 7px; min-width: 190px; }
.payroll-payment-input { width: 118px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: .84rem; direction: ltr; text-align: right; }
.payroll-payment-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.payroll-payment-button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.payroll-payment-button:hover { background: var(--primary-dark); }
.payroll-settled-label { color: #15803d; font-weight: 800; }
.payroll-table th:last-child, .payroll-table td:last-child { width: 220px; }
.payroll-statements-card .table-wrap { overflow-x: visible; }
.payroll-table { font-size: .82rem; }
.payroll-table th:last-child, .payroll-table td:last-child { width: 190px; }
.payroll-table th:nth-child(1), .payroll-table td:nth-child(1) { width: 112px; }
.payroll-table th:nth-child(2), .payroll-table td:nth-child(2) { width: 82px; }
.payroll-table th:nth-child(4), .payroll-table td:nth-child(4) { width: 96px; }
.payroll-table th:nth-child(5), .payroll-table td:nth-child(5) { width: 132px; }
.payroll-payment-form { min-width: 0; width: 100%; }
.payroll-payment-input { width: auto; min-width: 0; flex: 1 1 auto; }
.payroll-payment-button { flex: 0 0 auto; padding-inline: 9px; }
.payroll-action-stack { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payroll-action-stack > a, .payroll-action-stack > form.inline-form .payroll-delete-link { min-width: 0; width: 100%; padding-inline: 4px; font-size: .7rem; }
.payroll-print-header, .payroll-clinic-breakdown, .payroll-signatures { display: none; }
.payslip-print-sheet { max-width: 960px; margin: 0 auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.payslip-print-sheet { font-size: .92rem; }
.payslip-header { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--primary); }
.payslip-header img { width: 64px; height: 64px; }
.payslip-header h1 { margin: 0; font-size: 1.65rem; color: var(--text); }
.payslip-header p { margin: 5px 0 0; color: var(--muted); }
.payslip-header-meta { display: grid; gap: 5px; text-align: left; color: var(--muted); }
.payslip-header-meta strong { color: var(--text); font-size: 1.1rem; direction: ltr; }
.payslip-identity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.payslip-identity div { display: grid; gap: 5px; }
.payslip-identity span { color: var(--muted); font-size: .78rem; }
.payslip-identity strong { color: var(--text); }
.payslip-highlight { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0; padding: 16px 20px; border-radius: 14px; background: linear-gradient(135deg, #fff5d9, #fffaf0); color: #854d0e; }
.payslip-highlight strong { font-size: 1.35rem; }
.payslip-highlight small { color: #92400e; }
.payslip-payment-summary-highlight { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.payslip-payment-summary-highlight div { display: grid; gap: 5px; }
.payslip-payment-summary-highlight div + div { padding-right: 16px; border-right: 1px solid rgba(146, 64, 14, .2); }
.payslip-payment-summary-highlight span { color: #92400e; font-size: .82rem; font-weight: 800; }
.payslip-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payslip-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.payslip-panel h2 { margin: 0 0 10px; font-size: 1rem; color: var(--text); }
.payslip-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.payslip-line strong { color: var(--text); white-space: nowrap; }
.payslip-line-total { border-bottom: 0; padding-bottom: 0; color: var(--text); font-weight: 800; }
.payslip-panel table { width: 100%; border-collapse: collapse; }
.payslip-panel th, .payslip-panel td { padding: 9px 8px; border: 1px solid #cbd5e1; text-align: right; vertical-align: middle; }
.payslip-panel th { color: var(--muted); font-size: .8rem; }
.payslip-panel thead th { background: #f8fafc; border-bottom: 2px solid #94a3b8; color: var(--text); font-weight: 800; }
.payslip-panel tbody tr:nth-child(even) td { background: #f8fafc; }
.payslip-breakdown-table th:last-child, .payslip-breakdown-table td:last-child { text-align: left; white-space: nowrap; }
.payslip-table-total th, .payslip-table-total td { border-top: 2px solid var(--primary); color: var(--text); font-weight: 800; background: #fff8e7 !important; }
.payslip-adjustments-print table { table-layout: fixed; }
.payslip-adjustments-print th:first-child, .payslip-adjustments-print td:first-child { width: 20%; }
.payslip-adjustments-print th:last-child, .payslip-adjustments-print td:last-child { width: 25%; white-space: nowrap; }
.payslip-adjustments-print td:nth-child(2) { overflow-wrap: anywhere; }
.payslip-payments table { table-layout: fixed; }
.payslip-payments th:first-child, .payslip-payments td:first-child { width: 27%; }
.payslip-payments th:nth-child(2), .payslip-payments td:nth-child(2) { width: 25%; white-space: nowrap; }
.payslip-payments th:last-child, .payslip-payments td:last-child { width: 48%; overflow-wrap: anywhere; word-break: break-word; }
.payslip-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-top: 70px; text-align: center; }
.payslip-signatures div { display: grid; gap: 45px; }
.payslip-signatures i { border-bottom: 1px solid #334155; }
.payslip-signatures strong { font-size: .9rem; color: var(--text); }
.payslip-second-page { margin-top: 44px; padding-top: 24px; border-top: 1px dashed var(--line); }
.payslip-print-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.payslip-detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payroll-action-stack { display: grid; grid-template-columns: repeat(3, max-content); grid-template-areas: "edit print delete" "payment payment payment"; gap: 7px; align-items: center; justify-items: start; }
.payroll-action-stack > a { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.payroll-action-stack > a:first-child { grid-area: edit; }
.payroll-action-stack > a:nth-of-type(2) { grid-area: print; }
.payroll-action-stack > a:first-child { color: #2563eb; border-color: rgba(37, 99, 235, .2); background: rgba(37, 99, 235, .06); }
.payroll-action-stack > a:nth-last-of-type(1) { color: #0f766e; border-color: rgba(15, 118, 110, .2); background: rgba(15, 118, 110, .06); }
.payroll-action-stack > form.payroll-payment-form { grid-area: payment; }
.payroll-action-stack > form.inline-form { display: inline-flex; }
.payroll-action-stack > form.inline-form { grid-area: delete; }
.payroll-action-stack > form.inline-form .payroll-delete-link { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(185, 28, 28, .2); border-radius: 8px; background: rgba(185, 28, 28, .05); color: #b91c1c; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.payroll-print-link { color: var(--primary-dark); font-size: .8rem; font-weight: 800; }
.payroll-delete-link { border: 0; background: transparent; cursor: pointer; padding: 0; font: inherit; color: #b91c1c; }
.print-page-button { min-width: 110px; }

/* Payroll list: keep the statement table compact and keep every action inside its cell. */
.payroll-statements-card .table-wrap { overflow-x: hidden; }
.payroll-table { width: 100%; min-width: 0; table-layout: fixed; font-size: .78rem; }
.payroll-table th, .payroll-table td { overflow-wrap: anywhere; }
.payroll-table th:nth-child(1), .payroll-table td:nth-child(1) { width: 14%; }
.payroll-table th:nth-child(2), .payroll-table td:nth-child(2) { width: 10%; }
.payroll-table th:nth-child(3), .payroll-table td:nth-child(3) { width: 23%; }
.payroll-table th:nth-child(4), .payroll-table td:nth-child(4) { width: 12%; }
.payroll-table th:nth-child(5), .payroll-table td:nth-child(5) { width: 18%; }
.payroll-table th:nth-child(6), .payroll-table td:nth-child(6) { width: 23%; }
.payroll-table td.payroll-breakdown { display: table-cell; }
.payroll-table td.payroll-breakdown span { display: block; margin-bottom: 4px; }
.payroll-table td.payroll-breakdown span:last-child { margin-bottom: 0; }
.payroll-action-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "revert edit delete" "print print print" "payment payment payment"; gap: 7px; width: 100%; align-items: center; }
.payroll-action-stack > a,
.payroll-action-stack > form.inline-form,
.payroll-action-stack > form.payroll-payment-form { min-width: 0; width: 100%; }
.payroll-action-stack > a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 8px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.payroll-action-stack > a:first-child { grid-area: edit; }
.payroll-action-stack > a:nth-of-type(2) { grid-area: print; }
.payroll-action-stack > form.inline-form { display: block; grid-area: delete; }
.payroll-action-stack > form.inline-form .payroll-delete-link { display: inline-flex; width: 100%; align-items: center; justify-content: center; min-height: 32px; padding: 5px 4px; border: 1px solid rgba(185, 28, 28, .2); border-radius: 8px; background: rgba(185, 28, 28, .05); color: #b91c1c; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.payroll-action-stack > form.payroll-payment-form { grid-area: payment; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.payroll-action-stack .payroll-payment-input { width: 100%; min-width: 0; min-height: 32px; font-size: .72rem; }
.payroll-action-stack .payroll-payment-button { min-height: 32px; padding: 0 8px; font-size: .7rem; white-space: nowrap; }
.payroll-settled-label { display: block; grid-area: payment; padding: 7px 8px; border-radius: 8px; background: rgba(21, 128, 61, .08); color: #15803d; font-size: .72rem; text-align: center; }
.payroll-action-stack > form.payroll-revert-payment-form { display: block; grid-area: revert; width: 100%; }
.payroll-action-stack.payroll-actions-clean { grid-template-areas: "edit delete detail" "print print print" "visibility visibility visibility"; }
.payroll-action-stack > a.payroll-detail-link { grid-area: detail; display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 4px; border: 1px solid rgba(245, 158, 11, .25); border-radius: 8px; background: rgba(245, 158, 11, .08); color: #a16207; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.payroll-action-stack > form.payroll-visibility-form { grid-area: visibility; display: block; width: 100%; }
.payroll-action-stack.payroll-expert-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "detail print"; }
.payroll-action-stack.payroll-expert-actions { display: flex; align-items: center; gap: 6px; }
.payroll-action-stack.payroll-expert-actions > a { flex: 1 1 0; width: auto; }
.payroll-visibility-label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 8px; border: 1px solid rgba(37, 99, 235, .2); border-radius: 8px; background: rgba(37, 99, 235, .06); color: #2563eb; font-size: .7rem; font-weight: 800; cursor: pointer; }
.payroll-visibility-label input { accent-color: #2563eb; }
.payroll-revert-payment-button { width: 100%; min-height: 30px; padding: 5px 8px; border: 1px solid rgba(180, 83, 9, .25); border-radius: 8px; background: rgba(245, 158, 11, .08); color: #a16207; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.payroll-revert-payment-button:hover { background: rgba(245, 158, 11, .16); }
.payroll-payment-detail-card { margin-bottom: 18px; padding: 22px; border: 1px solid rgba(245, 158, 11, .24); border-radius: 22px; background: linear-gradient(135deg, rgba(255, 249, 235, .98), #fff 72%); box-shadow: var(--shadow); }
.payroll-payment-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.payroll-payment-summary div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.payroll-payment-summary span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .8rem; }
.payroll-payment-summary strong { font-size: 1rem; }
.payroll-payment-detail-form { display: grid; grid-template-columns: 1fr 1.2fr 2fr auto; gap: 12px; align-items: end; }
.payroll-payment-detail-form .button { min-height: 44px; }
.payroll-adjustments-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin: 0 0 18px; padding: 16px; border: 1px dashed rgba(245, 158, 11, .35); border-radius: 16px; background: rgba(245, 158, 11, .06); }
.payroll-adjustments-form .button { min-height: 44px; }
.payroll-adjustment-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; grid-column: 1 / -1; }
.payroll-adjustment-group { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.payroll-adjustment-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.payroll-adjustment-group-head h3 { margin: 0; font-size: .92rem; }
.payroll-adjustment-add { min-height: 34px !important; padding: 5px 10px; font-size: .74rem; }
.payroll-adjustment-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; align-items: center; }
.payroll-adjustment-row select, .payroll-adjustment-row input { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; }
.payroll-adjustment-row input { direction: ltr; text-align: right; }
.payroll-adjustment-remove { min-height: 34px; padding: 5px 8px; border: 1px solid rgba(185, 28, 28, .2); border-radius: 8px; background: rgba(185, 28, 28, .05); color: #b91c1c; font: inherit; font-size: .72rem; cursor: pointer; }
.payroll-adjustments-breakdown small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.payroll-adjustments-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.payroll-adjustments-breakdown div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.payroll-adjustments-breakdown span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .8rem; }
.payroll-adjustments-breakdown strong { font-size: .95rem; }
.payroll-settled-note { padding: 12px 14px; border-radius: 12px; background: rgba(21, 128, 61, .08); color: #15803d; font-weight: 800; }
.payroll-payment-history-table { min-width: 0; table-layout: fixed; }
.payroll-payment-history-table th:last-child, .payroll-payment-history-table td:last-child { width: 130px; }
.payroll-payment-delete-button { min-height: 32px; padding: 5px 10px; border: 1px solid rgba(185, 28, 28, .2); border-radius: 8px; background: rgba(185, 28, 28, .05); color: #b91c1c; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.supervisor-approval-cell { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.supervisor-approval-date { flex: 0 0 auto; color: var(--muted); font-size: .72rem; line-height: 1.45; direction: ltr; white-space: nowrap; }
.supervisor-approve-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: auto; min-width: 112px; min-height: 32px; padding: 5px 10px; border: 1px solid rgba(15, 118, 110, .25); border-radius: 8px !important; background: rgba(15, 118, 110, .08); color: #0f766e; font: inherit; font-size: .74rem; font-weight: 800; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.supervisor-approve-button-done,
.supervisor-approve-button-done:disabled { width: auto; min-width: 112px; min-height: 32px; padding: 5px 10px; border-radius: 8px !important; background: rgba(22, 163, 74, .08); border-color: rgba(22, 163, 74, .25); color: #15803d; opacity: 1; cursor: default; }
.supervisor-scope-note { margin-bottom: 16px; padding: 12px 15px; border: 1px solid rgba(37, 99, 235, .2); border-radius: 12px; background: rgba(37, 99, 235, .06); color: #1d4ed8; font-size: .82rem; font-weight: 700; }
.financial-report-filter, .financial-report-card { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.financial-report-filter { background: linear-gradient(135deg, rgba(255, 249, 235, .98), var(--surface) 72%); }
.financial-report-filter-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.financial-report-filter-grid .button { min-height: 44px; }
.financial-report-stat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.financial-report-stat-grid article { min-width: 0; padding: 15px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.financial-report-stat-grid span, .financial-report-stat-grid small { display: block; color: var(--muted); font-size: .76rem; }
.financial-report-stat-grid strong { display: block; margin: 8px 0 2px; overflow-wrap: anywhere; font-size: .98rem; }
.financial-report-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.financial-report-card-head h2 { margin: 4px 0 0; font-size: 1.08rem; }
.financial-report-help { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.financial-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .78rem; }
.financial-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.financial-chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend-total { background: var(--primary); }.legend-paid { background: var(--cyan); }.legend-expense { background: #2b3657; }
.financial-month-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; min-height: 220px; padding: 16px 10px 0; border-bottom: 1px solid var(--line); align-items: end; }
.financial-month-column { display: grid; grid-template-rows: 170px auto auto; gap: 6px; min-width: 0; text-align: center; }
.financial-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 170px; padding: 0 3px; border-bottom: 1px dashed var(--line); }
.financial-bar { display: block; width: 8px; min-height: 2px; border-radius: 5px 5px 0 0; transition: height .25s ease; }
.financial-bar-total { background: var(--primary); }.financial-bar-paid { background: var(--cyan); }.financial-bar-expense { background: #2b3657; }
.financial-month-column strong { overflow: hidden; color: var(--text); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.financial-month-column small { overflow: hidden; color: var(--muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.financial-report-two-columns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.financial-report-two-columns .financial-report-card { min-width: 0; }
.financial-report-two-columns { grid-template-columns: minmax(0, 1fr); }
.financial-report-two-columns .financial-report-card:nth-child(2) { order: -1; }
.financial-report-table { min-width: 720px; font-size: .8rem; }
.financial-report-table th { white-space: nowrap; }
.financial-report-table td { white-space: normal; }
.financial-center-bars { display: grid; gap: 16px; }
.financial-center-bar { display: grid; gap: 7px; }
.financial-center-bar > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .78rem; }
.financial-center-bar strong { color: var(--text); }
.financial-center-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.financial-center-track i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
@media (max-width: 720px) {
    .payroll-payment-detail-card { padding: 16px; }
    .payroll-payment-summary, .payroll-payment-detail-form, .payroll-adjustments-form, .payroll-adjustments-breakdown { grid-template-columns: 1fr; }
    .financial-report-filter, .financial-report-card { padding: 16px; border-radius: 18px; }
    .payroll-adjustment-groups { grid-template-columns: 1fr; }
    .payroll-adjustment-row { grid-template-columns: minmax(0, 1fr) 110px auto; }
    .financial-report-filter-grid, .financial-report-two-columns { grid-template-columns: 1fr; }
    .financial-report-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .financial-report-card-head { flex-direction: column; }
    .financial-month-chart { gap: 4px; padding-inline: 0; }
    .financial-bar { width: 5px; }
}

@media (max-width: 900px) {
    .payroll-statements-card .table-wrap { overflow-x: auto; }
    .payroll-table { min-width: 760px; }
}

@media (max-width: 720px) {
    .payroll-statements-card .table-wrap { overflow-x: visible; }
    .payroll-table, .payroll-table tbody, .payroll-table tr, .payroll-table td { display: block; width: 100% !important; }
    .payroll-table thead { display: none; }
    .payroll-table tr { margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
    .payroll-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
    .payroll-table td:last-child { padding-bottom: 2px; border-bottom: 0; }
    .payroll-action-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
    @page { size: A4 portrait; margin: 7mm; }
    html, body { font-size: 9px !important; }
    .smartlook-sidebar, .mobile-nav-toggle, .mobile-nav-backdrop, .payroll-filter-card, .payroll-create-card, .payroll-payment-form, .payroll-print-link, .print-page-button { display: none !important; }
    .app-shell { display: block; min-height: auto; }
    .main-content { width: 100%; padding: 0; }
    .smartlook-page-header { display: none !important; }
    .payslip-print-sheet { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 8.5px; }
    .payslip-header { grid-template-columns: 42px 1fr auto; gap: 9px; padding-bottom: 8px; }
    .payslip-header img { width: 42px; height: 42px; }
    .payslip-header h1 { font-size: 1.3rem; }
    .payslip-header p { margin-top: 2px; }
    .payslip-identity { gap: 8px; margin: 8px 0; padding: 8px; }
    .payslip-highlight { margin: 8px 0; padding: 9px 12px; }
    .payslip-highlight strong { font-size: 1.15rem; }
    .payslip-payment-summary-highlight { gap: 8px; }
    .payslip-payment-summary-highlight div + div { padding-right: 8px; }
    .payslip-columns { gap: 8px; }
    .payslip-panel { margin-top: 8px; padding: 9px; }
    .payslip-panel h2 { margin-bottom: 5px; font-size: .9rem; }
    .payslip-line { padding: 4px 0; }
    .payslip-panel th, .payslip-panel td { padding: 4px 5px; }
    .payslip-panel table { page-break-inside: avoid; break-inside: avoid; }
    .payslip-panel thead { display: table-header-group; }
    .payslip-panel thead th { background: #f8fafc !important; }
    .payslip-panel th, .payslip-panel td { border-color: #94a3b8 !important; }
    .payslip-panel tbody tr:nth-child(even) td { background: #f8fafc !important; }
    .payslip-table-total th, .payslip-table-total td { background: #fff8e7 !important; }
    .payslip-detail-columns { gap: 8px; }
    .payslip-signatures { gap: 70px; margin-top: 25px; }
    .payslip-signatures div { gap: 22px; }
    .payslip-second-page { margin-top: 0; padding-top: 0; border-top: 0; break-before: page; page-break-before: always; }
    .payslip-print-actions { display: none; }
    .payslip-header { border-bottom-color: #d97706; }
    .payslip-identity, .payslip-highlight, .payslip-panel { break-inside: avoid; }
    .payslip-identity { background: #f8fafc !important; }
    .payslip-highlight { background: #fff5d9 !important; }
    .payroll-print-header { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 2px solid #f59e0b; }
    .payroll-print-header img { width: 54px; height: 54px; }
    .payroll-print-header h1 { margin: 0; color: #111827; font-size: 1.6rem; }
    .payroll-print-header p { margin: 4px 0 0; color: #4b5563; text-align: center; }
    .payroll-clinic-breakdown { display: block; margin-top: 24px; }
    .payroll-clinic-breakdown h2 { margin: 0 0 10px; color: #111827; font-size: 1rem; }
    .payroll-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 70px; color: #111827; text-align: center; }
    .payroll-signatures div { display: grid; gap: 42px; }
    .payroll-signatures i { display: block; border-bottom: 1px solid #374151; }
    .payroll-statements-card { border: 0; box-shadow: none; padding: 0; }
    .payroll-table { table-layout: auto; min-width: 0; }
    .payroll-table th, .payroll-table td { color: #111827 !important; }
    .payroll-table td { white-space: normal; }
    body { background: #fff !important; }
    body::before, body::after { display: none !important; content: none !important; }
}

.daily-print-component { display: none; }
.daily-print-trigger { white-space: nowrap; }
.marketing-cartable-actions {
    justify-content: flex-start !important;
    gap: 8px !important;
}
@media print {
    body:has(.daily-print-component) .smartlook-sidebar,
    body:has(.daily-print-component) .smartlook-page-header,
    body:has(.daily-print-component) .smartlook-main > .message-stack,
    body:has(.daily-print-component) .smartlook-main > .form-tabs { display: none !important; }
    body:has(.daily-print-component) .smartlook-main { display: block !important; width: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
    body:has(.daily-print-component) .smartlook-main > *:not(.daily-print-component) { display: none !important; }
    body:has(.daily-print-component) * { visibility: hidden !important; }
    body:has(.daily-print-component) .daily-print-component,
    body:has(.daily-print-component) .daily-print-component * { visibility: visible !important; }
    body:has(.daily-print-component) .daily-print-component { display: block; position: static; min-height: 0; padding: 8mm; color: #172033; background: #fff; font-size: 9pt; }
    .daily-print-component-header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 3px solid #0f766e; }
    .daily-print-component-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .daily-print-component-brand img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; border: 1px solid #dbe4ee; border-radius: 12px; padding: 4px; background: #fff; }
    .expert-print-identity { display: flex; align-items: center; gap: 12px; direction: ltr; min-width: 0; }
    .expert-print-identity > div { direction: rtl; }
    .expert-print-component .daily-print-component-brand > img { width: 78px; height: 78px; flex-basis: 78px; }
    .daily-print-component-brand .expert-print-profile-photo { width: 68px; height: 68px; flex: 0 0 68px; object-fit: cover; border-radius: 50%; padding: 0; border: 2px solid #0f766e; }
    .daily-print-component-header h1 { margin: 5px 0 2px; font-size: 21pt; }
    .daily-print-component-header p { margin: 2px 0; color: #64748b; }
    .daily-print-component-header span { color: #0f766e; font-weight: 800; }
    .daily-print-component-header small { color: #64748b; }
    .daily-print-component-summary { display: flex; gap: 12px; margin: 14px 0 18px; }
    .daily-print-component-summary span { flex: 1; padding: 9px 11px; border: 1px solid #dbe4ee; background: #f8fafc; }
    .daily-print-component-summary b { color: #0f766e; }
    .daily-print-component section { margin-top: 16px; }
    .daily-print-component h2 { margin: 0 0 7px; padding-bottom: 5px; border-bottom: 2px solid #e2e8f0; font-size: 12pt; }
    .daily-print-component-requirement { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
    .daily-print-component-requirement div { display: grid; gap: 3px; }
    .daily-print-component-requirement small, .daily-print-component-requirement span { color: #64748b; }
    .daily-print-component table { width: 100%; border-collapse: collapse; font-size: 8pt; }
    .daily-print-report-table { direction: ltr; }
    .daily-print-report-table th, .daily-print-report-table td { direction: rtl; }
    .daily-print-component th { padding: 6px; color: #fff; background: #0f766e; }
    .daily-print-component td { padding: 6px; border: 1px solid #dbe4ee; vertical-align: top; }
    .daily-print-component tbody tr:nth-child(odd) { background: #f8fafc; }
    .daily-print-component .daily-print-component-detail td { color: #475569; background: #fff; font-size: 7.5pt; }
    .daily-print-closing { margin-top: 18px; break-inside: avoid; page-break-inside: avoid; }
    .daily-print-closing-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 22px; }
    .daily-print-closing-summary div { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid #dbe4ee; background: #f8fafc; }
    .daily-print-closing-summary span { color: #64748b; font-size: 7.5pt; }
    .daily-print-closing-summary b { color: #0f766e; font-size: 9.5pt; }
    .daily-print-signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; text-align: center; }
    .daily-print-signatures div { display: grid; justify-items: center; gap: 5px; min-height: 62px; }
    .daily-print-signatures span { color: #64748b; font-size: 8pt; }
    .daily-print-signatures strong { min-height: 18px; font-size: 9pt; }
    .daily-print-signatures i { display: block; width: 76%; height: 24px; border-bottom: 1px solid #64748b; }
    .financial-print-component .daily-print-component-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .financial-print-component .daily-print-component-summary span { min-width: 0; font-size: 7.5pt; }
    .financial-print-table { font-size: 7.5pt !important; }
    .financial-print-table th, .financial-print-table td { padding: 5px !important; }
    .financial-print-component section:not(.daily-print-closing) { break-inside: avoid; page-break-inside: avoid; }
    .expert-print-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
    .expert-print-info-grid div { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid #dbe4ee; background: #f8fafc; }
    .expert-print-info-grid span { color: #64748b; font-size: 7.5pt; }
    .expert-print-info-grid b { font-size: 8.5pt; }
    .expert-print-inline-list { margin: 10px 0 0; padding: 9px 11px; border: 1px solid #dbe4ee; background: #f8fafc; }
    .expert-print-component section:not(.daily-print-closing) { break-inside: avoid; page-break-inside: avoid; }
    .center-print-photo { width: 54px; height: 54px; display: block; margin: 0 auto 6px; object-fit: cover; border: 1px solid #dbe4ee; border-radius: 12px; }
    .medical-center-print-component .daily-print-component-header > div:last-child { text-align: center; }
}
.flash-success { background: rgba(80,165,241,.14); color: #2568a7; }
.flash-error { background: rgba(244,106,106,.14); color: #b23b3b; }
.flash-warning { background: rgba(245,158,11,.14); color: #a16207; border: 1px solid rgba(245,158,11,.24); }
.flash-message-hide { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; direction: rtl !important; }
.daily-activity-report-table { direction: ltr !important; }
.daily-activity-report-table th,
.daily-activity-report-table td { direction: rtl; }
@media (max-width: 900px) {
    .daily-activity-report-table { direction: rtl !important; }
}
.data-table th, .data-table td { padding: 16px 18px; text-align: right; border-bottom: 1px solid var(--line); }
.data-table th { background: #f8fafe; color: var(--muted); font-size: .92rem; }

@media (max-width: 1100px) {
    .hero,
    .login-stage,
    .dashboard-hero,
    .metric-strip,
    .metric-strip-compact,
    .metric-strip-dashboard,
    .dashboard-grid,
    .dashboard-grid-main,
    .crmx-grid,
    .overview-grid,
    .overview-grid-dashboard,
    .dashboard-quick-links,
    .catalog-section-body,
    .feature-grid,
    .shortcut-grid,
    .clinic-grid {
        grid-template-columns: 1fr;
    }
    .date-filter-bar-body {
        grid-template-columns: 1fr;
    }
    .supervisor-activity-filter .date-filter-bar-body {
        grid-template-columns: 1fr;
    }
    .date-filter-actions {
        justify-content: flex-start;
    }
    .crmx-card-span-2 { grid-column: auto; }
    .marketing-topbar { flex-direction: column; align-items: flex-start; }
    .dashboard-hero {
        padding: 20px;
    }
    .dashboard-tabs-head {
        flex-direction: column;
    }
    .dashboard-tabs {
        width: 100%;
        max-width: 100%;
    }
    .metric-box {
        padding: 14px 16px;
        border-radius: 15px;
    }
    .metric-box-copy strong {
        font-size: 1.5rem;
    }
    .dashboard-ring-card {
        padding: 14px;
    }
    .dashboard-ring-chart {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }
    .dashboard-ring-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .app-shell {
        width: min(100%, calc(100% - 12px));
        margin: 6px auto;
        min-height: calc(100vh - 12px);
        grid-template-columns: 1fr;
    }
    .sidebar {
        min-height: auto;
        padding: 18px 14px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }
    .side-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: visible;
        margin-top: 20px;
    }
    .side-nav-group {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }
    .side-nav-group-title {
        display: flex;
    }
    .side-nav-subitem {
        margin-right: 12px;
    }
    .side-profile { display: none; }
    .main-content { padding: 22px 18px 36px; }
    .metric-strip-single {
        grid-template-columns: 1fr;
    }
    .catalog-items {
        max-height: none;
    }
}

@media (max-width: 720px) {
    .marketing-topbar,
    .marketing-main,
    .login-stage { width: min(100% - 20px, 1280px); }
    .showcase-metrics { grid-template-columns: 1fr; }
    .app-shell {
        border-radius: 18px;
    }
    .brand { align-items: flex-start; }
    .brand-copy strong {
        font-size: 16px;
    }
    .brand-copy small {
        font-size: 9px;
    }
    .page-header {
        align-items: flex-start;
    }
    .page-header h1 {
        font-size: 24px;
    }
    .dashboard-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .dashboard-hero {
        padding: 16px;
        gap: 14px;
        border-radius: 22px;
    }
    .metric-strip {
        gap: 12px;
    }
    .metric-box {
        padding: 12px 14px;
    }
    .metric-box-copy span {
        font-size: .88rem;
        margin-bottom: 7px;
    }
    .metric-box-copy strong {
        font-size: 1.38rem;
    }
    .dashboard-charts-card {
        padding: 18px;
    }
    .dashboard-tabs {
        gap: 3px;
    }
    .dashboard-tab {
        padding: 7px 8px;
        font-size: .76rem;
    }
    .dashboard-bar-card {
        padding: 16px 16px;
    }
    .dashboard-hero-copy h2 {
        font-size: 1.4rem;
    }
    .dashboard-hero-panel {
        padding: 14px;
        border-radius: 18px;
    }
    .dashboard-hero-stat-list div {
        padding: 12px 13px;
    }
    .dashboard-ring-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-ring-card {
        padding: 14px;
    }
    .dashboard-ring-chart {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }
    .dashboard-bar-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-bar-meta span {
        padding: 5px 10px;
    }
    .dashboard-card-note {
        display: none;
    }
    .catalog-section-head,
    .list-head,
    .catalog-list-head,
    .catalog-item-top,
    .table-actions,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .expert-form-head-actions {
        width: 100%;
        align-items: flex-start;
    }
    .expert-form-tabs-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .expert-form-head-footer {
        justify-self: start;
        justify-content: flex-start;
    }
    .catalog-section-head,
    .list-head {
        padding: 18px 16px;
    }
    .catalog-section-body {
        padding: 16px;
        gap: 18px;
    }
    .catalog-form {
        gap: 14px;
    }
    .catalog-form-compact {
        grid-template-columns: 1fr;
    }
    .form-tab-panel-grid {
        grid-template-columns: 1fr;
    }
    .form-field-span-2 {
        grid-column: auto;
    }
    .medical-center-form-tabs .support-contract-dates {
        grid-template-columns: 1fr;
    }
    .daily-activity-expense-grid {
        grid-template-columns: 1fr;
    }
    .form-field input,
    .form-field textarea,
    .form-field select,
    .ui-field input,
    .ui-field textarea,
    .ui-field select,
    .button,
    .table-action-link {
        width: 100%;
    }
    .table-row-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .table-row-actions .table-action-link {
        width: auto;
    }
    .ui-field input[type="time"] {
        min-height: 56px;
        font-size: 1rem;
    }
    .ui-field ul li {
        align-items: flex-start;
    }
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .location-map {
        height: 260px;
    }
    .form-tabs-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .expert-form-tabs-nav {
        grid-template-columns: 1fr;
    }
    .location-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .table-wrap {
        margin: 0 -16px;
        padding: 0 16px 8px;
    }
    .data-table {
        min-width: 560px;
    }
    .data-table th,
    .data-table td {
        padding: 13px 12px;
        font-size: 0.92rem;
    }
}

@media (max-width: 560px) {
    .main-content {
        padding: 18px 12px 28px;
    }
    .sidebar {
        padding: 14px 12px;
    }
    .brand {
        gap: 10px;
    }
    .smartlook-brand-copy .brand-english {
        font-size: 8px;
    }
    .smartlook-brand-copy .brand-tagline {
        display: none;
    }
    .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .side-nav a,
    .side-nav-group-title {
        padding: 10px 11px;
    }
    .side-nav-subitem {
        margin-right: 8px;
    }
    .side-nav-subitem-icon .nav-icon {
        right: -1px;
    }
    .catalog-section-head,
    .list-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .catalog-section-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .metric-box,
    .summary-card {
        padding: 16px;
    }
    .metric-box-copy strong,
    .summary-card strong {
        font-size: 1.45rem;
    }
    .dashboard-grid-summary {
        grid-template-columns: 1fr;
    }
    .today,
    .section-link,
    .status-pill {
        font-size: 0.84rem;
        padding: 7px 11px;
    }
    .data-table {
        min-width: 520px;
    }
    .form-tabs-nav {
        grid-template-columns: 1fr;
    }
    .clinic-card {
        min-height: 112px;
        padding: 12px;
        gap: 12px;
    }
    .clinic-card-visual {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
        aspect-ratio: 1 / 1;
    }
    .clinic-card-head {
        flex-direction: column;
        gap: 8px;
    }
    .clinic-card-count {
        width: fit-content;
    }
    .daily-activity-time-row {
        grid-template-columns: 1fr;
    }
    .daily-activity-files-grid {
        grid-template-columns: 1fr;
    }
    .money-field-shell {
        flex-direction: column;
    }
    .money-field-unit {
        min-height: 46px;
        width: 100%;
        padding-inline: 0;
    }
    .voice-recorder-actions {
        gap: 8px;
    }
}

body.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-toggle,
.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 920px) {
    .app-shell {
        position: relative;
    }
    .mobile-nav-toggle {
        position: sticky;
        top: 10px;
        z-index: 30;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: fit-content;
        margin: 12px 12px 0 auto;
        min-height: 48px;
        padding: 8px 14px 8px 10px;
        border: 1px solid rgba(245,158,11,.16);
        border-radius: 999px;
        background: rgba(255,255,255,.92);
        color: var(--text);
        box-shadow: 0 14px 28px rgba(18, 38, 63, 0.14);
        backdrop-filter: blur(10px);
        cursor: pointer;
    }
    .mobile-nav-toggle-icon {
        width: 32px;
        height: 32px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--primary-soft), rgba(52,195,238,.14));
        color: var(--primary-dark);
        flex: 0 0 32px;
    }
    .mobile-nav-toggle-icon span {
        display: block;
        width: 14px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }
    .mobile-nav-toggle strong {
        font: inherit;
        font-size: 0.9rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }
    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 19;
        background: rgba(24, 33, 54, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }
    .app-shell.mobile-nav-open .mobile-nav-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        width: min(86vw, 340px);
        min-height: 100vh;
        padding: 18px 14px 22px;
        border-left: 1px solid var(--line);
        border-bottom: 0;
        transform: translateX(104%);
        transition: transform var(--transition);
        overflow: auto;
    }
    .app-shell.mobile-nav-open .sidebar {
        transform: translateX(0);
    }
    .main-content {
        padding-top: 14px;
    }
}

@media (max-width: 720px) {
    .table-wrap {
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    .data-table {
        min-width: 100%;
    }
    .data-table thead {
        display: none;
    }
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
    }
    .data-table td {
        padding: 12px 14px;
        font-size: 0.92rem;
        text-align: right;
        border-bottom: 1px solid var(--line);
    }
    .data-table td:last-child {
        border-bottom: 0;
    }
    .data-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 800;
    }
    .data-table td[colspan]::before {
        display: none;
    }
    .admin-activity-table .table-actions-left {
        width: fit-content;
        margin-right: 0;
        margin-left: auto;
        align-items: flex-end;
    }
    .admin-activity-table td {
        font-size: .92rem;
    }
    .admin-activity-table .supervisor-approve-button {
        font-size: .78rem;
        line-height: 1.45;
    }
    .admin-activity-table .supervisor-approval-date {
        font-size: .7rem;
    }
}
/* SMS phonebook */
.catalog-section.custom-select-owner-open, .list-card.custom-select-owner-open, .filter-card.custom-select-owner-open, .payroll-filter-card.custom-select-owner-open { position:relative; z-index:100; overflow:visible !important; }
.custom-select.is-open { position:relative; z-index:1001; }
.custom-select.is-open .custom-select-menu { z-index:1002; }
.user-management-editor { position: relative; z-index: 30; }
.user-management-editor .catalog-section { position: relative; z-index: 31; overflow: visible; }
.user-management-editor .catalog-section-body { overflow: visible; }
.user-management-editor .ui-field:has(.custom-select.is-open) { position: relative; z-index: 1000; }
.user-management-editor .custom-select.is-open { position: relative; z-index: 1001; }
.user-management-editor .custom-select-menu { z-index: 1002; }
.sms-phonebook-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; align-items:end; margin:18px 0 22px; padding:16px; border:1px solid #eadfd5; border-radius:18px; background:rgba(255,255,255,.52); }
.sms-filter-field { display:grid; gap:7px; }
.sms-filter-field label,.sms-message-box label { font-weight:700; }
.sms-filter-field select,.sms-message-box textarea { width:100%; box-sizing:border-box; }
.sms-filter-actions { display:flex; gap:8px; flex-wrap:wrap; }
.sms-results-count,.sms-selection-toolbar { color:#89766c; font-size:.9rem; }
.sms-selection-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 2px; }
.sms-phonebook-groups-inline { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.sms-phonebook-group-card { border:1px solid #eadfd5; border-radius:16px; padding:12px; background:rgba(255,255,255,.46); }
.sms-phonebook-group-card h3 { display:flex; justify-content:space-between; margin:0 0 8px; font-size:1rem; }
.sms-phonebook-group-card h3 small { color:#89766c; }
.sms-recipient-row { display:flex; align-items:center; gap:10px; padding:10px 8px; border-top:1px solid rgba(234,223,213,.7); cursor:pointer; }
.sms-recipient-row.is-disabled { opacity:.52; cursor:not-allowed; }
.sms-recipient-main { display:grid; gap:3px; flex:1; min-width:0; }
.sms-recipient-main small,.sms-recipient-mobile { color:#89766c; font-size:.82rem; }
.sms-message-box { margin-top:20px; padding:16px; border:1px solid #eadfd5; border-radius:18px; background:rgba(255,255,255,.62); display:grid; gap:8px; }
.sms-message-box textarea { min-height:132px; resize:vertical; line-height:1.9; border-radius:12px; padding:12px 14px; }
.sms-message-meta { display:flex; justify-content:space-between; color:#89766c; }
.sms-phonebook-table-wrap { margin-top: 4px; }
.sms-phonebook-table { min-width: 760px; }
.sms-phonebook-table th:first-child, .sms-phonebook-table td:first-child { width: 42px; text-align:center; }
.sms-phonebook-table td { vertical-align:middle; }
.sms-live-state { color:#89766c; font-size:.85rem; }
.sms-delivery-table { min-width:780px; }
.sms-delivery-table td { vertical-align:middle; }
.sms-delivery-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 20px 22px; padding: 20px 18px 18px; border: 1px solid #eadfd5; border-radius: 18px; background: #fff; color: #3c2a20; }
.sms-delivery-filters .ui-field { gap: 9px; }
.sms-delivery-filters .form-actions { grid-column: 1 / -1; }
.sms-live-state { display: grid; justify-items: end; gap: 4px; }
.status-pill-sent { background: #eef5ff; color: #245ea8; }
.status-pill-delivered { background: #e9f8ef; color: #157347; }
.status-pill-pending { background: #fff4df; color: #9a5b08; }
.status-pill-undelivered,
.status-pill-failed { background: #fff0f0; color: #a62a2a; }
.status-pill-unknown { background: #f2f2f2; color: #666; }
.sms-detail-actions { display:flex; align-items:center; gap:10px; }
.sms-detail-actions form { margin:0; }
.sms-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px; }
.sms-detail-grid > div { display:grid; gap:5px; padding:14px; border:1px solid #eadfd5; border-radius:14px; background:rgba(255,255,255,.5); }
.sms-detail-grid small { color:#89766c; }
.sms-detail-block { margin:0 20px 18px; padding:16px; border:1px solid #eadfd5; border-radius:14px; background:rgba(255,255,255,.5); }
.sms-detail-block h3 { margin:0 0 10px; font-size:1rem; }
.sms-detail-block pre { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; direction:auto; font-family:inherit; line-height:1.8; }
.sms-detail-error { border-color:rgba(185,28,28,.25); color:#9b2c2c; }
.backup-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.backup-tabs a{padding:10px 16px;border:1px solid var(--line);border-radius:12px;color:inherit;text-decoration:none}.backup-tabs a.active{background:var(--accent);color:#fff}.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.backup-card{padding:20px;display:grid;gap:8px}.backup-card small,.backup-card span{color:#89766c}.backup-card strong{font-size:1.8rem}.backup-card code{direction:ltr;overflow-wrap:anywhere}.backup-panel{padding:22px;margin-bottom:18px}.backup-panel h2{margin:4px 0 0}.backup-panel p{line-height:2}.backup-panel form p{display:grid;gap:6px;margin:0}.backup-panel form p label{font-weight:600}.backup-panel form p input,.backup-panel form p select{width:100%}.backup-action-form{margin-top:18px}.backup-warning{padding:12px 14px;border-radius:12px;background:rgba(245,158,11,.1);color:#8a5b10;margin:14px 0;line-height:1.8}.backup-warning-danger{background:rgba(185,28,28,.08);color:#9b2c2c}.inline-form{display:flex!important;align-items:end;gap:10px;flex-wrap:wrap}.inline-form select{min-width:160px}.button-small{padding:6px 10px;font-size:.8rem}.table-scroll{overflow:auto;margin-top:16px}.table-scroll table{width:100%;min-width:680px;border-collapse:collapse}.table-scroll th,.table-scroll td{padding:12px;border-bottom:1px solid var(--line);text-align:right}@media(max-width:700px){.backup-grid{grid-template-columns:1fr}}
.database-management-section { overflow: hidden; }
.database-management-body { background: #fff; }
.database-form-tabs { gap: 18px; }
.database-form-tabs-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 6px; border: 1px solid #eadfd5; border-radius: 14px; background: #f7f9fc; }
.database-form-tabs-nav .form-tab-button { width: 100%; border-radius: 10px; }
.database-light-card { padding: 0 20px 20px; border: 1px solid #eadfd5; border-radius: 18px; background: #fff; color: #3c2a20; box-shadow: 0 8px 24px rgba(80,55,35,.06); }
.database-light-card .catalog-section-head { padding: 18px 0; background: #fff; }
.database-light-card h3 { margin: 6px 0 0; color: #3c2a20; }
.database-light-card p { color: #5b4638; line-height: 1.9; }
.backup-operation-card { display: grid; gap: 14px; }
.backup-operation-card > p { margin: -8px 0 0; }
.backup-confirm-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; }
.backup-confirm-strip .backup-warning { display: flex; align-items: center; margin: 0; min-height: 46px; }
.backup-otp-form { display: flex; align-items: stretch; margin: 0; }
.backup-otp-form .button { min-width: 132px; min-height: 46px; white-space: nowrap; }
.database-light-form { padding-top: 4px; }
.database-light-form.ui-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.database-light-form .form-actions { grid-column: 1 / -1; margin-top: 0; justify-content: flex-start; }
.database-light-form .form-actions .button { min-height: 46px; }
.database-light-form .ui-field input,
.database-light-form .ui-field select,
.database-light-form .ui-field textarea { background: #fff !important; color: #2f241d !important; }
.database-light-form p { display: grid; gap: 7px; margin: 0; color: #3c2a20; }
.database-light-form p label { font-weight: 700; color: #3c2a20; }
.database-light-form p input,
.database-light-form p select,
.database-light-form p textarea { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #d9d4ce; border-radius: 11px; background: #fff !important; color: #2f241d !important; font: inherit; }
.database-light-form p input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: #f59e0b; }
.database-light-form p span.helptext { color: #89766c; font-size: .82rem; line-height: 1.7; }
.database-filter-form { margin: 0 0 16px; }
@media (max-width: 700px) { .database-form-tabs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .database-light-card { padding-inline: 14px; } .backup-confirm-strip { grid-template-columns: 1fr; } .backup-otp-form .button { width: 100%; } }
@media (max-width: 900px) { .sms-delivery-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sms-delivery-filters, .database-light-form.ui-form-grid { grid-template-columns: 1fr; } .sms-live-state { justify-items: start; } }
@media (max-width:700px){.sms-detail-grid{grid-template-columns:1fr 1fr;}.sms-detail-actions{flex-wrap:wrap;}}
@media (max-width:900px){.sms-phonebook-filters,.sms-phonebook-groups-inline{grid-template-columns:1fr 1fr;}}
@media (max-width:600px){.sms-phonebook-filters,.sms-phonebook-groups-inline{grid-template-columns:1fr;}.sms-filter-actions .button{flex:1;}}
.sms-template-tabs { gap:16px; }
.sms-template-tabs-nav { padding:8px; border:1px solid var(--line); border-radius:18px; background:var(--surface-soft); }
.sms-template-tabs-nav .form-tab-button { border-radius:12px; }
.sms-tab-count { display:inline-flex; min-width:22px; justify-content:center; padding:2px 6px; border-radius:999px; background:rgba(255,255,255,.28); font-size:.75rem; }
.sms-template-tab-panel { min-width:0; }
.sms-variable-guide { display:grid; gap:8px; }
.sms-variable-guide > div { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sms-variable-guide code, .sms-variable-list code { direction:ltr; display:inline-block; padding:3px 7px; border-radius:7px; background:rgba(245,158,11,.1); color:#9a5b08; }
.sms-variable-list { display:grid; gap:5px; min-width:180px; font-size:.78rem; }
.sms-variable-list span { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }

.managed-file-editor { overflow: visible; }
.managed-file-form .ui-field:has(.checkbox-grid) { grid-column: 1 / -1; }
.managed-file-form-compact { display: grid; gap: 12px; max-width: 100%; }
.managed-file-form-card { padding: 14px; border: 1px solid #eadfd5; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(80,55,35,.04); }
.managed-file-form-card-main { padding: 16px; }
.managed-file-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr); gap: 14px; align-items: start; }
.managed-file-span-2 { grid-column: 1 / -1; }
.managed-file-access-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.managed-file-form-compact .ui-field { gap: 6px; }
.managed-file-form-compact .ui-field > label,
.managed-file-form-compact .ui-field > .ui-field-label { font-size: .82rem; }
.managed-file-form-compact .ui-field input,
.managed-file-form-compact .ui-field textarea,
.managed-file-form-compact .ui-field select { min-height: 42px; padding: 10px 12px; border-radius: 10px; }
.managed-file-form-compact .ui-field textarea { min-height: 82px; }
.managed-file-form-compact .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 220px; overflow: auto; padding-left: 2px; }
.managed-file-form-compact .checkbox-card { min-height: 40px; padding: 8px 10px; border-radius: 11px; }
.managed-file-form-compact .checkbox-card span { font-size: .82rem; line-height: 1.45; }
.managed-file-form-compact .ui-field input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 auto; }
.managed-file-switch-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-block: 12px; }
.managed-file-switch-card .ui-field { margin: 0; }
.managed-file-form-actions { justify-content: flex-start; margin-top: 2px; }
.managed-file-list-card { padding-bottom: 18px; }
.managed-file-grid { display: grid; gap: 14px; padding: 0 20px 20px; }
.managed-file-card { display: grid; gap: 12px; padding: 16px; border: 1px solid #eadfd5; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(80,55,35,.05); }
.managed-file-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.managed-file-main > div { display: grid; gap: 5px; min-width: 0; }
.managed-file-main strong { color: #34425b; font-size: 1rem; }
.managed-file-main small { color: var(--muted); direction: rtl; overflow-wrap: anywhere; }
.managed-file-card p { margin: 0; color: #5b4638; line-height: 1.8; }
.managed-file-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.managed-file-roles span { padding: 5px 9px; border-radius: 999px; background: rgba(245,158,11,.1); color: #9a5b08; font-size: .78rem; font-weight: 800; }
.managed-file-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.managed-file-actions form { margin: 0; }
.managed-file-public-link { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #f7f9fc; border: 1px solid #e8edf5; }
.managed-file-public-link label { color: var(--muted); font-size: .78rem; font-weight: 800; }
.managed-file-public-link input { width: 100%; padding: 9px 11px; border: 1px solid #d9d4ce; border-radius: 10px; background: #fff; color: #2f241d; font: inherit; font-size: .82rem; }
.managed-file-public-link-muted { color: var(--muted); font-size: .86rem; }
@media (max-width: 780px) { .managed-file-form-grid, .managed-file-access-grid, .managed-file-switch-card { grid-template-columns: 1fr; } .managed-file-form-compact .checkbox-grid { grid-template-columns: 1fr; max-height: none; } }

/* Public one-time daily activity approval */
.approval-public-body { min-height: 100vh; background: #f7f4ef; color: #302820; }
.approval-public-page { min-height: 100vh; padding: 28px 18px; background: radial-gradient(circle at 12% 8%, rgba(245,158,11,.13), transparent 30%), linear-gradient(180deg, #fffaf2 0%, #f6f3ee 100%); }
.approval-public-shell { width: min(920px, 100%); margin: 0 auto; }
.approval-public-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 16px 20px; border: 1px solid #eadfd2; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 12px 34px rgba(83,57,36,.07); }
.approval-public-brand { display: flex; align-items: center; gap: 12px; }
.approval-public-brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; }
.approval-public-brand div { display: grid; gap: 2px; }
.approval-public-brand strong { font-size: 1.08rem; color: #3b2b20; }
.approval-public-brand span { color: #8b7463; font-size: .78rem; }
.approval-security-badge { padding: 8px 12px; border-radius: 999px; background: #eef8f2; color: #16734b; font-size: .78rem; font-weight: 800; }
.approval-activity-card,
.approval-state-card { padding: 28px; border: 1px solid #eadfd2; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(83,57,36,.09); }
.approval-activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid #eee5dc; }
.approval-activity-heading h1 { margin: 10px 0 6px; color: #302820; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.55; }
.approval-activity-heading p { margin: 0; color: #786658; line-height: 1.9; }
.approval-result-badge { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.approval-result-pending { background: #fff4df; color: #9a5b08; }
.approval-result-approved { background: #e9f8ef; color: #157347; }
.approval-success-message { display: grid; gap: 4px; margin-top: 20px; padding: 16px 18px; border: 1px solid #bfe4cd; border-radius: 16px; background: #effaf3; color: #146c43; }
.approval-success-message span { font-size: .82rem; }
.approval-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.approval-status-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #eee4da; border-radius: 15px; background: #fcfaf7; }
.approval-status-grid span { color: #766457; font-size: .85rem; }
.approval-status-grid strong { font-size: .82rem; }
.approval-status-grid .is-approved { color: #157347; }
.approval-status-grid .is-pending { color: #9a5b08; }
.approval-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0; }
.approval-detail-grid > div { min-width: 0; padding: 15px 16px; border: 1px solid #eee4da; border-radius: 15px; background: #fffdf9; }
.approval-detail-grid dt { margin-bottom: 7px; color: #8b7463; font-size: .78rem; font-weight: 700; }
.approval-detail-grid dd { margin: 0; color: #352a22; font-weight: 700; line-height: 1.9; overflow-wrap: anywhere; }
.approval-detail-wide { grid-column: 1 / -1; }
.approval-files { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border: 1px dashed #ddc7ae; border-radius: 15px; background: #fffaf2; }
.approval-files > div { display: flex; gap: 10px; flex-wrap: wrap; }
.approval-files a { padding: 9px 13px; border-radius: 10px; background: #fff; color: #9a5b08; font-size: .82rem; font-weight: 800; box-shadow: inset 0 0 0 1px #ead7c0; }
.approval-confirm-form { display: grid; gap: 14px; margin-top: 22px; padding: 18px; border-radius: 17px; background: #f7f8fa; }
.approval-confirm-form p { margin: 0; color: #66584e; line-height: 1.9; }
.approval-confirm-button { width: 100%; min-height: 52px; font-size: 1rem; }
.approval-state-card { min-height: 330px; display: grid; place-items: center; align-content: center; text-align: center; }
.approval-state-card h1 { margin: 16px 0 6px; color: #352a22; }
.approval-state-card p { max-width: 560px; margin: 0; color: #786658; line-height: 2; }
.approval-state-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f8e9e8; color: #a32d28; font-size: 2rem; font-weight: 800; }
.approval-state-warning .approval-state-icon { background: #fff1d9; color: #9a5b08; }
.approval-public-footer { padding: 18px 8px 0; color: #8b7463; text-align: center; font-size: .78rem; line-height: 1.9; }
@media (max-width: 680px) {
    .approval-public-page { padding: 12px; }
    .approval-public-header { align-items: flex-start; padding: 13px; border-radius: 16px; }
    .approval-security-badge { display: none; }
    .approval-activity-card, .approval-state-card { padding: 18px; border-radius: 18px; }
    .approval-activity-heading { display: grid; }
    .approval-result-badge { justify-self: start; }
    .approval-status-grid, .approval-detail-grid { grid-template-columns: 1fr; }
    .approval-detail-wide { grid-column: auto; }
    .approval-status-grid > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}
