/* =========================================================
   Doctor Marketing — app theme (same identity as the agency site)
   night sidebar + warm paper canvas + sun / lilac / mint / coral accents
   Loaded after brand.css from layouts/partials/css.blade.php (replaces brand-dark.css)
   ========================================================= */
@import url('../fonts/dm/fonts.css');

:root {
    --night: #0E0B16; --night-2: #191527; --night-3: #251F38; --night-line: #2E2745;
    --paper: #FBF7EF; --paper-2: #F1EADB; --canvas: #F5F0E6;
    --ink: #15111F; --ink-2: #3B344D; --ink-soft: #5E5873; --muted: #8B84A0;
    --line: #E7DFCE; --line-2: #D9CFB9;
    --sun: #FFD23F; --sun-deep: #FFB000; --sun-soft: #FFF3C4;
    --lilac: #B9A4FF; --lilac-soft: #EEE8FF; --lilac-deep: #6C4DE0;
    --mint: #6EF0C2; --mint-soft: #DDFBEF; --mint-deep: #0E8F63;
    --coral: #FF7A59; --coral-soft: #FFE4DB; --coral-deep: #C8411F;
    --sky: #6FB8FF; --sky-soft: #E1F0FF;
    --r: 20px; --r-sm: 12px;
    --shadow: 0 1px 2px rgba(21,17,31,.04), 0 8px 24px -12px rgba(21,17,31,.18);
    --shadow-lg: 0 24px 60px -24px rgba(21,17,31,.35);
    --display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif;
    --latin: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;

    /* old tokens still used by a few views */
    --dm-gold: var(--sun-deep); --dm-gold-light: var(--sun); --dm-gold-dark: #B87F00;
    --dm-gold-grad: linear-gradient(135deg, #FFE27A 0%, var(--sun) 45%, var(--sun-deep) 100%);
    --theme-700: var(--night); --theme-800: var(--night-2); --theme-900: var(--night);
}

/* ---------- type ---------- */
body, .tw-font-sans, .btn, input, select, textarea, button, .select2-container, .tooltip, .popover, .toast {
    font-family: var(--body) !important;
}
h1, h2, h3, h4, h5, h6, .box-title, .modal-title, .content-header h1, .dm-display { font-family: var(--display) !important; letter-spacing: -.01em; }
.tw-font-mono, .display_currency, .total_sell, .net, .invoice_due, .total_purchase, .purchase_due, .total_expense,
.total_sell_return, .total_purchase_return { font-family: var(--latin) !important; }
::selection { background: var(--sun); color: var(--ink); }

/* ---------- canvas ---------- */
html:not(.dm-auth) { background: var(--canvas) !important; color-scheme: light; }
html:not(.dm-auth) body, html:not(.dm-auth) main, html:not(.dm-auth) body.tw-bg-gray-100, html:not(.dm-auth) main.tw-bg-gray-100,
html:not(.dm-auth) .content-wrapper, html:not(.dm-auth) .content, html:not(.dm-auth) .right-side,
html:not(.dm-auth) .thetop, html:not(.dm-auth) .thetop > main { background: var(--canvas) !important; color: var(--ink); }
html:not(.dm-auth) main h1, html:not(.dm-auth) main h2, html:not(.dm-auth) main h3, html:not(.dm-auth) main h4,
html:not(.dm-auth) .box-title, html:not(.dm-auth) .modal-title, html:not(.dm-auth) .content-header h1 { color: var(--ink) !important; }
html:not(.dm-auth) .content-header h1 { font-weight: 800 !important; }
html:not(.dm-auth) .content-header h1 small, html:not(.dm-auth) .text-muted, html:not(.dm-auth) .help-block,
html:not(.dm-auth) .tw-text-gray-500, html:not(.dm-auth) .tw-text-gray-400 { color: var(--muted) !important; }
html:not(.dm-auth) .tw-text-gray-700, html:not(.dm-auth) .tw-text-gray-600 { color: var(--ink-soft) !important; }
html:not(.dm-auth) main label, html:not(.dm-auth) .modal label { color: var(--ink-2) !important; font-weight: 600; }
html:not(.dm-auth) hr { border-color: var(--line) !important; }
html:not(.dm-auth) a { color: var(--lilac-deep); }
html:not(.dm-auth) a:hover, html:not(.dm-auth) a:focus { color: var(--night); }
html:not(.dm-auth) .text-primary { color: var(--lilac-deep) !important; }
html:not(.dm-auth) .text-info, html:not(.dm-auth) .fa-info-circle, html:not(.dm-auth) main .tw-text-primary-500,
html:not(.dm-auth) main .tw-text-primary-600, html:not(.dm-auth) main .tw-text-primary-800,
html:not(.dm-auth) main .tw-text-sky-500, html:not(.dm-auth) main .tw-text-sky-600 { color: var(--lilac-deep) !important; }

/* ---------- header ---------- */
.theme-header-bg {
    background: rgba(251, 247, 239, .86) !important; background-image: none !important;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line) !important;
    /* the blur makes the header its own layer: keep it (and its popovers, like the calculator) above the page */
    position: relative; z-index: 1040;
}
.theme-header-bg .tw-text-white, .theme-header-bg summary, .theme-header-bg svg { color: var(--ink) !important; }
.theme-btn-bg, .theme-header-bg .theme-btn-bg {
    background: #fff !important; color: var(--ink) !important; border-radius: 999px !important;
    box-shadow: inset 0 0 0 1px var(--line) !important; --tw-ring-color: transparent !important;
}
.theme-btn-bg:hover { background: var(--night) !important; color: #fff !important; box-shadow: none !important; }
.theme-btn-bg:hover svg, .theme-btn-bg:hover span { color: #fff !important; }
.theme-btn-bg:focus, .theme-btn-bg:active { background: var(--night-2) !important; color: var(--sun) !important; }
/* the POS button is the main action of the header */
.theme-header-bg a[href*="/pos/create"].theme-btn-bg { background: var(--sun) !important; box-shadow: none !important; font-weight: 700; }
.theme-header-bg a[href*="/pos/create"].theme-btn-bg:hover { background: var(--night) !important; }

/* ---------- sidebar (night, like the site nav) ---------- */
aside.side-bar, aside.side-bar.tw-bg-white { background: var(--night) !important; }
aside.side-bar .tw-border-r, #side-bar { border-color: var(--night-line) !important; }
.dm-sidebar-brand {
    background: radial-gradient(90% 120% at 50% 0%, rgba(185,164,255,.22) 0%, rgba(14,11,22,0) 70%), var(--night) !important;
    border-bottom: 1px solid var(--night-line) !important; padding: 16px 12px 12px !important; gap: 6px !important;
}
.dm-sidebar-brand img { max-width: 64px !important; max-height: 64px !important; filter: drop-shadow(0 8px 18px rgba(255,210,63,.25)) !important; }
.dm-sidebar-brand .side-bar-heading { color: #fff !important; font-family: var(--display) !important; font-weight: 700 !important; font-size: 15px !important; }
.dm-sidebar-brand .side-bar-heading small, .dm-sidebar-brand .tw-text-xs { color: var(--muted) !important; }
aside.side-bar #sidebar-search { color: #fff !important; }
aside.side-bar .tw-bg-gray-100 { background: var(--night-2) !important; border-color: var(--night-line) !important; border-radius: 999px !important; }
aside.side-bar input::placeholder { color: var(--muted) !important; }
#side-bar a { color: #D9D3EA !important; border-radius: 14px !important; }
#side-bar a svg, #side-bar a i { color: var(--muted) !important; }
#side-bar .theme-sidebar-hover:hover, #side-bar .theme-sidebar-hover:focus { background: var(--night-3) !important; color: #fff !important; }
#side-bar a:hover svg, #side-bar a:hover i { color: var(--lilac) !important; }
#side-bar .theme-sidebar-active, #side-bar a.theme-sidebar-active, #side-bar a.theme-sidebar-active:hover,
#side-bar a.theme-sidebar-active:focus, #side-bar .theme-sidebar-active.theme-sidebar-hover:hover {
    background: var(--sun) !important; color: var(--ink) !important; font-weight: 700 !important;
    box-shadow: 0 8px 22px -10px rgba(255,210,63,.7) !important;
}
#side-bar a.theme-sidebar-active svg, #side-bar a.theme-sidebar-active i, #side-bar a.theme-sidebar-active:hover svg { color: var(--ink) !important; }
#side-bar .theme-sidebar-child-hover:hover, #side-bar .theme-sidebar-child-active { color: var(--sun) !important; }
#side-bar .chiled, #side-bar [class*="tw-border-l"], #side-bar [class*="tw-border-s"] { border-color: var(--night-line) !important; }
#side-bar .tw-text-gray-400 { color: var(--muted) !important; }
#side-bar::-webkit-scrollbar { width: 6px; }
#side-bar::-webkit-scrollbar-thumb { background: var(--night-3) !important; border-radius: 6px; }
#side-bar::-webkit-scrollbar-track { background: transparent !important; }

/* ---------- cards / boxes ---------- */
html:not(.dm-auth) main .tw-bg-white, html:not(.dm-auth) .modal .tw-bg-white,
html:not(.dm-auth) .box, html:not(.dm-auth) .box-solid, html:not(.dm-auth) .panel, html:not(.dm-auth) .well,
html:not(.dm-auth) .info-box, html:not(.dm-auth) .nav-tabs-custom, html:not(.dm-auth) .nav-tabs-custom > .tab-content,
html:not(.dm-auth) .callout, html:not(.dm-auth) .list-group-item {
    background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important;
}
html:not(.dm-auth) .box, html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white, html:not(.dm-auth) main .tw-rounded-2xl.tw-bg-white,
html:not(.dm-auth) .nav-tabs-custom, html:not(.dm-auth) .panel { border-radius: var(--r) !important; box-shadow: var(--shadow) !important; }
html:not(.dm-auth) .box { border: 1px solid var(--line) !important; border-top: 1px solid var(--line) !important; }
html:not(.dm-auth) .box.box-primary, html:not(.dm-auth) .box-primary { border-top: 1px solid var(--line) !important; }
html:not(.dm-auth) main .tw-bg-white.tw-ring-1, html:not(.dm-auth) main [class*="tw-ring-gray"] { --tw-ring-color: var(--line) !important; }
html:not(.dm-auth) main .tw-shadow-sm, html:not(.dm-auth) main .tw-shadow-md { box-shadow: var(--shadow) !important; }
html:not(.dm-auth) main .hover\:tw-shadow-md:hover { box-shadow: var(--shadow-lg) !important; }
html:not(.dm-auth) main .tw-bg-gray-50, html:not(.dm-auth) main .tw-bg-gray-100, html:not(.dm-auth) main .tw-bg-gray-200,
html:not(.dm-auth) main .tw-bg-\[\#f8fafc\], html:not(.dm-auth) main .tw-bg-slate-50, html:not(.dm-auth) main .tw-bg-slate-100,
html:not(.dm-auth) .box-header.with-border, html:not(.dm-auth) .panel-heading, html:not(.dm-auth) .box-footer, html:not(.dm-auth) .panel-footer {
    background-color: var(--paper) !important; border-color: var(--line) !important;
}
html:not(.dm-auth) .box-header { background: transparent !important; }
html:not(.dm-auth) .box-header .box-title { font-weight: 700 !important; }
html:not(.dm-auth) main .tw-border-gray-200, html:not(.dm-auth) main .tw-border-gray-100, html:not(.dm-auth) main .tw-border-gray-300,
html:not(.dm-auth) main [class*="tw-border-[#e2e8f0]"], html:not(.dm-auth) main .tw-divide-gray-200 > * { border-color: var(--line) !important; }

/* icon chips on cards: the agency palette */
html:not(.dm-auth) main .tw-bg-sky-100 { background: var(--sky-soft) !important; color: #2F78C8 !important; }
html:not(.dm-auth) main .tw-bg-green-100, html:not(.dm-auth) main .tw-bg-emerald-100 { background: var(--mint-soft) !important; color: var(--mint-deep) !important; }
html:not(.dm-auth) main .tw-bg-yellow-100, html:not(.dm-auth) main .tw-bg-orange-100 { background: var(--sun-soft) !important; color: #A26A00 !important; }
html:not(.dm-auth) main .tw-bg-red-100 { background: var(--coral-soft) !important; color: var(--coral-deep) !important; }
html:not(.dm-auth) main .tw-bg-blue-100, html:not(.dm-auth) main .tw-bg-purple-100, html:not(.dm-auth) main .tw-bg-indigo-100 { background: var(--lilac-soft) !important; color: var(--lilac-deep) !important; }
html:not(.dm-auth) main [class*="tw-bg-"][class*="-100"] svg { color: inherit !important; }

/* ---------- dashboard numbers: coloured blocks like the site results ---------- */
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_sell):not(:has(table)),
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.net):not(:has(table)),
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.invoice_due):not(:has(table)),
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_sell_return):not(:has(table)),
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_purchase):not(:has(table)),
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.purchase_due):not(:has(table)),
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_purchase_return):not(:has(table)),
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_expense):not(:has(table)) { border-radius: 24px !important; --tw-ring-color: transparent !important; overflow: hidden; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_sell):not(:has(table)) { background: var(--sun) !important; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.net):not(:has(table)) { background: var(--mint) !important; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.invoice_due):not(:has(table)) { background: var(--coral) !important; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_sell_return):not(:has(table)) { background: var(--lilac) !important; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_purchase):not(:has(table)) { background: var(--night) !important; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.purchase_due):not(:has(table)) { background: #fff !important; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_purchase_return):not(:has(table)) { background: var(--sky) !important; }
html:not(.dm-auth) main .tw-rounded-xl.tw-bg-white:has(.total_expense):not(:has(table)) { background: var(--paper-2) !important; }
html:not(.dm-auth) main .tw-rounded-xl:has(.total_sell):not(:has(table)) *, html:not(.dm-auth) main .tw-rounded-xl:has(.net):not(:has(table)) *,
html:not(.dm-auth) main .tw-rounded-xl:has(.invoice_due):not(:has(table)) *, html:not(.dm-auth) main .tw-rounded-xl:has(.total_sell_return):not(:has(table)) *,
html:not(.dm-auth) main .tw-rounded-xl:has(.total_purchase_return):not(:has(table)) * { color: var(--ink) !important; }
html:not(.dm-auth) main .tw-rounded-xl:has(.total_purchase):not(:has(table)) * { color: #fff !important; }
html:not(.dm-auth) main .tw-rounded-xl:has(.total_purchase):not(:has(table)) .tw-text-gray-500 { color: var(--on-night-soft, #A69FBF) !important; }
html:not(.dm-auth) main .tw-rounded-xl:has(.total_sell):not(:has(table)) [class*="tw-bg-"][class*="-100"],
html:not(.dm-auth) main .tw-rounded-xl:has(.net):not(:has(table)) [class*="tw-bg-"][class*="-100"],
html:not(.dm-auth) main .tw-rounded-xl:has(.invoice_due):not(:has(table)) [class*="tw-bg-"][class*="-100"],
html:not(.dm-auth) main .tw-rounded-xl:has(.total_sell_return):not(:has(table)) [class*="tw-bg-"][class*="-100"],
html:not(.dm-auth) main .tw-rounded-xl:has(.total_purchase_return):not(:has(table)) [class*="tw-bg-"][class*="-100"] { background: rgba(255,255,255,.55) !important; color: var(--ink) !important; }
html:not(.dm-auth) main .tw-rounded-xl:has(.total_purchase):not(:has(table)) [class*="tw-bg-"][class*="-100"] { background: var(--night-3) !important; color: var(--sun) !important; }
html:not(.dm-auth) main .tw-rounded-xl:has(.total_purchase):not(:has(table)) [class*="tw-bg-"][class*="-100"] svg { color: var(--sun) !important; }
/* the big numbers are the dashboard cards' only: the same classes sit in report tables and totals */
html:not(.dm-auth) main .tw-truncate.tw-font-mono:is(.total_sell, .net, .invoice_due, .total_purchase, .purchase_due, .total_expense, .total_sell_return, .total_purchase_return) { font-size: 26px !important; font-weight: 700 !important; letter-spacing: -.02em !important; }

/* ---------- forms ---------- */
html:not(.dm-auth) .form-control, html:not(.dm-auth) .select2-container--default .select2-selection--single,
html:not(.dm-auth) .select2-container--default .select2-selection--multiple, html:not(.dm-auth) textarea,
html:not(.dm-auth) input[type=text], html:not(.dm-auth) input[type=number], html:not(.dm-auth) input[type=email],
html:not(.dm-auth) input[type=password], html:not(.dm-auth) input[type=search], html:not(.dm-auth) select {
    background-color: #fff !important; color: var(--ink) !important; border-color: var(--line-2) !important; border-radius: var(--r-sm) !important;
}
html:not(.dm-auth) .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0 !important; }
html:not(.dm-auth) .form-control::placeholder, html:not(.dm-auth) input::placeholder, html:not(.dm-auth) textarea::placeholder { color: #ABA4BC !important; }
html:not(.dm-auth) .form-control[readonly], html:not(.dm-auth) .form-control[disabled], html:not(.dm-auth) fieldset[disabled] .form-control { background-color: var(--paper) !important; color: var(--ink-soft) !important; }
html:not(.dm-auth) .form-control:focus, html:not(.dm-auth) input:focus, html:not(.dm-auth) textarea:focus,
html:not(.dm-auth) .select2-container--focus .select2-selection, html:not(.dm-auth) .select2-container--open .select2-selection {
    border-color: var(--night) !important; box-shadow: 0 0 0 4px rgba(255,210,63,.45) !important; outline: 0 !important;
}
html:not(.dm-auth) .input-group-addon, html:not(.dm-auth) .input-group-btn > .btn-default { background: var(--paper) !important; color: var(--ink-soft) !important; border-color: var(--line-2) !important; }
html:not(.dm-auth) .input-group-addon i, html:not(.dm-auth) .input-group-addon .fa, html:not(.dm-auth) .input-group-addon .fas { color: var(--ink-soft) !important; }
html:not(.dm-auth) .select2-container--default .select2-selection__rendered { color: var(--ink) !important; }
html:not(.dm-auth) .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--lilac-soft) !important; border-color: var(--lilac) !important; color: var(--ink) !important; border-radius: 999px !important; }
html:not(.dm-auth) .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color: var(--ink-soft) !important; }
html:not(.dm-auth) .select2-dropdown { background: #fff !important; border-color: var(--line-2) !important; border-radius: var(--r-sm) !important; box-shadow: var(--shadow-lg); overflow: hidden; }
html:not(.dm-auth) .select2-search__field { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--line-2) !important; }
html:not(.dm-auth) .select2-results__option { color: var(--ink-2); }
html:not(.dm-auth) .select2-results__option[aria-selected=true] { background: var(--paper-2) !important; color: var(--ink) !important; }
html:not(.dm-auth) .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--sun) !important; color: var(--ink) !important; }
html:not(.dm-auth) input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset !important; -webkit-text-fill-color: var(--ink) !important; }
html:not(.dm-auth) input[type=checkbox], html:not(.dm-auth) input[type=radio] { accent-color: var(--night); }
html:not(.dm-auth) .icheckbox_square-blue, html:not(.dm-auth) .iradio_square-blue { filter: hue-rotate(40deg) saturate(1.2); }
html:not(.dm-auth) input[type=file] { color: var(--ink-soft); }
html:not(.dm-auth) input[type=file]::file-selector-button { background: var(--night); color: #fff; border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 700; margin-inline-end: 10px; cursor: pointer; font-family: inherit; }

/* ---------- buttons: pills ---------- */
html:not(.dm-auth) .btn, html:not(.dm-auth) .tw-dw-btn { border-radius: 999px !important; font-weight: 700 !important; transition: transform .15s, background .15s, box-shadow .15s; }
html:not(.dm-auth) .btn:active, html:not(.dm-auth) .tw-dw-btn:active { transform: scale(.97); }
html:not(.dm-auth) .input-group .btn, html:not(.dm-auth) .btn-group > .btn, html:not(.dm-auth) .dt-buttons .btn,
html:not(.dm-auth) .input-group-btn > .btn { border-radius: var(--r-sm) !important; }
.btn-primary, .bg-primary, .tw-dw-btn-primary, .btn-primary:focus, .btn-primary.focus,
html:not(.dm-auth) .tw-bg-gradient-to-r, html:not(.dm-auth) .tw-bg-gradient-to-r.tw-from-indigo-500, html:not(.dm-auth) .tw-bg-gradient-to-r.tw-from-indigo-600,
html:not(.dm-auth) .btn-primary.form-control {
    background: var(--sun) !important; background-image: none !important; border: 0 !important; color: var(--ink) !important; font-weight: 700;
    box-shadow: 0 8px 20px -10px rgba(255,176,0,.8) !important;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .tw-dw-btn-primary:hover,
html:not(.dm-auth) .tw-bg-gradient-to-r:hover { background: var(--night) !important; color: #fff !important; box-shadow: none !important; }
html:not(.dm-auth) .btn-primary svg, html:not(.dm-auth) .btn-primary i, html:not(.dm-auth) .tw-bg-gradient-to-r svg, html:not(.dm-auth) .tw-bg-gradient-to-r i { color: currentColor !important; stroke: currentColor; }
html:not(.dm-auth) .tw-bg-gradient-to-r.tw-text-transparent { -webkit-text-fill-color: var(--ink); }
html:not(.dm-auth) .btn-default, html:not(.dm-auth) .btn-white, html:not(.dm-auth) .tw-dw-btn-outline, html:not(.dm-auth) .dt-buttons .btn,
html:not(.dm-auth) .buttons-collection, html:not(.dm-auth) .btn-group > .btn-default {
    background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important;
}
html:not(.dm-auth) .btn-default:hover, html:not(.dm-auth) .dt-buttons .btn:hover, html:not(.dm-auth) .tw-dw-btn-outline:hover { background: var(--night) !important; color: #fff !important; border-color: var(--night) !important; }
html:not(.dm-auth) .btn-success, html:not(.dm-auth) .tw-dw-btn-success { background: var(--mint) !important; color: var(--ink) !important; border: 0 !important; }
html:not(.dm-auth) .btn-success:hover, html:not(.dm-auth) .tw-dw-btn-success:hover { background: #45dca7 !important; color: var(--ink) !important; }
html:not(.dm-auth) .btn-success i, html:not(.dm-auth) .btn-success svg { color: var(--ink) !important; }
html:not(.dm-auth) .btn-danger, html:not(.dm-auth) .tw-dw-btn-error { background: var(--coral) !important; color: #fff !important; border: 0 !important; }
html:not(.dm-auth) .btn-danger:hover { background: var(--coral-deep) !important; }
html:not(.dm-auth) .btn-warning { background: var(--sun-deep) !important; color: var(--ink) !important; border: 0 !important; }
html:not(.dm-auth) .btn-info { background: var(--lilac) !important; color: var(--ink) !important; border: 0 !important; }
html:not(.dm-auth) .btn-info:hover { background: var(--lilac-deep) !important; color: #fff !important; }
html:not(.dm-auth) .btn-link, html:not(.dm-auth) .btn-link:focus { color: var(--lilac-deep) !important; }
html:not(.dm-auth) .btn-link:hover { color: var(--night) !important; background: transparent !important; }
.btn-dark-gold { background: var(--night) !important; color: var(--sun) !important; border: 0 !important; }

/* ---------- tables ---------- */
html:not(.dm-auth) .table, html:not(.dm-auth) table.dataTable { background: #fff !important; color: var(--ink) !important; }
table.dataTable thead th, .table > thead > tr > th, html:not(.dm-auth) .table > thead > tr > th {
    background: var(--paper) !important; color: var(--ink-soft) !important; border-color: var(--line) !important;
    font-weight: 700 !important; font-size: 12.5px;
}
html:not(.dm-auth) .table > tbody > tr > td, html:not(.dm-auth) .table > tfoot > tr > td, html:not(.dm-auth) .table > tfoot > tr > th { color: var(--ink) !important; border-color: var(--line) !important; }
html:not(.dm-auth) .table-striped > tbody > tr:nth-of-type(odd), html:not(.dm-auth) table.dataTable.stripe tbody tr.odd,
html:not(.dm-auth) table.dataTable.display tbody tr.odd { background-color: #FDFBF6 !important; }
html:not(.dm-auth) .table-striped > tbody > tr:nth-of-type(even), html:not(.dm-auth) table.dataTable tbody tr { background-color: #fff !important; }
html:not(.dm-auth) .table-hover > tbody > tr:hover, html:not(.dm-auth) table.dataTable tbody tr:hover,
html:not(.dm-auth) table.dataTable tbody tr:hover > td { background-color: var(--sun-soft) !important; }
html:not(.dm-auth) .table-bordered, html:not(.dm-auth) .table-bordered > tbody > tr > td, html:not(.dm-auth) .table-bordered > thead > tr > th { border-color: var(--line) !important; }
html:not(.dm-auth) .table > tfoot > tr, html:not(.dm-auth) .footer-total, html:not(.dm-auth) tr.bg-gray, html:not(.dm-auth) .bg-gray { background: var(--paper-2) !important; color: var(--ink) !important; font-weight: 700; }
html:not(.dm-auth) .dataTables_wrapper .dataTables_info, html:not(.dm-auth) .dataTables_wrapper .dataTables_length,
html:not(.dm-auth) .dataTables_wrapper .dataTables_filter, html:not(.dm-auth) .dataTables_wrapper label { color: var(--ink-soft) !important; }
/* the search box must not spill past its column (it pokes out of the card on the dashboard) */
html:not(.dm-auth) .dataTables_wrapper .dataTables_filter label { display: block; max-width: 100%; }
html:not(.dm-auth) .dataTables_wrapper .dataTables_filter input { max-width: 100%; box-sizing: border-box; margin-inline-start: 0 !important; }
html:not(.dm-auth) .dataTables_length select { background: #fff !important; border: 1px solid var(--line-2) !important; border-radius: 999px !important; }
html:not(.dm-auth) .dataTables_processing { background: rgba(255,255,255,.95) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; box-shadow: var(--shadow-lg); }
html:not(.dm-auth) .pagination > li > a, html:not(.dm-auth) .pagination > li > span { background: #fff !important; color: var(--ink-2) !important; border-color: var(--line) !important; }
html:not(.dm-auth) .pagination > li > a:hover { background: var(--paper-2) !important; color: var(--ink) !important; }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover,
html:not(.dm-auth) .pagination > .active > a, html:not(.dm-auth) .pagination > .active > span { background: var(--night) !important; border-color: var(--night) !important; color: #fff !important; }
html:not(.dm-auth) .pagination > .disabled > a, html:not(.dm-auth) .pagination > .disabled > span { color: #BDB6CC !important; background: #fff !important; }
html:not(.dm-auth) .table th.bg-success, html:not(.dm-auth) .table tr.bg-success th, html:not(.dm-auth) .add-product-price-table th,
html:not(.dm-auth) .table th.bg-primary, html:not(.dm-auth) .table th.bg-info, html:not(.dm-auth) .table tr.bg-info th { background: var(--paper-2) !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* ---------- labels / badges / alerts ---------- */
html:not(.dm-auth) .label, html:not(.dm-auth) .badge { font-weight: 700; border-radius: 999px !important; padding: .3em .8em; }
html:not(.dm-auth) .label.bg-green, html:not(.dm-auth) .label-success, html:not(.dm-auth) .badge.bg-green, html:not(.dm-auth) .bg-light-green,
html:not(.dm-auth) span.bg-green, html:not(.dm-auth) .label.bg-light-green { background: var(--mint-soft) !important; color: var(--mint-deep) !important; }
html:not(.dm-auth) .label.bg-yellow, html:not(.dm-auth) .label-warning, html:not(.dm-auth) .bg-yellow, html:not(.dm-auth) .bg-orange { background: var(--sun-soft) !important; color: #8A5A00 !important; }
html:not(.dm-auth) .label.bg-aqua, html:not(.dm-auth) .label.bg-info, html:not(.dm-auth) .label-info, html:not(.dm-auth) .bg-aqua, html:not(.dm-auth) .bg-info,
html:not(.dm-auth) .bg-light-blue, html:not(.dm-auth) .label-primary { background: var(--lilac-soft) !important; color: var(--lilac-deep) !important; }
html:not(.dm-auth) .label.bg-red, html:not(.dm-auth) .label-danger, html:not(.dm-auth) .bg-red, html:not(.dm-auth) .bg-maroon { background: var(--coral-soft) !important; color: var(--coral-deep) !important; }
html:not(.dm-auth) .label.bg-gray, html:not(.dm-auth) .label-default, html:not(.dm-auth) .bg-light-gray { background: var(--paper-2) !important; color: var(--ink-2) !important; }
html:not(.dm-auth) .bg-success { background: var(--mint-soft) !important; color: var(--ink) !important; }
html:not(.dm-auth) .alert, html:not(.dm-auth) .callout { border-radius: var(--r-sm) !important; border-width: 1px !important; }
html:not(.dm-auth) .alert-info, html:not(.dm-auth) .callout-info { background: var(--lilac-soft) !important; color: var(--ink) !important; border-color: var(--lilac) !important; }
html:not(.dm-auth) .alert-success, html:not(.dm-auth) .callout-success { background: var(--mint-soft) !important; color: var(--ink) !important; border-color: var(--mint) !important; }
html:not(.dm-auth) .alert-warning, html:not(.dm-auth) .callout-warning { background: var(--sun-soft) !important; color: var(--ink) !important; border-color: var(--sun) !important; }
html:not(.dm-auth) .alert-danger, html:not(.dm-auth) .callout-danger { background: var(--coral-soft) !important; color: var(--ink) !important; border-color: var(--coral) !important; }

/* ---------- tabs ---------- */
html:not(.dm-auth) .nav-tabs, html:not(.dm-auth) .nav-tabs-custom > .nav-tabs { border-color: var(--line) !important; background: transparent !important; }
html:not(.dm-auth) .nav-tabs > li > a, html:not(.dm-auth) .nav-tabs-custom > .nav-tabs > li > a { color: var(--ink-soft) !important; font-weight: 600; }
.nav-tabs-custom > .nav-tabs > li.active, html:not(.dm-auth) .nav-tabs-custom > .nav-tabs > li.active { border-top-color: var(--sun) !important; }
html:not(.dm-auth) .nav-tabs > li.active > a, html:not(.dm-auth) .nav-tabs-custom > .nav-tabs > li.active > a,
html:not(.dm-auth) .nav-tabs > li.active > a:hover { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; font-weight: 700; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background: var(--night) !important; color: #fff !important; border-radius: 999px !important; }

/* ---------- menus, modals, pickers, alerts ---------- */
html:not(.dm-auth) .dropdown-menu, html:not(.dm-auth) .tw-dw-dropdown-content, html:not(.dm-auth) .tw-dw-menu {
    background: #fff !important; border: 1px solid var(--line) !important; color: var(--ink) !important; border-radius: 16px !important; box-shadow: var(--shadow-lg) !important; padding: 6px !important;
}
html:not(.dm-auth) .dropdown-menu > li > a, html:not(.dm-auth) .tw-dw-menu a { color: var(--ink-2) !important; border-radius: 10px; }
html:not(.dm-auth) .dropdown-menu > li > a:hover, html:not(.dm-auth) .tw-dw-menu a:hover { background: var(--paper-2) !important; color: var(--ink) !important; }
html:not(.dm-auth) .dropdown-menu .divider { background: var(--line) !important; }
html:not(.dm-auth) .modal-content { background: #fff !important; color: var(--ink) !important; border: 0 !important; border-radius: 24px !important; box-shadow: 0 40px 90px -30px rgba(14,11,22,.6) !important; overflow: hidden; }
.modal-header, html:not(.dm-auth) .modal-header { background: var(--night) !important; color: #fff !important; border-bottom: 0 !important; padding: 16px 22px !important; }
.modal-header .modal-title, html:not(.dm-auth) .modal-header .modal-title { color: #fff !important; font-weight: 700 !important; }
.modal-header .close { color: #fff !important; opacity: .8; text-shadow: none !important; }
html:not(.dm-auth) .modal-footer { border-color: var(--line) !important; background: var(--paper); }
html:not(.dm-auth) .modal-backdrop.in { background: var(--night); opacity: .55; }
html:not(.dm-auth) .popover { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; border-radius: 16px !important; box-shadow: var(--shadow-lg) !important; }
html:not(.dm-auth) .popover-title { background: var(--paper) !important; border-color: var(--line) !important; }
html:not(.dm-auth) .popover.bottom > .arrow:after { border-bottom-color: #fff !important; }
html:not(.dm-auth) .popover.top > .arrow:after { border-top-color: #fff !important; }
html:not(.dm-auth) .popover.left > .arrow:after { border-left-color: #fff !important; }
html:not(.dm-auth) .popover.right > .arrow:after { border-right-color: #fff !important; }
html:not(.dm-auth) .tooltip-inner { background: var(--night) !important; border-radius: 10px; padding: 6px 12px; }
html:not(.dm-auth) .daterangepicker, html:not(.dm-auth) .datepicker, html:not(.dm-auth) .bootstrap-datetimepicker-widget {
    background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; border-radius: 16px !important; box-shadow: var(--shadow-lg) !important;
}
html:not(.dm-auth) .daterangepicker .calendar-table { background: #fff !important; }
html:not(.dm-auth) .daterangepicker td.off { color: #C9C2D6 !important; background: #fff !important; }
html:not(.dm-auth) .daterangepicker td.available:hover, html:not(.dm-auth) .daterangepicker .ranges li:hover, html:not(.dm-auth) .datepicker td.day:hover { background: var(--paper-2) !important; color: var(--ink) !important; }
html:not(.dm-auth) .daterangepicker td.active, html:not(.dm-auth) .daterangepicker td.active:hover, html:not(.dm-auth) .daterangepicker .ranges li.active,
html:not(.dm-auth) .datepicker td.active { background: var(--night) !important; color: #fff !important; }
html:not(.dm-auth) .daterangepicker td.in-range { background: var(--sun-soft) !important; color: var(--ink) !important; }
html:not(.dm-auth) .daterangepicker .ranges li { border-radius: 999px; }
html:not(.dm-auth) .swal-modal, html:not(.dm-auth) .swal2-popup { background: #fff !important; border-radius: 24px !important; }
html:not(.dm-auth) .swal-title, html:not(.dm-auth) .swal-text, html:not(.dm-auth) .swal2-title { color: var(--ink) !important; font-family: var(--display) !important; }
html:not(.dm-auth) .swal-button { background: var(--sun) !important; color: var(--ink) !important; border-radius: 999px !important; font-weight: 700; box-shadow: none !important; }
html:not(.dm-auth) .swal-button:hover { background: var(--night) !important; color: #fff !important; }
html:not(.dm-auth) .swal-button--cancel { background: var(--paper-2) !important; color: var(--ink) !important; }
html:not(.dm-auth) .swal-button--danger { background: var(--coral) !important; color: #fff !important; }
html:not(.dm-auth) #toast-container > div { border-radius: 16px !important; box-shadow: var(--shadow-lg) !important; opacity: 1 !important; font-weight: 600; }
html:not(.dm-auth) .toast-success { background-color: var(--night) !important; }
html:not(.dm-auth) .toast-error { background-color: var(--coral-deep) !important; }
html:not(.dm-auth) .toast-warning { background-color: #B87F00 !important; }

/* rich text editor */
html:not(.dm-auth) .tox-tinymce { border-color: var(--line-2) !important; border-radius: var(--r-sm) !important; }

/* calendar */
html:not(.dm-auth) .fc-unthemed th, html:not(.dm-auth) .fc-unthemed td, html:not(.dm-auth) .fc-unthemed thead, html:not(.dm-auth) .fc-unthemed tbody,
html:not(.dm-auth) .fc-unthemed .fc-row { border-color: var(--line) !important; }
html:not(.dm-auth) .fc-head, html:not(.dm-auth) .fc-day-header { background: var(--paper) !important; color: var(--ink-soft) !important; }
html:not(.dm-auth) .fc-unthemed td.fc-today { background: var(--sun-soft) !important; }
html:not(.dm-auth) .fc button, html:not(.dm-auth) .fc-button { background: #fff !important; color: var(--ink) !important; border-color: var(--line-2) !important; text-shadow: none !important; box-shadow: none !important; }
html:not(.dm-auth) .fc-state-active, html:not(.dm-auth) .fc-button-active { background: var(--night) !important; color: #fff !important; }

/* hovers that the old dark theme forced */
html:not(.dm-auth) main [class*="hover:tw-bg-gray-"]:hover, html:not(.dm-auth) main [class*="hover:tw-bg-slate-"]:hover,
html:not(.dm-auth) .modal [class*="hover:tw-bg-gray-"]:hover { background-color: var(--paper-2) !important; color: var(--ink) !important; }

/* scrollbars */
html:not(.dm-auth) ::-webkit-scrollbar { width: 10px; height: 10px; }
html:not(.dm-auth) ::-webkit-scrollbar-track { background: transparent; }
html:not(.dm-auth) ::-webkit-scrollbar-thumb { background: #D6CDBB; border-radius: 10px; border: 2px solid var(--canvas); }
html:not(.dm-auth) ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ===== POS ===== */
html:not(.dm-auth) .pos-tab-content, html:not(.dm-auth) .product_box, html:not(.dm-auth) .pos_product_div { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }
html:not(.dm-auth) .pos-card {
    background: #fff !important; border: 1px solid var(--line) !important; color: var(--ink) !important; border-radius: 18px !important;
    box-shadow: var(--shadow) !important; transition: transform .15s, box-shadow .15s, border-color .15s !important;
}
html:not(.dm-auth) .pos-card .pos-card-name { color: var(--ink) !important; font-weight: 700; }
html:not(.dm-auth) .pos-card:hover { border-color: var(--night) !important; transform: translateY(-2px); box-shadow: var(--shadow-lg) !important; }
html:not(.dm-auth) .pos-card.is-active { background: var(--sun) !important; border-color: transparent !important; }
html:not(.dm-auth) .pos-card.is-active .pos-card-name { color: var(--ink) !important; }
html:not(.dm-auth) .pos-card-subcat-dot { color: var(--lilac-deep) !important; }
html:not(.dm-auth) .pos-drawer-panel, html:not(.dm-auth) .pos-drawer-panel.tw-bg-white { background: var(--canvas) !important; color: var(--ink) !important; }
html:not(.dm-auth) .pos-drawer-category::before, html:not(.dm-auth) .pos-drawer-brand::before { background: var(--sun) !important; }
html:not(.dm-auth) .pos-drawer-panel [class*="close-side-bar"] { background: #fff !important; color: var(--ink) !important; border-radius: 999px !important; }
html:not(.dm-auth) .pos-drawer-panel [class*="close-side-bar"]:hover { background: var(--night) !important; color: #fff !important; }
html:not(.dm-auth) .tw-dw-drawer-toggle:checked ~ .tw-dw-drawer-side > .tw-dw-drawer-overlay { background-color: rgba(14,11,22,.5) !important; }
html:not(.dm-auth) #pos_table > thead > tr > th { background: var(--paper) !important; color: var(--ink-soft) !important; border-color: var(--line) !important; }
html:not(.dm-auth) body #pos_table > tbody > tr:nth-child(n), html:not(.dm-auth) body #pos_table > tbody > tr:nth-child(n) > td { background-color: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }
html:not(.dm-auth) body #pos_table > tbody > tr:nth-child(2n):not(.pos-empty-state-row) > td { background-color: #FDFBF6 !important; }
html:not(.dm-auth) #pos_table .pos_line_total_text, html:not(.dm-auth) #pos_table .pos_line_total { color: var(--ink) !important; font-weight: 700; font-family: var(--latin) !important; }
html:not(.dm-auth) #pos_table .input-group .btn, html:not(.dm-auth) #pos_table .quantity-up, html:not(.dm-auth) #pos_table .quantity-down { background: var(--paper) !important; border-color: var(--line-2) !important; color: var(--ink) !important; }
html:not(.dm-auth) .pos_form_totals, html:not(.dm-auth) .pos_form_totals .pos_totals_left, html:not(.dm-auth) .pos_form_totals .pos_totals_cell { background: #fff !important; border-color: var(--line) !important; color: var(--ink) !important; }
html:not(.dm-auth) .pos_form_totals .pos_totals_label { color: var(--muted) !important; }
html:not(.dm-auth) .pos_form_totals .pos_totals_value { color: var(--ink) !important; font-family: var(--latin) !important; font-weight: 700; }
html:not(.dm-auth) .pos_form_totals .pos_totals_value--danger { color: var(--coral-deep) !important; }
html:not(.dm-auth) .pos_form_totals .pos_totals_right { background: var(--night) !important; border-color: var(--night) !important; border-radius: var(--r) !important; }
html:not(.dm-auth) .pos_form_totals .pos_totals_right_label { color: #A69FBF !important; }
html:not(.dm-auth) .pos_form_totals .pos_totals_right_value { color: var(--sun) !important; background: none !important; -webkit-text-fill-color: var(--sun); font-family: var(--latin) !important; }
html:not(.dm-auth) .pos_form_totals .pos_totals_edit, html:not(.dm-auth) .pos_form_totals .fa-info-circle { color: var(--lilac-deep) !important; }
html:not(.dm-auth) label[class*="hover:tw-bg-violet"]:hover, html:not(.dm-auth) label[class*="hover:tw-bg-indigo"]:hover,
html:not(.dm-auth) main [class*="hover:tw-bg-violet"]:hover, html:not(.dm-auth) main [class*="hover:tw-bg-indigo"]:hover { background-color: var(--lilac-soft) !important; border-color: var(--lilac) !important; color: var(--ink) !important; }
html:not(.dm-auth) footer.no-print.text-info { color: var(--muted) !important; }

/* POS calculator */
html:not(.dm-auth) .popover:has(#calculator) { background: var(--night) !important; border: 0 !important; border-radius: 22px !important; overflow: hidden; }
html:not(.dm-auth) .popover:has(#calculator) .popover-content, html:not(.dm-auth) #calculator, html:not(.dm-auth) #calculator > div:first-child { background: var(--night) !important; border-color: var(--night-line) !important; }
html:not(.dm-auth) .popover:has(#calculator).bottom > .arrow:after { border-bottom-color: var(--night) !important; }
html:not(.dm-auth) #calculator > div:first-child span, html:not(.dm-auth) #calc-hist-btn { color: var(--sun) !important; background: transparent !important; }
html:not(.dm-auth) #calc-display { background: var(--night-2) !important; color: var(--sun) !important; border: 1px solid var(--night-line) !important; box-shadow: none !important; font-family: var(--latin) !important; font-weight: 700 !important; border-radius: 14px !important; }
html:not(.dm-auth) #calc-display:focus { border-color: var(--sun) !important; }
html:not(.dm-auth) #calculator .calc-btn { border: 0 !important; border-radius: 14px !important; box-shadow: none !important; font-weight: 700 !important; font-family: var(--latin) !important; transition: background .12s, transform .08s; }
html:not(.dm-auth) #calculator .calc-btn:active { transform: scale(.94); }
html:not(.dm-auth) #calculator .calc-btn-num { background: var(--night-3) !important; color: #fff !important; }
html:not(.dm-auth) #calculator .calc-btn-num:hover { background: #342C4E !important; }
html:not(.dm-auth) #calculator .calc-btn-op { background: var(--lilac) !important; color: var(--ink) !important; }
html:not(.dm-auth) #calculator .calc-btn-ce, html:not(.dm-auth) #calculator #backspace { background: var(--mint) !important; color: var(--ink) !important; }
html:not(.dm-auth) #calculator .calc-btn-ac, html:not(.dm-auth) #calculator #allClear { background: var(--coral) !important; color: var(--ink) !important; }
html:not(.dm-auth) #calculator .calc-btn-eq, html:not(.dm-auth) #calculator #equals { background: var(--sun) !important; color: var(--ink) !important; }
html:not(.dm-auth) #calc-hist-popup { background: var(--night) !important; border: 1px solid var(--night-line) !important; border-radius: 16px; }
html:not(.dm-auth) .calc-hist-head { background: var(--night-2) !important; color: var(--sun) !important; border-color: var(--night-line) !important; }
html:not(.dm-auth) .calc-hist-entry { background: var(--night-2) !important; border-color: var(--night-line) !important; }
html:not(.dm-auth) .calc-hist-expr, html:not(.dm-auth) .calc-hist-empty { color: #A69FBF !important; }
html:not(.dm-auth) .calc-hist-result { color: var(--sun) !important; }
html:not(.dm-auth) #calc-hist-clear { background: var(--coral) !important; color: var(--ink) !important; border: 0 !important; }

/* POS: floor button + split note + open tables pill */
.dm-floor-link, .dm-floor-link:focus { display: inline-flex !important; align-items: center; gap: 5px; line-height: 1; background: var(--night) !important; color: var(--sun) !important; font-weight: 700; border: 0 !important; height: 34px; padding: 6px 16px; white-space: nowrap; border-radius: 999px !important; }
.dm-floor-link:hover { background: var(--sun) !important; color: var(--ink) !important; }
.dm-open-tables { display: inline-block; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ink) !important; background: rgba(255,255,255,.6); border-radius: 999px; padding: 2px 10px; text-decoration: none !important; }
.dm-open-tables:hover { background: #fff; }
.dm-split-note { background: var(--sun-soft) !important; border: 1px solid var(--sun) !important; color: var(--ink) !important; font-weight: 700; }

/* ===== home: welcome + message of the day ===== */
.dm-daily-wrap { padding: 18px 20px 0; }
.dm-daily {
    display: flex; align-items: center; gap: 22px; position: relative; overflow: hidden;
    background: var(--night); color: #fff; border-radius: 28px; padding: 22px 26px; box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.dm-daily::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(40% 90% at 8% 110%, rgba(255,210,63,.55), transparent 70%),
                radial-gradient(35% 80% at 55% -20%, rgba(110,240,194,.28), transparent 70%),
                radial-gradient(30% 90% at 100% 20%, rgba(185,164,255,.45), transparent 70%);
}
.dm-daily-logo { flex: 0 0 auto; width: 132px; display: grid; place-items: center; }
.dm-daily-logo img { width: 100%; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); animation: dm-bob 4s ease-in-out infinite; }
@keyframes dm-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.dm-daily-text { flex: 1 1 auto; min-width: 0; }
.dm-daily-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--sun); border: 1px solid rgba(255,210,63,.4); background: rgba(255,210,63,.08); border-radius: 999px; padding: 2px 12px; font-family: var(--latin); letter-spacing: .02em; }
.dm-daily-title { margin: 8px 0 4px !important; font-size: 21px !important; font-weight: 800 !important; color: var(--sun) !important; font-family: var(--display) !important; }
.dm-daily-body { margin: 0; color: #CFC8E3; font-size: 15px; line-height: 1.9; }
.dm-daily-welcome { margin: 0 !important; font-size: 32px !important; font-weight: 800 !important; color: #fff !important; line-height: 1.35; font-family: var(--display) !important; }
.dm-daily-slogan { margin: 2px 0 0; color: #A69FBF; font-size: 14.5px; font-weight: 600; }
.dm-daily-sep { height: 1px; margin: 12px 0; background: linear-gradient(90deg, rgba(255,255,255,.18), transparent); }
html[dir="rtl"] .dm-daily-sep { background: linear-gradient(270deg, rgba(255,255,255,.18), transparent); }
.dm-daily.dm-daily-row { margin-top: 8px; }
.dm-daily-main { display: flex; align-items: center; gap: 22px; }
.dm-daily-row > div:not(:first-child) { flex: 0 0 auto; width: auto !important; margin-top: 0 !important; display: flex; flex-direction: column; gap: 10px; min-width: 220px; position: relative; z-index: 1; }
.dm-daily-row > div:not(:first-child) .form-control, .dm-daily-row > div:not(:first-child) .select2-container { min-width: 220px; }
.dm-daily-row .tw-dw-dropdown summary, .dm-daily-row button { white-space: nowrap; }
.dm-daily-row .tw-dw-dropdown summary, .dm-daily-row > div:not(:first-child) .btn, .dm-daily-row > div:not(:first-child) button {
    background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 999px !important; box-shadow: none !important;
}
.dm-daily-row .tw-dw-dropdown summary:hover, .dm-daily-row > div:not(:first-child) button:hover { background: var(--sun) !important; color: var(--ink) !important; }
.dm-daily-row .tw-dw-dropdown summary svg, .dm-daily-row > div:not(:first-child) button svg { color: currentColor !important; }
.dm-daily-row .select2-container--default .select2-selection--single { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; border-radius: 999px !important; }
.dm-daily-row .select2-container--default .select2-selection__rendered { color: #fff !important; }
@media (max-width: 767px) {
    .dm-daily-wrap { padding: 14px 12px 0; }
    .dm-daily, .dm-daily-main { flex-direction: column; text-align: center; gap: 10px; }
    .dm-daily { padding: 18px; border-radius: 22px; }
    .dm-daily-logo { width: 104px; }
    .dm-daily-welcome { font-size: 23px !important; }
    .dm-daily-title { font-size: 18px !important; }
    .dm-daily-sep { background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent) !important; }
    .dm-daily-row > div:not(:first-child) { margin-top: 14px !important; align-items: center; min-width: 0; }
}

/* ===== home for users without dashboard permission ===== */
.dm-limited { padding: 22px 20px 40px; }
.dm-limited-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; isolation: isolate;
    background: var(--night); border-radius: 28px; padding: 28px 32px; min-height: 230px; margin-bottom: 22px; box-shadow: var(--shadow-lg);
}
.dm-limited-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(40% 90% at 0% 100%, rgba(255,210,63,.5), transparent 70%), radial-gradient(35% 90% at 100% 0%, rgba(185,164,255,.45), transparent 70%); }
.dm-limited-text { max-width: 560px; position: relative; z-index: 1; }
.dm-limited-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 2px 12px; }
.dm-limited-text h2 { margin: 12px 0 6px !important; font-size: 30px !important; font-weight: 800 !important; color: #fff !important; font-family: var(--display) !important; }
.dm-limited-text p { margin: 0 0 18px; color: #CFC8E3; font-size: 15px; line-height: 1.9; }
.dm-limited-cta { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
    background: var(--sun); color: var(--ink) !important; font-weight: 800; font-size: 16px; text-decoration: none !important; transition: background .15s, transform .15s; }
.dm-limited-cta svg { width: 22px; height: 22px; color: currentColor !important; }
.dm-limited-cta:hover { background: #fff; transform: translateY(-1px); }
.dm-limited-mascot { height: 250px; margin: -28px -10px -32px 0; flex: 0 0 auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.dm-limited-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.dm-limited-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r); text-decoration: none !important;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
.dm-limited-card:hover { border-color: var(--night); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dm-limited-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; background: var(--lilac-soft); color: var(--lilac-deep); }
.dm-limited-card:nth-child(4n+2) .dm-limited-ico { background: var(--mint-soft); color: var(--mint-deep); }
.dm-limited-card:nth-child(4n+3) .dm-limited-ico { background: var(--coral-soft); color: var(--coral-deep); }
.dm-limited-card:nth-child(4n+4) .dm-limited-ico { background: var(--sky-soft); color: #2F78C8; }
.dm-limited-ico svg { width: 26px; height: 26px; }
.dm-limited-title { color: var(--ink); font-weight: 800; font-size: 16px; font-family: var(--display); }
.dm-limited-sub { color: var(--muted); font-size: 13px; }
.dm-limited-card.is-main { background: var(--sun); border-color: transparent; }
.dm-limited-card.is-main .dm-limited-ico { background: var(--night); color: var(--sun); }
.dm-limited-note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
@media (max-width: 767px) {
    .dm-limited { padding: 16px 12px 30px; }
    .dm-limited-hero { padding: 22px; min-height: 0; }
    .dm-limited-mascot { display: none; }
    .dm-limited-text h2 { font-size: 23px !important; }
    .dm-limited-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Doctor Marketing ad bar (slim, pinned to the bottom) ===== */
html:not(.dm-auth) #scrollable-container { display: flex; flex-direction: column; }
html:not(.dm-auth) #scrollable-container > * { flex-shrink: 0; width: 100%; max-width: 100%; align-self: stretch; }
.dm-footer-wrap { margin-top: auto; position: sticky; bottom: 0; z-index: 20; }
.dm-footer {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: nowrap;
    min-height: 40px; padding: 4px 18px; background: rgba(14, 11, 22, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dm-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--sun), var(--coral), var(--lilac), var(--mint), var(--sun)); background-size: 200% 100%; animation: dm-shine 8s linear infinite; }
@keyframes dm-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.dm-footer-brand { display: flex; align-items: center; gap: 8px; }
.dm-footer-brand img { width: 30px; }
.dm-footer-id { display: flex; flex-direction: column; line-height: 1.25; }
.dm-footer-name { color: #fff; font-weight: 700; font-size: 13px; font-family: var(--display); }
.dm-footer-what { color: #A69FBF; font-size: 11.5px; font-weight: 600; }
.dm-footer-contact { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.dm-footer-link { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px;
    background: var(--night-3); color: #fff !important; font-weight: 700; text-decoration: none !important; transition: background .15s, transform .15s; }
.dm-footer-link:hover { background: var(--sun); color: var(--ink) !important; transform: translateY(-1px); }
.dm-footer-link svg { width: 15px; height: 15px; color: currentColor; }
.dm-footer-phone { direction: ltr; unicode-bidi: isolate; font-size: 14px; letter-spacing: .04em; font-family: var(--latin); }
.dm-footer-wa { background: var(--mint) !important; color: var(--ink) !important; }
.dm-footer-wa:hover { background: #fff !important; }
.dm-footer-copy { color: #8B84A0; font-size: 11.5px; white-space: nowrap; }
.dm-footer-ver { font-family: var(--latin); margin-inline-start: 6px; opacity: .8; }
.dm-footer-ad { flex: 0 1 auto; margin-inline: auto; display: flex; align-items: center; min-width: 0; overflow: hidden; height: 30px; padding: 0 4px 0 14px;
    border-radius: 999px; background: rgba(255,255,255,.06); }
html[dir="rtl"] .dm-footer-ad { padding: 0 14px 0 4px; }
.dm-footer-ad-label { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--sun); color: var(--ink) !important; font-weight: 800; font-size: 11.5px; white-space: nowrap; }
.dm-footer-ad-label svg { width: 11px; height: 11px; }
.dm-footer-ticker { position: relative; display: inline-block; height: 22px; line-height: 22px; min-width: 170px; max-width: 260px; margin-inline-start: 12px; overflow: hidden; }
.dm-footer-ticker > span { position: absolute; inset: 0; height: 22px; display: flex; align-items: center; justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: #fff; font-weight: 600; font-size: 13px; opacity: 0; animation: dm-ticker calc(var(--n) * 3.5s) infinite; animation-delay: calc(var(--i) * 3.5s); }
@keyframes dm-ticker { 0% { opacity: 0; } 2.5%, 12.5% { opacity: 1; } 15%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dm-footer-ticker > span { animation: none; } .dm-footer-ticker > span:first-child { opacity: 1; } .dm-footer::before { animation: none; } }
html:not(.dm-auth) .scrolltop { bottom: 52px !important; }
@media (max-width: 1100px) { .dm-footer-copy { display: none; } }
@media (max-width: 767px) { .dm-footer { padding: 4px 10px; } .dm-footer-ad, .dm-footer-id, .dm-footer-wa span { display: none; } }

/* ===== printing: receipts / invoices always black on white ===== */
@media print {
    html, body, main, #scrollable-container, .content, .content-wrapper { background: #fff !important; }
    #receipt_section, #receipt_section *, .print_section, .print_section *, #print_section, #print_section * {
        color: #000 !important; background: transparent !important; border-color: #000 !important;
        -webkit-text-fill-color: #000 !important; text-shadow: none !important; box-shadow: none !important;
    }
    #receipt_section table, #receipt_section th, #receipt_section td, .print_section table, .print_section th, .print_section td { color: #000 !important; background: #fff !important; }
    .dm-footer-wrap, .dm-doc { display: none !important; }
}

/* sidebar brand: face logo + name, the shop below */
.dm-brand-row { display: inline-flex; align-items: center; gap: 10px; }
.dm-brand-row img { width: 40px !important; height: 40px !important; border-radius: 50%; }
.dm-brand-row b { color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; }
.dm-sidebar-brand .side-bar-heading { color: #A69FBF !important; font-size: 13px !important; font-weight: 600 !important; font-family: var(--body) !important; }

/* welcome card text sits on night */
html:not(.dm-auth) main .dm-daily h1.dm-daily-welcome { color: #fff !important; }
html:not(.dm-auth) main .dm-daily h3.dm-daily-title { color: var(--sun) !important; }
.dm-daily-logo { width: 120px; margin: -10px 0 -26px; align-self: flex-end; }
/* sidebar search sits on night */
html:not(.dm-auth) aside.side-bar input, html:not(.dm-auth) aside.side-bar #sidebar-search { background: transparent !important; border: 0 !important; box-shadow: none !important; color: #fff !important; }

/* ===== the guide doctor (public/js/dm-doc.js) ===== */
.dm-doc { position: fixed; z-index: 1030; left: 0; bottom: 50px; width: clamp(70px, 5.6vw, 96px);
    transform: translate3d(var(--x, 16px), var(--y, 0px), 0); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 1.15s cubic-bezier(.65,0,.35,1), opacity .25s, visibility 0s .25s; }
.dm-doc.on { opacity: 1; visibility: visible; transition: transform 1.15s cubic-bezier(.65,0,.35,1), opacity .25s, visibility 0s; }
.dm-doc-fig { position: relative; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dm-doc-fig img { display: block; width: 100%; filter: drop-shadow(0 12px 14px rgba(14,11,22,.35)); transform: scaleX(var(--flip, 1)); transition: transform .2s; user-select: none; -webkit-user-drag: none; }
.dm-doc-shadow { position: absolute; left: 22%; right: 22%; bottom: -5px; height: 9px; border-radius: 50%; background: rgba(14,11,22,.28); filter: blur(3px); z-index: -1; }
.dm-doc.walking .dm-doc-fig { animation: dm-walk .34s ease-in-out infinite; }
.dm-doc.landed .dm-doc-fig { animation: dm-land .55s cubic-bezier(.3,1.8,.5,1); }
.dm-doc.on:not(.walking) .dm-doc-fig:hover img { transform: scaleX(var(--flip, 1)) rotate(-4deg) translateY(-3px); }
@keyframes dm-walk { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes dm-land { 0% { transform: translateY(-14px) scale(.96, 1.04); } 60% { transform: translateY(0) scale(1.05, .95); } 100% { transform: none; } }
.dm-doc-say { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(.6); transform-origin: bottom center; opacity: 0;
    white-space: nowrap; background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: 16px;
    box-shadow: 0 12px 28px -8px rgba(14,11,22,.4); transition: opacity .25s, transform .35s cubic-bezier(.3,1.8,.5,1); pointer-events: none; font-family: var(--body); }
.dm-doc-say::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.dm-doc.talk .dm-doc-say { opacity: 1; transform: translateX(-50%) scale(1); }
.dm-doc-back { position: fixed; z-index: 1030; left: 14px; bottom: 54px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: var(--night); box-shadow: 0 10px 22px -8px rgba(14,11,22,.5); cursor: pointer; transition: transform .2s; }
.dm-doc-back img { width: 100%; height: 100%; border-radius: 50%; }
.dm-doc-back:hover { transform: scale(1.1) rotate(-8deg); }
body.modal-open .dm-doc, body.modal-open .dm-doc-back { display: none; }
@media (max-width: 767px) { .dm-doc { width: 70px; } .dm-doc-say { font-size: 12px; padding: 6px 10px; } }
@media (prefers-reduced-motion: reduce) { .dm-doc, .dm-doc.on { transition: opacity .25s; } .dm-doc .dm-doc-fig { animation: none !important; } }
/* the bubble opens towards the page, never off screen */
.dm-doc[data-edge="l"] .dm-doc-say { left: 10%; transform: scale(.6); transform-origin: bottom left; }
.dm-doc[data-edge="l"].talk .dm-doc-say { transform: scale(1); }
.dm-doc[data-edge="l"] .dm-doc-say::after { left: 28px; }
.dm-doc[data-edge="r"] .dm-doc-say { left: auto; right: 10%; transform: scale(.6); transform-origin: bottom right; }
.dm-doc[data-edge="r"].talk .dm-doc-say { transform: scale(1); }
.dm-doc[data-edge="r"] .dm-doc-say::after { left: auto; right: 28px; margin: 0; }

/* =========================================================
   Auth pages (landing / login / register / password): the site hero
   ========================================================= */
html.dm-auth, html.dm-auth body { background: var(--night) !important; color: #F5F1FF; }
html.dm-auth body { position: relative; }
html.dm-auth body::before { /* glow blobs + faint grid like the site */
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(36vw 36vw at 2% 104%, rgba(255,176,0,.55), transparent 70%),
        radial-gradient(34vw 30vw at 42% 46%, rgba(46,139,118,.30), transparent 70%),
        radial-gradient(30vw 40vw at 104% 2%, rgba(108,77,224,.50), transparent 70%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px;
}
html.dm-auth .dm-login-bg, html.dm-auth .dm-landing-bg, html.dm-auth .dm-curves { display: none !important; }
html.dm-auth h1, html.dm-auth h2, html.dm-auth h3, html.dm-auth .dm-hero-title, html.dm-auth .dm-home-title, html.dm-auth .dm-card-title { font-family: var(--display) !important; }
html.dm-auth .tw-text-white { color: #F5F1FF !important; }
html.dm-auth .tw-border-white { border-color: rgba(255,255,255,.25) !important; }

/* hero text */
.dm-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid rgba(255,210,63,.35); background: rgba(255,210,63,.07); color: var(--sun); font: 700 11px/1 var(--latin); letter-spacing: .12em; direction: ltr; }
.dm-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(110,240,194,.25); }
html.dm-auth .dm-hero-title { color: #F5F1FF !important; font-weight: 800 !important; letter-spacing: -.02em; text-shadow: none !important; }
html.dm-auth .dm-hero-title span, html.dm-auth .dm-home-title span { color: var(--sun) !important; background: none !important; -webkit-text-fill-color: var(--sun); }
html.dm-auth .dm-hero-sub, html.dm-auth .dm-home-sub { color: #A69FBF !important; text-shadow: none; }
html.dm-auth .dm-split-login .dm-split-hero { text-shadow: none; }
html.dm-auth .dm-feature + .dm-feature { border-inline-start: 1px solid rgba(255,255,255,.08); }
html.dm-auth .dm-feature-ico { background: var(--night-2) !important; border: 1px solid var(--night-line) !important; color: var(--lilac) !important; box-shadow: none !important; border-radius: 18px; }
html.dm-auth .dm-feature:nth-child(2) .dm-feature-ico { color: var(--mint) !important; }
html.dm-auth .dm-feature:nth-child(3) .dm-feature-ico { color: var(--coral) !important; }
html.dm-auth .dm-feature:nth-child(4) .dm-feature-ico { color: var(--sun) !important; }
html.dm-auth .dm-feature-text { color: #CFC8E3 !important; }
html.dm-auth .dm-script { display: none; }

/* the doctor on stage (login) */
html.dm-auth .dm-split-login .dm-split-art { visibility: visible !important; }
.dm-stage { position: relative; align-self: center !important; display: grid !important; place-items: center; min-height: 460px; }
.dm-stage-sun { position: absolute; width: min(300px, 70%); aspect-ratio: 1; border-radius: 50%; background: var(--sun-deep); top: 50%; left: 50%; transform: translate(-50%, -46%); box-shadow: 0 0 120px rgba(255,176,0,.35); }
.dm-stage-doc { position: relative; width: min(300px, 80%) !important; -webkit-mask-image: none !important; mask-image: none !important; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); animation: dm-bob 5s ease-in-out infinite; cursor: pointer; }
.dm-chip { position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 8px 14px; border-radius: 16px; color: var(--ink); font-size: 11.5px; font-weight: 600; line-height: 1.3;
    box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); animation: dm-float 6s ease-in-out infinite; }
.dm-chip b { font: 700 20px/1.1 var(--latin); }
.dm-chip-mint { background: var(--mint); top: 16%; inset-inline-start: 4%; transform: rotate(4deg); }
.dm-chip-paper { background: var(--paper); top: 52%; inset-inline-end: 0; transform: rotate(-5deg); animation-delay: -2s; }
.dm-chip-lilac { background: var(--lilac); bottom: 14%; inset-inline-start: 8%; transform: rotate(3deg); animation-delay: -4s; }
@keyframes dm-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .dm-stage-doc, .dm-chip, .dm-daily-logo img { animation: none !important; } }

/* card: paper on night */
html.dm-auth .dm-card, html.dm-auth .dm-register > div.tw-bg-white {
    background: var(--paper) !important; border: 0 !important; color: var(--ink);
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.8) !important; border-radius: 30px !important;
}
html.dm-auth .dm-card::after, html.dm-auth .dm-register > div.tw-bg-white::after { display: none; }
html.dm-auth .dm-card-logo img, .dm-register-logo { width: 64px !important; height: 64px; border-radius: 50%; filter: none !important; box-shadow: 0 10px 24px -10px rgba(14,11,22,.5); }
html.dm-auth .dm-card-title, html.dm-auth .dm-register h1 { color: var(--ink) !important; }
html.dm-auth .dm-card-sub, html.dm-auth .dm-register h2, html.dm-auth .dm-register .tw-text-gray-500 { color: var(--ink-soft) !important; }
html.dm-auth .dm-field { background: #fff !important; border: 1.5px solid var(--line) !important; border-radius: 18px !important; }
html.dm-auth .dm-field:focus-within { border-color: var(--night) !important; box-shadow: 0 0 0 4px rgba(255,210,63,.5) !important; }
html.dm-auth .dm-field.has-error { border-color: var(--coral) !important; }
html.dm-auth .dm-field-icon { color: var(--muted) !important; }
html.dm-auth .dm-field-label { color: var(--muted) !important; }
html.dm-auth .dm-field input { color: var(--ink) !important; }
html.dm-auth .dm-field input::placeholder { color: #ABA4BC !important; }
html.dm-auth .dm-eye { color: var(--ink-soft) !important; }
html.dm-auth .dm-error { color: var(--coral-deep) !important; }
html.dm-auth .dm-check { color: var(--ink-2) !important; }
html.dm-auth .dm-check input { border-color: var(--night) !important; background: #fff !important; }
html.dm-auth .dm-check input:checked { background: var(--night) !important; }
html.dm-auth .dm-check input:checked::after { border-color: var(--sun) !important; }
html.dm-auth .dm-link { color: var(--lilac-deep) !important; }
html.dm-auth .dm-btn { border-radius: 999px !important; font-family: var(--body); }
html.dm-auth .dm-btn-gold { background: var(--sun) !important; color: var(--ink) !important; box-shadow: 0 14px 30px -12px rgba(255,176,0,.9) !important; }
html.dm-auth .dm-btn-gold:hover { background: var(--night) !important; color: #fff !important; }
html.dm-auth .dm-btn-gold .dm-btn-ico { background: var(--night) !important; color: var(--sun) !important; }
html.dm-auth .dm-btn-gold:hover .dm-btn-ico { background: var(--sun) !important; color: var(--ink) !important; }
html.dm-auth .dm-btn-outline, html.dm-auth .dm-btn-outline.dm-btn-block { background: transparent !important; border: 1.5px solid var(--line-2) !important; color: var(--ink) !important; }
html.dm-auth .dm-btn-outline:hover, html.dm-auth .dm-btn-outline.dm-btn-block:hover { background: var(--night) !important; border-color: var(--night) !important; color: #fff !important; }
html.dm-auth .dm-btn-outline .dm-btn-ico { color: currentColor !important; }
html.dm-auth .dm-or { color: var(--muted) !important; }
html.dm-auth .dm-or::before, html.dm-auth .dm-or::after { background: var(--line-2) !important; }
html.dm-auth .dm-field input:-webkit-autofill, html.dm-auth input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important; box-shadow: 0 0 0 1000px #fff inset !important; -webkit-text-fill-color: var(--ink) !important; caret-color: var(--ink); }
html.dm-auth .dm-alert-ok { background: var(--mint-soft) !important; border-color: var(--mint) !important; color: var(--ink) !important; }
/* landing on the night canvas: the welcome page buttons */
html.dm-auth .dm-home .dm-btn-outline { border-color: rgba(255,255,255,.3) !important; color: #fff !important; }
html.dm-auth .dm-home-logo { width: 200px !important; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)) !important; animation: dm-bob 5s ease-in-out infinite; }
html.dm-auth .dm-home-title { color: #F5F1FF !important; text-shadow: none !important; }
html.dm-auth .dm-features-boxed .dm-feature { background: var(--night-2) !important; border: 1px solid var(--night-line) !important; border-radius: 20px; box-shadow: none !important; }
html.dm-auth .dm-home-script { display: none; }
html.dm-auth .dm-auth-footer, html.dm-auth .dm-auth-footer a { color: #A69FBF !important; }
html.dm-auth .dm-auth-footer .dm-sep { color: var(--sun) !important; }
/* register wizard on paper */
html.dm-auth .dm-register .wizard > .content > .body h3, html.dm-auth .dm-register legend, html.dm-auth .dm-register h3, html.dm-auth .dm-register h4 { color: var(--ink) !important; border-color: var(--line) !important; }
html.dm-auth .dm-register label, html.dm-auth .dm-register .control-label, html.dm-auth .dm-register p, html.dm-auth .dm-register .help-block { color: var(--ink-2) !important; }
html.dm-auth .dm-register .form-control, html.dm-auth .dm-register .select2-container--default .select2-selection--single,
html.dm-auth .dm-register .select2-container--default .select2-selection--multiple { background: #fff !important; color: var(--ink) !important; border-color: var(--line-2) !important; }
html.dm-auth .dm-register .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink) !important; }
html.dm-auth .dm-register .input-group-addon { background: var(--paper-2) !important; color: var(--ink-soft) !important; border-color: var(--line-2) !important; }
html.dm-auth .dm-register .input-group-addon i { color: var(--ink-soft) !important; }
html.dm-auth .dm-register .wizard > .steps a { background: #fff !important; color: var(--muted) !important; border: 1px solid var(--line) !important; border-radius: 999px !important; }
html.dm-auth .dm-register .wizard > .steps .current a { background: var(--night) !important; color: var(--sun) !important; border-color: var(--night) !important; }
html.dm-auth .dm-register .wizard > .steps .done a { background: var(--mint-soft) !important; color: var(--ink) !important; border-color: var(--mint) !important; }
html.dm-auth .dm-register .wizard > .actions a { background: var(--sun) !important; color: var(--ink) !important; border-radius: 999px !important; }
html.dm-auth .dm-register .wizard > .actions li:first-child a, html.dm-auth .dm-register .wizard > .actions .disabled a { background: transparent !important; color: var(--ink-soft) !important; border: 1.5px solid var(--line-2) !important; }
html.dm-auth .select2-dropdown, html.dm-auth .datepicker { background: #fff !important; border-color: var(--line-2) !important; color: var(--ink) !important; }
html.dm-auth .select2-results__option { color: var(--ink-2) !important; }
html.dm-auth .select2-results__option[aria-selected=true] { background: var(--paper-2) !important; color: var(--ink) !important; }
html.dm-auth .datepicker table tr td.active { background: var(--night) !important; color: #fff !important; }
@media (max-width: 1280px) { .dm-stage { display: none !important; } }
@media (max-width: 860px) {
    html.dm-auth .dm-split-login .dm-split-hero::before, html.dm-auth .dm-split-landing .dm-split-hero::before {
        background-image: url('../img/brand/doc/front.webp') !important; width: 120px !important; height: 180px !important; }
}

/* POS footer actions: the agency palette */
html:not(.dm-auth) .pos-form-actions { background: rgba(251,247,239,.96) !important; border-top: 1px solid var(--line) !important; }
html:not(.dm-auth) .pos-form-actions .tw-text-gray-700 { color: var(--ink-2) !important; }
html:not(.dm-auth) .pos-form-actions [class*="tw-bg-[rgb(40,183,123)]"] { background: var(--sun) !important; color: var(--ink) !important; border-radius: 999px !important; }
html:not(.dm-auth) .pos-form-actions [class*="tw-bg-[#001F3E]"] { background: var(--night) !important; color: #fff !important; box-shadow: none !important; border-radius: 999px !important; }
html:not(.dm-auth) .pos-form-actions [class*="tw-bg-[#646EE4]"], html:not(.dm-auth) .pos-header [class*="tw-bg-[#646EE4]"] { background: var(--lilac) !important; color: var(--ink) !important; border-radius: 999px !important; }
html:not(.dm-auth) .pos-header > div.tw-bg-white { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; }
html:not(.dm-auth) .pos-header > div.tw-bg-white strong, html:not(.dm-auth) .pos-header > div.tw-bg-white p { color: var(--ink) !important; }
html:not(.dm-auth) .pos-header button.tw-bg-white, html:not(.dm-auth) .pos-header a.tw-bg-white { background: #fff !important; border-color: var(--line) !important; color: var(--ink) !important; }
html:not(.dm-auth) #pos_total_payable, html:not(.dm-auth) .pos-total-payable, html:not(.dm-auth) #total_payable { color: var(--ink) !important; }
html.dm-auth .dm-home { justify-content: center !important; }
/* sitting: only his face peeks from the corner */
.dm-doc.peek { width: 52px; transition: transform .6s cubic-bezier(.65,0,.35,1), width .35s, opacity .25s; }
.dm-doc.peek .dm-doc-fig img { border-radius: 50%; background: var(--night); box-shadow: 0 10px 22px -8px rgba(14,11,22,.55); filter: none; animation: dm-peek .45s cubic-bezier(.3,1.8,.5,1); }
.dm-doc.peek .dm-doc-shadow { display: none; }
.dm-doc.peek .dm-doc-fig:hover img { transform: scale(1.1) rotate(-8deg) !important; }
@keyframes dm-peek { from { transform: translateY(40px) scale(.6); } to { transform: none; } }
/* coloured table header rows from the original views (sale details etc.) */
html:not(.dm-auth) .table tr.bg-green, html:not(.dm-auth) .table tr.bg-green > th, html:not(.dm-auth) .table tr.bg-green > td,
html:not(.dm-auth) .table thead.bg-green th, html:not(.dm-auth) .table tr.bg-light-blue th, html:not(.dm-auth) .table tr.bg-aqua th {
    background: var(--night) !important; color: #fff !important; border-color: var(--night) !important;
}

/* outside pages: the cashier photos (Doctor Marketing at the till) framed like the site's case cards */
.dm-photo { position: relative; margin: 0; border-radius: 32px; overflow: hidden; background: var(--night-2);
    box-shadow: 0 0 0 6px rgba(255,210,63,.9), 0 40px 80px -30px rgba(0,0,0,.85), 0 0 120px -20px rgba(255,176,0,.45); }
.dm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none !important; mask-image: none !important; max-height: none !important; }
.dm-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(14,11,22,.35)); pointer-events: none; }
.dm-photo-tall { width: min(340px, 86%); aspect-ratio: 655 / 860; transform: rotate(-3deg); }
.dm-photo-wide { width: 100%; aspect-ratio: 1030 / 796; transform: rotate(2deg); }
.dm-stage .dm-chip { z-index: 3; }
.dm-chip-receipt { background: #fff; top: auto; bottom: 30%; inset-inline-end: -2%; transform: rotate(-4deg); animation-delay: -3s;
    border-radius: 14px 14px 4px 4px; padding: 8px 14px 12px; font-family: var(--body);
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) bottom / 12px 7px repeat-x;
            mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) bottom / 12px 7px repeat-x; }
.dm-chip-receipt i { font-style: normal; font-size: 10.5px; color: var(--muted); border-bottom: 1px dashed var(--line-2); padding-bottom: 3px; margin-bottom: 3px; }
.dm-chip-receipt b { color: var(--ink); }
.dm-split-login .dm-chip-mint { top: 8%; inset-inline-start: 0; }
.dm-split-login .dm-chip-lilac { bottom: 6%; inset-inline-start: 6%; }
/* landing: photo + panel side by side */
html.dm-auth .dm-home { gap: clamp(30px, 5vw, 80px); flex-direction: row-reverse; }
html[dir="rtl"].dm-auth .dm-home { flex-direction: row; }
.dm-home-stage { flex: 0 1 560px; min-height: 0; padding: 30px 10px; }
.dm-home-stage .dm-chip-mint { top: 2%; inset-inline-end: 4%; inset-inline-start: auto; }
.dm-home-stage .dm-chip-receipt { bottom: -2%; inset-inline-start: 6%; inset-inline-end: auto; }
.dm-home-stage .dm-chip-lilac { top: 40%; inset-inline-end: -3%; inset-inline-start: auto; bottom: auto; }
html.dm-auth .dm-home-panel { align-items: flex-start; text-align: start; }
html.dm-auth .dm-home-actions { justify-content: flex-start; }
@media (max-width: 1100px) {
    html.dm-auth .dm-home { flex-direction: column !important; }
    .dm-home-stage { display: grid !important; width: min(520px, 100%); flex: 0 0 auto; }
    html.dm-auth .dm-home-panel { align-items: center; text-align: center; }
    html.dm-auth .dm-home-actions { justify-content: center; }
}
@media (max-width: 860px) {
    html.dm-auth .dm-split-login .dm-split-hero::before { background-image: url('../img/brand/login-bg.jpg') !important; background-size: cover !important;
        width: 150px !important; height: 190px !important; border-radius: 22px; box-shadow: 0 0 0 4px var(--sun); }
}
@media (max-width: 1280px) { .dm-home-stage { display: grid !important; } }

/* =========================================================
   The doctor puppet (public/js/dm-puppet.js): blink, breathe, pop, hop, print
   ========================================================= */
.dmp { position: relative; display: block; -webkit-tap-highlight-color: transparent; }
.dmp-body { position: relative; transform-origin: 50% 100%; animation: dmp-breathe 3.6s ease-in-out infinite; container-type: inline-size; }
.dmp-img { display: block; width: 100%; height: auto; transform: scaleX(var(--flip, 1)); user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.dmp-lid { position: absolute; display: none; border-radius: 50%; transform: scaleY(0); transform-origin: 50% 0;
    background: radial-gradient(ellipse at 50% 80%, #2a2a2a 0%, #141414 60%, #0b0b0b 100%); transition: transform 70ms ease-in; pointer-events: none; }
.dmp-body.dmp-eyes .dmp-lid { display: block; }
.dmp-body.dmp-blink .dmp-lid { transform: scaleY(1); }
@keyframes dmp-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.008, 1.018); } }
.dmp-body.dmp-pop { animation: dmp-pop .48s cubic-bezier(.3,1.6,.5,1); }
@keyframes dmp-pop { 0% { transform: none; } 30% { transform: scale(1.08, .9); } 62% { transform: scale(.95, 1.07); } 100% { transform: none; } }
.dmp-body.dmp-hop { animation: dmp-hop .62s cubic-bezier(.3,1.4,.5,1); }
@keyframes dmp-hop { 0% { transform: none; } 18% { transform: scale(1.06, .92); } 45% { transform: translateY(-12%) scale(.96, 1.05); } 75% { transform: scale(1.05, .95); } 100% { transform: none; } }
.dmp-body.dmp-shake { animation: dmp-shake .52s ease-in-out; }
@keyframes dmp-shake { 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
/* receipt printing out of the counter printer (slot at 63.5% / 58% of counter.webp) */
.dmp-slot { position: absolute; left: 63.5%; bottom: 42%; width: 30%; height: 44%; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.dmp-paper { position: absolute; left: 4%; right: 4%; bottom: 0; transform: translateY(102%); background: #fff; color: #15111F;
    padding: 6% 7% 9%; font: 600 7.4cqw/1.35 "IBM Plex Sans Arabic", sans-serif; text-align: center; box-shadow: 0 -2px 10px rgba(0,0,0,.25);
    -webkit-mask: radial-gradient(circle at 50% 0, transparent 2.6cqw, #000 2.8cqw) top / 6cqw 3cqw repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 3cqw) no-repeat;
            mask: radial-gradient(circle at 50% 0, transparent 2.6cqw, #000 2.8cqw) top / 6cqw 3cqw repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 3cqw) no-repeat;
    animation: dmp-print 9s cubic-bezier(.5,0,.3,1) infinite; animation-delay: .8s; }
.dmp-paper b { display: block; font: 800 9cqw/1.3 "Alexandria", sans-serif; margin: 4% 0; }
.dmp-paper i { display: flex; justify-content: space-between; font-style: normal; border-bottom: 1px dashed #D9CFB9; padding: 2% 0; direction: rtl; }
.dmp-paper u { display: block; text-decoration: none; font: 700 12cqw/1.2 "Space Grotesk", sans-serif; margin: 5% 0 2%; }
.dmp-paper small { display: block; font-size: 6.6cqw; color: #5E5873; }
@keyframes dmp-print {
    0% { transform: translateY(102%); opacity: 1; }
    8% { transform: translateY(80%); } 14% { transform: translateY(58%); } 20% { transform: translateY(34%); } 28% { transform: translateY(0); }
    72% { transform: translateY(0) rotate(0); opacity: 1; }
    80% { transform: translateY(-14%) rotate(-7deg); opacity: 0; }
    100% { transform: translateY(102%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dmp-body { animation: none !important; } .dmp-paper { animation: none; transform: none; } }

/* outside pages: the cashier stands on the night stage (no frame) */
.dm-stage .dm-cashier { position: relative; z-index: 2; width: min(400px, 88%); cursor: pointer; }
.dm-stage .dm-stage-sun { width: min(330px, 74%); top: 44%; }
.dm-home-stage { display: grid; place-items: center; }
.dm-home-stage .dm-cashier { width: min(440px, 90%); }
.dm-split-login .dm-chip-receipt { bottom: 22%; inset-inline-end: -4%; }
/* home welcome card: the cashier at his counter */
.dm-daily-logo .dmp { width: 100%; }
.dm-daily-logo .dmp-img { filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.dm-daily-logo { width: 150px; margin: -18px 0 -26px; }
@media (max-width: 767px) {
    /* stacked on phones: centre the cashier and keep him off the welcome title */
    .dm-daily-logo { width: 130px; margin: -6px auto 4px; align-self: center; }
}
.dm-home-stage .dm-cashier-receipt { width: min(330px, 70%); }
.dm-home-stage .dm-stage-sun { width: min(300px, 62%); top: 50%; }
/* the guide is a puppet now */
.dm-doc .dmp-img { filter: drop-shadow(0 12px 14px rgba(14,11,22,.35)); }
.dm-doc.peek { width: 78px; }
.dm-doc.peek .dmp-body { animation: dm-peek .45s cubic-bezier(.3,1.8,.5,1); }
.dm-doc.peek .dm-doc-fig:hover .dmp-body { transform: translateY(-4px) rotate(-4deg); }
.dm-doc.on:not(.walking) .dm-doc-fig:hover img { transform: scaleX(var(--flip, 1)); }
.dm-doc-back { background: transparent; box-shadow: none; width: 64px; height: auto; border-radius: 0; }
.dm-doc-back img { border-radius: 0; height: auto; }
.dm-doc.peek .dm-doc-fig img { border-radius: 0 !important; background: none !important; box-shadow: none !important; animation: none !important; filter: drop-shadow(0 6px 10px rgba(14,11,22,.35)) !important; }
.dm-stage .dm-cashier { width: clamp(260px, 24vw, 400px) !important; } .dm-home-stage .dm-cashier-receipt { width: clamp(240px, 21vw, 340px) !important; }
.dmp-slot { container-type: inline-size; height: 23%; width: 26%; }
.dmp-paper { font-size: 8.5cqw; padding: 5% 8% 7%; }
.dmp-paper b { font-size: 10cqw; margin: 2% 0; }
.dmp-paper u { font-size: 14cqw; margin: 3% 0 1%; }
.dmp-paper small { font-size: 7.5cqw; }
.dm-home-stage .dm-cashier { width: clamp(280px, 26vw, 430px) !important; }
.dm-home-stage .dm-cashier, .dm-stage .dm-cashier { width: min(26vw, 50vh, 430px) !important; min-width: 220px; }
.dm-stage .dm-cashier-doctor { width: min(22vw, 40vh, 340px) !important; } .dm-split-login .dm-chip-receipt { bottom: 12%; }

/* puppet: speech bubble + dizzy (birds and stars around the head) */
.dmp-say { position: absolute; z-index: 6; left: 50%; top: -4%; transform: translate(-50%, -100%) scale(.6); opacity: 0; white-space: nowrap; pointer-events: none;
    background: #fff; color: var(--ink); font: 700 15px/1.4 var(--body); padding: 8px 16px; border-radius: 18px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
    transition: opacity .2s, transform .35s cubic-bezier(.3,1.8,.5,1); }
.dmp-say::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
.dmp-say.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.dmp-is-dizzy .dmp-body { animation: dmp-dizzy 1.1s ease-in-out 3 !important; }
@keyframes dmp-dizzy { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg) translateX(-2%); } 75% { transform: rotate(7deg) translateX(2%); } }
.dmp-orbit { position: absolute; z-index: 5; left: 50%; top: 4%; width: 70%; height: 18%; transform: translateX(-50%); pointer-events: none; transform-style: preserve-3d; perspective: 400px; }
.dmp-orbit i { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: clamp(16px, 7cqw, 34px); margin: -.6em 0 0 -.5em;
    animation: dmp-orbit 1.2s linear infinite; }
.dmp-orbit i:nth-child(2) { animation-delay: -.24s; } .dmp-orbit i:nth-child(3) { animation-delay: -.48s; }
.dmp-orbit i:nth-child(4) { animation-delay: -.72s; } .dmp-orbit i:nth-child(5) { animation-delay: -.96s; }
@keyframes dmp-orbit {
    0% { transform: translate(-130%, 0) scale(.7); z-index: 1; opacity: .7; }
    25% { transform: translate(0, 40%) scale(1.15); opacity: 1; }
    50% { transform: translate(130%, 0) scale(.7); opacity: .7; }
    75% { transform: translate(0, -40%) scale(.5); opacity: .45; }
    100% { transform: translate(-130%, 0) scale(.7); opacity: .7; }
}

/* =========================================================
   Landing v3 — full screen hero, everything alive
   ========================================================= */
html.dm-auth body:has(.dm-land) .right-col { padding-top: 0 !important; padding-bottom: 0 !important; }
html.dm-auth body:has(.dm-land) .tw-border-2.tw-rounded-full, html.dm-auth body:has(.dm-land) a[href*="/login"].tw-text-white { display: none !important; }
.dm-land { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; margin: 0 -15px; }
.dm-land-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dm-land-fx span { position: absolute; bottom: -40px; color: var(--sun); font-family: var(--latin); font-weight: 700; animation: dm-rise linear infinite; }
.dm-land-fx span:nth-child(3n) { color: var(--lilac); } .dm-land-fx span:nth-child(4n) { color: var(--mint); }
@keyframes dm-rise { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--drift), -110vh) rotate(200deg); } }

.dm-land-hero { position: relative; z-index: 1; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
    gap: clamp(20px, 4vw, 70px); padding: 70px clamp(20px, 5vw, 90px) 10px; max-width: 1700px; width: 100%; margin: 0 auto; }
html[dir="rtl"] .dm-land-hero { direction: ltr; }
html[dir="rtl"] .dm-land-hero > * { direction: rtl; }
.dm-land-stage { --px: 0; --py: 0; position: relative; min-height: min(78vh, 720px); display: grid; place-items: center; }
.dm-land-sun { position: absolute; left: 50%; top: 50%; width: min(560px, 92%); aspect-ratio: 1; border-radius: 50%;
    transform: translate(calc(-50% + var(--px) * -14px), calc(-50% + var(--py) * -14px));
    background: radial-gradient(circle at 38% 34%, #FFE27A 0%, var(--sun) 38%, var(--sun-deep) 72%, #E59400 100%);
    box-shadow: 0 0 0 18px rgba(255,210,63,.10), 0 0 0 42px rgba(255,210,63,.05), 0 0 160px 20px rgba(255,176,0,.45); }
.dm-land-ring { position: absolute; left: 50%; top: 50%; width: min(680px, 108%); aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,210,63,.35);
    transform: translate(-50%, -50%); animation: dm-spin 60s linear infinite; pointer-events: none; }
.dm-land-ring-2 { width: min(800px, 124%); border: 1px dashed rgba(185,164,255,.3); animation-duration: 90s; animation-direction: reverse; }
@keyframes dm-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.dm-land-stage .dm-cashier { position: relative; z-index: 3; width: min(30vw, 62vh, 470px) !important; cursor: pointer;
    transform: translate(calc(var(--px) * 10px), calc(var(--py) * 10px)); transition: transform .3s ease-out; }
.dm-orb { position: absolute; z-index: 4; left: var(--x); top: var(--y); display: flex; flex-direction: column; padding: 10px 16px 10px 14px; border-radius: 18px;
    color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; box-shadow: 0 18px 34px -14px rgba(0,0,0,.7);
    rotate: var(--r); transform: translate(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px));
    animation: dm-float 6s ease-in-out infinite; transition: transform .35s ease-out; cursor: default; }
.dm-orb:nth-of-type(2n) { animation-duration: 7.5s; animation-delay: -2s; } .dm-orb:nth-of-type(3n) { animation-duration: 5.2s; animation-delay: -4s; }
.dm-orb b { font: 800 16px/1.2 var(--display); }
.dm-orb i { position: absolute; inset-inline-start: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--night); color: var(--sun); font-style: normal; font-size: 15px; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.dm-orb:hover { scale: 1.08; z-index: 5; }
.dm-orb-mint { background: var(--mint); } .dm-orb-lilac { background: var(--lilac); } .dm-orb-sun { background: var(--sun); }
.dm-orb-coral { background: var(--coral); } .dm-orb-sky { background: var(--sky); } .dm-orb-paper { background: var(--paper); }

.dm-land-panel { align-items: flex-start !important; text-align: start !important; width: 100% !important; max-width: 620px; }
.dm-land-panel .dm-home-title { font-size: clamp(34px, 3.6vw, 62px) !important; line-height: 1.25 !important; }
.dm-land-swap { display: inline-block; transition: opacity .35s, transform .35s; }
.dm-land-swap.out { opacity: 0; transform: translateY(-30%); }
.dm-land-panel .dm-home-sub { font-size: clamp(15px, 1.15vw, 19px) !important; max-width: 520px; }
.dm-land-panel .dm-features-boxed { max-width: 100%; }
.dm-land-panel .dm-feature { transition: transform .2s, border-color .2s; }
.dm-land-panel .dm-feature:hover { transform: translateY(-4px); border-color: var(--sun) !important; }
.dm-land-panel .dm-home-actions { justify-content: flex-start !important; }
.dm-land-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dm-land-facts span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1); color: #CFC8E3; font-size: 13px; font-weight: 600; }
.dm-land-facts i { width: 8px; height: 8px; border-radius: 50%; }
.dm-land-facts a { color: var(--sun) !important; font-family: var(--latin); }

.dm-land-bands { position: relative; z-index: 2; height: 120px; margin-top: 10px; }
.dm-land-band { position: absolute; left: -5%; right: -5%; overflow: hidden; white-space: nowrap; padding: 12px 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.dm-land-band > div { display: inline-flex; gap: 26px; align-items: center; animation: dm-marquee 38s linear infinite; padding-inline-start: 26px; }
.dm-land-band span { font: 800 22px/1 var(--display); }
.dm-land-band em { font-style: normal; font-size: 18px; }
.dm-land-band-sun { top: 18px; background: var(--sun); color: var(--ink); transform: rotate(-2deg); }
.dm-land-band-lilac { top: 62px; background: var(--lilac); color: var(--ink); transform: rotate(1.5deg); z-index: -1; }
.dm-land-band-lilac > div { animation-direction: reverse; animation-duration: 46s; }
.dm-land-band-lilac span { font-family: var(--latin); letter-spacing: .04em; }
@keyframes dm-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (max-width: 1100px) {
    .dm-land-hero { grid-template-columns: 1fr; padding-top: 80px; }
    .dm-land-stage { min-height: 520px; }
    .dm-land-stage .dm-cashier { width: min(70vw, 360px) !important; }
    .dm-land-panel { align-items: center !important; text-align: center !important; margin: 0 auto; }
    .dm-land-panel .dm-home-actions, .dm-land-facts { justify-content: center !important; }
}
@media (max-width: 600px) { .dm-orb { font-size: 10px; padding: 6px 10px; } .dm-orb b { font-size: 12px; } .dm-orb i { display: none; } .dm-land-band span { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .dm-land-ring, .dm-land-band > div, .dm-orb { animation: none !important; } }
/* landing v3 fit: character on the left, everything inside one screen */
.dm-land-stage { order: 2; min-height: min(66vh, 620px); }
.dm-land-panel { order: 1; }
.dm-land-hero { padding-top: 56px; }
.dm-land-stage .dm-cashier { width: min(25vw, 50vh, 420px) !important; }
.dm-land-sun { width: min(470px, 84%); }
.dm-land-panel .dm-home-title { font-size: clamp(30px, 3vw, 54px) !important; margin-bottom: 10px !important; }
.dm-land-panel .dm-home-sub { margin-bottom: 18px !important; }
.dm-land-panel .dm-features-boxed .dm-feature { padding: 12px 6px 10px !important; }
.dm-land-panel .dm-features-boxed .dm-feature-ico svg { width: 34px; height: 34px; }
.dm-land-panel .dm-home-actions { margin: 20px 0 14px !important; }
.dm-land .dm-btn-outline { color: #fff !important; border-color: rgba(255,255,255,.3) !important; }
.dm-land .dm-btn-outline:hover { background: #fff !important; color: var(--ink) !important; }
.dm-land-bands { height: 104px; margin-top: 0; }
.dm-land-band-sun { top: 10px; } .dm-land-band-lilac { top: 52px; }
html.dm-auth .dm-land .dm-btn-outline { color: #fff !important; border-color: rgba(255,255,255,.3) !important; } html.dm-auth .dm-land .dm-btn-outline:hover { background: #fff !important; color: var(--ink) !important; }
.dmp-orbit { top: -1%; width: 96%; height: 16%; } .dmp-orbit i { font-size: clamp(18px, 9cqw, 44px); } .dmp-say { top: 2%; }
.dm-orb.dm-orb-spin { animation: none; transform: none; }

/* counter front as a shop sign (counter.webp: front panel from ~71% down) */
.dmp-front { position: absolute; left: 10%; right: 10%; top: 73%; bottom: 6%; container-type: inline-size; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4.5cqw; pointer-events: none; }
.dmp:not([data-pose="counter"]) .dmp-front { display: none; }
.dmp-sign { display: flex; align-items: center; gap: 3cqw; direction: ltr; }
.dmp-sign img { width: 13cqw; height: 13cqw; border-radius: 50%; box-shadow: 0 0 0 .8cqw rgba(255,210,63,.35), 0 0 6cqw rgba(255,210,63,.6); }
.dmp-sign b { font: 700 8.4cqw/1 "Space Grotesk", sans-serif; color: #FFE27A; letter-spacing: .02em;
    text-shadow: 0 0 1cqw #FFD23F, 0 0 3cqw #FFB000, 0 0 7cqw rgba(255,176,0,.8); animation: dmp-neon 3.2s ease-in-out infinite; }
@keyframes dmp-neon { 0%, 18%, 22%, 100% { opacity: 1; } 20% { opacity: .45; } 60% { text-shadow: 0 0 1.4cqw #FFD23F, 0 0 4.5cqw #FFB000, 0 0 10cqw rgba(255,176,0,.9); } }
.dmp-led { width: 100%; overflow: hidden; white-space: nowrap; border-radius: 2cqw; padding: 1.6cqw 0; background: #050407;
    box-shadow: inset 0 0 0 .4cqw #2E2745, 0 0 4cqw rgba(110,240,194,.15); }
.dmp-led span { display: inline-block; padding-inline-start: 100%; font: 700 5.6cqw/1 "IBM Plex Sans Arabic", sans-serif; color: #6EF0C2;
    text-shadow: 0 0 1.5cqw rgba(110,240,194,.9); animation: dmp-led 16s linear infinite; }
@keyframes dmp-led { from { transform: translateX(0); } to { transform: translateX(100%); } }
.dmp-pay { display: flex; gap: 2cqw; flex-wrap: wrap; justify-content: center; }
.dmp-pay i { font-style: normal; font: 700 4.6cqw/1 "IBM Plex Sans Arabic", sans-serif; color: #F5F1FF; padding: 1.4cqw 2.8cqw; border-radius: 99cqw;
    background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.14); animation: dmp-pay 4s ease-in-out infinite; }
.dmp-pay i:nth-child(2) { animation-delay: 1s; } .dmp-pay i:nth-child(3) { animation-delay: 2s; } .dmp-pay i:nth-child(4) { animation-delay: 3s; }
@keyframes dmp-pay { 0%, 70%, 100% { background: rgba(255,255,255,.07); color: #F5F1FF; } 10%, 30% { background: #FFD23F; color: #15111F; } }
@media (prefers-reduced-motion: reduce) { .dmp-led span { animation: none; padding: 0; } .dmp-sign b, .dmp-pay i { animation: none; } }

/* landing: one palette — sun, lilac, paper on night (no mint / coral / sky) */
html.dm-auth body:has(.dm-land)::before {
    background:
        radial-gradient(38vw 38vw at 0% 105%, rgba(255,176,0,.5), transparent 70%),
        radial-gradient(34vw 44vw at 104% 0%, rgba(108,77,224,.5), transparent 70%),
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 46px 46px;
}
.dm-land .dm-orb:nth-of-type(3n+1) { background: var(--sun); }
.dm-land .dm-orb:nth-of-type(3n+2) { background: var(--lilac); }
.dm-land .dm-orb:nth-of-type(3n) { background: var(--paper); }
.dm-land .dm-orb i { background: var(--night); color: var(--sun); }
html.dm-auth .dm-land .dm-feature-ico { color: var(--sun) !important; }
html.dm-auth .dm-land .dm-feature:nth-child(even) .dm-feature-ico { color: var(--lilac) !important; }
.dm-land-facts i { background: var(--sun) !important; }
.dm-land-facts span:nth-child(even) i { background: var(--lilac) !important; }
.dm-land .dm-kicker i { background: var(--sun); box-shadow: 0 0 0 3px rgba(255,210,63,.25); }
.dm-land .dmp-led span { color: var(--sun); text-shadow: 0 0 1.5cqw rgba(255,176,0,.9); }
.dm-land .dmp-led { box-shadow: inset 0 0 0 .4cqw #2E2745, 0 0 4cqw rgba(255,176,0,.15); }
.dm-land-fx span, .dm-land-fx span:nth-child(3n), .dm-land-fx span:nth-child(4n) { color: var(--sun); }
.dm-land-fx span:nth-child(2n) { color: var(--lilac); }
.dm-land-ring { border-color: rgba(255,210,63,.3); } .dm-land-ring-2 { border-color: rgba(185,164,255,.28); }
html.dm-auth .dm-land .dm-feature:nth-child(odd) .dm-feature-ico { color: var(--sun) !important; } html.dm-auth .dm-land .dm-feature:nth-child(even) .dm-feature-ico { color: var(--lilac) !important; }
/* POS: a time line written by a clock is locked for cashiers */
tr.dm-time-locked .quantity-up, tr.dm-time-locked .quantity-down, tr.dm-time-locked .pos_remove_row { visibility: hidden; pointer-events: none; }
tr.dm-time-locked td:first-child::after { content: "🔒 من العدّاد"; display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #6C4DE0; background: #EEE8FF; border-radius: 999px; padding: 0 8px; }
tr.dm-time-locked .pos_quantity { background: #F1EADB !important; }

/* time line in the POS: billed vs played, always visible */
.dm-time-note { font-size: 12px; font-weight: 700; color: #6c4de0; line-height: 1.35; margin: 2px 0; white-space: normal; }

/* the calculator floats and is dragged by its title bar */
.popover.dm-calc-float { position: fixed !important; right: auto !important; bottom: auto !important; z-index: 1065 !important; margin: 0 !important; max-width: none; box-shadow: 0 18px 40px -12px rgba(14,11,22,.55); }
.popover.dm-calc-float > .arrow { display: none; }
.dm-calc-float #calculator > div:first-child { cursor: grab; user-select: none; touch-action: none; }
.dm-calc-float.is-dragging #calculator > div:first-child { cursor: grabbing; }
.dm-calc-float.is-dragging { transition: none !important; opacity: .92; }
/* home welcome card clips its overflow: the bubble sits on his counter, pointing up at him, not above his head */
.dm-daily-logo { position: relative; z-index: 2; }
.dm-daily-logo .dmp-say { top: 60%; left: 50%; right: auto; transform: translateX(-50%) scale(.6); transform-origin: top center; font-size: 14px; padding: 7px 14px; }
.dm-daily-logo .dmp-say.on { transform: translateX(-50%) scale(1); }
.dm-daily-logo .dmp-say::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; }

/* ---------- "اسأل الدكتور" chat (layouts/partials/dm_assistant + js/dm-assistant.js) ---------- */
.dm-ask {
    /* opens from the guide doctor: dm-assistant.js sets left / bottom right above him */
    position: fixed; z-index: 1045; left: 16px; bottom: 150px; height: min(600px, calc(100vh - 240px)); min-height: 280px; width: min(400px, calc(100vw - 32px));
    display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--body);
    opacity: 0; transform: translateY(16px) scale(.92); transform-origin: bottom left; transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.3,1.2);
}
.dm-ask.open { opacity: 1; transform: none; }
.dm-ask.from-right { transform-origin: bottom right; }
body.dm-ask-on .dm-doc-say { display: none; }
.dm-ask-setup b { color: var(--ink); }
.dm-ask-setup-go { display: inline-block; margin-top: 10px; background: var(--sun); border-color: var(--sun); color: var(--ink) !important; text-decoration: none !important; font-weight: 700; }
.dm-ask-setup-go:hover { background: var(--night) !important; border-color: var(--night) !important; color: var(--sun) !important; }
.dm-ask[hidden] { display: none; }
.dm-ask-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: radial-gradient(120% 140% at 100% 0%, rgba(185,164,255,.3) 0%, rgba(14,11,22,0) 60%), var(--night); color: #fff; }
.dm-ask-avatar { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.dm-ask-titles { flex: 1; min-width: 0; }
.dm-ask-titles h2 { margin: 0 !important; font: 700 17px/1.3 var(--display) !important; color: #fff !important; }
.dm-ask-titles p { margin: 0; font-size: 12.5px; color: #A69FBF; }
.dm-ask-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background .15s; }
.dm-ask-icon:hover, .dm-ask-icon:focus-visible { background: var(--sun); color: var(--ink); outline: none; }
.dm-ask-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.dm-ask-hello { text-align: center; margin: auto 0; padding: 4px 6px; }
.dm-ask-hello[hidden] { display: none; }
.dm-ask-hello img { width: 96px; margin: 0 auto 6px; display: block; filter: drop-shadow(0 10px 14px rgba(14,11,22,.25)); }
.dm-ask-hello p { margin: 0 0 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.dm-ask-hello .dm-ask-hello-title { font: 700 18px/1.4 var(--display); color: var(--ink); }
.dm-ask-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.dm-ask-chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font: 600 13px/1.4 var(--body); cursor: pointer; transition: background .15s, border-color .15s; }
.dm-ask-chip:hover, .dm-ask-chip:focus-visible { background: var(--sun); border-color: var(--sun); color: var(--ink); outline: none; }
.dm-ask-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.85; word-wrap: break-word; }
.dm-ask-msg p { margin: 0 0 4px; }
.dm-ask-msg p:last-child { margin-bottom: 0; }
.dm-ask-msg ul { margin: 2px 0 6px; padding-inline-start: 20px; list-style: disc; }
.dm-ask-msg li { display: list-item; }
.dm-ask-msg li::marker { color: var(--lilac-deep); }
.dm-ask-msg strong { font-weight: 700; color: var(--ink); }
.dm-ask-user { align-self: flex-start; background: var(--night); color: #fff; border-start-start-radius: 6px; white-space: pre-wrap; }
.dm-ask-assistant { align-self: flex-end; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-start-end-radius: 6px; }
.dm-ask-assistant.dm-ask-error { background: var(--coral-soft); border-color: #FFC9B8; color: var(--coral-deep); }
.dm-ask-typing { display: flex; align-items: center; gap: 4px; }
.dm-ask-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac-deep); animation: dm-ask-dot 1s infinite ease-in-out; }
.dm-ask-typing span:nth-child(2) { animation-delay: .15s; }
.dm-ask-typing span:nth-child(3) { animation-delay: .3s; }
.dm-ask-typing em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-inline-start: 6px; }
@keyframes dm-ask-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.dm-ask-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.dm-ask-form textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 18px; padding: 9px 14px; font: 14.5px/1.6 var(--body); color: var(--ink); background: var(--paper); max-height: 140px; outline: none; }
.dm-ask-form textarea:focus { border-color: var(--lilac-deep); box-shadow: 0 0 0 3px var(--lilac-soft); background: #fff; }
.dm-ask-send { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--sun); color: var(--ink); cursor: pointer; transition: background .15s, transform .15s; }
.dm-ask-send:hover:not(:disabled) { background: var(--night); color: var(--sun); }
.dm-ask-send:disabled { opacity: .5; cursor: progress; }
@media (max-width: 767px) {
    .dm-ask { top: 0; bottom: 0; left: 0; right: 0; height: auto; min-height: 0; width: 100vw; border-radius: 0; border: 0; z-index: 1060; }
}
@media (prefers-reduced-motion: reduce) { .dm-ask, .dm-ask-typing span { transition: none; animation: none; } }
@media print { .dm-ask { display: none !important; } }

/* ---- "اسأل الدكتور" settings (dm_assistant/settings.blade.php) ---- */
.dm-ai-set { max-width: 880px; }
.dm-ai-hero { display: flex; gap: 18px; align-items: center; background: var(--night); color: #fff; border-radius: var(--r); padding: 18px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.dm-ai-hero img { width: 92px; flex: 0 0 auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.dm-ai-hero .dm-ai-hero-title { margin: 0 0 4px; font: 800 21px/1.4 var(--display); color: var(--sun); }
.dm-ai-hero p { margin: 0 0 10px; color: #D8D2E8; line-height: 1.9; }
.dm-ai-hero b { color: #fff; }
.dm-ai-how { display: inline-block; background: var(--sun); color: var(--ink) !important; font: 700 14px var(--display); padding: 7px 16px; border-radius: 999px; text-decoration: none !important; }
.dm-ai-how:hover { background: #fff; }
.dm-ai-hint { display: block; margin-top: 8px; font-size: 12.5px; color: #A69FBF; }
.dm-ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-ai-row { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.dm-ai-row.is-ready { border-color: #BDEFD9; }
.dm-ai-n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; font: 800 15px var(--display); }
.dm-ai-row.is-ready .dm-ai-n { background: var(--mint); }
.dm-ai-main { flex: 1; min-width: 0; }
.dm-ai-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dm-ai-title b { font: 700 16px var(--display); color: var(--ink); }
.dm-ai-title code { background: var(--paper); color: var(--ink-soft); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.dm-ai-tag { font: 700 11.5px var(--display); padding: 2px 9px; border-radius: 999px; }
.dm-ai-tag.free { background: var(--mint-soft); color: var(--mint-deep); }
.dm-ai-tag.paid { background: var(--lilac-soft); color: var(--lilac-deep); }
.dm-ai-state { margin: 4px 0 8px; font-size: 13px; }
.dm-ai-state .st::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; background: currentColor; }
.st.ok { color: var(--mint-deep); } .st.warn { color: #B87F00; } .st.bad { color: var(--coral-deep); } .st.off { color: var(--muted); }
.dm-ai-same { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.dm-ai-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dm-ai-key .form-control { flex: 1 1 260px; border-radius: 12px !important; height: 40px; font-family: var(--latin); }
.dm-ai-test { border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 700 13px var(--display); cursor: pointer; }
.dm-ai-test:hover { background: var(--night); color: var(--sun); border-color: var(--night); }
.dm-ai-test:disabled { opacity: .6; cursor: wait; }
.dm-ai-remove { font-size: 13px; color: var(--coral-deep); font-weight: 600; margin: 0; cursor: pointer; }
.dm-ai-result { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; min-height: 1em; color: var(--ink-soft); }
.dm-ai-result.ok { color: var(--mint-deep); } .dm-ai-result.bad { color: var(--coral-deep); }
.dm-ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.dm-ai-foot p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.dm-ai-save { background: var(--sun) !important; color: var(--ink) !important; border: 0 !important; border-radius: 999px !important; padding: 0 34px !important; font: 800 15px var(--display) !important; }
.dm-ai-save:hover { background: var(--night) !important; color: var(--sun) !important; }
@media (max-width: 640px) { .dm-ai-hero { flex-direction: column; text-align: center; } .dm-ai-hero img { width: 72px; } }
.dm-ask-link { display: inline-block; margin: 2px 0; padding: 1px 10px; border-radius: 999px; background: var(--sun-soft); color: var(--ink) !important; font-weight: 700; text-decoration: none !important; box-shadow: inset 0 0 0 1px var(--sun); }
.dm-ask-link:hover { background: var(--night); color: var(--sun) !important; box-shadow: none; }
/* "اسأل الدكتور" confirm card */
.dm-ask-card { align-self: stretch; background: #fff; border: 2px solid var(--night); border-radius: 18px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--sun); }
.dm-ask-card-title { margin: 0 0 8px; font: 800 15px/1.4 var(--display); color: var(--ink); }
.dm-ask-card-title::before { content: "✎ "; color: var(--lilac-deep); }
.dm-ask-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; font-size: 14px; }
.dm-ask-card dt { color: var(--ink-soft); font-weight: 500; }
.dm-ask-card dd { margin: 0; color: var(--ink); font-weight: 700; }
.dm-ask-card-btns { display: flex; gap: 8px; }
.dm-ask-card-btns button { border: 0; border-radius: 999px; padding: 7px 18px; font: 700 14px var(--display); cursor: pointer; transition: background .15s, color .15s; }
.dm-ask-card-ok { background: var(--mint); color: var(--ink); }
.dm-ask-card-ok:hover:not(:disabled) { background: var(--night); color: var(--mint); }
.dm-ask-card-no { background: var(--paper-2); color: var(--ink-2); }
.dm-ask-card-no:hover:not(:disabled) { background: var(--coral-soft); color: var(--coral-deep); }
.dm-ask-card-btns button:disabled { opacity: .45; cursor: default; }
.dm-ask-card-result { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.dm-ask-card-result:empty { display: none; }
.dm-ask-card.is-done { border-color: var(--mint-deep); box-shadow: 4px 4px 0 var(--mint); }
.dm-ask-card.is-done .dm-ask-card-result { color: var(--mint-deep); }
.dm-ask-card.is-failed { border-color: var(--coral-deep); box-shadow: 4px 4px 0 var(--coral-soft); }
.dm-ask-card.is-failed .dm-ask-card-result { color: var(--coral-deep); }
.dm-ask-card.is-cancelled { opacity: .7; box-shadow: none; border-color: var(--line-2); }
.dm-ask-card.is-done .dm-ask-card-btns, .dm-ask-card.is-cancelled .dm-ask-card-btns { display: none; }
.dm-ask-card-undo { display: inline-block; margin-inline-start: 6px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 1px 12px; font: 700 12.5px var(--display); cursor: pointer; }
.dm-ask-card-undo:hover:not(:disabled) { background: var(--night); color: var(--sun); border-color: var(--night); }
/* dragging the doctor (and the chat with him) */
.dm-doc-fig { touch-action: none; cursor: grab; }
.dm-doc.dragging, .dm-doc.dragging.on { transition: opacity .25s !important; }
.dm-doc.dragging .dm-doc-fig { cursor: grabbing; transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 22px 18px rgba(14,11,22,.35)); }
.dm-doc.dragging .dm-doc-shadow { opacity: 0; }
body.dm-dragging, body.dm-dragging * { user-select: none !important; cursor: grabbing !important; }
@media (min-width: 768px) { .dm-ask-head { cursor: grab; touch-action: none; } .dm-ask-head button { cursor: pointer; } }
.dm-ask.from-top { transform-origin: top left; }

/* ===== Doctor Marketing: «طلبات أونلاين» ===== */
.oo-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;align-items:start}
.oo-card{padding:14px 16px;border-top:5px solid #E8DFCE}
.oo-card.oo-new{border-top-color:#FF7A6B;box-shadow:0 0 0 2px rgba(255,122,107,.25)}
.oo-card.oo-accepted,.oo-card.oo-ready{border-top-color:#FFD23F}
.oo-card.oo-out_for_delivery{border-top-color:#7CC4FF}
.oo-card.oo-delivered{border-top-color:#7FE0C2}
.oo-head{display:flex;align-items:center;gap:8px}
.oo-head b{font-family:"Space Grotesk",sans-serif;font-size:18px}
.oo-head small{margin-inline-start:auto;color:#6f6878}
.oo-pill{display:inline-block;border-radius:20px;padding:0 10px;font-size:12px;font-weight:700;background:#F1EADB;color:#0E0B16}
.oo-s-new{background:#FF7A6B;color:#fff}.oo-s-accepted,.oo-s-ready{background:#FFD23F}.oo-s-out_for_delivery{background:#7CC4FF}
.oo-s-delivered,.oo-ok{background:#7FE0C2}.oo-s-rejected{background:#ffe3df;color:#b23a2b}.oo-warn{background:#fff3c4;color:#8a6400}
.oo-who{margin-top:6px;font-weight:600}
.oo-where{color:#6f6878;font-size:13px;margin-top:2px}
.oo-items{list-style:none;margin:8px 0;padding:8px 0;border-top:1px dashed #E8DFCE;border-bottom:1px dashed #E8DFCE}
.oo-items li{display:flex;flex-wrap:wrap;gap:4px;padding:2px 0}
.oo-items li span{margin-inline-start:auto;font-weight:600}
.oo-items small{color:#6f6878}
.oo-note{width:100%;background:#FBF6EC;border-radius:8px;padding:2px 8px;font-size:12.5px;margin-top:2px}
.oo-total{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.oo-total b{font-size:18px;font-family:"Space Grotesk",sans-serif}
.oo-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.oo-badge{background:#FF7A6B;color:#fff;border-radius:10px;padding:0 7px;margin-inline-start:4px}
.oo-live{color:#11795a;font-size:13px;font-weight:700}.oo-live.oo-off{color:#b23a2b}
.oo-empty{text-align:center;padding:30px}

/* ===== Doctor Marketing: «المتجر الأونلاين» settings ===== */
.os-grid{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:16px;align-items:start}
@media (max-width:900px){.os-grid{grid-template-columns:1fr}}
.os-card{padding:14px 16px;margin-bottom:16px}
.os-card label{display:block;margin:8px 0 2px;font-weight:600}
.os-card label .fp-input,.os-card label .fp-select{width:100%;margin-top:3px}
.os-card textarea.fp-input{width:100%}
.os-sub{margin-top:14px}
.os-switch{display:flex!important;align-items:center;gap:8px}
.os-link{display:flex;align-items:center;gap:4px}.os-link b{color:#6f6878;font-weight:500;white-space:nowrap}
.os-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.os-row>*{flex:1;min-width:120px}
.os-hint{color:#6f6878;font-size:12.5px;margin:4px 0}
.os-zones{width:100%;border-collapse:collapse}.os-zones th{font-weight:600;color:#6f6878;font-size:12.5px;padding:4px}
.os-zones td{padding:3px}.os-zones .fp-input{width:100%;min-width:60px}.os-zacts{white-space:nowrap}
.os-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px;margin-top:10px;max-height:520px;overflow:auto}
.os-product{display:flex!important;align-items:center;gap:8px;background:#FBF6EC;border:1px solid #E8DFCE;border-radius:10px;padding:6px 8px;margin:0!important;cursor:pointer}
.os-product img,.os-product i{width:34px;height:34px;border-radius:8px;object-fit:cover;font-style:normal;display:grid;place-items:center;background:#fff}
.os-product span{flex:1}
@media (max-width:600px){.os-zones th:nth-child(4),.os-zones td:nth-child(4){display:none}}
.os-bulk[hidden],.oo-badge[hidden]{display:none!important}
.os-qrs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:8px}
.os-qr{display:block;color:inherit;background:#fff;border:1px dashed #E8DFCE;border-radius:12px;padding:8px;text-align:center}
.os-qr img{width:100%;max-width:120px}.os-qr b{display:block;font-family:Alexandria,sans-serif;font-size:16px}.os-qr small{color:#6f6878}
.os-print{float:left;padding:2px 10px}
@media print{body.dm-print-qr *{visibility:hidden}.os-qrs,.os-qrs *{visibility:visible}.os-qrs{position:absolute;inset:0}}

/* ===== Doctor Marketing: the store's home page editor ===== */
.oh-grid{display:grid;grid-template-columns:1fr 380px;gap:18px;align-items:start}
@media (max-width:1100px){.oh-grid{grid-template-columns:1fr}.oh-preview{order:-1}}
.oh-state{font-weight:600;color:#6f6878}
.oh-sec{padding:10px 14px;margin-bottom:10px;transition:opacity .2s}
.oh-sec.oh-off{opacity:.55}
.oh-head{display:flex;align-items:center;gap:8px}
.oh-head>div{flex:1}.oh-head b{display:block;font-family:Alexandria,sans-serif}.oh-head small{color:#6f6878}
.oh-ico{font-size:24px;width:40px;height:40px;border-radius:12px;background:#FBF6EC;display:grid;place-items:center}
.oh-head .fp-btn{padding:2px 9px}
.oh-toggle{position:relative;width:44px;height:24px;margin:0}
.oh-toggle input{position:absolute;opacity:0}
.oh-toggle i{position:absolute;inset:0;border-radius:20px;background:#ddd;transition:background .2s;cursor:pointer}
.oh-toggle i::after{content:"";position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:right .2s}
.oh-toggle input:checked+i{background:#7FE0C2}.oh-toggle input:checked+i::after{right:23px}
.oh-body{border-top:1px dashed #E8DFCE;margin-top:10px;padding-top:6px}
.oh-body label{display:block;margin:8px 0 2px;font-weight:600}
.oh-body .fp-input,.oh-body .fp-select{width:100%;margin-top:3px}
.oh-img{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.oh-img img{width:120px;height:70px;object-fit:cover;border-radius:10px}.oh-img span{color:#6f6878}
.oh-gallery{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.oh-thumb{position:relative}.oh-thumb img{width:90px;height:70px;object-fit:cover;border-radius:10px}
.oh-thumb button{position:absolute;top:2px;left:2px;padding:0 6px}
.oh-row{display:grid;grid-template-columns:1fr 90px auto;gap:6px;margin-bottom:6px;align-items:start}.oh-row textarea{grid-column:1/3}
.oh-preview{position:sticky;top:70px;text-align:center}
.oh-phone{background:#0E0B16;border-radius:34px;padding:10px;width:360px;max-width:100%;margin:auto}
.oh-phone iframe{width:100%;height:680px;border:0;border-radius:26px;background:#fff}
.oh-open{display:inline-block;margin-top:8px;font-weight:600}
.oh-slides{display:flex;flex-direction:column;gap:6px}
.oh-slide{display:flex;gap:6px;align-items:center}.oh-slide img{width:130px;height:57px;object-fit:cover;border-radius:10px}.oh-slide input{flex:1}

/* Doctor Marketing: «محادثات الشات» (the store chat conversations) */
.sc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.sc-stats .fp-card { display: flex; flex-direction: column; gap: 2px; }
.sc-stats b { font-family: "Space Grotesk", "Alexandria", sans-serif; font-size: 30px; color: #0E0B16; }
.sc-stats span { color: #6b6478; font-size: 13px; }
.sc-stats .sc-warn b { color: #d9534f; }
.sc-top { margin-bottom: 12px; }
.sc-q { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(14, 11, 22, .1); }
.sc-q:last-child { border-bottom: 0; }
.sc-n { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: #FFD23F; color: #0E0B16; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.sc-qt { flex: 1; }
.sc-q b { white-space: nowrap; color: #6b6478; font-size: 13px; }
.sc-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 12px; align-items: start; }
.sc-item { display: block; padding: 10px 12px; border-radius: 12px; color: #0E0B16; margin-bottom: 4px; }
.sc-item:hover { background: #f6f1e7; color: #0E0B16; }
.sc-item.on { background: #0E0B16; color: #fff; }
.sc-item.on small { color: #cfc8dc; }
.sc-first { display: block; font-weight: 700; }
.sc-item small { color: #6b6478; }
.sc-bad { color: #d9534f; font-weight: 700; }
.sc-thread { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.sc-msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; line-height: 1.7; }
.sc-msg small { display: block; color: #6b6478; font-size: 11.5px; margin-bottom: 2px; }
.sc-msg.me { align-self: flex-start; background: #FFD23F; color: #0E0B16; }
.sc-msg.bot { align-self: flex-end; background: #f6f1e7; }
.sc-msg.bad { background: #ffe3df; }
.sc-cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sc-cards span { background: #fff; border-radius: 20px; padding: 2px 10px; font-size: 12.5px; box-shadow: 0 0 0 1px rgba(14, 11, 22, .08); }
@media (max-width: 767px) { .sc-stats, .sc-grid { grid-template-columns: 1fr; } .sc-msg { max-width: 95%; } }
.sc-list a.sc-item, .sc-list a.sc-item:hover { color: #0E0B16; text-decoration: none; } .sc-list a.sc-item.on { color: #fff; }

/* Doctor Marketing: «كوبونات المتجر» */
.cp-grid { display: grid; grid-template-columns: minmax(300px, 1fr) 1.4fr; gap: 12px; align-items: start; }
.cp-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(14, 11, 22, .12); }
.cp-item:last-child { border-bottom: 0; }
.cp-item.off { opacity: .55; }
.cp-code { font-family: "Space Grotesk", monospace; font-weight: 800; letter-spacing: 1px; background: #FFD23F; color: #0E0B16; border-radius: 10px; padding: 6px 12px; border: 2px dashed #0E0B16; white-space: nowrap; }
.cp-info { flex: 1; min-width: 0; }
.cp-info b { display: block; }
.cp-info small { display: block; color: #6b6478; }
.cp-acts { display: flex; gap: 6px; }
.cp-acts form { margin: 0; }
@media (max-width: 767px) { .cp-grid { grid-template-columns: 1fr; } .cp-item { flex-wrap: wrap; } }
.gw-steps { padding-inline-start: 20px; line-height: 2; } .gw-steps b { color: #0E0B16; }

/* Doctor Marketing: «🎡 عجلة الحظ» */
.wl-switch { margin-bottom: 12px; }
.wl-dot { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 2px #0E0B16; }
.wl-colors { display: flex; gap: 8px; margin: 10px 0; }
.wl-color { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(14, 11, 22, .2); }
.wl-color input { appearance: none; width: 12px; height: 12px; border-radius: 50%; margin: 0; }
.wl-color input:checked { background: #0E0B16; }

/* Doctor Marketing: «👗 تجميع الطقم» */
.of-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(14, 11, 22, .12); flex-wrap: wrap; }
.of-thumb, .of-cut img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #f6f1e7; }
.of-cut { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 10px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.of-cut img { background: transparent; }
.of-info { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.of-file { font-size: 12px; }
.of-pick { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.of-pick small { color: #6b6478; }
.of-up { cursor: pointer; margin: 0; }

/* Doctor Marketing: «المتجر الأونلاين» — the site design picker */
.os-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.os-theme { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; border: 2px solid rgba(14, 11, 22, .1); cursor: pointer; margin: 0; }
.os-theme input { display: none; }
.os-theme:has(input:checked) { border-color: #0E0B16; box-shadow: 0 0 0 3px #FFD23F; }
.os-sw { display: flex; gap: 4px; }
.os-sw i { flex: 1; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.os-color { height: 42px; padding: 4px; }

/* Doctor Marketing: «📣 إشعار للزباين» — how the notification looks on the phone */
.ps-preview{display:flex;flex-direction:column;gap:2px;background:#0E0B16;color:#fff;border-radius:18px;padding:12px 14px;margin:4px 0 2px;box-shadow:0 6px 18px rgba(14,11,22,.18)}
.ps-preview .ps-app{font-size:12px;opacity:.65}
.ps-preview b{font-size:15px;word-break:break-word}
.ps-preview span{font-size:13px;opacity:.9;word-break:break-word}
.cp-form .ps-in{text-align:right}
.cp-form textarea.ps-in{min-height:76px;resize:vertical;line-height:1.6}
.cp-form .fp-btn[disabled]{opacity:.45;cursor:not-allowed}
.cp-form .ps-off{margin:0 0 6px;font-weight:600}

/* Doctor Marketing: «💳 كارت الولاء» */
.lc-warn{margin:8px 0;font-weight:600}
.lc-stat{margin-top:10px;background:var(--dm-cream,#FBF6EC);border-radius:14px;padding:10px 14px}
.lc-stat b{font-family:"Space Grotesk",sans-serif;font-size:26px;margin-inline-end:6px}
.lc-qr-print{max-width:260px;margin:6px auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.os-qr.lc-qr-print img{width:170px;max-width:170px;height:auto;aspect-ratio:1;display:block;margin:0 auto 6px}
.lc-qr-print small{word-break:break-all}
.lc-month{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:8px;margin-bottom:14px}
.lc-month div{background:#FBF6EC;border-radius:12px;padding:8px 10px;font-size:12.5px;color:#6f6878}
.lc-month b{display:block;font-family:"Space Grotesk",sans-serif;font-size:20px;color:#1d1a24}
.lc-top{display:flex;justify-content:space-between;gap:8px;padding:5px 2px;border-bottom:1px dashed #E8DFCE}
.lc-top small{color:#6f6878;margin-inline-start:6px}
.lc-top b{font-family:"Space Grotesk",sans-serif}
.lc-print{display:table;margin:0 auto 8px}
.lc-places{display:grid;gap:6px;margin:6px 0 12px}
.lc-places textarea{text-align:left;font-family:"Space Grotesk",monospace}
.lc-places .fp-btn{justify-self:start}

/* Doctor Marketing: «المتجر الأونلاين» in tabs — a status bar, the tabs, one panel at a time */
.os-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #E8DFCE;border-radius:18px;padding:10px 14px;margin-bottom:12px}
.os-bar b{font-family:Alexandria,sans-serif;font-size:15px}
.os-dot{width:12px;height:12px;border-radius:50%;background:#7EE0B8;box-shadow:0 0 0 4px rgba(126,224,184,.25)}
.os-bar.closed .os-dot,.os-bar.paused .os-dot{background:#FFD23F;box-shadow:0 0 0 4px rgba(255,210,63,.25)}
.os-bar.off .os-dot{background:#FF8A80;box-shadow:0 0 0 4px rgba(255,138,128,.25)}
.os-bar-link{color:#6f6878;font-family:"Space Grotesk",monospace;font-size:13px}
.os-bar .fp-btn{margin-inline-start:auto}
.os-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.os-tabs::-webkit-scrollbar{display:none}
.os-tabs button{flex:0 0 auto;font:inherit;font-weight:600;border:1px solid #E8DFCE;background:#fff;color:#1d1a24;border-radius:999px;padding:8px 16px;cursor:pointer}
.os-tabs button.on{background:#0E0B16;color:#fff;border-color:#0E0B16}
.os-panel{max-width:860px}
.os-panel[hidden]{display:none !important}
.os-save{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:12px;max-width:860px;background:rgba(251,246,236,.95);backdrop-filter:blur(4px);border-top:1px solid #E8DFCE;padding:10px 2px;margin-bottom:16px}
.os-save[hidden]{display:none}
.os-feature{display:flex;align-items:center;gap:12px;background:#FBF6EC;border:1px solid #E8DFCE;border-radius:16px;padding:12px 14px;margin:10px 0;color:#1d1a24;text-decoration:none}
.os-feature:hover{border-color:#0E0B16;color:#1d1a24;text-decoration:none}
.os-feature i{font-style:normal;font-size:26px}
.os-feature span{display:flex;flex-direction:column;color:#6f6878;font-size:13px}
.os-feature b{font-family:Alexandria,sans-serif;font-size:15px;color:#1d1a24}
.os-features{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.os-features .os-feature{background:#fff;margin:0}
.lc-lookup{margin:12px 0 4px}
.lc-lookup-row{display:flex;gap:8px}
.lc-lookup-row .fp-input{flex:1}
.lc-found{margin:8px 0;font-weight:600}
.lc-points{margin:6px 0 10px}
.lc-points .os-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:600px){.lc-points .os-row{grid-template-columns:1fr}}
.lc-points .lc-lookup-row .fp-select{flex:0 0 110px;width:110px}
.lc-points .lc-lookup-row .fp-input{flex:1;min-width:0}

/* «📣 إشعار للزباين»: style-2 banner (drawn by public/js/push-banner.js) */
.cp-form .ps-check{display:flex;align-items:center;gap:8px;font-weight:600;margin:6px 0 2px;cursor:pointer}
.ps-banner-box{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;background:#fff8e1;border:1px dashed #e6c65c;border-radius:14px;padding:10px 12px}
.ps-banner-box label{margin:0;display:flex;flex-direction:column;gap:4px;min-width:0}
.ps-banner-box .fp-input{width:100%;min-width:0;box-sizing:border-box}
#bFile{display:none!important}
@media (max-width:560px){.ps-banner-box{grid-template-columns:1fr}}
.ps-preview canvas{width:100%;height:auto;border-radius:12px;margin-top:8px;display:block}
.ps-preview .ps-acts{display:flex;gap:8px;margin-top:8px}
.ps-preview .ps-acts span{flex:1;text-align:center;background:rgba(255,255,255,.1);border-radius:10px;padding:7px 4px;font-size:13px;opacity:1}
.cp-info .ps-thumb{display:block;width:100%;max-width:320px;border-radius:10px;margin-bottom:6px}

/* Doctor Marketing: «📲 رسايل واتساب» — the wording of each message, the words it can use, what was opened */
.cp-grid:has(.wa-form){grid-template-columns:1.3fr 1fr}
@media (max-width: 767px){.cp-grid:has(.wa-form){grid-template-columns:1fr}}
.wa-tpl{border-top:1px dashed #E8DFCE;padding-top:10px;margin-top:10px}
.wa-tpl label{display:block;margin-bottom:4px}
.wa-own{background:#fff3c4;color:#8a6400;border-radius:20px;padding:0 8px;font-size:12px;font-weight:700}
.wa-words{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.wa-word{border:1px solid #d8f3e6;background:#effbf5;color:#11795a;border-radius:20px;padding:1px 10px;font-size:12.5px;cursor:pointer;font-family:inherit}
.wa-word:hover{background:#7FE0C2;color:#0E0B16;border-color:#7FE0C2}
.wa-body{white-space:pre-wrap;color:#4b4556;margin:2px 0}
.oo-acts .oo-wa{background:#7FE0C2;border-color:#7FE0C2;color:#0E0B16}
.wa-map{display:flex;gap:8px;flex-wrap:wrap}.wa-map .fp-input{flex:1 1 240px;min-width:0}

/* Doctor Marketing: online orders waiting — the counter on the menu link and the pill on every screen */
.dm-oo-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-inline-start:6px;border-radius:20px;background:#FF7A6B;color:#fff;font-size:12px;font-weight:800;line-height:1}
.dm-oo-alert{position:fixed;top:70px;left:50%;transform:translateX(-50%);z-index:1050;display:inline-flex;align-items:center;gap:8px;background:#FF7A6B;color:#fff!important;
  font-weight:800;padding:8px 16px;border-radius:30px;box-shadow:0 6px 18px rgba(255,122,107,.45);text-decoration:none!important;animation:dm-oo-pulse 1.4s ease-in-out infinite}
.dm-oo-alert b{background:#fff;color:#FF7A6B;border-radius:20px;padding:0 8px}
.dm-oo-alert[hidden]{display:none}
@keyframes dm-oo-pulse{50%{box-shadow:0 6px 26px rgba(255,122,107,.85)}}
@media (max-width: 767px){.dm-oo-alert{top:auto;bottom:64px}}

/* Doctor Marketing: محلات دكتور ماركتنج (our screen to make shop accounts) + the «رجوع لحسابي» bar */
.dm-entered{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;background:#FFD23F;color:#0E0B16;padding:6px 12px;font-weight:700}
.dm-entered button{background:#0E0B16;color:#FFD23F;border:0;border-radius:20px;padding:3px 16px;font-weight:800;cursor:pointer}
.ds-page .fp-card{margin-bottom:16px}
.ds-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.ds-kpis div{background:#fff;border:1px solid #E8DFCE;border-radius:14px;padding:10px 14px}
.ds-kpis b{display:block;font:700 24px "Space Grotesk",sans-serif;color:#0E0B16}
.ds-kpis span{color:#6f6878;font-size:13px}
.ds-grid{display:grid;grid-template-columns:minmax(300px,380px) 1fr;gap:16px;align-items:start}
.ds-grid>*{min-width:0}
.ds-form label{display:block;font-size:13px;color:#4b4455;margin:0 0 10px;font-weight:600}
.ds-form .fp-input{width:100%;margin-top:3px}
.ds-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ds-slug{display:flex;gap:6px;align-items:center;direction:ltr;margin-top:3px}
.ds-slug .fp-input{margin-top:0;flex:1;min-width:0}
.ds-slug em{font-style:normal;color:#6f6878;font-size:13px;white-space:nowrap}
.ds-errors{background:#ffe3df;color:#b23a2b;border-radius:12px;padding:8px 12px;margin-bottom:10px;font-size:13px}
.ds-table{overflow-x:auto}
.ds-table table{width:100%;border-collapse:collapse;font-size:14px;min-width:620px}
.ds-table th{background:#0E0B16;color:#fff;padding:8px 10px;text-align:right;font-weight:600}
.ds-table td{border-bottom:1px solid #E8DFCE;padding:8px 10px;vertical-align:middle}
.ds-table td small{display:block;color:#6f6878;font-size:12px}
.ds-table tr.ds-off td{background:#faf5f4;color:#8a8190}
.ds-link{font-family:"Space Grotesk",sans-serif;font-size:13px;text-align:left}
.ds-chip{display:inline-block;border-radius:20px;padding:0 10px;font-size:12px;font-weight:700;white-space:nowrap}
.ds-pos{background:#dff7ee;color:#11795a}.ds-loy{background:#fff3c4;color:#8a6400}.ds-stop{background:#ffe3df;color:#b23a2b}
.ds-acts{white-space:nowrap}
.ds-acts form{display:inline-block;margin:2px}
.ds-acts .fp-btn{padding:3px 12px;font-size:12.5px}
.ds-acts .fp-btn.ds-red{background:#ffe3df;color:#b23a2b;border-color:#f5c2bb}
.ds-done{border:2px solid #0E0B16}
.ds-cred{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0}
.ds-cred div{background:#FBF6EC;border:1px solid #E8DFCE;border-radius:12px;padding:6px 14px}
.ds-cred span{display:block;font-size:12px;color:#6f6878}
.ds-cred b{font:700 18px "Space Grotesk",sans-serif;user-select:all}
@media (max-width: 991px){.ds-grid{grid-template-columns:1fr}.ds-kpis{grid-template-columns:1fr 1fr}}
.ds-feats{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;background:#FBF6EC;border:1px solid #E8DFCE;border-radius:12px;padding:8px 10px;margin:-4px 0 12px}
.ds-feats label{margin:0;font-weight:600;font-size:12.5px;display:flex;gap:6px;align-items:center}
.ds-feats small{color:#8a8190;font-weight:500}
@media (max-width: 480px){.ds-feats{grid-template-columns:1fr}}
.ds-pack{display:inline-block;margin:2px;vertical-align:top}
.ds-pack summary{list-style:none;cursor:pointer;padding:3px 12px;font-size:12.5px}
.ds-pack summary::-webkit-details-marker{display:none}
.ds-pack[open]{display:block;background:#fff;border:1px solid #E8DFCE;border-radius:12px;padding:8px;margin:6px 0;white-space:normal;min-width:260px}
.ds-pack form{display:block!important;margin:6px 0 0!important}
.ds-pack .fp-input{width:100%;margin-bottom:6px}
.ds-pack .ds-feats{margin:0 0 8px}
.wa-soon{display:inline-block;background:#fff3c4;color:#8a6400;border-radius:20px;padding:0 10px;font-size:12px;font-weight:600;margin-inline-start:6px}

/* Doctor Marketing: الحجوزات (booking requests, hours, services) */
.ap-page .fp-card{margin-bottom:16px}
.ap-off{background:#fff3c4;color:#8a6400;font-weight:600}
.ap-grid{display:grid;grid-template-columns:1fr minmax(300px,400px);gap:16px;align-items:start}
.ap-grid>*{min-width:0}
.ap-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.ap-tabs a{border:1px solid #E8DFCE;border-radius:20px;padding:3px 14px;color:#4b4455;font-weight:600;font-size:13px;text-decoration:none}
.ap-tabs a.on{background:#0E0B16;color:#FFD23F;border-color:#0E0B16}
.ap-row{border:1px solid #E8DFCE;border-radius:14px;padding:10px 12px;margin-bottom:8px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;background:#fff}
.ap-row.ap-new{border-right:5px solid #FF7A6B}
.ap-row.ap-scheduled{border-right:5px solid #7FE0C2}
.ap-who{font-size:14px;line-height:1.7}
.ap-who small{color:#6f6878}
.ap-chip{display:inline-block;background:#FBF6EC;border:1px solid #E8DFCE;border-radius:20px;padding:0 8px;font-size:12px;font-weight:700;margin-inline-start:4px}
.ap-new .ap-chip{background:#ffe3df;color:#b23a2b;border-color:#f5c2bb}
.ap-scheduled .ap-chip{background:#dff7ee;color:#11795a;border-color:#bfe9d8}
.ap-wish,.ap-note{color:#6f6878;font-size:13px}
.ap-at{font-weight:600;color:#11795a}
.ap-acts{display:flex;flex-direction:column;gap:6px;align-items:stretch;min-width:220px}
.ap-acts form{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.ap-set .fp-input{flex:1;min-width:132px;padding:4px 6px;height:34px}
.ap-acts .fp-btn{padding:4px 12px;font-size:13px}
.ap-acts .fp-btn.ap-wa{background:#25D366;color:#fff;border-color:#25D366;text-align:center;font-weight:700}
.ap-x{background:#ffe3df;color:#b23a2b;border-color:#f5c2bb}
.ap-link a{display:block;font-family:"Space Grotesk",sans-serif;overflow-wrap:anywhere;text-align:left;margin-bottom:8px}
.ap-link img{width:140px;height:140px;display:block;margin:6px auto}
.ap-day{display:grid;grid-template-columns:48px minmax(116px,1fr) 10px minmax(116px,1fr) auto;gap:4px;align-items:center;margin-bottom:6px;font-size:13px}
.ap-day .fp-input{min-width:0;padding:2px 3px;font-size:12px;height:34px}
.ap-day label{margin:0;font-weight:500;white-space:nowrap}
.ap-svc{display:grid;grid-template-columns:44px 1fr 80px 70px;gap:6px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed #E8DFCE;align-items:center}
.ap-svc .ap-desc{grid-column:2/-1}
.ap-svc .fp-btn{grid-column:auto}
.ap-svc-img{width:44px;height:44px;border-radius:10px;object-fit:cover;background:#FBF6EC;display:grid;place-items:center;grid-row:span 2}
.ap-field{display:block;font-size:13px;font-weight:600;margin:6px 0}
.ap-field .fp-input{width:100%;margin-top:3px}
.ap-svc .fp-input{min-width:0}
@media (max-width: 991px){.ap-grid{grid-template-columns:1fr}.ap-acts{min-width:0;width:100%}}
@media (max-width: 480px){.ap-svc,.ap-svc.ap-new{grid-template-columns:44px 1fr 1fr}.ap-svc input[name=name]{grid-column:2/-1}.ap-day{grid-template-columns:52px 1fr 1fr;}.ap-day span{display:none}.ap-day label{grid-column:2/-1}}
.ap-pics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:8px}
.ap-pics form{position:relative;margin:0}
.ap-pics img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block}
.ap-pics .ap-x{position:absolute;top:4px;left:4px;border-radius:50%;width:24px;height:24px;padding:0;border:0;cursor:pointer;font-size:12px}
.ap-upload{display:flex;gap:6px}
.ap-upload .fp-input{flex:1;min-width:0}

/* Doctor Marketing: «ابعت للزباين» */
.rc-page .fp-card{margin-bottom:16px}
.rc-row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border:1px solid #E8DFCE;border-radius:14px;padding:10px 12px;margin-bottom:8px;background:#fff;transition:opacity .3s}
.rc-row.rc-sent{opacity:.45}
.rc-why{color:#6f6878;font-size:13px}
.rc-acts{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.rc-acts form{margin:0}
.rc-link{background:none;border:0;color:#8a8190;font-size:12px;cursor:pointer;text-decoration:underline}
.rc-offer{white-space:pre-wrap;background:#FBF6EC;border-radius:12px;padding:10px 12px;margin-bottom:8px}
.rc-progress{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:13px;color:#4b4455;margin-bottom:10px}
.rc-next{display:block;text-align:center;font-size:16px;padding:10px}
.rc-done{font-weight:700;color:#11795a}
.rc-out{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px}
.rc-out form{margin:0}
.rc-page textarea.fp-input{width:100%}

/* Doctor Marketing: «زوّد نقط / ختم» (made for the staff phone) */
.pu-page .fp-card{margin-bottom:14px;max-width:640px}
.pu-find{display:flex;gap:8px;flex-wrap:wrap}
.pu-find .fp-input{flex:1;min-width:200px;font-size:16px}
.pu-find video{width:100%;border-radius:14px;margin-top:8px}
.pu-none{background:#fff3c4;color:#8a6400;font-weight:600}
.pu-card{border:2px solid #0E0B16}
.pu-who b{font-size:20px;font-family:Alexandria,sans-serif}
.pu-who small{color:#6f6878}
.pu-pts{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0}
.pu-pts b{font:700 32px "Space Grotesk",sans-serif}
.pu-stamps{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0}
.pu-stamps i{width:26px;height:26px;border-radius:50%;border:2px dashed #E8DFCE;display:inline-block}
.pu-stamps i.on{background:#E75480;border:2px solid #E75480}
.pu-reward{background:#fff3c4;border-radius:12px;padding:8px 10px;margin:8px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pu-reward form{margin:0}
.pu-visit{margin-top:10px}
.pu-visit label{display:block;font-weight:700}
.pu-visit .fp-input{width:100%;font-size:24px;padding:10px 12px;margin-top:4px}
.pu-go{width:100%;font-size:18px;padding:12px}
.pu-tell{display:block;text-align:center;margin-top:8px}
.pu-spend{margin-top:12px}
.pu-spend summary{cursor:pointer;font-weight:600;color:#4b4455}
.pu-spend form{display:flex;gap:8px;margin-top:8px}
.pu-move{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px dashed #E8DFCE;padding:6px 0;font-size:14px}
.pu-move small{display:block;color:#8a8190}
.pu-move form{margin:0}
.pu-undone{opacity:.5;text-decoration:line-through}
.pu-rule label{display:block;font-size:13px;font-weight:600;margin:6px 0}
.pu-rule .fp-input{width:100%;margin-top:3px}
.ap-look{display:grid;grid-template-columns:44px 1fr;gap:6px 10px;align-items:center;border-bottom:1px dashed #E8DFCE;padding:8px 0}
.ap-look .ap-svc-img{grid-row:span 4}
.ap-look .fp-input{width:100%}
.ap-look .fp-btn{justify-self:start}

/* Doctor Marketing: لوكات المناسبات */
.oc-now{background:#fff3c4;border-radius:12px;padding:8px 12px;margin:6px 0 10px;font-weight:600}
.oc-list{display:grid;gap:6px}
.oc-row{display:grid;grid-template-columns:200px 150px 1fr auto;gap:8px;align-items:center;border-bottom:1px dashed #E8DFCE;padding:5px 0}
.oc-on{margin:0;font-weight:500;display:flex;gap:6px;align-items:center}
.oc-row small{color:#8a8190}
.oc-try{padding:3px 10px;font-size:12.5px}
.oc-own{display:grid;grid-template-columns:1fr 140px 140px 1fr;gap:6px;margin-bottom:6px}
@media (max-width:767px){.oc-row{grid-template-columns:1fr auto}.oc-row small{grid-column:1/-1}.oc-row .fp-input{grid-column:1/-1}.oc-own{grid-template-columns:1fr 1fr}}

/* Doctor Marketing: «⚡ العروض» screen */
.fs-live { display: inline-block; background: #FFD23F; color: #0E0B16; border-radius: 99px; padding: 0 10px; font-size: 12px; margin-inline-start: 6px; }
.fs-pick { width: 100%; min-height: 160px; }
