/*
 * Turcar portal: one look with the cutting advisor. Night = the advisor's near-black, hairlines and amber; day = light.
 * Filament's own primary (amber) and gray (zinc) come from PortalPanelProvider; this file only sets surfaces.
 */
:root {
    --tp-bg: #f6f6f7;
    --tp-side: #ffffff;
    --tp-line: #e4e4e7;
    --tp-field: #f1f1f3;   /* input / button fill: the advisor's --bg3 */
    --tp-line2: #d4d4d8;   /* button frame: the advisor's --line2 */
    --tp-amber: #d97706;   /* the advisor's --amber: buttons, focus lines (exactly, not a Filament shade) */
    --tp-text: #18181b;    /* the advisor's --text */
    --tp-amber-ink: #fff;      /* text on amber: white by day (user's choice, 3.2:1), dark ink by night */
    --tp-grid: rgba(217, 119, 6, .035);
    --tp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
/*
 * One orange (user, 24.10.2026): Filament's primary palette is the advisor's amber too, so no component (menu, badge,
 * checkbox, link, notification) can show another shade. 400–700 = --tp-amber exactly; the tints and shades are mixed
 * from it (a badge's background stays a tint, readable).
 */
:root:root {
    --primary-50: color-mix(in srgb, var(--tp-amber) 8%, white);
    --primary-100: color-mix(in srgb, var(--tp-amber) 16%, white);
    --primary-200: color-mix(in srgb, var(--tp-amber) 32%, white);
    --primary-300: color-mix(in srgb, var(--tp-amber) 60%, white);
    --primary-400: var(--tp-amber);
    --primary-500: var(--tp-amber);
    --primary-600: var(--tp-amber);
    --primary-700: var(--tp-amber);
    --primary-800: color-mix(in srgb, var(--tp-amber) 75%, black);
    --primary-900: color-mix(in srgb, var(--tp-amber) 55%, black);
    --primary-950: color-mix(in srgb, var(--tp-amber) 35%, black);
}
.dark {
    --tp-bg: #0d0d0f;
    --tp-side: #16161a;
    --tp-line: #2a2a32;
    --tp-field: #1e1e24;
    --tp-line2: #3d3d48;
    --tp-amber: #e6a119;   /* night: #ffb627 toned down (same hue 39°, L 58 → 50 %, S 100 → 80 %; 8.1:1 on the card) */
    --tp-text: #e8e8ec;
    --tp-amber-ink: #0d0d0f;   /* 8.8:1 on the night amber; white was 2.2:1 */
    --tp-grid: color-mix(in srgb, var(--tp-amber) 1.5%, transparent);
}

body.fi-body {
    background-color: var(--tp-bg);
    background-image: linear-gradient(var(--tp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--tp-grid) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* the sidebar: the advisor's panel surface, a hairline instead of a shadow, mono group labels */
.fi-sidebar { background: var(--tn-bg); border-right: 0; box-shadow: none; }
/* symmetry: the logo starts where the menu icons do (24 px from the left), the « icon ends 24 px from the right */
.fi-sidebar-header { background: var(--tp-side); border: 0; box-shadow: none; padding-inline: .75rem 1.125rem; gap: .5rem; }
/* the open sidebar: logo left, the fold button « right of it (Filament draws the button first) */
.fi-sidebar-header-logo-ctn { order: 0; flex: 1; min-width: 0; margin-inline-end: .75rem; }   /* 12 px clear of the « (its button has a negative margin) */
/* the lock-up fills the room up to the « at its own aspect ratio: Filament's .fi-logo is a flex box of a fixed height,
   which stretched the image and squeezed it sideways */
.fi-sidebar-header-logo-ctn > a, .fi-sidebar-header .fi-logo { display: block; width: 100%; height: auto !important; }
.fi-sidebar-header .tp-logo { width: 100%; height: auto; max-width: none; }
.fi-sidebar-close-collapse-sidebar-btn { order: 1; margin-inline-start: auto; flex-shrink: 0; }
.fi-sidebar-close-collapse-sidebar-btn:hover, .fi-sidebar-close-collapse-sidebar-btn:focus-visible, .fi-sidebar-close-collapse-sidebar-btn:hover .fi-icon { color: var(--tp-amber); }
.fi-sidebar-footer { border-top: 0; }
.fi-sidebar-group-label { font-family: var(--tp-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { box-shadow: inset 3px 0 0 var(--tp-amber); }
/*
 * The menu is corporate anthracite in every look, by day and by night (user, 11.11.2026; night = a darker anthracite, so it
 * still sits behind the content). Its parts read the usual tokens, re-pointed here for the menu alone: the header, the nav
 * (main action, items, foot card), the user row and the phone strip. Never on .fi-sidebar itself: the user menu's dropdown
 * lives inside the footer and stays a normal light / dark panel. --tn-fill is the page's own orange, kept for the main
 * action (--tp-amber inside the menu is the night shade: icons and marks on a dark ground).
 */
:root { --tn-bg: #2a353f; --tn-fill: var(--tp-amber); --tn-fill-ink: var(--tp-amber-ink); }
.dark { --tn-bg: #09090b; }   /* night: the content's own neutral black, one tone darker than the canvas (no blue cast) */
.fi-sidebar-header-ctn, .fi-sidebar-nav, .fi-sidebar .fi-user-menu-trigger, .fi-layout-sidebar-toggle-btn-ctn {
    --tp-side: var(--tn-bg); --tp-bg: var(--tn-bg); --tp-text: #f2f5f7; --tp-line: #3f4c58; --tp-line2: #4d5b68; --tp-field: #323f4a;
    --tp-amber: #e6a119; --tp-amber-ink: #0d0d0f;
    --tm-surface: #37444f; --tm-surface-2: #323f4a; --tm-dim: #b1bcc5; --tm-faint: #8e9ba6; --tm-hover: rgb(255 255 255 / .07);
    --tm-tray: #222c35; --tm-shadow: 0 0 0 0 transparent; --tm-bad: #ff9488; --tm-bad-soft: #4d272a; --tm-good: #6fd39a;
    --tm-accent-line: color-mix(in srgb, var(--tp-amber) 45%, var(--tn-bg));
}
.dark :is(.fi-sidebar-header-ctn, .fi-sidebar-nav, .fi-sidebar .fi-user-menu-trigger, .fi-layout-sidebar-toggle-btn-ctn) {
    /* the night content's values (modern.css), so a box in the menu is the same surface as a card on the page */
    --tp-text: #ececf0; --tp-line: #26262d; --tp-line2: #36363f; --tp-field: #1b1b21; --tm-surface: #17171c; --tm-surface-2: #1d1d23;
    --tm-tray: #131317; --tm-dim: #a0a0ad; --tm-faint: #74747f;
}
.fi-sidebar .tp-logo, .fi-sidebar .tp-brand-mark { filter: brightness(0) invert(1); }
.fi-sidebar .fi-sidebar-item-label, .fi-sidebar .fi-sidebar-group-label, .fi-sidebar .tp-dim { color: var(--tm-dim); }
.fi-sidebar .fi-sidebar-item-btn > .fi-icon, .fi-sidebar .fi-user-menu-trigger > .fi-icon, .fi-sidebar-close-collapse-sidebar-btn .fi-icon { color: var(--tm-dim); }
.fi-sidebar .fi-sidebar-item-btn:hover, .fi-sidebar .fi-sidebar-item-btn:focus-visible, .fi-sidebar .fi-user-menu-trigger:hover { background: var(--tm-hover); }
.fi-sidebar .fi-sidebar-item-btn:hover .fi-sidebar-item-label { color: var(--tp-text); }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--tm-surface); }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label, .fi-sidebar .fi-user-menu-trigger, .fi-sidebar .tp-saha-cari b { color: var(--tp-text); }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: var(--tp-amber); }
.fi-sidebar .tp-late { color: var(--tm-bad); }
/* folded sidebar (desktop): a menu badge (unread messages, answered requests) stays, as a small count on the icon */
@media (min-width: 64rem) {
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn { position: relative; }
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-badge-ctn { display: block !important; position: absolute; top: .1rem; inset-inline-end: .1rem; pointer-events: none; }
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-badge-ctn .fi-badge { min-width: 1.1rem; padding: 0 .25rem; font-size: .62rem; line-height: 1.1rem; justify-content: center; }
}

/* sections and tables: hairlines, no rounded shadows, like the advisor's cards */
.fi-section, .fi-ta-ctn { border-radius: .25rem; box-shadow: none; border: 1px solid var(--tp-line); }
/* LioxMES kartları gibi: üstte ince primary çizgi, köşesiz */
.fi-section, .fi-ta-ctn { border-top: 2px solid var(--tp-amber); border-top-left-radius: 0; border-top-right-radius: 0; }
/*
 * Default input style = the cutting advisor's fields (cutting/styles: .tca input): square, the --tp-field fill, a 1 px
 * hairline (no shadow), 13 px mono, a 1 px amber line on focus; labels 11 px mono caps, dim. Filament draws the frame as a
 * ring (box-shadow), so only its variables change; new inputs get it by being a Filament field or one of the native
 * classes below, never a look of their own.
 */
body .fi-input-wrp { border-radius: 0; background-color: var(--tp-field); --tw-shadow: 0 0 #0000; --tw-ring-color: var(--tp-line); }
body .fi-input-wrp:not(.fi-disabled):not(:has(.fi-ac-action:focus)):focus-within { --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 1px var(--tw-ring-color); --tw-ring-color: var(--tp-amber); }
body .fi-input-wrp.fi-invalid { --tw-ring-color: var(--danger-600); }
body .fi-input, body .fi-select-input { font-family: var(--tp-mono); font-size: 13px; padding: 9px 11px; }
.tp-textarea, .tp-cell-input, .tp-grid-size {
    border: 1px solid var(--tp-line); border-radius: 0; background: var(--tp-field); color: inherit; box-shadow: none;
    padding: 9px 11px; font-family: var(--tp-mono); font-size: 13px;
}
.tp-textarea:focus, .tp-cell-input:focus, .tp-grid-size:focus { outline: none; border-color: var(--tp-amber); }
.tp-cell-input { min-width: 6rem; padding: 5px 8px; }   /* a table row stays a table row */
body .fi-checkbox-input { border-radius: 0; }
/*
 * Default button style = the advisor's .tca-btn: square, 11 px bold mono caps, 9 × 14, a 1 px frame. Gray (no colour):
 * the field fill and --tp-line2, amber frame and text on hover. Primary: amber fill and frame, --tp-amber-ink text. Other colours
 * (danger …) keep Filament's fill, take the shape. The keyboard focus ring (more specific) still wins.
 */
body .fi-btn {
    border-radius: 0; padding: 9px 14px; font-family: var(--tp-mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; line-height: 1rem;
}
body .fi-btn:not(.fi-color) { background-color: var(--tp-field); color: var(--tp-text); box-shadow: 0 0 0 1px var(--tp-line2); }
body .fi-btn:not(.fi-color):hover { color: var(--tp-amber); box-shadow: 0 0 0 1px var(--tp-amber); }
body .fi-btn:not(.fi-color):hover > .fi-icon { color: var(--tp-amber); }
body .fi-btn.fi-color-primary:not(.fi-outlined) { background-color: var(--tp-amber); color: var(--tp-amber-ink); font-weight: 800; box-shadow: 0 0 0 1px var(--tp-amber); }
body .fi-btn.fi-color-primary:not(.fi-outlined):hover { background-color: var(--tp-amber); filter: brightness(1.08); }
body .fi-btn.fi-color-primary:not(.fi-outlined) > .fi-icon { color: var(--tp-amber-ink); }
.tp-grid-pages button { border-radius: 0; border: 1px solid var(--tp-line2); background: var(--tp-field); font: 700 11px var(--tp-mono); }
.tp-grid-pages button:hover:not(:disabled) { border-color: var(--tp-amber); color: var(--tp-amber); }

.fi-fo-field-label-content, .tp-field > span {
    font-family: var(--tp-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-600);
}
.tp-check > span, .fi-fo-field-label:has(.fi-checkbox-input) .fi-fo-field-label-content {
    font-family: var(--tp-mono); font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--gray-600);   /* the advisor's .tca-check */
}
.dark .fi-fo-field-label-content, .dark .tp-field > span, .dark .tp-check > span { color: var(--gray-400); }

.fi-header-heading { letter-spacing: -.02em; font-weight: 900; }
.fi-header-heading { cursor: pointer; transition: color .15s; }   /* the page title opens its menu page (filament/portal/head) */
.fi-header-heading:hover { color: var(--tp-amber); }

/* every page: its title (+ header actions) is a sticky top bar, edge to edge; less air below */
.fi-page .fi-page-header-main-ctn { padding-block: 0 1.25rem; row-gap: 1rem; }
.fi-page .fi-page-content { row-gap: 1rem; }
.fi-page .fi-header { position: sticky; top: 0; z-index: 20; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .5rem 1rem; margin-inline: calc(var(--spacing) * -4); padding: .7rem calc(var(--spacing) * 4); min-height: 3.6rem;
    background: var(--tp-side); border-bottom: 1px solid var(--tp-line); }
@media (min-width: 48rem) { .fi-page .fi-header { margin-inline: calc(var(--spacing) * -6); padding-inline: calc(var(--spacing) * 6); } }
@media (min-width: 64rem) { .fi-page .fi-header { margin-inline: calc(var(--spacing) * -8); padding-inline: calc(var(--spacing) * 8); } }
.fi-page .fi-header-heading { font-size: 1rem; line-height: 1.5rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
/* the bar stays thin: no breadcrumbs (the sidebar shows where you are), the subheading small, at most two lines */
.fi-page .fi-header .fi-breadcrumbs { display: none; }
.fi-page .fi-header-subheading { margin-top: .1rem; max-width: 75ch; font-size: .78rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the advisor fills the page edge to edge (no padding to reach over), its name plate right under the top bar */
.fi-main:has(.tca-wrap) { padding: 0; max-width: none; }
.fi-page:has(.tca-wrap) .fi-page-header-main-ctn { padding: 0; gap: 0; }
.fi-page:has(.tca-wrap) .fi-header { margin-inline: 0; padding-inline: 24px; }   /* the advisor's own 24 px edge */
/* the advisor's top bar is its name plate: the mark over two lines, the name with the sources beside it, the record under it */
@media (min-width: 64rem) {   /* desktop: the actions stay on the right, the plate gives way (the sources go under the name) */
    .fi-page:has(.tca-wrap) .fi-header { flex-wrap: nowrap; }
    .fi-page:has(.tca-wrap) .fi-header > :first-child { flex: 1 1 auto; min-width: 0; }
    .fi-page:has(.tca-wrap) .fi-header-actions-ctn { flex: none; }
}
.tp-adv-title { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.tp-adv-mark { grid-row: 1 / 3; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--tp-amber); color: var(--tp-amber-ink); font: 900 18px var(--tp-mono); }
.tp-adv-name i { font-style: normal; font-weight: 400; color: var(--gray-400); }
.tp-adv-name > span { text-transform: none; }   /* "TURCAR | Pusula": the brand in capitals, the name as written */
.tp-adv-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.tp-adv-src { display: inline-flex; align-items: center; gap: 8px; font: 400 11px var(--tp-mono); letter-spacing: 0; color: var(--gray-500); }
.tp-adv-src i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 8px #16a34a; }
.dark .tp-adv-src i { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.tp-adv-src i.off { background: var(--gray-400); box-shadow: none; }
.tp-adv-sub { font: 700 12px var(--tp-mono); letter-spacing: .03em; text-transform: none; color: var(--tp-text); }

/* sign-in: Turcar brand panel (anthracite, the mark's colour, white lock-up, amber accent) + the form, as KobiMES' login */
.fi-simple-layout:has(.tp-auth-brand) { flex-direction: row; align-items: stretch; padding: 0; }
.fi-simple-layout:has(.tp-auth-brand) .fi-simple-main-ctn { flex: 1 1 auto; }
.fi-simple-layout:has(.tp-auth-brand) .fi-simple-header .fi-logo { display: none; }
.tp-auth-brand {
    flex: 0 0 42%; max-width: 560px; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between;
    padding: 48px 44px; color: #fff; background: #303e48;
}
/* align-self: a flex column would stretch the lock-up to the panel's width */
.tp-auth-brand .tp-logo { height: 3rem; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.tp-auth-brand picture { align-self: flex-start; display: block; line-height: 0; }   /* the lock-up / compact logo switch */
.tp-auth-tagline h1 { font-size: 2.1rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; padding-top: 14px; border-top: 3px solid var(--tp-amber); display: inline-block; }
.tp-auth-tagline p { color: rgba(255, 255, 255, .72); font-size: 1rem; margin: 0; max-width: 360px; }
.tp-auth-clock-time { font-size: 3rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.tp-auth-clock-date { color: rgba(255, 255, 255, .72); margin-top: 6px; }
.tp-auth-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; font-size: .8rem; }
.tp-auth-links a { color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 2px; }
.tp-auth-links a:hover { color: var(--tp-amber); }
.tp-auth-version { margin-left: auto; color: rgba(255, 255, 255, .45); font-family: var(--tp-mono); font-size: .7rem; }
/* phone: the panel becomes a strip with the lock-up and the contact */
@media (max-width: 767.98px) {
    .fi-simple-layout:has(.tp-auth-brand) { flex-direction: column; }
    .fi-simple-layout:has(.tp-auth-brand) .fi-simple-main-ctn { align-items: flex-start; }
    .tp-auth-brand { flex: 0 0 auto; max-width: none; min-height: 0; padding: 16px 20px; flex-direction: row; align-items: center; }
    .tp-auth-brand .tp-logo { height: 2rem; }
    .tp-auth-tagline, .tp-auth-clock, .tp-auth-version { display: none; }
    .tp-auth-links { flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; }
}

/* maintenance notice above the page header (PAGE_START, filament/portal/agent-offline): the header's own top space */
.tp-agent-offline { padding-top: calc(var(--spacing) * 8); }
.fi-main:has(.tca-wrap) .tp-agent-offline { padding: 1rem; }
.tp-agent-offline.is-login { padding-top: 0; }
.tp-agent-offline p + p { margin-top: .5rem; }
.tp-agent-offline a { font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
/* thin red frame in place of the section's grey ring; softer red by night */
.tp-agent-offline .fi-section { box-shadow: 0 0 0 1px var(--danger-600); }
.dark .tp-agent-offline .fi-section { box-shadow: 0 0 0 1px var(--danger-500); }
/* paper: no maintenance notice, no mobile menu bar (logo + ›, shown under 1024 px, so also on A4) */
@media print { .tp-agent-offline, .fi-layout-sidebar-toggle-btn-ctn { display: none !important; } }

/* brand: the compact logo (sidebar, phone strip) and the master lock-up (sign-in) as they are by day; by night white, as the approved white version (TURCARlogo-02) — only recoloured, never redrawn */
.tp-logo { height: 2.1rem; width: auto; max-width: 100%; display: block; }
.dark .tp-logo, .dark .tp-brand-mark { filter: brightness(0) invert(1); }
.tp-brand-mark { height: 2.25rem; width: auto; }

/* folded sidebar: the Turcar mark is the icon (and the open button); Filament's chevron goes */
.fi-sidebar-open-collapse-sidebar-btn { display: none !important; }
.tp-sidebar-mark { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin: 0 auto; border-radius: .375rem; background: none; border: 0; cursor: pointer; }
.tp-sidebar-mark:hover { background: var(--tp-line); }
.tp-sidebar-mark .tp-brand-mark { height: 1.9rem; }

/*
 * phone / tablet (no topbar, the sidebar is a drawer): Filament's ☰ row becomes a slim Turcar strip; the logo itself is the
 * button that opens the menu (as the mark does on the folded desktop sidebar). The advisor's sticky header sits under it.
 */
@media (max-width: 1023.98px) {
    .fi-layout-sidebar-toggle-btn-ctn {
        position: sticky; top: 0; z-index: 30; display: flex; align-items: center; height: 3.25rem; padding: 0 1.5rem;   /* the logo on the page's 24 px edge */
        background: var(--tn-bg);
    }
    .fi-layout-sidebar-toggle-btn {
        position: relative; width: 13.25rem !important; height: 2.6rem !important; border-radius: .375rem; margin: 0 !important;
        padding: 0 1.75rem 0 0 !important; background: url('../images/turcar-logo-kompakt.svg') left center / contain no-repeat content-box;
    }
    /* a › right of the logo (the open drawer shows ‹ there), so the logo reads as the menu button */
    .fi-layout-sidebar-toggle-btn::after {
        content: ''; position: absolute; right: .6rem; top: 50%; width: .55rem; height: .55rem;
        border: solid var(--gray-500); border-width: 0 2px 2px 0; transform: translateY(-50%) rotate(-45deg);
    }
    .fi-layout-sidebar-toggle-btn > svg { display: none; }
    .fi-layout-sidebar-toggle-btn { filter: brightness(0) invert(1); }   /* the logo (and Modern's ☰) white on the anthracite strip */
    .fi-page .fi-header { top: 3.25rem; }   /* the page's title bar sits under the Turcar strip too */
    /* the open drawer's close button (Filament shows it only from lg) sits right of the logo, as on desktop */
    .fi-sidebar-close-collapse-sidebar-btn { display: flex !important; }
}

/* requests (Ürünler, Taleplerim, Yeni talep, Talep ayrıntısı: filament/portal/requests/*) */
.tp-link { color: var(--tp-amber); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.tp-dim { color: var(--gray-500); font-size: .8rem; }
.tp-code { font-family: var(--tp-mono); font-weight: 600; }
/* a saha account's customer above the menu (filament/portal/saha-cari) */
/* the menu's main action and foot card (App\Support\SideMenu); folded: the plus alone, no card */
.tp-side-actions { display: flex; gap: .5rem; flex: none; margin: 0 .75rem .75rem; }
.tp-side-action { display: flex; align-items: center; justify-content: center; gap: .375rem; flex: 1 1 0; min-width: 0; min-height: 2.5rem; padding: 0 .5rem; white-space: nowrap; background: var(--tn-fill); color: var(--tn-fill-ink); font-size: .875rem; font-weight: 700; border-radius: .5rem; }
.tp-side-action:hover { filter: brightness(.94); }
/* a temsilci's Faaliyet / Fırsat: anthracite, a hairline amber frame (user, 12.11.2026); the customer's Yeni talep stays filled */
.tp-side-action.is-quiet { background: var(--tm-surface); color: var(--tp-text); border: 1px solid var(--tp-amber); font-weight: 600; }
.tp-side-action.is-quiet:hover { filter: none; background: var(--tm-surface-2); }
.tp-side-action.is-quiet .tp-side-action-i { color: var(--tp-amber); }
.tp-side-action-i { width: 1.125rem; height: 1.125rem; flex: none; }
.fi-sidebar:not(.fi-sidebar-open) .tp-side-actions { flex-direction: column; align-items: center; margin-inline: 0; }
.fi-sidebar:not(.fi-sidebar-open) .tp-side-action { flex: none; width: 2.5rem; padding: 0; }
@media (min-width: 64rem) { .tp-side-actions { display: none; } }   /* a desktop has them in the page headers (user, 18.11.2026) */
/* Firma sayfası (customers/show): the head line, the rail's contacts; Müşterilerim's name cell is its link */
.tp-firm-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .875rem; }
.tp-firm-link { color: inherit; cursor: pointer; }
.tp-firm-link:hover, .tp-firm-link:focus-visible { color: var(--tp-amber); text-decoration: underline; text-underline-offset: 2px; outline: 0; }
a.tp-firm-link { font-weight: 500; }
.tp-firm .tp-tab { cursor: pointer; }
.tp-firm-contact { align-items: flex-start; }
.tp-firm-links { display: flex; flex-direction: column; align-items: flex-end; gap: .125rem; font-size: .8125rem; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.tp-rows tbody tr.tp-row-plain { cursor: default; }
/* A long table scrolls inside its tray, everywhere (user, 12.11.2026): the page keeps its length, the head row stays in sight.
   .tp-scroll = a table put in a scroller by hand (the firma sayfası's tabs, Müşterilerim, Adaylar); .tp-table-wrap = every grid
   (<x-tp-grid>: Siparişlerim, Taleplerim, Stok, Ürünler, Cari Hesabım, Faaliyetler …) and the other wrapped tables, from 640 px
   (a phone keeps one scroll: the page's; its tables are cards). A grid's page of rows fills what the window leaves under the title. */
.tp-scroll { max-height: min(62vh, 36rem); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 640px) { .tp-table-wrap { max-height: max(20rem, calc(100dvh - 17rem)); overflow-y: auto; overscroll-behavior: contain; } }
/* the scrollbar is always in sight while the list is longer than the tray: a drawn bar, since the system's overlay bar (macOS, touch)
   hides until one scrolls. ::-webkit-scrollbar makes it a classic bar in Chrome / Safari / Edge; scrollbar-color would switch that
   off there, so only a browser without it (Firefox) gets the standard properties. */
:is(.tp-scroll, .tp-table-wrap)::-webkit-scrollbar { width: .625rem; height: .625rem; }
:is(.tp-scroll, .tp-table-wrap)::-webkit-scrollbar-track { background: var(--tm-surface-2, var(--tp-field)); border-radius: 999px; }
:is(.tp-scroll, .tp-table-wrap)::-webkit-scrollbar-thumb { background: var(--tm-faint, #8e9ba6); border: 2px solid var(--tm-surface-2, var(--tp-field)); border-radius: 999px; }
:is(.tp-scroll, .tp-table-wrap)::-webkit-scrollbar-thumb:hover { background: var(--tp-amber); }
:is(.tp-scroll, .tp-table-wrap)::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { :is(.tp-scroll, .tp-table-wrap) { scrollbar-width: auto; scrollbar-color: var(--tm-faint, #8e9ba6) var(--tm-surface-2, var(--tp-field)); } }
:is(.tp-scroll, .tp-table-wrap) > .tp-table thead th { position: sticky; top: 0; z-index: 1; background: var(--tm-surface-2, var(--tp-bg)); }
/* on paper the whole table prints: no inner scroller, no stuck head */
@media print { :is(.tp-scroll, .tp-table-wrap) { max-height: none; overflow: visible; } :is(.tp-scroll, .tp-table-wrap) > .tp-table thead th { position: static; } }
/* Müşterilerim's rows are grids (modern-pages.css): there the head row itself sticks */
.tp-scroll > .tp-table.tp-rows:has([wire\:click^="pick("]) thead { position: sticky; top: 0; z-index: 1; }
/* a filter in a tray header (the firma sayfası's Ziyaretler / Faaliyetler): a pill select as tall as a pill button there (28 px, 44 px
   on a touch screen), so the header keeps its one height; .tp-head-tools = a select and a button on one line, never wrapping */
.tp-head-tools { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.tp-head-select { height: 1.75rem; max-width: min(16rem, 46vw); padding: 0 1.75rem 0 .75rem; border: 1px solid var(--tp-line2); border-radius: 999px;
    background-color: var(--tm-surface, var(--tp-field)); color: var(--tp-text); font-size: .8125rem; line-height: 1.25rem; text-overflow: ellipsis; cursor: pointer; }
.tp-head-select:hover, .tp-head-select:focus-visible { border-color: var(--tp-amber); outline: 0; }
@media (pointer: coarse) { .tp-head-select { height: 2.75rem; } }
.tp-side-card { display: block; flex: none; margin: auto .75rem .5rem; padding: .25rem; font-size: .75rem; color: var(--tm-dim); }
@media (max-height: 44rem) { .tp-side-card { display: none; } }   /* a low window keeps the menu itself in view */
.tp-side-card-t { display: block; padding: .375rem .5rem .5rem; font-weight: 500; }
.tp-side-card-b { display: flex; flex-direction: column; gap: .5rem; padding: .75rem; border: 1px solid var(--tp-line, rgba(127,127,127,.3)); background: var(--tp-field); }
.tp-side-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tp-side-card-n { font-size: 1.25rem; font-weight: 600; color: var(--tp-text, inherit); }
.tp-saha-cari { display: flex; flex-direction: column; gap: .1rem; margin: 0 .75rem .75rem; padding: .55rem .7rem; border: 1px solid var(--tp-line, rgba(127,127,127,.3)); border-radius: .5rem; font-size: .8rem; line-height: 1.25; }
.tp-saha-cari b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tp-saha-cari:hover, .tp-saha-cari.is-picked { border-color: var(--tp-amber); }
/* the same customer beside the page title while the menu is closed (saha-cari-head): one line, cut with … on a narrow screen */
.fi-header > div:has(> .tp-head-cari) { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.tp-head-cari { display: inline-flex; align-items: baseline; gap: .5rem; min-width: 0; max-width: 32rem; padding: .2rem .6rem; border: 1px solid var(--tp-line2);
    background: var(--tp-field); font-size: .8rem; line-height: 1.3; white-space: nowrap; }
.tp-head-cari b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tp-head-cari .tp-code { color: var(--gray-500); font-size: .72rem; }
.tp-head-cari:hover { border-color: var(--tp-amber); }
@media (max-width: 639.98px) { .tp-head-cari { max-width: 55vw; } .tp-head-cari .tp-code { display: none; } }
.tp-mark { background: #fde68a; color: inherit; border-radius: 2px; padding: 0 1px; }
.dark .tp-mark { background: rgba(251, 191, 36, .35); }
.tp-nowrap { white-space: nowrap; }
.tp-grow { flex: 1 1 auto; min-width: 0; }
.tp-inline { display: inline-flex; vertical-align: middle; margin-left: .35rem; }
.tp-note { margin-top: .5rem; }
.tp-text { white-space: pre-wrap; margin: .5rem 0; }
.tp-error { padding: .75rem 1rem; border: 1px solid var(--danger-300); border-radius: .25rem; background: var(--danger-50); color: var(--danger-700); }
.dark .tp-error { border-color: var(--danger-800); background: rgba(220, 38, 38, .08); color: var(--danger-300); }
.tp-empty { text-align: center; color: var(--gray-500); padding: 1.5rem .5rem !important; }
.tp-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.tp-toolbar .tp-grow { min-width: 12rem; }
.tp-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; white-space: nowrap; cursor: pointer; }
.tp-out { color: var(--danger-600); font-size: .75rem; }
.tp-late { color: var(--danger-600); }   /* a past due date / amount in a table cell: red, the cell's own size (tp-out is the small note) */
.tp-step { margin-top: .35rem; font-size: .8rem; }
.tp-progress { display: block; height: 4px; margin-top: .25rem; max-width: 12rem; border-radius: 2px; background: var(--gray-200); overflow: hidden; }
.dark .tp-progress { background: var(--gray-700); }
.tp-progress > span { display: block; height: 100%; background: var(--tp-amber); }
.dark .tp-out { color: var(--danger-400); }
.tp-table-wrap { overflow-x: auto; }
.tp-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tp-table th { text-align: left; font-family: var(--tp-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); padding: .5rem; border-bottom: 1px solid var(--tp-line); white-space: nowrap; }
/* header row one shade off the card, so it stands out (every tp-table, not only Cari Hesabım) */
.tp-table thead th { background: var(--gray-100); }
.dark .tp-table thead th { background: var(--gray-800); }
.tp-table td { padding: .5rem; border-bottom: 1px solid var(--tp-line); vertical-align: top; }
.tp-unit { font-size: .85em; font-weight: 400; white-space: nowrap; }   /* "/ AD" beside a price */
.tp-table tfoot td { border-bottom: 0; border-top: 2px solid var(--tp-line); font-weight: 700; }   /* toplam satırı: kalın, sayfalama / sıralama dışında */
.tp-table .tp-num { text-align: right; white-space: nowrap; }
.tp-rows tbody tr { cursor: pointer; }
.tp-rows tbody tr:hover, .tp-catalogue tbody tr:hover { background: var(--tp-grid); }
.tp-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .85rem; color: var(--gray-500); margin-bottom: .5rem; }
.tp-subhead { display: block; margin: 1.25rem 0 .5rem; font-family: var(--tp-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tp-subhead .tp-dim { font-family: inherit; letter-spacing: 0; text-transform: none; font-weight: 400; }
.tp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tp-actions-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; margin-top: .75rem; }
.tp-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; } /* minmax(0, …): a wide table must not push the column past the phone's edge */
@media (min-width: 1280px) { .tp-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tp-fields { display: grid; gap: .75rem 1rem; }
@media (min-width: 640px) { .tp-fields { grid-template-columns: 1fr 1fr; } .tp-fields .tp-wide { grid-column: 1 / -1; } }
.tp-field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 500; }
.tp-textarea, .tp-cell-input { width: 100%; }   /* look: the default input style at the top of this file */
.tp-qty { width: 6rem; }
.tp-invalid { display: block; color: var(--danger-600); font-size: .78rem; font-style: normal; margin-top: .2rem; }
.tp-file { font-size: .85rem; max-width: 100%; }
.tp-files { list-style: none; margin: .5rem 0 0; padding: 0; }
.tp-files li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--tp-line); font-size: .875rem; }
.tp-files li.tp-removed > .tp-grow { text-decoration: line-through; color: var(--gray-500); }
.tp-history { list-style: none; margin: 0; padding: 0; }
.tp-history li { border-left: 3px solid var(--tp-amber); padding: .35rem .75rem; margin-bottom: .5rem; }
.tp-history li.is-customer { border-left-color: var(--gray-400); }
.tp-message { margin-top: 1rem; }

/* Ana sayfa's "Mesaj": same gap as the other header buttons; the unread badge sits on the corner, mostly inside the
   button, solid red with white (6.4:1 by day, 4.8:1 by night) instead of Filament's pale tint, on no backdrop */
.tp-head-badged .fi-btn-badge-ctn { translate: -80% -35%; background: none; }
.tp-head-badged .fi-badge { background: var(--danger-700); color: #fff; box-shadow: none; }
.dark .tp-head-badged .fi-badge { background: var(--danger-600); color: #fff; }
.tp-home-links { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; font-size: .9rem; }

/* Ürünler → Kategoriden bul (requests/categories) */
.tp-cat { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--tp-line); }
.tp-cat-head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin-bottom: .5rem; }
.tp-cat-label { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.tp-cat-path { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; font-size: .875rem; }
.tp-cat-path button { padding: .1rem .35rem; border-radius: .25rem; color: var(--tp-amber); }
.tp-cat-path button:hover:not([disabled]) { background: color-mix(in srgb, var(--tp-amber) 12%, transparent); }
.tp-cat-path button[aria-current] { color: inherit; font-weight: 600; cursor: default; }
.dark .tp-cat-path button[aria-current] { color: inherit; }
.tp-cat-sep { color: var(--gray-400); }
.tp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; }
.tp-cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .55rem .7rem; text-align: left; line-height: 1.25;
    border: 1px solid var(--tp-line); border-radius: .375rem; background: var(--tp-side); }
.tp-cat-tile:hover, .tp-cat-tile:focus-visible { border-color: var(--tp-amber); outline: none; }
.tp-cat-code { font-family: var(--tp-mono); font-size: .72rem; color: var(--tp-amber); }
.tp-cat-name { font-weight: 600; font-size: .875rem; }
.tp-cat-name.is-sample { font-weight: 400; font-style: italic; color: var(--gray-500); }

/* Ana sayfa (dashboard.blade.php): counts as the advisor's tiles, two columns from 1024 px */
.tp-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.tp-dash-hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.tp-dash-name { font-weight: 700; font-size: 1.05rem; }
.tp-dash-search { margin: 0; flex: 1 1 22rem; max-width: 36rem; }
.tp-dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; }
.tp-kpi { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--tp-line); border-radius: .25rem; background: var(--tp-side); }
.tp-kpi:hover { border-color: var(--tp-amber); }
.tp-kpi-n { font: 800 1.75rem/1 var(--tp-mono); }
.tp-kpi-l { font: .68rem var(--tp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); }
.tp-kpi.is-alert { border-color: var(--danger-400); }
.tp-kpi.is-alert .tp-kpi-n { color: var(--danger-600); }
.dark .tp-kpi.is-alert .tp-kpi-n { color: var(--danger-400); }
@media (min-width: 1024px) { .tp-dash-cols { grid-template-columns: 1fr 1fr; } }
.tp-dash-cols { display: grid; gap: 1rem; align-items: start; }
.tp-dash-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tp-dash-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .25rem; border-bottom: 1px solid var(--tp-line); font-size: .875rem; }
.tp-dash-row:last-of-type { border-bottom: 0; }
.tp-dash-row:hover { background: color-mix(in srgb, var(--tp-amber) 6%, transparent); }
.tp-dash-tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.tp-dash-order { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; min-width: 9rem; text-align: right; }
.tp-dash-order .tp-progress { width: 100%; }
.tp-dash-qty { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* a two-way switch (Ana sayfa → En çok aldığınız ürünler: Adet / Tutar) in the button language: square mono caps, the gray
   button for the others, the primary (amber fill) for the chosen one; joined frames. Filament's pill tabs are reset. */
.tp-seg.fi-tabs { gap: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.tp-seg .fi-tabs-item {
    border-radius: 0; padding: 6px 12px; border: 1px solid var(--tp-line2); background: var(--tp-field); color: var(--tp-text);
    font: 700 11px/1rem var(--tp-mono); text-transform: uppercase; letter-spacing: .08em;
}
.tp-seg .fi-tabs-item + .fi-tabs-item { margin-inline-start: -1px; }
.tp-seg .fi-tabs-item .fi-tabs-item-label { color: inherit; }
.tp-seg .fi-tabs-item:hover { position: relative; border-color: var(--tp-amber); color: var(--tp-amber); }
.tp-seg .fi-tabs-item.fi-active { position: relative; border-color: var(--tp-amber); background: var(--tp-amber); color: var(--tp-amber-ink); font-weight: 800; }
.tp-dash-chev { width: 1rem; height: 1rem; color: var(--gray-400); flex: none; }
/* Ana sayfa's frame: the KPI strip, the tab bar, the open tab (dashboard/tabbar): one row that scrolls sideways when it does not fit */
.tp-dash-strip, .tp-tabpanel, .tp-dash-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.tp-dash-strip { gap: .75rem; }
.tp-dash-cols > :only-child { grid-column: 1 / -1; }
.tp-dash-cols:not(:has(*)) { display: none; }
.tp-tabs { display: flex; gap: 0; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; border-bottom: 1px solid var(--tp-line2); }
.tp-tabs::-webkit-scrollbar { display: none; }
.tp-tab { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: 0 .9rem; margin-bottom: -1px; border-bottom: 2px solid transparent; scroll-snap-align: start;
    font: 700 11px/1rem var(--tp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); white-space: nowrap; }
.tp-tab:hover { color: var(--tp-amber); }
.tp-tab.is-active { border-bottom-color: var(--tp-amber); color: var(--tp-text); }
.tp-tab:focus-visible { outline: 2px solid var(--tp-amber); outline-offset: -2px; }
.tp-tab-n { min-width: 1.25rem; padding: 0 .3rem; background: var(--tp-field); color: var(--tp-text); font-size: 10px; line-height: 1rem; letter-spacing: 0; text-align: center; font-variant-numeric: tabular-nums; }
.tp-tab-n.is-alert { background: var(--danger-600); color: #fff; }
@media (pointer: coarse) { .tp-tab { min-height: 2.75rem; } }
.tp-attn-l { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.tp-attn-t { display: flex; flex-direction: column; min-width: 0; }
.tp-attn-sub { overflow: hidden; color: var(--gray-500); font-size: .75rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.tp-attn-act { flex: none; padding: .25rem .625rem; border: 1px solid var(--tp-line); border-radius: .25rem; background: none; color: inherit; font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.tp-attn-act:hover { border-color: var(--tp-amber); color: var(--tp-amber); }
.tp-attn-act:focus-visible { outline: 2px solid var(--tp-amber); outline-offset: 1px; }
@media (pointer: coarse) { .tp-attn-act { min-height: 2.75rem; display: inline-flex; align-items: center; } }

.tp-dash-cols:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.tp-dash-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .5rem; }
.tp-dash-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
a.tp-kpi[href] { cursor: pointer; }
/* Ana sayfa, the saha cards (dashboard/cards): KPIs with a sub line, tabbed order / offer lists, the week's agenda */
.tp-saha-scope, .tp-saha-note { font-size: .78rem; }
.tp-saha-kpis .tp-kpi-n { font-size: 1.35rem; }
.tp-kpi-s { font-size: .78rem; color: var(--gray-500); }
.tp-up { color: var(--success-600); }
.dark .tp-up { color: var(--success-400); }
.tp-saha-tabs { margin: -.25rem 0 .5rem; overflow-x: auto; }
.tp-saha-count { display: inline-block; min-width: 1.4rem; margin-inline-start: .35rem; padding: 0 .3rem; background: var(--tp-field); font-size: .7rem; text-align: center; }
.tp-saha-count.is-alert { background: var(--danger-600); color: #fff; }
.tp-seg .fi-active .tp-saha-count:not(.is-alert) { background: rgba(0, 0, 0, .18); color: inherit; }
button.tp-dash-row { width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; font: inherit; color: inherit; }
.tp-saha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: start; gap: .25rem 1rem; }
.tp-saha-main { display: flex; flex-direction: column; min-width: 0; }
.tp-saha-main .tp-dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-saha-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-saha-firsat { color: var(--tp-amber); font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-saha-empty { padding: .5rem .25rem; }
.tp-saha-day { margin-top: .5rem; padding: .3rem .25rem; font: 600 .66rem var(--tp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); border-bottom: 1px solid var(--tp-line); }
.tp-saha-day:first-child { margin-top: 0; }
.tp-saha-agenda { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: start; gap: .6rem; }
.tp-saha-pill { font-size: .68rem; padding: .05rem .4rem; border: 1px solid var(--tp-line2); white-space: nowrap; }
.tp-saha-pill.is-plan { border-style: dashed; border-color: var(--tp-amber); color: var(--tp-amber); }
.tp-saha-pill.is-order { border-color: var(--danger-600); color: var(--danger-600); }
.tp-saha-inbox { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tp-saha-chance { grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; }
.tp-saha-chance.tp-saha-row:is(button) { grid-template-columns: minmax(0, 1fr) auto; }
.tp-saha-tem { align-self: flex-start; margin-top: .15rem; padding: 0 .35rem; border: 1px solid var(--tp-line2); font: .68rem/1.4 var(--tp-mono); color: var(--gray-500); white-space: nowrap; }   /* a satış müdürü's team: the customer's temsilci */
.tp-saha-link { border: 0; background: none; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.tp-saha-link:hover > span:first-child { color: var(--tp-amber); }
/* offer preview (Concerns\PreviewsOffers): compact head, facts, lines */
.tp-offer { display: flex; flex-direction: column; gap: .75rem; }
.tp-offer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.tp-offer-title { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.tp-offer-title .tp-code { font-size: 1rem; }
.tp-offer-total { font: 800 1.3rem var(--tp-mono); white-space: nowrap; }
.tp-offer-total small { margin-left: .4rem; font: 400 .7rem var(--tp-mono); color: var(--gray-500); }
.tp-offer-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .4rem 1rem; margin: 0; padding: .6rem .75rem; border: 1px solid var(--tp-line); background: var(--tp-side); }
.tp-offer-facts dt { font: .62rem var(--tp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.tp-offer-facts dd { margin: 0; font-size: .85rem; font-weight: 600; }
.tp-offer-lines td { vertical-align: top; font-size: .82rem; }
.tp-offer-name { display: flex; flex-direction: column; gap: .05rem; min-width: 12rem; }
.tp-offer-note { margin: 0; font-size: .82rem; }
@media (max-width: 639.98px) {   /* a phone: product, quantity, net, amount; list price and discount on a wider screen */
    .tp-offer-lines th:nth-child(3), .tp-offer-lines td:nth-child(3), .tp-offer-lines th:nth-child(4), .tp-offer-lines td:nth-child(4) { display: none; }
    .tp-offer-name { min-width: 0; }
    .tp-offer-lines th, .tp-offer-lines td { padding-inline: .4rem; }
}
/*
 * Charts and the main + rail layout (<x-tp-chart.*>: tm-ch area, tm-dn donut, tm-sg split bar, tm-dv diverging bars, tm-tg target columns; tm-split), drawn by
 * both looks from the same markup (Ana sayfa's cards). Tokens only: the classic values are here, the Modern look sets its own
 * (themes/modern.css, modern-dash.css). The classic look is square: no radius on pills and bars.
 */
:root {
    --tm-surface: var(--tp-side); --tm-surface-2: var(--tp-field); --tm-dim: var(--gray-500); --tm-faint: var(--gray-500);
    --tm-good: var(--success-600); --tm-bad: var(--danger-600); --tm-warn: var(--tp-amber); --tm-info: #2563eb;
    --tm-good-soft: color-mix(in srgb, var(--success-600) 12%, var(--tp-side)); --tm-bad-soft: color-mix(in srgb, var(--danger-600) 12%, var(--tp-side));
    --tm-accent-line: color-mix(in srgb, var(--tp-amber) 30%, var(--tp-side)); --tm-chart-2: #9ca3af;
    --tm-series-1: var(--tp-amber); --tm-series-2: #2563eb; --tm-series-3: #0d9488; --tm-series-4: #9ca3af; --tm-series-5: #7b8494; --tm-series-6: #c2556b;
    --tm-r-sm: 0px; --tm-r-pill: 0px; --tm-r-bar: 0px; --tm-gap: 1rem; --tm-shadow-pop: 0 8px 24px rgb(0 0 0 / .18);
    --tm-bad-solid: var(--danger-700); --tm-good-solid: var(--success-700); --tm-info-soft: color-mix(in srgb, var(--tm-info) 12%, var(--tp-side));
}
.dark { --tm-good: var(--success-400); --tm-bad: var(--danger-400); --tm-series-2: #60a5fa; --tm-series-3: #2dd4bf; --tm-series-4: #6b7280; }
.tm-delta { display: inline-block; padding: .0625rem .375rem; border-radius: var(--tm-r-pill); font-size: .75rem; line-height: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-delta.is-up { background: var(--tm-good-soft); color: var(--tm-good); }
.tm-delta.is-down { background: var(--tm-bad-soft); color: var(--tm-bad); }
/* shared bits: a status dot, a series colour by position */
.tm-dot { display: inline-block; flex: none; width: .5rem; height: .5rem; margin-inline-end: .5rem; border-radius: 50%; background: var(--tm-chart-2); }
.tm-dot.is-bad { background: var(--tm-bad); } .tm-dot.is-warn { background: var(--tm-warn); }
.tm-dot.is-good { background: var(--tm-good); } .tm-dot.is-info { background: var(--tm-info); }
.tm-dot.is-accent { background: var(--tp-amber); }
.tm-s1 { --k: var(--tm-series-1); } .tm-s2 { --k: var(--tm-series-2); } .tm-s3 { --k: var(--tm-series-3); }
.tm-s4 { --k: var(--tm-series-4); } .tm-s5 { --k: var(--tm-series-5); } .tm-s6 { --k: var(--tm-series-6); }
/*
 * The product series' corporate colours (the TURCAR design system, as on turcar.com: UniCut blue, HardCut red, ProCut orange,
 * AluCut green; the user, 11.11.2026: Matkap and Diş frezesi carry UniCut's colour, DITO the orange: here a lighter tint of it, so
 * a stacked column still tells them apart; same-hue series sit next to each other). Özel is the brand's anthracite, Bileme and
 * Diğer grays. The one exception to "one orange": these colours mark a series (a chart part, its legend key) and nothing else;
 * a status is never drawn in them (--tm-bad-solid / --tm-good-solid are darker on purpose). Keys = LioxMES config/stok.php
 * satis_serileri + ozel / bileme / diger (Dashboard::SERIES_COLOURS).
 */
:root { --ts-unicut: #2384c8; --ts-matkap: #6daedc; --ts-dis: #b3d5ee; --ts-hardcut: #bc1f26; --ts-procut: #f48222; --ts-dito: #f9b67a; --ts-alucut: #0cb14b;
    --ts-ozel: #2a353f; --ts-bileme: #8794a0; --ts-diger: #c9ced6; }
.dark { --ts-ozel: #aebbc7; --ts-bileme: #6f7c88; --ts-diger: #454d57; }
.tm-k-unicut { --k: var(--ts-unicut); } .tm-k-matkap { --k: var(--ts-matkap); } .tm-k-dis { --k: var(--ts-dis); } .tm-k-hardcut { --k: var(--ts-hardcut); }
.tm-k-procut { --k: var(--ts-procut); } .tm-k-dito { --k: var(--ts-dito); } .tm-k-alucut { --k: var(--ts-alucut); } .tm-k-ozel { --k: var(--ts-ozel); }
.tm-k-bileme { --k: var(--ts-bileme); } .tm-k-diger { --k: var(--ts-diger); }
:is(.tm-s1, .tm-s2, .tm-s3, .tm-s4, .tm-s5, .tm-s6, [class*="tm-k-"], [class*="tm-age-"]) { background: var(--k); }
/* main column + rail (the revenue card and the series, the team's months and the targets): by the room the page has, sidebar open or folded */
.tm-split-wrap { container-type: inline-size; min-width: 0; }
.tm-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tm-gap); }
.tm-split > * { min-width: 0; }
.tm-split-main { display: flex; flex-direction: column; }
.tm-split-main > * { flex: 1; }
@container (min-width: 56rem) { .tm-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@container (min-width: 56rem) { .tm-split.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* a report block drawn inside another card: no card of its own, no second heading */
.tm-flat .fi-section { border: 0; border-radius: 0; background: none; box-shadow: none; }
.tm-flat .fi-section-header { display: none; }
.tm-flat .fi-section-content-ctn { border: 0; }
.tm-flat .fi-section-content { padding: 0; }
/* the revenue card's headline */
.tm-rev-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .625rem; margin-bottom: 1rem; font-size: .8125rem; }
.tm-rev-n > b { font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tm-rev-n .tm-delta { align-self: center; }


.tm-ch-empty { margin: 0; padding: 2.5rem 1rem; border: 1px dashed var(--tp-line2); border-radius: var(--tm-r-sm); text-align: center; font-size: .875rem; color: var(--tm-dim); }
.tm-key { display: inline-block; width: 1rem; height: 0; margin-inline-end: .375rem; border-top: 2px solid var(--tp-amber); vertical-align: middle; }
.tm-key.is-prev { border-top: 2px dashed var(--tm-chart-2); }

/* area: [legend] / [y labels | plot] / [ | x labels] */
.tm-ch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; }
.tm-ch-legend { grid-area: 1 / 1 / 2 / -1; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8125rem; color: var(--tm-dim); }
.tm-ch-y { grid-area: 2 / 1; position: relative; font: .6875rem/1 var(--tp-mono); color: var(--tm-faint); font-variant-numeric: tabular-nums; }
.tm-ch-sizer { display: block; height: 0; visibility: hidden; white-space: nowrap; }
.tm-ch-y > span:not(.tm-ch-sizer) { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.tm-ch-plot { grid-area: 2 / 2; position: relative; height: 15rem; border-bottom: 1px solid var(--tp-line2);
    background: linear-gradient(to bottom, var(--tp-line) 1px, transparent 1px) 0 0 / 100% calc(100% / var(--rows, 4)); }
.tm-ch-plot > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.tm-ch-now { fill: none; stroke: var(--tp-amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-ch-now.is-open { stroke-dasharray: 2 5; }
.tm-ch-prev { fill: none; stroke: var(--tm-chart-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.tm-ch-g0 { stop-color: var(--tp-amber); stop-opacity: .24; }
.tm-ch-g1 { stop-color: var(--tp-amber); stop-opacity: 0; }
.tm-ch-pts { position: absolute; inset: 0; display: flex; }
.tm-ch-pt { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: default; -webkit-tap-highlight-color: transparent; }
.tm-ch-pt:focus { outline: none; }
.tm-ch-pt:focus-visible { outline: 2px solid var(--tp-amber); outline-offset: -2px; border-radius: var(--tm-r-sm); }
.tm-ch-pts > .tm-ch-pt:is(:hover, :focus)::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--tp-line2); }
.tm-ch-dot { position: absolute; left: 50%; bottom: var(--y); width: .625rem; height: .625rem; margin: 0 0 -.3125rem -.3125rem; border-radius: 50%;
    background: var(--tp-amber); box-shadow: 0 0 0 2px var(--tm-surface); opacity: 0; }
.tm-ch-dot.is-prev { bottom: var(--y2); background: var(--tm-chart-2); }
.tm-ch-pt:is(:hover, :focus) .tm-ch-dot, .tm-ch-pt.is-last .tm-ch-dot:not(.is-prev) { opacity: 1; }
.tm-ch-pt.is-open .tm-ch-dot:not(.is-prev) { background: var(--tm-surface); box-shadow: 0 0 0 2px var(--tp-amber); }
/* the card of a point: above it, kept inside the plot at both ends */
.tm-ch-tip { position: absolute; z-index: 5; left: 50%; bottom: calc(var(--yt) + .875rem); transform: translateX(-50%); display: none; flex-direction: column; gap: .25rem;
    min-width: 9.5rem; padding: .5rem .75rem; border-radius: var(--tm-r-sm); background: var(--tm-surface); box-shadow: 0 0 0 1px var(--tp-line), var(--tm-shadow-pop);
    font-size: .8125rem; line-height: 1.25rem; text-align: left; white-space: nowrap; pointer-events: none; }
.tm-ch-pt.is-l .tm-ch-tip { left: 0; transform: none; }
.tm-ch-pt.is-r .tm-ch-tip { left: auto; right: 0; transform: none; }
.tm-ch-pt:is(:hover, :focus) .tm-ch-tip { display: flex; }
.tm-ch-tip-h { font-weight: 600; }
.tm-ch-tip-h em { margin-inline-start: .375rem; font-style: normal; font-weight: 400; color: var(--tm-dim); }
.tm-ch-tip-r { display: flex; align-items: center; gap: .25rem; color: var(--tm-dim); }
.tm-ch-tip-r b { margin-inline-start: auto; padding-inline-start: 1rem; color: var(--tp-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-ch-tip-d { font-weight: 600; font-size: .75rem; }
.tm-ch-tip-d.is-up { color: var(--tm-good); } .tm-ch-tip-d.is-down { color: var(--tm-bad); }
.tm-ch-x { grid-area: 3 / 2; display: flex; font-size: .75rem; line-height: 1rem; color: var(--tm-dim); }
.tm-ch-x > span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; }
@media (max-width: 639.98px) {
    .tm-ch-plot { height: 12.5rem; }
    .tm-ch-x > span:nth-child(even) { visibility: hidden; }   /* every other month: twelve do not fit 360 px */
}

/* donut */
.tm-dn { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.tm-dn-ring { position: relative; flex: none; width: 7.5rem; height: 7.5rem; }
.tm-dn-ring svg { display: block; width: 100%; height: 100%; }
.tm-dn-track, .tm-dn-arc { fill: none; stroke-width: 5; }
.tm-dn-track { stroke: var(--tp-line); }
.tm-dn-arc { stroke: var(--tm-chart-2); }
.tm-dn-arc.is-bad { stroke: var(--tm-bad); } .tm-dn-arc.is-warn { stroke: var(--tm-warn); }
.tm-dn-arc.is-good { stroke: var(--tm-good); } .tm-dn-arc.is-info { stroke: var(--tm-info); }
.tm-dn-arc.is-accent { stroke: var(--tp-amber); }
.tm-dn-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tm-dn-mid b { font-size: 1.5rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tm-dn-mid span { max-width: 4.5rem; font-size: .6875rem; line-height: 1.2; color: var(--tm-dim); }
.tm-dn-legend { flex: 1 1 9rem; border-collapse: collapse; font-size: .8125rem; }
.tm-dn-legend th { padding: .4375rem 0; text-align: left; font-weight: 400; }
.tm-dn-legend td { padding: .4375rem 0 .4375rem .75rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-dn-legend td:last-child { width: 3.25rem; font-weight: 400; color: var(--tm-dim); }
.tm-dn-prev { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; margin-top: .1875rem; margin-inline-start: 1rem; color: var(--tm-dim); font-size: .75rem; font-weight: 400; }
.tm-dn-legend tr + tr > * { border-top: 1px solid var(--tp-line); }

/* split bar */
.tm-sg-bar { display: flex; gap: 2px; height: .75rem; overflow: hidden; border-radius: var(--tm-r-pill); background: var(--tp-line); }
.tm-sg-bar > span { min-width: 3px; }
.tm-sg-legend { list-style: none; margin: .75rem 0 0; padding: 0; }
.tm-sg-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: baseline; gap: .125rem .5rem; padding: .625rem 0; border-top: 1px solid var(--tp-line); font-size: .875rem; }
.tm-sg-legend li:first-child { border-top: 0; }
.tm-sg-legend li:last-child { padding-bottom: 0; }
.tm-sg-legend .tm-dot { margin: 0; align-self: center; }
.tm-sg-name { min-width: 0; font-weight: 500; }
.tm-sg-share { color: var(--tm-dim); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tm-sg-v { min-width: 5rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-sg-alt { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; color: var(--tm-dim); font-size: .8125rem; }

/* the open balance's age: a gray start (not due yet) and a warm ramp that darkens with age (Ana sayfa → Cari bakiye) */
.tm-age-0 { --k: var(--tm-chart-2); } .tm-age-1 { --k: var(--tp-amber); } .tm-age-2 { --k: color-mix(in srgb, var(--tp-amber) 55%, var(--tm-bad)); }
.tm-age-3 { --k: var(--tm-bad); } .tm-age-4 { --k: var(--tm-bad-solid); }
.tp-age { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--tp-line); }
.tp-age-head { margin-bottom: .5rem; font-size: .8125rem; }

/* diverging bars: change against the previous period, two poles and a neutral middle line (<x-tp-chart.diverging>) */
.tm-dv { display: grid; gap: .125rem; }
.tm-dv-row { display: grid; grid-template-columns: minmax(8rem, 1.6fr) minmax(6rem, 1.5fr) minmax(5.5rem, auto); align-items: center; gap: .25rem .75rem; padding: .375rem 0; border-top: 1px solid var(--tp-line); font-size: .875rem; color: inherit; text-decoration: none; }
.tm-dv-row:first-child { border-top: 0; }
a.tm-dv-row:hover { background: var(--tp-field); }
.tm-dv-label { display: flex; flex-direction: column; min-width: 0; gap: .125rem; }
.tm-dv-label .tp-dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
.tm-dv-track { position: relative; display: flex; align-items: center; height: .75rem; }
.tm-dv-side { flex: 1 1 50%; display: flex; min-width: 0; height: 100%; }
.tm-dv-side.is-neg { justify-content: flex-end; }
.tm-dv-bar { display: block; min-width: 2px; height: 100%; border-radius: var(--tm-r-bar); }
.tm-dv-bar.is-up { background: var(--tm-good); }
.tm-dv-bar.is-down { background: var(--tm-bad); }
.tm-dv-axis { flex: none; width: 1px; height: 1.25rem; margin-inline: 2px;   /* the 2px surface gap the marks keep */ background: var(--tp-line2); }
.tm-dv-v { display: flex; flex-direction: column; align-items: flex-end; gap: .125rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-dv-v .tm-up { color: var(--tm-good); } .tm-dv-v .tm-down { color: var(--tm-bad); }
.tm-dv-v .tp-dim { font-size: .75rem; }
@container (max-width: 30rem) { .tm-dv-row { grid-template-columns: minmax(0, 1fr) auto; } .tm-dv-track { grid-column: 1 / -1; } }

/* columns against a target line */
.tm-tg { padding-top: .5rem; }
.tm-tg-plot { position: relative; display: flex; align-items: stretch; gap: .5rem; height: 14rem; padding-right: 3.25rem;   /* the room of the line's label */ border-bottom: 1px solid var(--tp-line2); }
.tm-tg-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; }
.tm-tg-v { font: 600 .6875rem/1 var(--tp-mono); color: var(--tm-bad); }
.tm-tg-col.is-ok .tm-tg-v { color: var(--tm-good); }
.tm-tg-col.is-none .tm-tg-v { padding-bottom: .375rem; color: var(--tm-faint); }
.tm-tg-est { flex: none; display: flex; align-items: flex-end; width: 62%; max-width: 2.5rem; min-height: 2px; overflow: hidden; border-radius: var(--tm-r-bar) var(--tm-r-bar) 0 0; background: var(--tm-accent-line); }
.tm-tg-done { display: block; width: 100%; background: var(--tp-amber); }
.tm-tg-col:is(:hover, :focus) .tm-tg-est { background: color-mix(in srgb, var(--tp-amber) 42%, var(--tm-surface)); }
.tm-tg-line { position: absolute; z-index: 1; left: 0; right: 0; height: 0; border-top: 1.5px dashed color-mix(in srgb, var(--tp-text) 60%, transparent); pointer-events: none; }
.tm-tg-line > span { position: absolute; right: 0; top: 0; transform: translateY(-50%); padding: .125rem .375rem; border-radius: var(--tm-r-pill); background: var(--tp-text); color: var(--tm-surface);
    font-size: .6875rem; line-height: 1rem; font-weight: 500; }
.tm-tg-x { display: flex; gap: .5rem; margin-top: .375rem; padding-right: 3.25rem; font-size: .75rem; line-height: 1rem; color: var(--tm-dim); }
.tm-tg-x > span { flex: 1 1 0; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.tm-ch + .tp-saha-note { margin-top: .75rem; }
/* a chip: a short fact beside a number (KPI cards, the revenue headline). Quiet by default; a problem is a solid dark red, a good
   change a solid dark green (darker than any chart series' red / green, so a status never reads as a series), a to-do blue. */
.tp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; }
.tp-chip { display: inline-flex; align-items: center; padding: .0625rem .5rem; border-radius: var(--tm-r-pill); background: var(--tm-surface-2); box-shadow: inset 0 0 0 1px var(--tp-line);
    font-size: .75rem; line-height: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tm-dim); }
.tp-chip.is-bad { background: var(--tm-bad-solid); box-shadow: none; color: #fff; }
.tp-chip.is-good { background: var(--tm-good-solid); box-shadow: none; color: #fff; }
.tp-chip.is-info { background: var(--tm-info-soft); box-shadow: none; color: var(--tm-info); }
/* a saha KPI card: the count large, its amount beside it smaller; under it one slim bar: late (red) / soon (orange) / the rest */
.tp-kpi-n small { margin-inline-start: .125rem; font-size: .62em; font-weight: 500; letter-spacing: 0; color: var(--tm-dim); }
.tp-kpi-seg { display: flex; gap: 2px; height: .375rem; margin: .375rem 0; }
.tp-kpi-seg.is-blank { visibility: hidden; }
.tp-kpi-seg i { flex: 0 1 0; min-width: .375rem; border-radius: var(--tm-r-pill); background: var(--tp-line2); }
.tp-kpi-seg i.is-bad { background: var(--tm-bad-solid); }
.tp-kpi-seg i.is-warn { background: color-mix(in srgb, var(--tp-amber) 65%, var(--tm-surface)); }
/* the four cards read on the same lines (user, 11.11.2026): label, number, one bar, the chips. The first card's target is that bar,
   and its text ("Hedef … · tahmin …") comes under the chips, so its green chip stands level with the others' red ones. */
.tp-saha-kpis .tp-target { display: contents; }
.tp-saha-kpis .tp-kpi .tp-target-bar { height: .375rem; margin: .375rem 0; overflow: visible; }
.tp-saha-kpis .tp-target-t { order: 2; margin-top: .375rem; }
.tp-target-bar { position: relative; }
.tp-target-pace { position: absolute; top: -.1875rem; bottom: -.1875rem; width: 2px; margin-inline-start: -1px; background: var(--tp-text); }
/* "En büyük müşteriler": the row's share of the biggest customer, a slim bar along its bottom edge */
.tp-saha-row { position: relative; }
.tp-share { position: absolute; left: .25rem; right: .25rem; bottom: -1px; height: 3px; pointer-events: none; }
.tp-share i { display: block; height: 100%; border-radius: var(--tm-r-pill); background: color-mix(in srgb, var(--tp-amber) 55%, var(--tm-surface)); }

/* stacked columns (<x-tp-chart.stack>) on the area chart's axes: a column per label, its series stacked from the axis up, a year
   before as the dark dashed line over them, the running period's estimate as a dashed frame above its column */
.tm-st-key { display: inline-block; width: .625rem; height: .625rem; margin-inline-end: .375rem; border-radius: 2px; vertical-align: -1px; }
.tm-st .tm-key.is-prev { border-top-color: var(--tp-text); }
.tm-st .tm-ch-pts > .tm-ch-pt::before { content: none; }
.tm-st-col:is(:hover, :focus), .tm-st-col.is-open { background: color-mix(in srgb, var(--tp-text) 5%, transparent); border-radius: var(--tm-r-sm) var(--tm-r-sm) 0 0; }
.tm-st-bar { position: absolute; left: 50%; bottom: 0; width: min(64%, 2.75rem); transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: 1px;
    border-radius: var(--tm-r-bar) var(--tm-r-bar) 0 0; overflow: hidden; }
.tm-st-bar i { flex: 0 1 0; min-height: 1px; }
.tm-st-est { position: absolute; left: 50%; width: min(64%, 2.75rem); transform: translateX(-50%); margin-bottom: 2px; box-sizing: border-box;
    border: 1.5px dashed var(--tm-faint); border-bottom: 0; border-radius: var(--tm-r-bar) var(--tm-r-bar) 0 0; }
.tm-st .tm-ch-plot > svg { z-index: 1; pointer-events: none; }
.tm-st-halo { fill: none; stroke: var(--tm-surface); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.tm-st .tm-ch-prev { stroke: var(--tp-text); }
.tm-st-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tm-st-dots i { position: absolute; width: .4375rem; height: .4375rem; margin: 0 0 -.21875rem -.21875rem; border-radius: 50%; background: var(--tm-surface); box-shadow: 0 0 0 1.5px var(--tp-text); }
.tm-st .tm-ch-tip { z-index: 6; }
.tm-st-sum { margin-top: .125rem; padding-top: .25rem; border-top: 1px solid var(--tp-line); }
.tm-st-sum > span { color: var(--tp-text); font-weight: 600; }
/* a donut whose parts are chart series: the part brings its series class (tm-s1 …, tm-k-unicut …), which sets --k */
.tm-dn-arc:is([class*="tm-s"], [class*="tm-k-"]) { stroke: var(--k); }

/* a saha account's Özet, first row: the month's chart beside what needs a look; stacked (a narrow panel, a phone) what needs a look
   comes first. The chart fills its card: its plot takes the height the list beside it leaves. */
.tm-ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tm-gap); }
.tm-ov > * { display: flex; flex-direction: column; min-width: 0; }
.tm-ov > * > * { flex: 1; }
.tm-ov-attn { order: -1; }
html .tp-dash .tm-ov-attn .tp-skel .tp-skel-row { min-height: 4.25rem; }   /* a row with its record's name under it */
.tm-ov-chart .tp-skel-b.is-chart { min-height: 24rem; }   /* the chart card's own height: headline, legend, plot, note */
.tm-ov-attn .tp-attn-sub { white-space: normal; }   /* the rail is narrow: the record's name wraps, never an ellipsis */
@container (min-width: 56rem) {
    .tm-ov { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .tm-ov-attn { order: 0; }
    .tm-ov-chart :is(.fi-section, .fi-section-content-ctn, .fi-section-content) { display: flex; flex-direction: column; }
    .tm-ov-chart :is(.fi-section-content-ctn, .fi-section-content, .tm-st) { flex: 1; }
    .tm-ov-chart .tm-st { grid-template-rows: auto minmax(15rem, 1fr) auto; }
    .tm-ov-chart .tm-st .tm-ch-plot { height: auto; }
}
/* a donut with amounts: a larger ring for the compact total, names on one line; the legend drops under the ring when it does not fit */
.tm-dn.is-wide .tm-dn-ring { width: 8.5rem; height: 8.5rem; }
.tm-dn.is-wide .tm-dn-mid b { font-size: 1.25rem; line-height: 1.5rem; }
.tm-dn.is-wide .tm-dn-legend { flex-basis: 14rem; }
.tm-dn.is-wide .tm-dn-legend th { white-space: nowrap; }
}

.tp-loading { opacity: .5; transition: opacity .15s; }   /* a part reloading (Livewire wire:loading) */
.tp-genel .fi-section-header { flex-wrap: wrap; row-gap: .5rem; }
.tp-target { display: flex; flex-direction: column; gap: .25rem; margin-top: .45rem; }
.tp-target-bar { height: .35rem; background: var(--tp-field); overflow: hidden; }
.tp-target-f { display: block; height: 100%; background: var(--tp-amber); }
.tp-target-f.is-ok { background: var(--success-600); }
.tp-target-t { font-size: .75rem; color: var(--gray-500); }
.tp-saha-temsilci { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .55rem .75rem; border: 1px solid var(--tp-amber); font-size: .85rem; }
.tp-saha-temsilci button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.tp-saha-musteri-act { display: inline-flex; flex-wrap: wrap; gap: .25rem 1rem; }   /* the picked customer's bar: Müşteri değiştir · ← Bütün müşteriler */
/* Ana sayfa names the picked customer in that bar: the chip next to the page title (folded menu, phone) would repeat it */
.fi-page:has(.tp-saha-musteri) .tp-head-cari { display: none !important; }
.tp-saha-ekip { display: grid; margin-bottom: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.tp-saha-member { display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: .75rem .85rem; border: 1px solid var(--tp-line); border-top: 2px solid var(--tp-line2); background: var(--tp-side); }
.tp-saha-member-h { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.tp-saha-member-n { font: 800 1.25rem/1.2 var(--tp-mono); }
.tp-saha-member-n small { margin-left: .4rem; font: 700 .75rem var(--tp-mono); }
.tp-saha-member-d { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; margin: .35rem 0 0; font-size: .8rem; }
.tp-saha-member-d dt { font: .62rem var(--tp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.tp-saha-member-d dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 639.98px) {
    .tp-saha-kpis { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .tp-saha-kpis .tp-kpi { padding: .65rem .75rem; }
    .tp-saha-kpis .tp-kpi-n { font-size: 1.05rem; }
    .tp-saha-row { grid-template-columns: minmax(0, 1fr) auto; }
    .tp-saha-row > .tp-saha-side:nth-child(3) { display: none; }   /* kalem sevk: on the order's page */
    .tp-saha-chance { grid-template-columns: minmax(0, 1fr) auto auto; }
    .tp-saha-chance > .tp-saha-side:nth-child(3) { display: none; }   /* last invoice / activity: on the customer's page */
    /* tabs share the card's width, a long label goes onto two lines instead of scrolling */
    .tp-saha-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: visible; }
    .tp-saha-tabs .fi-tabs-item { justify-content: center; min-width: 0; padding-inline: .3rem; white-space: normal; text-align: center; font-size: 10px; letter-spacing: .02em; }
    .tp-saha-tabs .fi-tabs-item-label { white-space: normal; }
}

/* Tablo grid'i (<x-tp-grid>, js/portal-grid.js): sıralanan başlık, sayfa çubuğu */
.tp-table th[data-sort] { cursor: pointer; user-select: none; }
.tp-table th[data-sort]:hover, .tp-table th[data-sort]:focus-visible { color: var(--tp-amber); outline: none; }
.tp-table th[data-sort]::after { content: '↕'; margin-left: .3rem; opacity: .35; }
.tp-table th[aria-sort="ascending"]::after { content: '▲'; opacity: 1; }
.tp-table th[aria-sort="descending"]::after { content: '▼'; opacity: 1; }
.tp-grid-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: flex-end; padding-top: .6rem; font-size: .85rem; }
.tp-grid-size { width: auto; padding-block: .25rem; padding-inline-end: 1.8rem; }
.tp-grid-pages { display: inline-flex; align-items: center; gap: .25rem; font-variant-numeric: tabular-nums; }
.tp-grid-pages button { min-width: 1.9rem; padding: .3rem .45rem; }
.tp-grid-pages button:disabled { opacity: .35; cursor: default; }

/* Devir / ilerleme kütüphanesi: Girdiler in short lines, Çıktılar label + value one under the other, both in the same type */
.tp-ins { display: block; font: 12px var(--tp-mono); line-height: 1.6; white-space: nowrap; }   /* block: inline would take the cell's line height */
.tp-outs { display: grid; grid-template-columns: auto auto; column-gap: 1ch; font: 12px var(--tp-mono); line-height: 1.6; white-space: nowrap; }   /* as .tp-ins */

/* Web sitesi → Katalog (WebCatalog): published / draft counts, the code comparison */
.tp-web-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.tp-web-kpis .tp-kpi:hover { border-color: var(--tp-line); }
.tp-web-date { font-size: 1.15rem; line-height: 1.75rem; }
.tp-web-actions { margin: 1rem 0 0; }
.tp-web-diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-top: .5rem; }
.tp-web-h { font: 600 .7rem var(--tp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: .4rem; }
/* Web sitesi → Katalog: kategori ağacı (girinti --d düzeyi), işaret = webe açık */
.tp-web-tree td:first-child { padding-left: calc(.5rem + var(--d, 0) * 1.25rem); }
.tp-web-row { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tp-web-fold { width: 1.25rem; flex: none; border: 0; background: none; color: var(--gray-500); cursor: pointer; padding: 0; text-align: center; }
.tp-web-check { flex: none; width: 1rem; height: 1rem; accent-color: var(--primary-600); cursor: pointer; }
.tp-web-check:disabled { cursor: default; opacity: .6; }
.tp-web-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-align: left; color: inherit; cursor: pointer; }
.tp-web-cat:not(.is-on) .tp-web-name { font-weight: 500; color: var(--gray-500); }
.tp-web-prod label { cursor: pointer; }
.tp-web-prod.is-off td { color: var(--gray-500); }
.tp-web-prod.is-off .tp-code { text-decoration: line-through; }
/* Web sitesi → Çeviriler */
.tp-web-code { width: 7rem; min-width: 0; }
.tp-web-lang { width: 14rem; }
.tp-web-search { flex: 1; width: auto; }
.tp-web-filter { width: auto; min-width: 14rem; }
.tp-web-upload { cursor: pointer; }
.tp-web-texts td:first-child { width: 45%; }
.tp-web-texts .tp-textarea { resize: vertical; }

/* WhatsApp Raporları (Pages\DailyReport, filament/portal/report/*): phone first; tones iyi · uyari (the one amber) · kotu */
.tp-rp { --tp-rp-iyi: var(--success-600); --tp-rp-uyari: var(--tp-amber); --tp-rp-kotu: var(--danger-600); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.dark .tp-rp { --tp-rp-iyi: var(--success-400); --tp-rp-kotu: var(--danger-400); }
.tp-rp-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; margin: 0; font: .78rem var(--tp-mono); color: var(--gray-500); }
.tp-rp-meta b { color: var(--tp-text); font-size: .9rem; }
.tp-rp-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tp-rp-tabs { overflow-x: auto; }
.tp-rp-report { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tp-rp-head h2 { margin: 0; font-weight: 700; font-size: 1.05rem; }
.tp-rp-title { margin: 0 0 .5rem; font: 600 .72rem var(--tp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); }
.tp-rp-block { min-width: 0; }
.tp-rp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
@media (max-width: 480px) { .tp-rp-kpis { grid-template-columns: 1fr 1fr; gap: .5rem; } }
.tp-rp-kpi { display: flex; flex-direction: column; gap: .2rem; min-width: 0; padding: .75rem .85rem; border: 1px solid var(--tp-line); border-top: 2px solid var(--tp-line2); background: var(--tp-side); }
.tp-rp-kpi.is-iyi { border-top-color: var(--tp-rp-iyi); }
.tp-rp-kpi.is-uyari { border-top-color: var(--tp-rp-uyari); }
.tp-rp-kpi.is-kotu { border-top-color: var(--tp-rp-kotu); }
.tp-rp-kpi-l { font: .66rem var(--tp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.tp-rp-kpi-n { font: 800 1.4rem/1.15 var(--tp-mono); overflow-wrap: anywhere; }
@media (max-width: 480px) { .tp-rp-kpi-n { font-size: 1.1rem; } }
.tp-rp-kpi-n small { margin-left: .25rem; font-size: .75rem; font-weight: 600; color: var(--gray-500); }
.tp-rp-kpi.is-iyi .tp-rp-kpi-n { color: var(--tp-rp-iyi); }
.tp-rp-kpi.is-uyari .tp-rp-kpi-n { color: var(--tp-rp-uyari); }
.tp-rp-kpi.is-kotu .tp-rp-kpi-n { color: var(--tp-rp-kotu); }
.tp-rp-kpi-a { font-size: .72rem; color: var(--gray-500); }
.tp-rp-table td { white-space: nowrap; }
.tp-rp-table td:first-child { white-space: normal; min-width: 7rem; }
.tp-rp-table td.tp-rp-kir { white-space: normal; min-width: 9rem; }
.tp-rp-not { margin: 0; font-size: .85rem; color: var(--gray-500); }
.tp-rp-iyi { color: var(--tp-rp-iyi); font-weight: 600; }
.tp-rp-uyari { color: var(--tp-rp-uyari); font-weight: 600; }
.tp-rp-kotu { color: var(--tp-rp-kotu); font-weight: 600; }
.tp-rp-tablo { container-type: inline-size; }
/* a tablo of more than 3 columns in a narrow container (a phone): one card per row, the table hidden */
.tp-rp-cards { display: none; }
@container (max-width: 600px) {
    .has-cards > .tp-table-wrap { display: none; }
    .has-cards > .tp-rp-cards { display: flex; flex-direction: column; }
}
/* rows divided by hairlines, no box in a box: number + amount on one line, the rest as "name value" pairs that wrap */
.tp-rp-card { padding: .625rem 0; border-bottom: 1px solid var(--tp-line); }
.tp-rp-card:first-child { padding-top: 0; }
.tp-rp-card:last-child { padding-bottom: 0; border-bottom: 0; }
.tp-rp-card.is-total { border-top: 2px solid var(--tp-amber); margin-top: -1px; }
.tp-rp-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.tp-rp-card-h { min-width: 0; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.tp-rp-card-v { flex: none; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-rp-card-n { flex: none; font-size: .75rem; color: var(--gray-500); }
/* an order's lines under what they share */
.tp-rp-card-rows { list-style: none; margin: .375rem 0 0; padding: 0; }
.tp-rp-card-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .25rem 0 .25rem .625rem; border-left: 2px solid var(--tp-line2); }
.tp-rp-card-rows .tp-rp-card-d { margin: 0; }
.tp-rp-card-rows .tp-rp-card-v { font-weight: 500; }
.tp-rp-card.is-total .tp-rp-card-h, .tp-rp-card.is-total .tp-rp-card-v, .tp-rp-card.is-total dd { font-weight: 700; }
.tp-rp-card-d { display: flex; flex-wrap: wrap; gap: .125rem 1rem; margin: .2rem 0 0; }
.tp-rp-card-d:empty { display: none; }
.tp-rp-card-d > div { display: flex; align-items: baseline; gap: .375rem; min-width: 0; }
.tp-rp-card-d dt { flex: none; font-size: .75rem; color: var(--gray-500); }
.tp-rp-card-d dd { margin: 0; min-width: 0; font-size: .85rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tp-rp-bars { display: flex; flex-direction: column; gap: .6rem; }
.tp-rp-bar { display: grid; grid-template-columns: minmax(6rem, 30%) 1fr auto; gap: .35rem .75rem; align-items: center; font-size: .85rem; }
.tp-rp-bar-l { overflow-wrap: anywhere; }
.tp-rp-bar-t { display: block; height: .55rem; background: var(--tp-field); }
.tp-rp-bar-f { display: block; height: 100%; min-width: 2px; background: var(--tp-amber); }
.tp-rp-bar-f.is-iyi { background: var(--tp-rp-iyi); }
.tp-rp-bar-f.is-kotu { background: var(--tp-rp-kotu); }
.tp-rp-bar-v { font: .78rem var(--tp-mono); white-space: nowrap; text-align: right; }
@media (max-width: 480px) {
    .tp-rp-bar { grid-template-columns: 1fr auto; }
    .tp-rp-bar-t { grid-column: 1 / -1; grid-row: 2; }
}
/* blocks: two per row when yarim, one below 768 px; a half block stretches to its neighbour's height */
.tp-rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tp-rp-cell { grid-column: 1 / -1; display: flex; flex-direction: column; min-width: 0; }
.tp-rp-cell > * { flex: 1; }
.tp-rp-cell.is-half { grid-column: auto; }
@media (max-width: 767.98px) { .tp-rp-cell.is-half { grid-column: 1 / -1; } }
/* sutun: vertical columns; series colours apart from the iyi / uyari / kotu tones */
.tp-rp { --tp-rp-s1: var(--tp-amber); --tp-rp-s2: #2563eb; --tp-rp-s3: #0d9488; --tp-rp-s4: #9ca3af; }
.dark .tp-rp { --tp-rp-s2: #60a5fa; --tp-rp-s3: #2dd4bf; --tp-rp-s4: #6b7280; }
.tp-rp-cols { display: flex; align-items: stretch; gap: .3rem; height: 10rem; }
.tp-rp-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.tp-rp-col-v { font: .66rem var(--tp-mono); color: var(--gray-500); white-space: nowrap; }
.tp-rp-col-t { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.tp-rp-col-f { width: 100%; min-height: 1px; display: flex; flex-direction: column-reverse; overflow: hidden; }
.tp-rp-col-f > span { flex-basis: 0; min-height: 0; }
.tp-rp-col-l { font: .7rem var(--tp-mono); color: var(--gray-500); white-space: nowrap; }
.tp-rp-col.is-dim .tp-rp-col-f { opacity: .45; }
@media (max-width: 480px) { .tp-rp-cols { gap: .2rem; } .tp-rp-col-v { font-size: .5rem; letter-spacing: -.02em; } .tp-rp-col-l { font-size: .62rem; } }
.tp-rp-s1 { background: var(--tp-rp-s1); } .tp-rp-s2 { background: var(--tp-rp-s2); } .tp-rp-s3 { background: var(--tp-rp-s3); } .tp-rp-s4 { background: var(--tp-rp-s4); }
.tp-rp-legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .6rem; font-size: .75rem; color: var(--gray-500); }
.tp-rp-legend i { display: inline-block; width: .65rem; height: .65rem; margin-right: .3rem; vertical-align: -.05rem; }
.tp-rp-legend b { color: var(--tp-text); font-variant-numeric: tabular-nums; }
.tp-rp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tp-rp-list li { display: flex; flex-direction: column; gap: .1rem; padding: .3rem .75rem; border-left: 3px solid var(--tp-line2); font-size: .875rem; }
.tp-rp-list li.is-iyi { border-left-color: var(--tp-rp-iyi); }
.tp-rp-list li.is-uyari { border-left-color: var(--tp-rp-uyari); }
.tp-rp-list li.is-kotu { border-left-color: var(--tp-rp-kotu); }
.tp-rp-expired { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 1px solid var(--tp-amber); border-left-width: 3px;
    background: color-mix(in srgb, var(--tp-amber) 10%, var(--tp-side)); font-size: .9rem; }
.tp-rp-expired-icon { width: 1.25rem; height: 1.25rem; color: var(--tp-amber); flex-shrink: 0; }

/* Stok: the row's % (discount window) and picture buttons, and their native <dialog>s (filament/portal/requests/raw-materials) */
.tp-row-tools { display: inline-flex; align-items: center; gap: .375rem; }
.tp-row-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 1.875rem; border: 1px solid var(--tp-line2);
    background: var(--tp-field); color: var(--gray-500); font: 700 .875rem var(--tp-mono); cursor: pointer; }
.tp-row-btn:hover, .tp-row-btn:focus-visible { border-color: var(--tp-amber); color: var(--tp-amber); outline: 0; }
.tp-row-btn-icon { width: 1.125rem; height: 1.125rem; }
/* "Talebe ekle" is the row's main action (amber); % and the picture are quiet. In the draft already: a tick on a soft fill. */
.tp-row-btn.tp-add { border-color: var(--tp-amber); background: var(--tp-amber); color: var(--tp-amber-ink); }
.tp-row-btn.tp-add:hover, .tp-row-btn.tp-add:focus-visible { color: var(--tp-amber-ink); filter: brightness(1.08); }
.tp-row-btn.tp-add.is-added { background: transparent; color: var(--tp-amber); }
.tp-row-btn.tp-add.is-added:hover, .tp-row-btn.tp-add.is-added:focus-visible { color: var(--tp-amber); }
.tp-row-btn:disabled { opacity: .5; cursor: progress; }   /* "Talebe ekle" while it is being added */
.tp-row-btn-gap { width: 2rem; }
.tp-dialog { width: min(27.5rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; color: var(--tp-text);
    background: var(--tp-side); border: 1px solid var(--tp-line); border-top: 2px solid var(--tp-amber); border-radius: 0 0 .25rem .25rem; }
.tp-dialog[open] { margin: auto; }   /* the reset's margin: 0 pinned it top left */
.tp-dialog:focus { outline: 0; }
.tp-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.tp-dialog-picture { width: min(25rem, calc(100vw - 2rem)); }
.tp-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border-bottom: 1px solid var(--tp-line); }
.tp-dialog-x { border: 0; background: none; color: var(--gray-500); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.tp-dialog-x:hover { color: var(--tp-amber); }
.tp-dialog-body { padding: .875rem 1rem; }
.tp-dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1rem; border-top: 1px solid var(--tp-line); }
.tp-dialog-foot > :last-child { margin-left: auto; }
.tp-kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: 0 0 .75rem; font-size: .875rem; }
.tp-kv dt { color: var(--gray-500); }
.tp-kv dd { margin: 0; text-align: right; }
.tp-list-price { font-size: 1.5rem; font-weight: 600; }
.tp-disc-own { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; margin-bottom: .75rem; border: 1px solid var(--tp-amber); }
.tp-disc-own label { font: 600 .6875rem var(--tp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.tp-disc-input { display: inline-flex; align-items: center; padding: 0 .5rem; border: 1px solid var(--tp-line2); background: var(--tp-field); font-family: var(--tp-mono); color: var(--gray-500); }
.tp-disc-input:focus-within { border-color: var(--tp-amber); }
.tp-disc-input input { width: 4rem; padding: .4rem .25rem; border: 0; background: transparent; color: var(--tp-text); font: 600 1rem var(--tp-mono); text-align: right; outline: 0; }
.tp-disc-result { margin-left: auto; text-align: right; }
.tp-disc-result b { font-size: 1.125rem; color: var(--tp-amber); }
.tp-disc tbody tr { cursor: pointer; }
.tp-disc tbody tr:hover td { background: var(--tp-field); }
.tp-disc tr.is-hit td, .tp-disc tr.is-marked td { background: color-mix(in srgb, var(--tp-amber) 14%, transparent); font-weight: 700; }
.tp-disc tr.is-marked td:first-child { box-shadow: inset 3px 0 var(--tp-amber); }
/* Stok's cost lines and windows (x-tp-product-tools :cost, filament/portal/requests/cost-dialogs): a net under the average
   cost or the cost if made today is red; ⓘ and Varyant Hesapla open over the discount window */
.tp-disc tr.is-loss td { color: var(--danger-600); }
.tp-cost-info { margin-left: .35rem; border: 0; background: none; color: var(--gray-500); cursor: pointer; font-size: .95rem; line-height: 1; }
.tp-cost-info:hover, .tp-cost-info:focus-visible { color: var(--tp-amber); }
.tp-cost-warn { margin: 0 0 .75rem; padding: .5rem .75rem; border: 1px solid var(--danger-300); background: var(--danger-50); color: var(--danger-700); font-size: .8125rem; }
.dark .tp-cost-warn { background: color-mix(in srgb, var(--danger-600) 14%, transparent); color: var(--danger-300); }
.tp-cost-foot { display: inline-flex; gap: .5rem; margin-left: auto; }
.tp-dialog-cost { width: min(38rem, calc(100vw - 2rem)); }
.tp-dialog-variant { width: min(48rem, calc(100vw - 2rem)); }
.tp-cost-tree { width: 100%; border-collapse: collapse; font-size: .75rem; line-height: 1.3; }
.tp-cost-tree td { padding: .2rem .25rem; border-bottom: 1px solid var(--tp-line); vertical-align: top; }
.tp-cost-tree td.tp-num { white-space: nowrap; }
.tp-cost-tree tr.is-bold td, .tp-dialog-variant tr.is-bold td { font-weight: 600; }
.tp-cost-note { margin: .5rem 0 0; font-size: .75rem; }
.tp-cost-h { margin: 1rem 0 .4rem; font: 600 .6875rem var(--tp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.tp-vr-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem .75rem; }
.tp-vr-form label { display: grid; gap: .2rem; font-size: .75rem; color: var(--gray-500); }
.tp-vr-form input, .tp-vr-form select, .tp-vr-dk { width: 100%; padding: .35rem .5rem; border: 1px solid var(--tp-line2, var(--tp-line)); background: var(--tp-field); color: var(--tp-text); font: .875rem var(--tp-mono); outline: 0; }
.tp-vr-form input:focus, .tp-vr-form select:focus, .tp-vr-dk:focus { border-color: var(--tp-amber); }
.tp-vr-dk { width: 5.5rem; text-align: right; }
.tp-vr-dk.is-typed { border-color: var(--tp-amber); box-shadow: inset 0 0 0 1px var(--tp-amber); }
.tp-vr-ops, .tp-vr-result .tp-table { font-size: .8125rem; }
.tp-vr-result { overflow-x: auto; }
.tp-cost-up { color: var(--danger-600); }
.tp-cost-down { color: var(--success-600); }
.dark .tp-cost-up, .dark .tp-disc tr.is-loss td { color: var(--danger-400); }
.dark .tp-cost-down { color: var(--success-400); }
/* turcar.com's crop of a family picture (turcar-web site.css .prod-fam-pic): the tools stand at 42–79 % of every picture */
.tp-picture { display: flex; justify-content: center; padding: .875rem 1rem; background: #1b1b1f; }
.tp-picture img { display: block; width: 100%; max-height: 70dvh; aspect-ratio: 360 / 700; object-fit: cover; object-position: 50% 62%; }

/* Faaliyetler + Takvim (saha satış: filament/portal/activities/*) */
.tp-clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-cal-month { min-width: 9rem; text-align: center; font-family: var(--tp-mono); text-transform: uppercase; letter-spacing: .06em; }
.tp-cal-legend { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.tp-cal-legend .tp-cal-item { cursor: default; }
.tp-cal-head, .tp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tp-cal-head span { padding: .35rem .4rem; font-family: var(--tp-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); border-bottom: 1px solid var(--tp-line); }
.tp-cal-grid { border-left: 1px solid var(--tp-line); }
.tp-cal-day { display: flex; flex-direction: column; gap: 2px; min-height: 6.5rem; padding: .25rem; border-right: 1px solid var(--tp-line); border-bottom: 1px solid var(--tp-line); cursor: pointer; min-width: 0; }
.tp-cal-day:hover { background: color-mix(in srgb, var(--tp-amber) 4%, transparent); }
.tp-cal-day.is-out { background: var(--tp-field); }
.tp-cal-day.is-out .tp-cal-date { color: var(--gray-400); }
.tp-cal-date { align-self: flex-start; display: flex; gap: .4rem; align-items: baseline; padding: 0 .25rem; border: 0; background: none; font: 600 .8rem var(--tp-mono); color: inherit; cursor: pointer; }
.tp-cal-date:hover { color: var(--tp-amber); }
.tp-cal.is-read .tp-cal-day { cursor: default; }
span.tp-cal-date { cursor: default; pointer-events: none; }   /* a customer's calendar: the day adds nothing */
.tp-cal-day.is-today .tp-cal-date b { color: var(--tp-amber-ink); background: var(--tp-amber); padding: 0 .3rem; }
.tp-cal-wd { display: none; font-weight: 400; color: var(--gray-500); }
.tp-cal-item { display: block; width: 100%; text-align: left; padding: 1px .35rem; font-size: .72rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--tp-line2); background: var(--tp-field); color: inherit; cursor: pointer; }
.tp-cal-legend .tp-cal-item { width: auto; }
.tp-cal-item:hover { border-color: var(--tp-amber); }
.tp-cal-item.is-visit { background: color-mix(in srgb, var(--tp-amber) 14%, transparent); border-color: color-mix(in srgb, var(--tp-amber) 45%, transparent); }
.tp-cal-item.is-plan { border: 1px dashed var(--tp-amber); background: none; }
.tp-cal-order { border-style: solid; border-color: transparent; border-left: 3px solid var(--gray-400); }
.tp-cal-order.is-late { border-left-color: var(--danger-600); color: var(--danger-600); }
.dark .tp-cal-order.is-late { border-left-color: var(--danger-400); color: var(--danger-400); }
.tp-cal-time { font-family: var(--tp-mono); font-weight: 600; margin-right: .25rem; }
.is-no-orders .tp-cal-grid .tp-cal-order, .is-no-orders .tp-cal-legend .tp-cal-order { display: none; }
/* an open offer on the day its validity ends: violet, apart from activities (amber) and orders (grey) */
.tp-cal { --tp-offer: #7c3aed; }
.dark .tp-cal { --tp-offer: #a78bfa; }
.tp-cal-offer { border-color: transparent; border-left: 3px solid var(--tp-offer); background: color-mix(in srgb, var(--tp-offer) 10%, transparent); }
.tp-cal-offer:hover { border-color: transparent; border-left-color: var(--tp-offer); }
.tp-cal-offer.is-late { opacity: .6; }
.is-no-offers .tp-cal-grid .tp-cal-offer, .is-no-offers .tp-cal-legend .tp-cal-offer { display: none; }
.tp-cal-detail { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .875rem; }
.tp-cal-detail .tp-firm-link { text-decoration: underline; text-decoration-color: var(--gray-400); text-underline-offset: 2px; }   /* in a details list nothing else says it is a link */
.tp-cal-detail dt { font-family: var(--tp-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); padding-top: .15rem; }
.tp-pre { white-space: pre-wrap; }
/* phone: a day list (days with entries + today), every entry on its own line */
@media (max-width: 639.98px) {
    .tp-cal-head { display: none; }
    .tp-cal-grid { display: block; border-left: 0; }
    .tp-cal-day { min-height: 0; border-right: 0; padding: .5rem 0; }
    .tp-cal-day.is-out, .tp-cal-day:not(.has-acts):not(.has-orders):not(.has-offers):not(.is-today),
    .is-no-orders .tp-cal-day.has-orders:not(.has-acts):not(.has-offers):not(.is-today),
    .is-no-offers .tp-cal-day.has-offers:not(.has-acts):not(.has-orders):not(.is-today) { display: none; }
    .tp-cal-wd { display: inline; }
    .tp-cal-item { font-size: .8rem; padding: .3rem .5rem; white-space: normal; }
}
/* the activity form (Ziyaret gir / Aktivite oluştur): tighter rows, so it fits one laptop screen */
.tp-act-form.fi-grid { row-gap: .9rem; column-gap: .75rem; }
/* Ürünler, Stok, Hammadde on a phone (.tp-stack): a row is a two-line card, code and name with the buttons on the right,
   then stock (and depot) on the left and the price on the right; no header row (no column sorting there), paging stays */
@media (max-width: 639.98px) {
    .tp-table.tp-stack thead { display: none; }
    .tp-table.tp-stack tbody tr { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--tp-line); }
    .tp-table.tp-stack tbody tr[hidden] { display: none; }   /* tpGrid's paging hides rows with the attribute */
    .tp-table.tp-stack tbody tr::after { content: ''; order: 3; flex-basis: 100%; height: 0; }   /* the line break */
    .tp-table.tp-stack td { display: block; padding: 0; border: 0; }
    .tp-table.tp-stack td:first-child { order: 1; flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
    .tp-table.tp-stack td:not(:first-child) { order: 4; margin-top: .35rem; text-align: left; }
    .tp-table.tp-stack td.tp-c-tools { order: 2; flex: none; margin-top: 0; }
    .tp-table.tp-stack td.tp-c-price { order: 5; margin-left: auto; text-align: right; }
    .tp-table.tp-stack td.tp-empty { flex: 1 1 100%; }
}
/* Takvim → Ajanda: the month's days with entries as a list (day header, then one row per entry) */
.tp-agenda { display: flex; flex-direction: column; gap: 1rem; }
.tp-agenda-date { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--tp-line); font-size: .875rem; }
.tp-agenda-date b { font-family: var(--tp-mono); text-transform: uppercase; letter-spacing: .04em; }
.tp-agenda-date span { color: var(--gray-500); }
.tp-agenda-day.is-today .tp-agenda-date { border-bottom-color: var(--tp-amber); }
.tp-agenda-add { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 1.75rem; height: 1.75rem; border: 1px solid var(--tp-line2); background: var(--tp-field); color: inherit; font: 700 1rem/1 var(--tp-mono); cursor: pointer; }
.tp-agenda-add:hover { border-color: var(--tp-amber); color: var(--tp-amber); }
.tp-agenda-row { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: .75rem; width: 100%; padding: .5rem .5rem .5rem .6rem; text-align: left;
    border: 0; border-bottom: 1px solid var(--tp-line); border-left: 3px solid var(--tp-line2); background: none; color: inherit; font-size: .875rem; cursor: pointer; }
.tp-agenda-row:hover { background: color-mix(in srgb, var(--tp-amber) 6%, transparent); }
.tp-agenda-row.is-visit { border-left-color: var(--tp-amber); }
.tp-agenda-row.is-plan { border-left-style: dashed; }
.tp-agenda-row.is-order { border-left-color: var(--gray-400); }
.tp-agenda-row.is-late { border-left-color: var(--danger-600); }
.tp-agenda-time { font: 600 .8rem var(--tp-mono); color: var(--gray-500); }
.tp-agenda-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.tp-agenda-main b { font-weight: 600; overflow-wrap: anywhere; }
.tp-agenda-row.is-offer { border-left-color: var(--tp-offer); }
.is-no-orders .tp-agenda-row.is-order, .is-no-orders .tp-agenda-day.has-orders:not(.has-acts):not(.has-offers) { display: none; }
.is-no-offers .tp-agenda-row.is-offer, .is-no-offers .tp-agenda-day.has-offers:not(.has-acts):not(.has-orders) { display: none; }
@media (max-width: 639.98px) { .tp-agenda-row { grid-template-columns: 3.5rem 1fr; } .tp-agenda-row .fi-badge { grid-column: 2; justify-self: start; } }
[x-cloak] { display: none !important; }   /* Alpine: hidden until it starts (Filament's CSS has no such rule) */

/*
 * Ana sayfa on a phone: what needs a look comes first. The search and its button share a row, the greeting and the
 * account's own firm share a line (the firm is cut with …; the bars of a picked temsilci / customer stay whole).
 */
@media (max-width: 639.98px) {
    .tp-dash-search { flex: 1 1 100%; flex-wrap: nowrap; max-width: none; }
    .tp-dash-search .tp-grow { min-width: 0; flex: 1 1 auto; }
    .tp-dash-search .fi-btn { flex: none; }
    .tp-dash-hello > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; min-width: 0; width: 100%; }
    .tp-dash-hello > div:first-child > .tp-dash-name { flex: none; }
    .tp-dash-hello > div:first-child > .tp-dim:not(.tp-saha-scope) { flex: 1 1 0; min-width: 5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .tp-dash-hello > div:first-child > :not(.tp-dash-name):not(.tp-dim), .tp-dash-hello > div:first-child > .tp-saha-scope { flex: 1 1 100%; }
}

/* a record's status beside its title (Talep ayrıntısı): said once, where the eye starts */
.fi-header-heading .fi-badge { display: inline-flex; vertical-align: middle; margin-inline-start: .5rem; }

/*
 * Small state marks (10.11.2026): how far something is, in the brand's amber on hairlines. Each draws itself in once;
 * nothing moves under reduced motion.
 */
/* a ring: done / whole (an order's shipped lines) */
.tp-ring { position: relative; display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle; }
.tp-ring svg { flex: none; width: 1.25rem; height: 1.25rem; transform: rotate(-90deg); }
.tp-ring.is-lg svg { width: 3.5rem; height: 3.5rem; }
.tp-ring circle { fill: none; stroke-width: 4.5; }
.tp-ring.is-lg circle { stroke-width: 3; }
.tp-ring-track { stroke: var(--tp-line2); }
.tp-ring-arc { stroke: var(--tp-amber); stroke-linecap: round; animation: tp-ring-in .7s ease-out both; }
.tp-ring-tick { fill: none; stroke: var(--tp-amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transform-origin: 18px 18px; }
.tp-ring-n { position: absolute; left: 0; top: 50%; width: 3.5rem; text-align: center; transform: translateY(-50%); font: 700 .8rem/1 var(--tp-mono); }
@keyframes tp-ring-in { from { stroke-dasharray: 0 100; } }
.tp-order-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tp-order-head p { margin: .15rem 0 0; font-size: .85rem; }
/* how long a date is still ahead (an offer's validity) */
.tp-left { display: inline-block; margin-inline-start: .35rem; padding: .05rem .5rem; border: 1px solid var(--tp-line2); border-radius: 999px; font-size: .75rem; white-space: nowrap; color: var(--gray-500); }
.tp-left.is-soon { border-color: var(--tp-amber); color: var(--tp-amber); }
.tp-left.is-last { border-color: var(--danger-500); color: var(--danger-600); }
.dark .tp-left.is-last { color: var(--danger-400); }
/* a form's steps (Yeni talep): number, name, where it stands; a done step is a filled tick, the one to do next is framed */
.tp-flow { display: flex; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tp-flow li { flex: 1 1 0; min-width: 0; }
.tp-flow a { display: flex; align-items: center; gap: .6rem; height: 100%; padding: .55rem .75rem; border: 1px solid var(--tp-line); background: var(--tp-side); transition: border-color .2s; }
.tp-flow a:hover, .tp-flow a:focus-visible { border-color: var(--tp-amber); outline: 0; }
.tp-flow-n { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--tp-line2); border-radius: 50%; font: 700 .75rem/1 var(--tp-mono); color: var(--gray-500);
    transition: background-color .25s, border-color .25s, color .25s; }
.tp-flow-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tp-flow-t b { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-flow-t span { font-size: .75rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-flow li.is-current a { border-color: var(--tp-amber); }
.tp-flow li.is-current .tp-flow-n { border-color: var(--tp-amber); color: var(--tp-amber); }
.tp-flow li.is-done .tp-flow-n { border-color: var(--tp-amber); background: var(--tp-amber); color: transparent; }
.tp-flow li.is-done .tp-flow-n::after { content: ''; position: absolute; width: .7rem; height: .4rem; border: solid var(--tp-amber-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.tp-flow-n { position: relative; }
:is(#tp-flow-info, #tp-flow-lines, #tp-flow-files, #tp-flow-send) { scroll-margin-top: 5rem; }
@media (max-width: 767.98px) {
    .tp-flow { gap: .35rem; }
    .tp-flow a { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .5rem; }
    .tp-flow-t span { display: none; }
    .tp-flow-t b { font-size: .75rem; white-space: normal; }
}
/* pick or drop files, with the upload's bar */
.tp-drop { border: 1px dashed var(--tp-line2); background: var(--tp-field); transition: border-color .2s, background-color .2s; }
.tp-drop.is-over { border-color: var(--tp-amber); background: color-mix(in srgb, var(--tp-amber) 8%, var(--tp-field)); }
.tp-drop-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; font-size: .875rem; color: var(--gray-500); cursor: pointer; }
.tp-drop-pick b { color: var(--tp-amber); font-weight: 600; }
.tp-drop-pick:focus-within { outline: 1px solid var(--tp-amber); outline-offset: -1px; }
.tp-drop-icon { width: 1.25rem; height: 1.25rem; }
.tp-drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tp-drop-state { display: flex; align-items: center; gap: .75rem; padding: 0 1rem .75rem; font-size: .8rem; }
.tp-drop-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--tp-line2); overflow: hidden; }
.tp-drop-bar span { display: block; height: 100%; background: var(--tp-amber); transition: width .2s linear; }
@media (prefers-reduced-motion: reduce) {
    .tp-ring-arc { animation: none; }
    .tp-flow a, .tp-flow-n, .tp-drop, .tp-drop-bar span { transition: none; }
}

/*
 * Placeholders (x-tp-skeleton, the KPI strip): a part that waits for the agent is drawn at once in its final shape, gray where
 * its numbers and rows will be, so the page does not move when they arrive. One slow shimmer; still under reduced motion.
 */
.tp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tp-skel { position: relative; }
.tp-skel-t, .tp-skel-b { border-radius: 4px; color: transparent !important; user-select: none; pointer-events: none;
    background: linear-gradient(90deg, var(--tp-skel) 0%, var(--tp-skel) 35%, var(--tp-skel-hi) 50%, var(--tp-skel) 65%, var(--tp-skel) 100%) 0 0 / 300% 100%;
    animation: tp-skel 1.6s linear infinite; }
:root { --tp-skel: color-mix(in srgb, var(--gray-500) 16%, transparent); --tp-skel-hi: color-mix(in srgb, var(--gray-500) 7%, transparent); }
.tp-skel-t { display: inline-block; max-width: 100%; line-height: inherit; white-space: nowrap; overflow: hidden; vertical-align: top; }
.tp-skel-b { display: block; }
.tp-skel-b.is-chart { height: 12rem; }
.tp-skel-row:hover { background: none; }
.tp-kpi-s .tp-skel-t { white-space: normal; }   /* wraps like the sub-line it stands for */
.tp-skel-row .tp-skel-t { height: 1.05em; line-height: 1.05; }
.tp-skel .tp-kpi { cursor: default; }
.tp-skel .tp-kpi:hover { border-color: var(--tp-line); }
.tp-skel .tp-cat-tile { cursor: default; pointer-events: none; }
@keyframes tp-skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .tp-skel-t, .tp-skel-b { animation: none; } }

/* Sign-in page: the language switch under the form (filament/portal/auth-lang) */
.tp-auth-lang { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; }
.tp-auth-lang [aria-current] { font-size: .8rem; font-weight: 700; }
/* Meta Pixel consent bar on the sign-in page (filament/portal/auth-pixel); both buttons alike (KVKK) */
.tp-cerez { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem; padding: .9rem 1rem; background: var(--color-gray-900, #18181b); color: #fff; font-size: .85rem; line-height: 1.5; }
.tp-cerez[hidden] { display: none; }
.tp-cerez p { margin: 0; max-width: 46rem; }
.tp-cerez-btns { display: flex; gap: .6rem; }

/*
 * Firma sayfası and a customer's own Ana sayfa (the owner's design, 19.11.2026; tokens only, both looks, day and night).
 * .tm-mo = <x-tp-chart.months>: a long run of months as thin columns on .tm-ch's axes: the last 12 filled, the compared span
 * pale, older ones outlined, the yearly totals under their 12 columns. It keeps a readable width and scrolls sideways in its own
 * box (opened at the newest months by the component). .tp-bars = <x-tp-bars>, .tp-st = <x-tp-mark> (a row's status: a small dot
 * and plain small text, never a bordered badge). The narrow-screen rules stand at the end of this block, after what they override.
 */
.tp-firm-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; }
.tp-firm-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; min-width: 0; }
.tp-firm-cmp .tp-seg { flex-wrap: wrap; row-gap: .25rem; }
.tp-firm-sum { margin-top: .5rem; }
.tp-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 1.25rem; }
.tp-figs > div { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.tp-figs b { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-signal, .tp-row-flat { align-items: flex-start; }
.tp-signal:hover, .tp-row-flat:hover, .tp-reorder:hover { background: none; }
.tp-signal .tm-dot { margin-top: .4375rem; }
.tp-signal .tp-attn-sub { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tp-st { display: inline-flex; align-items: center; font-size: .75rem; line-height: 1.125rem; font-weight: 400; color: var(--tm-dim); white-space: nowrap; }
.tp-st .tm-dot { width: .4375rem; height: .4375rem; margin-inline-end: .3125rem; }
.tp-bars { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.tp-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1875rem .75rem; font-size: .875rem; }
.tp-bars-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bars-v { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-bars-v b { font-weight: 600; }
.tp-bars-iz { grid-column: 1 / -1; height: .375rem; border-radius: var(--tm-r-pill); background: var(--tm-surface-2); overflow: hidden; }
.tp-bars-iz i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--tp-amber) 55%, var(--tm-surface)); }
.tp-conv-rate { display: flex; align-items: center; gap: .5rem; min-width: 8rem; }
.tp-conv-rate .tp-progress { flex: 1 1 auto; max-width: none; margin: 0; }
.tp-conv-rate b { min-width: 2.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.tm-mo { overflow-x: auto; overscroll-behavior-x: contain; margin-top: -1.5rem; padding-top: 3rem; }   /* over the legend's row: the room a column's card needs above the plot */
.tm-mo-key { display: inline-block; width: .625rem; height: .625rem; margin-inline-end: .375rem; box-sizing: border-box; border: 1px solid var(--tp-line2); border-radius: 2px; vertical-align: -1px; }
.tm-mo-key.is-cmp { border-color: transparent; background: color-mix(in srgb, var(--tp-amber) 38%, var(--tm-surface)); }
.tm-mo-key.is-now { border-color: transparent; background: var(--tp-amber); }
.tm-mo:focus-visible { outline: 2px solid var(--tp-amber); outline-offset: 2px; }
.tm-mo-in { min-width: 34rem; }
.tm-mo .tm-ch-plot { height: 12.5rem; }
.tm-mo-col:is(:hover, :focus) { background: color-mix(in srgb, var(--tp-text) 5%, transparent); }
.tm-mo-bar { position: absolute; left: 14%; right: 14%; bottom: 0; min-height: 1px; box-sizing: border-box; border: 1px solid var(--tp-line2); border-bottom: 0; border-radius: 2px 2px 0 0; background: transparent; }
.tm-mo-col.is-cmp .tm-mo-bar { border-color: transparent; background: color-mix(in srgb, var(--tp-amber) 38%, var(--tm-surface)); }
.tm-mo-col.is-now .tm-mo-bar { border-color: transparent; background: var(--tp-amber); }
.tm-mo-years { grid-area: 3 / 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tm-mo-years > span { display: flex; flex-direction: column; min-width: 0; padding: .375rem .5rem 0; border-left: 1px solid var(--tp-line2); font-size: .8125rem; line-height: 1.25rem; }
.tm-mo-yl { font-size: .6875rem; color: var(--tm-dim); white-space: nowrap; }
.tm-mo-years b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-mo-yd { font-size: .6875rem; font-weight: 600; }
.tm-mo-yd.is-up { color: var(--tm-good); } .tm-mo-yd.is-down { color: var(--tm-bad); }
.tp-pano-n { margin: 0 0 .25rem; font-size: 1.5rem; line-height: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-pano-list { max-height: 19rem; overflow-y: auto; overscroll-behavior: contain; }
/* a list that scrolls in its tray, framed so the scrolling area reads at a glance (Yeniden sipariş; the bar is .tp-scroll's) */
.tp-scroll-box { padding: .125rem .75rem; border: 1px solid var(--tp-line2); border-radius: var(--tm-r-sm, .375rem); }
.tp-scroll-box:focus-visible { outline: 2px solid var(--tp-amber); outline-offset: 1px; }
/* Ana sayfa → Bileme (cards/sharpening): a batch in the works with its progress bar, then the last delivered ones */
.tp-bileme + .tp-bileme { margin-top: .5rem; }
.tp-bileme-sag { text-align: right; white-space: nowrap; }
.tp-bileme-iz { height: .375rem; margin-top: .25rem; border-radius: var(--tm-r-pill); background: var(--tm-surface-2); overflow: hidden; }
.tp-bileme-iz i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--tp-amber) 55%, var(--tm-surface)); }
.tp-bileme-not { margin: .25rem 0 0; font-size: .8125rem; }
.tp-bileme-bas { margin: .875rem 0 .25rem; font-size: .8125rem; font-weight: 600; color: var(--tm-dim); }
.tp-reorder { align-items: center; }
.tp-reorder-main { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.tp-reorder-main > b { font-weight: 600; overflow-wrap: anywhere; }
.tp-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem .75rem; }
/* narrow screens: one column, nothing wider than the page; a table and the chart scroll in their own boxes */
@media (max-width: 639.98px) {
    .tp-firm .tp-scroll { overflow-x: auto; }
    .tp-firm .tp-scroll > .tp-table { min-width: 30rem; }
    .tp-firm-head { gap: .375rem .5rem; font-size: .8125rem; }
    .tp-firm-links { align-items: flex-start; text-align: left; }
    .tp-firm-contact { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .tp-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-figs b { font-size: 1.0625rem; line-height: 1.5rem; }
    .tm-mo .tm-ch-plot { height: 11rem; }
    .tp-reorder { align-items: flex-start; }
}
