/* Portakal.AI: logo orange for action, navy for text, sky blue for planning states */
:root {
  /* Brand palette taken from the Portakal.AI logo */
  --orange: #FD5F05; --sky: #4EBCFD; --navy: #193D6D; --leaf-brand: #41993C; --dot: #E40C1D;
  --ink: var(--navy); --muted: #66758A; --bg: #F3F6F9; --surface: #FFFFFF; --line: #DFE5EC;
  --citrus: #F05A06; --citrus-deep: #B84403; --citrus-soft: #FFEEE3; --leaf: #2F7F2B; --leaf-soft: #E7F4E6;
  --blue: #1668A8; --blue-soft: #E4F4FF; --violet: #6B4BB8; --red: #C8101E;
  --radius: 10px;
  --bs-body-font-family: Figtree, system-ui, sans-serif;
  --bs-primary: var(--citrus); --bs-link-color: var(--citrus-deep); --bs-link-hover-color: #8A3302;
}
body { font-family: Figtree, system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; }
a { color: var(--citrus-deep); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--citrus); outline-offset: 2px; }
.muted, tr.muted td { color: var(--muted); }

/* Buttons */
.btn { border-radius: 8px; font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--citrus); --bs-btn-border-color: var(--citrus); --bs-btn-hover-bg: #D24E04; --bs-btn-hover-border-color: #D24E04;
  --bs-btn-active-bg: var(--citrus-deep); --bs-btn-active-border-color: var(--citrus-deep); --bs-btn-disabled-bg: var(--citrus); color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--citrus-deep); --bs-btn-border-color: #F9A777; --bs-btn-hover-bg: var(--citrus-soft);
  --bs-btn-hover-color: var(--citrus-deep); --bs-btn-hover-border-color: var(--citrus); --bs-btn-active-bg: var(--citrus-soft); --bs-btn-active-color: var(--citrus-deep); }
.form-control:focus, .form-select:focus { border-color: var(--citrus); box-shadow: 0 0 0 .2rem rgba(253,95,5,.18); }
.form-label { font-weight: 500; font-size: 14px; margin-bottom: 4px; }

/* Shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
.brand { display: block; line-height: 0; } .brand img { width: 176px; height: auto; }

.company-name { color: var(--muted); font-size: 13px; margin: 10px 0 18px 4px; padding-left: 10px; border-left: 3px solid var(--sky); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: var(--ink); padding: 8px 12px 8px 14px; border-radius: 8px; position: relative; font-weight: 500; }
.side nav a:hover { background: var(--bg); text-decoration: none; }
.side nav a.on { background: var(--citrus-soft); color: var(--citrus-deep); }
.side nav a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--citrus); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.me { color: var(--ink); font-weight: 600; }
.langs { display: flex; gap: 4px; } .langs a { padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); }
.langs a.on { background: var(--ink); color: #fff; border-color: var(--ink); } .langs a:hover { text-decoration: none; }
.main { padding: 22px 28px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar h1 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.015em; flex: 1; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; } .top-actions .form-select { width: auto; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; }

/* Panels & layout */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.panel h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.form-narrow { max-width: 680px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.table-wrap { overflow-x: auto; }
.table { --bs-table-hover-bg: #FFF6F0; margin: 0; } .table th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table.list td, .table.list th { padding: 10px 14px; } tr[data-href] { cursor: pointer; }
.empty { color: var(--muted); }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; } .filters .form-control { max-width: 320px; } .filters .form-select { width: auto; }

/* Stats: the one bold element; big numbers in ink, orange bar marks attention */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); display: flex; flex-direction: column; }
.stat:hover { text-decoration: none; border-color: #F9A777; }
.stat b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; } .stat span { color: var(--muted); font-size: 13px; }
.stat.warn { border-left: 4px solid var(--citrus); }

/* Status pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: #EEF0F3; color: #4A5563; }
.pill-scheduled, .pill-confirmed { background: var(--blue-soft); color: var(--blue); }
.pill-in_progress, .pill-arrived { background: var(--citrus-soft); color: var(--citrus-deep); }
.pill-waiting { background: #F1EBFA; color: #5E3DA5; }
.pill-completed { background: var(--leaf-soft); color: var(--leaf); }
.pill-closed { background: #E4E7EB; color: #3A4452; }
.pill-cancelled, .pill-no_show { background: #FBECEB; color: var(--red); }
.late { color: var(--red); font-weight: 600; font-size: 13px; }
.prio { font-size: 12.5px; color: var(--muted); } .prio-high { color: var(--citrus-deep); font-weight: 600; } .prio-urgent { color: var(--red); font-weight: 700; }
.prio-row-urgent td:first-child { box-shadow: inset 3px 0 0 var(--red); } .prio-row-high td:first-child { box-shadow: inset 3px 0 0 var(--citrus); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; } .dot.yes { background: var(--leaf); } .dot.no { background: var(--red); }
.tag { font-size: 11.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; color: var(--muted); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }

/* Timeline lists */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { font-weight: 700; min-width: 64px; font-variant-numeric: tabular-nums; } .grow { flex: 1; min-width: 0; }
.wa { font-size: 12.5px; font-weight: 600; color: var(--leaf); border: 1px solid #C3E3C1; border-radius: 6px; padding: 2px 8px; }

/* Job detail */
.job-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.job-title { font-size: 20px; font-weight: 700; margin: 8px 0 2px; }
.status-flow { display: flex; flex-wrap: wrap; gap: 4px; align-self: center; }
.step { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.step:hover { border-color: #F4B36F; color: var(--ink); }
.step.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.step.on.step-completed { background: var(--leaf); border-color: var(--leaf); }
.step.on.step-cancelled, .step.on.step-no_show { background: var(--red); border-color: var(--red); }
.facts { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: 6px 18px; margin: 0; } .facts dt { color: var(--muted); font-weight: 500; } .facts dd { margin: 0; overflow-wrap: anywhere; }
.grid-main.grid-solo { grid-template-columns: minmax(0, 760px); }   /* record page with nothing in the main column */
.desc { white-space: normal; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.line-form { display: grid; grid-template-columns: 110px 1fr 70px 120px auto; gap: 6px; margin-top: 10px; }
.paid-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.paid { font-weight: 700; } .paid.yes { color: var(--leaf); } .paid.no { color: var(--red); }
.btn-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; } .btn-x:hover { color: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gallery figure { position: relative; margin: 0; } .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gallery form { position: absolute; top: 2px; right: 2px; } .gallery .btn-x { background: rgba(255,255,255,.9); border-radius: 50%; width: 24px; height: 24px; }
.sigpad { width: 100%; height: 180px; border: 1px dashed #B9C0C9; border-radius: 8px; background: #FCFCFD; touch-action: none; display: block; }
.sig-img { max-width: 100%; max-height: 140px; display: block; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.history { list-style: none; padding: 0; margin: 0; } .history li { padding: 8px 0; border-top: 1px solid var(--line); } .history li:first-child { border-top: 0; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; } .consent input { margin-top: 4px; }

/* Technician cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.jobcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.jobcard.prio-urgent { border-left: 4px solid var(--red); } .jobcard.prio-high { border-left: 4px solid var(--citrus); }
.jobcard header { display: flex; gap: 10px; align-items: center; } .jobcard header .pill { margin-left: auto; }
.jobcard h3 { font-size: 16px; font-weight: 600; margin: 8px 0 4px; } .quick { display: flex; flex-wrap: wrap; gap: 6px; }

/* Appointments */
.appt-when { display: flex; gap: 18px; align-items: center; }
.big-time { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-time small { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.cal-panel { padding: 12px; }
.fc { --fc-border-color: var(--line); --fc-today-bg-color: #F0F9FF; --fc-now-indicator-color: var(--citrus); font-size: 14px; }
.fc .fc-button-primary { background: var(--surface); color: var(--ink); border-color: var(--line); text-transform: none; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fc .fc-button-primary:hover { background: var(--bg); color: var(--ink); border-color: #C9CFD6; }
.fc .fc-toolbar-title { font-size: 18px; font-weight: 700; }
.fc-event { border-left-width: 4px !important; cursor: pointer; }
.fc-event.ev-cancelled, .fc-event.ev-no_show { opacity: .45; text-decoration: line-through; }
.fc-event.ev-completed { opacity: .75; }

/* Auth */
body.auth { display: grid; place-items: center; min-height: 100vh; }
.auth-box { width: min(380px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
.auth .brand { text-align: center; } .auth .brand img { width: 240px; max-width: 100%; }
body.auth.nv { background: #0F1724 radial-gradient(900px 500px at 50% -10%, #1D2A40, transparent); } .auth.nv .auth-box { border-color: #2B3A52; box-shadow: 0 18px 44px rgba(0,0,0,.4); }

/* Responsive */
@media (max-width: 992px) {
  .grid-main, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; left: 0; top: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .side.open { transform: none; }
  .menu-btn { display: inline-block; }
  .main { padding: 14px 14px 60px; }
  .topbar h1 { font-size: 20px; }
  .line-form { grid-template-columns: 1fr 1fr; } .line-form [name=description] { grid-column: 1 / -1; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* Brand touches */
.topbar h1 { color: var(--navy); }
.stat.warn { border-left-color: var(--orange); }
.fc-timegrid-now-indicator-line { border-color: var(--dot) !important; }
.top-mark { display: none; line-height: 0; } .top-mark img { width: auto; height: 30px; }
@media (max-width: 768px) { .brand img { width: 150px; } .top-mark { display: inline-block; } }

/* ===== v0.4: launcher, tool workspaces, admin areas ===== */
.ticon { display: inline-grid; place-items: center; border-radius: 10px; flex: none; }
.ticon svg { width: 60%; height: 60%; }
.ticon-xs { width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; } .ticon-sm { width: 30px; height: 30px; border-radius: 8px; }
.ticon-md { width: 40px; height: 40px; } .ticon-lg { width: 52px; height: 52px; border-radius: 13px; }

/* Sidebar */
.tool-switch { margin: 0 0 12px; }
.tool-switch-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font: inherit; font-weight: 700; color: var(--navy); text-align: left; }
.tool-switch-btn > span:not(.ticon) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-switch-btn:hover { border-color: #F9A777; }
.chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.tool-switch .dropdown-menu { width: 100%; } .dropdown-item { display: flex; align-items: center; gap: 8px; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.nav-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 16px 0 4px 14px; }
.side-foot { border-top: 0; padding: 12px 4px; }
.plan-badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.plan-badge.plan-paid { background: var(--leaf-soft); color: var(--leaf); border-color: #C3E3C1; }

/* User menu */
.user-btn { border: 0; background: none; padding: 0; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; margin-right: 8px; vertical-align: middle; }
.user-menu .dropdown-menu { min-width: 230px; } .user-menu .dropdown-header { color: var(--navy); white-space: normal; }

/* Banners */
.banner { background: var(--blue-soft); color: var(--blue); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.banner-warn { background: #FFF1E6; color: var(--citrus-deep); border: 1px solid #F9CBA7; }

/* Launcher */
.plan-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; font-size: 14px; }
.plan-strip .btn { margin-left: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tile:hover { border-color: #F9A777; box-shadow: 0 6px 20px rgba(25,61,109,.06); }
.tile-head { display: flex; gap: 14px; align-items: flex-start; color: var(--navy); } .tile-head:hover { text-decoration: none; }
.tile-head h2 { font-size: 18px; font-weight: 700; margin: 2px 0 2px; } .tile-head p { margin: 0; font-size: 13.5px; }
.tile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile-stats a { background: var(--bg); border-radius: 10px; padding: 10px; color: var(--navy); display: flex; flex-direction: column; min-width: 0; }
.tile-stats a:hover { text-decoration: none; background: var(--citrus-soft); }
.tile-stats b { font-size: 20px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-stats span { font-size: 12px; color: var(--muted); } .tile-stats a.warn b { color: var(--citrus-deep); }
.tile-open { font-weight: 600; margin-top: auto; }
.tile-state { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--bg); color: var(--muted); align-self: flex-start; }
.state-cancelling { background: #FFF1E6; color: var(--citrus-deep); } .state-readonly { background: #EEF0F3; color: #4A5563; }
.empty-state { text-align: center; padding: 40px 20px; } .empty-state h2 { font-size: 20px; }
.discover { margin-top: 28px; } .discover h2 { font-size: 16px; font-weight: 700; }
.discover-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.disc-card { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px dashed #C9D3DE; border-radius: 12px; padding: 12px; color: var(--navy); }
.disc-card:hover { text-decoration: none; border-color: var(--orange); } .disc-card small { display: block; color: var(--muted); }
.disc-card.soon { background: transparent; }

/* Store */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.store-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.store-card h2 { font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.price { font-size: 20px; font-weight: 700; } .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.store-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .store-actions form { display: flex; gap: 6px; margin-left: auto; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 10px; }
.soon-item { border: 1px dashed #C9D3DE; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--muted); }

/* Billing */
.tool-check { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.tool-check:has(input:checked) { border-color: var(--orange); background: #FFF8F3; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--navy); margin-top: 14px; padding-top: 10px; font-size: 17px; }
.total-row strong { font-size: 22px; }
ul.plain { padding-left: 18px; color: var(--muted); }
.test-badge { display: inline-block; background: #FFF1E6; color: var(--citrus-deep); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; letter-spacing: .05em; }

/* Users */
.seat-bar { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 14px; font-size: 14px; }
.meter { flex: 1; height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; max-width: 320px; }
.meter span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
fieldset[hidden] { display: none; }

/* Export */
.export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.export-list { list-style: none; margin: 0; padding: 0; }
.export-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.export-list li:first-child { border-top: 0; }

/* Platform admin */
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: 11.5px; padding: 1px 8px; margin: 1px; color: var(--muted); }
.chip.on { background: var(--leaf-soft); border-color: #C3E3C1; color: var(--leaf); font-weight: 600; }
.chip.on.ending { background: var(--citrus-soft); border-color: #F7C9A8; color: var(--citrus-deep); }
.chip.ro { border-style: dashed; }
button.chip { cursor: pointer; }
.chip-x { border: 0; background: none; color: var(--red); font-weight: 700; padding: 0 4px 0 0; line-height: 1; cursor: pointer; }
.pill-active { background: var(--leaf-soft); color: var(--leaf); } .pill-suspended, .pill-failed { background: #FBECEB; color: var(--red); }
.pill-deleted { background: #E4E7EB; color: #3A4452; } .pill-paid { background: var(--leaf-soft); color: var(--leaf); } .pill-pending { background: #FFF1E6; color: var(--citrus-deep); }
.nav-tabs .nav-link { color: var(--muted); } .nav-tabs .nav-link.active { color: var(--navy); font-weight: 600; }

@media (max-width: 768px) {
  .tiles, .store-grid { grid-template-columns: 1fr; }
  .seat-bar { flex-wrap: wrap; } .plan-strip .btn { margin-left: 0; }
}
.sub-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding-top: 6px; }
.sub-row + .total-row { margin-top: 8px; }
.logo-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; text-align: center; background: #fff; }
.logo-preview img { max-height: 80px; max-width: 100%; }
.settings-form .panel h2 { margin-bottom: 14px; }
/* Customers */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { margin: 0; } .seg input { display: none; }
.seg span { display: block; padding: 7px 16px; cursor: pointer; font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--navy); color: #fff; }
.cust-form .panel h2 { font-size: 15px; }
/* Public consent page */
.consent-box { width: min(560px, 94vw); } .consent-logo { max-height: 60px; max-width: 220px; margin-bottom: 10px; }
.notice-text { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 13.5px; background: var(--bg); }
.powered { text-align: center; margin-top: 18px; } .powered img { height: 16px; opacity: .6; }
.pkg-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #FBFCFD; }
.pkg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .pkg-head .btn-x { margin-left: auto; }
.tool-seats { flex-wrap: wrap; gap: 8px 12px; } .seat-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; background: #fff; }
.seat-chip.full { border-color: #F9A777; background: #FFF6F0; } .tool-seats a { margin-left: auto; }
.tool-check .seat-in { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); } .tool-check .seat-in input { width: 70px; }
.price-cell { min-width: 110px; text-align: right; font-weight: 600; }
.cycle-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cycle-pick .choice { margin: 0; }
.save-badge { display: inline-block; background: var(--leaf-soft); color: var(--leaf); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
@media (max-width: 576px) { .cycle-pick { grid-template-columns: 1fr; } }

/* ===== v13: İş Paketi modules ===== */
.pill-info, .pill-sent, .pill-preparing { background: #F1EBFA; color: #5E3DA5; }
.pill-quoted, .pill-draft, .pill-open { background: var(--blue-soft); color: var(--blue); }
.pill-new { background: var(--blue-soft); color: var(--blue); }
.pill-won, .pill-accepted, .pill-delivered, .pill-ready { background: var(--leaf-soft); color: var(--leaf); }
.pill-shipped { background: var(--citrus-soft); color: var(--citrus-deep); }
.pill-lost, .pill-rejected { background: #FBECEB; color: var(--red); }
.pill-imp-ok { background: var(--leaf-soft); color: var(--leaf); } .pill-imp-update { background: var(--blue-soft); color: var(--blue); }
.pill-imp-dup { background: #F1EBFA; color: #5E3DA5; } .pill-imp-err { background: #FBECEB; color: var(--red); } .pill-imp-skip { background: #EEF0F3; color: var(--muted); }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.subtabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a.on { color: var(--navy); border-bottom-color: var(--orange); } .subtabs a:hover { text-decoration: none; color: var(--navy); }
.seg-a { display: inline-block; padding: 7px 16px; font-weight: 500; color: var(--muted); } .seg-a.on { background: var(--navy); color: #fff; } .seg-a:hover { text-decoration: none; }
.seg-sm span { padding: 4px 11px; font-size: 13.5px; }
.status-btns { display: flex; flex-wrap: wrap; gap: 6px; } .status-btns form { margin: 0; }
.doc-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.doc-lines { min-width: 720px; } .doc-lines td { vertical-align: middle; } .doc-lines .w-qty { width: 80px; } .doc-lines .w-unit { width: 88px; }
.doc-lines .w-price { width: 130px; } .doc-lines .w-disc { width: 72px; } .doc-lines .w-vat { width: 84px; } .doc-lines .w-amt { width: 120px; }
.doc-sum { margin: 12px 0 0 auto; max-width: 420px; } .doc-sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.doc-sum .g { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-size: 17px; }
.doc-view tfoot td, .doc-view tfoot th { border: 0; padding: 3px 8px; } .doc-view tfoot .grand th { font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; }
/* Leads: one screen */
.lead-one { max-width: 920px; }
.lead-steps { display: flex; flex-wrap: wrap; gap: 6px; } .lead-steps form { margin: 0; }
.ls { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.ls:hover { border-color: var(--navy); color: var(--navy); } .ls.done { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.ls.now { background: var(--orange); color: #fff; border-color: var(--orange); }
.ls.now.ls-won { background: var(--leaf); border-color: var(--leaf); } .ls.now.ls-lost { background: var(--red); border-color: var(--red); } .ls.now.ls-cancelled { background: #7A8594; border-color: #7A8594; }
.facts-wide { grid-template-columns: 150px 1fr; }
.lead-compose { display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.lead-compose-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.lead-compose-row label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin: 0; white-space: nowrap; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; } .timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.timeline .tl-status::before { background: #A7B1BE; } .timeline .tl-status { color: var(--muted); font-size: 13.5px; }
.tl-head { display: flex; gap: 8px; align-items: baseline; } .tl-head b { color: var(--navy); } .tl-head small { color: var(--muted); }
/* Document archive: explorer layout */
.xp-app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.xp-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.xp-crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-weight: 600; } .xp-crumbs span { color: var(--muted); }
.xp-search { display: flex; gap: 6px; } .xp-search .form-control { width: 240px; } .xp-search .form-select { width: auto; font-size: 13.5px; padding-top: 4px; padding-bottom: 4px; }
.xp-tools { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.xp-tools form { margin: 0; } .xp-upload { display: flex; gap: 6px; align-items: center; } .xp-upload .form-select { width: 220px; } .xp-upload label { margin: 0; cursor: pointer; }
.xp-body { display: grid; grid-template-columns: 240px 1fr; min-height: 380px; }
.xp-tree { border-right: 1px solid var(--line); padding: 8px 0; background: #FBFCFD; overflow: auto; }
.tr-item { display: flex; align-items: center; gap: 6px; padding: 5px 10px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.tr-item:hover { background: var(--bg); text-decoration: none; } .tr-item.on { background: var(--blue-soft); font-weight: 600; }
.tr-caret { width: 10px; font-size: 11px; color: var(--muted); }
.fold { display: inline-block; width: 18px; height: 14px; background: #F4B63F; border-radius: 2px 3px 3px 3px; position: relative; vertical-align: -2px; flex: none; }
.fold::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 4px; background: #F4B63F; border-radius: 2px 2px 0 0; }
.ficon { display: inline-block; min-width: 34px; padding: 1px 4px; border-radius: 4px; font-size: 10px; font-weight: 800; text-align: center; color: #fff; background: #7A8594; margin-right: 4px; }
.f-pdf { background: #D93025; } .f-doc { background: #2B579A; } .f-xls { background: #217346; } .f-img { background: #8E44AD; } .f-zip { background: #B7791F; }
.xp-list .table td { vertical-align: middle; } .xp-status { padding: 6px 12px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12.5px; color: var(--muted); }
.file-menu { min-width: 300px; }
/* Import */
.imp-steps { margin: 0; padding-left: 20px; display: grid; gap: 16px; } .imp-steps li b { display: block; } .imp-steps .btn { display: inline-block; }
.imp-sum { display: flex; gap: 8px; flex-wrap: wrap; } .imp-sum span { border-radius: 6px; padding: 4px 10px; font-weight: 700; font-size: 13.5px; }
.imp-sum .ok { background: var(--leaf-soft); color: var(--leaf); } .imp-sum .upd { background: var(--blue-soft); color: var(--blue); } .imp-sum .dup { background: #F1EBFA; color: #5E3DA5; }
.imp-sum .err { background: #FBECEB; color: var(--red); } .imp-sum .skip { background: #EEF0F3; color: var(--muted); }
tr.imp-err td { background: #FFF7F6; }
.form-actions form { margin: 0; }
.leave-form { grid-template-columns: 130px 140px 140px 110px 1fr auto; }
@media (max-width: 900px) {
  .xp-body { grid-template-columns: 1fr; } .xp-tree { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; }
  .lead-compose-row { grid-template-columns: 1fr 1fr; } .leave-form { grid-template-columns: 1fr 1fr; } .facts-wide { grid-template-columns: 110px 1fr; }
  .xp-search .form-control { width: 160px; }
}
.pkg-home { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.pkg-home-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pkg-home-head h2 { font-size: 16px; margin: 0; } .pkg-quick { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.pkg-home .tile-stats { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 700px) { .pkg-home .tile-stats { grid-template-columns: repeat(2, 1fr); } }
/* v14: line descriptions, total discount, formatted text */
.doc-lines tbody.dl { border-bottom: 1px solid var(--line); } .doc-lines tbody.dl td { border-bottom: 0; }
.doc-lines .dl-note td { padding-top: 0; } .doc-lines .js-note { resize: vertical; min-height: 31px; font-size: 13px; color: #4A5563; overflow: hidden; }
.doc-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.gdisc { max-width: 260px; } .gdisc .form-select { max-width: 90px; } .doc-foot .doc-sum { margin: 0 0 0 auto; min-width: 280px; }
.line-note { color: var(--muted); font-size: 13px; margin-top: 2px; }
.rte { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.rte-bar { display: flex; gap: 2px; padding: 4px; background: var(--bg); border-bottom: 1px solid var(--line); }
.rte-bar button { border: 0; background: none; border-radius: 5px; min-width: 32px; height: 28px; font-size: 13.5px; color: var(--navy); } .rte-bar button:hover { background: #fff; }
.rte-area { border: 0; border-radius: 0; min-height: 90px; max-height: 360px; overflow: auto; }
.rte-area:empty::before { content: attr(data-ph); color: #9AA4B1; }
.rte-area p, .rich p { margin: 0 0 6px; } .rte-area ul, .rte-area ol, .rich ul, .rich ol { margin: 0 0 6px; padding-left: 22px; }
.stamp-preview img { max-height: 110px; }
/* v16: purchasing */
.po-assign { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.po-assign .form-select { width: auto; min-width: 220px; }
.po-lines { min-width: 900px; } .po-lines .w-q { width: 110px; } .po-lines .w-p { width: 130px; } .po-lines .w-s { width: 220px; }
.po-lines tr.sel td { background: #FFF8F2; } .po-lines tr.muted td { color: var(--muted); }
.po-preview ul { margin: 4px 0 0; padding-left: 20px; }
.pill-draft, .pill-sent { } .pill-confirmed { background: #F1EBFA; color: #5E3DA5; } .pill-received { background: var(--leaf-soft); color: var(--leaf); }
/* v17: reminders */
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.rem-banner { display: flex; align-items: center; gap: 12px; background: #FFF4EC; border: 1px solid #FDD5B8; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; color: var(--navy); }
.rem-banner:hover { text-decoration: none; background: #FFEBDD; } .rem-banner b { font-size: 22px; color: var(--orange); } .rem-banner em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--orange); }
.rem-list { display: grid; gap: 10px; }
.rem { display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; align-items: start; }
.rem-dot { width: 6px; height: 100%; border-radius: 3px; }
.rem-sub { font-size: 13px; color: var(--muted); margin: 2px 0 6px; } .rem-msg { font-size: 13.5px; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.rem-act { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; } .rem-act form { margin: 0; }
@media (max-width: 700px) { .rem { grid-template-columns: 6px 1fr; } .rem-act { grid-column: 2; flex-direction: row; } }
/* v17: technical service add-ons */
.pill-received, .pill-diagnosing { background: var(--blue-soft); color: var(--blue); }
.pill-waiting_approval, .pill-waiting_parts, .pill-expiring { background: var(--citrus-soft); color: var(--citrus-deep); }
.pill-repairing { background: #F1EBFA; color: #5E3DA5; } .pill-returned, .pill-expired { background: #FBECEB; color: var(--red); }
.pill-active { background: var(--leaf-soft); color: var(--leaf); } .pill-renewed { background: #EEF0F3; color: var(--muted); }
.chk-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; } .chk-row label { margin: 0; font-size: 14px; } .chk-row .form-control { max-width: 220px; }
.chk-col { display: grid; gap: 6px; } .chk-col label { margin: 0; }
.rep-steps { display: flex; flex-wrap: wrap; gap: 6px; } .rep-steps form { margin: 0; }
.mparts .w-q { width: 80px; } .mparts .w-p { width: 140px; }
.rpart { grid-template-columns: 1fr 80px 140px auto; }
.timeline .tl-customer::before { background: var(--leaf); }
/* v18: record engine */
.pc-blue { background: var(--blue-soft); color: var(--blue); } .pc-orange { background: #FFEEE3; color: #B84403; } .pc-green { background: var(--leaf-soft); color: var(--leaf); }
.pc-red { background: #FBECEB; color: var(--red); } .pc-gray { background: #EEF0F3; color: var(--muted); } .pc-purple { background: #F1EBFA; color: #5E3DA5; } .pc-yellow { background: var(--citrus-soft); color: var(--citrus-deep); }
.sub-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; } .sub-form .sf { flex: 1 1 120px; min-width: 110px; } .sub-form .sf-textarea, .sub-form .sf-text { flex: 2 1 180px; }
.sub-form .sf-btn { flex: 0 0 auto; min-width: 0; } .sub-form .form-label { margin-bottom: 2px; } .sub-form textarea { min-height: 38px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.board-col { background: #EEF1F4; border-radius: var(--radius); padding: 10px; min-height: 200px; } .board-col h3 { font-size: 14px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.board-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13.5px; display: block; color: inherit; }
.board-card:hover { text-decoration: none; border-color: var(--orange); } .board-card small { color: var(--muted); display: block; } .board-card .late { font-weight: 700; }
/* Weekly timetable (Ders Programı, Eğitim Paketi): all 7 days side by side; stacked on tablets and phones */
.board.board-week { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; overflow-x: visible; }
.board-week .board-col { min-width: 0; padding: 8px 6px; } .board-week .board-col h3 { font-size: 13px; flex-wrap: wrap; gap: 0 4px; }
.board-week .board-card { padding: 6px 7px; font-size: 12.5px; overflow-wrap: anywhere; } .board-week .board-card .d-flex { flex-wrap: wrap; }
.board-week .board-card .btn-sm { font-size: 11.5px; padding: 2px 6px; }
@media (max-width: 991.98px) { .board.board-week { grid-template-columns: 1fr; } .board-week .board-col { min-height: 0; } }
.grid-cal { width: 100%; border-collapse: collapse; font-size: 13px; } .grid-cal th, .grid-cal td { border: 1px solid var(--line); padding: 4px; text-align: center; min-width: 34px; }
.grid-cal th.rl, .grid-cal td.rl { text-align: left; white-space: nowrap; background: #fff; position: sticky; left: 0; } .grid-cal .we { background: #F6F7F9; }
.grid-cal .bk { background: var(--orange); color: #fff; font-weight: 700; overflow: hidden; white-space: nowrap; max-width: 34px; } .grid-cal .bk a { color: #fff; } .grid-cal .bk.c-green { background: var(--leaf); } .grid-cal .bk.c-blue { background: var(--blue); } .grid-cal .today { outline: 2px solid var(--navy); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } .thumbs .th { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 4px; min-height: 60px; word-break: break-all; }
.thumbs img { width: 100%; height: 72px; object-fit: cover; border-radius: 5px; } .thumbs form { position: absolute; top: 2px; right: 4px; }
/* v21: cash book */
.cash-dir { display: flex; gap: 8px; } .cash-dir label { flex: 1; margin: 0; } .cash-dir input { position: absolute; opacity: 0; }
.cash-dir span { display: block; text-align: center; padding: 10px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.cash-dir input:checked + span { border-color: var(--leaf); background: var(--leaf-soft); color: var(--leaf); }
#cash-add.is-out .cash-dir input:checked + span { border-color: var(--red); background: #FBECEB; color: var(--red); }
.cash-dir input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.cash-opening { border: 2px dashed var(--orange); }
.cash-list td:first-child { word-break: break-word; } .cash-list td small { display: inline-block; margin-top: 2px; }
.labor-row { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; } .labor-row input { max-width: 160px; }
/* v23: single repair work panel */
.work-parts .w-q { width: 80px; } .work-parts .w-p { width: 130px; } .work-parts .w-t { width: 120px; white-space: nowrap; } .work-parts th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.work-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.work-foot .js-labor { width: 140px; } .work-foot .doc-sum { min-width: 320px; } .work-foot .doc-sum span { margin-right: 16px; }
@media (max-width: 640px) { .work-parts .w-t { display: none; } .work-parts .w-p { width: 100px; } .work-parts .w-q { width: 60px; } }

/* Storage usage */
.storage .sbar { height: 8px; background: #eef0f3; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.storage .sbar i { display: block; height: 100%; background: var(--citrus, #f39200); }
.storage .sbar i.warn { background: #e0a100; }
.storage .sbar i.full { background: #d93b3b; }

/* Saved cards */
.card-row { border: 1px solid var(--line, #e6e8ec); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }

/* Rights grid */
.perm-grid td, .perm-grid th { padding: 4px 6px; }
.perm-grid .perm-sec th { background: var(--bg-soft, #f6f7f9); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.perm-grid thead th { font-size: .8rem; white-space: nowrap; }

/* Edit form above the list, full width (rights grid needs the room) */
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form > form { order: -1; max-width: 980px; width: 100%; }
@media (min-width: 900px) { .stack-form .perm-grid td:first-child { min-width: 220px; } }

/* Platform admin: company page */
.ac-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.ac-jump { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.danger-zone { border: 1px solid #f3c7c3; }

/* Pagination in brand colours */
.pagination .page-link { color: var(--citrus-deep, #d94f00); }
.pagination .page-item.active .page-link { background: var(--citrus, #FD5F05); border-color: var(--citrus, #FD5F05); color: #fff; }

/* İş Kabul: sector choice */
.preset-opt { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.preset-opt:has(input:checked) { border-color: var(--citrus); background: var(--citrus-soft); }
/* Montaj Takibi */
.asm-prog { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 10px; } .asm-prog i { display: block; height: 100%; background: #2E9E5B; border-radius: 99px; }
.asm-ship { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--citrus-soft); }
.asm-shiprow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); } .asm-shiprow:first-of-type { border-top: 0; padding-top: 0; }
.asm-slot { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: start; margin-bottom: 8px; } .asm-slot > label { padding-top: 8px; font-weight: 600; font-size: 14px; }
.asm-test { display: grid; grid-template-columns: 1fr 220px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); } .asm-test:first-of-type { border-top: 0; }
@media (max-width: 600px) { .asm-slot, .asm-test { grid-template-columns: 1fr; gap: 4px; } .asm-slot > label { padding-top: 0; } }
.grid-main > * { min-width: 0; }

/* Sidebar: collapsible İş Paketi group; home page: collapsible Keşfet */
.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 0; margin-right: 0; border-radius: 8px; user-select: none; }
.nav-group > summary::-webkit-details-marker, .discover > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: var(--ink); }
.nav-group .chev, .discover > summary .chev { transition: transform .15s; }
.nav-group[open] > summary .chev, .discover[open] > summary .chev { transform: rotate(180deg); }
.nav-group-items { display: flex; flex-direction: column; gap: 2px; }
.discover > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; user-select: none; }
.discover > summary h2 { margin: 0; }
.discover > summary > a { margin-left: auto; }
/* v45: sidebar end stays reachable on phones and tablets (browser bars, home indicator) */
.side { height: 100dvh; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
.side-foot { margin-bottom: 24px; }
.side nav a.nav-sub { padding: 5px 12px 5px 28px; font-size: 13.5px; font-weight: 400; }
/* v45: staff leave and document forms wrap instead of shrinking their fields */
.staff-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 10px; }
.staff-form > * { flex: 1 1 150px; min-width: 0; }
.staff-form > .sf-wide { flex: 2 1 220px; }
.staff-form > .sf-date { flex: 1 1 150px; max-width: 220px; }
.staff-form > .btn { flex: 0 0 auto; }
.staff-form label.sf-lbl { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); margin: 0; }
.staff-docs td { word-break: break-word; }
/* v45: contact persons */
.contacts-ed { display: grid; gap: 6px; }
.contact-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr auto; gap: 6px; align-items: center; }
@media (max-width: 700px) { .contact-row { grid-template-columns: 1fr 1fr; padding-bottom: 6px; border-bottom: 1px dashed var(--line); } .contact-row .js-k-del { justify-self: start; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
/* v45: opportunity contact log: date, person, edit, search */
.lead-compose-who { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-compose-who label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); margin: 0; flex: 1 1 200px; }
.lead-compose-who > select, .lead-compose-who > input { flex: 1 1 160px; width: auto; }
.tl-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-filter > * { flex: 1 1 160px; width: auto; }
.tl-head { flex-wrap: wrap; } .tl-acts { margin-left: auto; display: inline-flex; gap: 10px; }
.tl-edit { margin-top: 6px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
#log .timeline li { flex-wrap: wrap; } #log .tl-edit { flex: 1 1 100%; }

/* Sidebar quick search (v30) */
.nav-find { position: relative; margin: -8px 0 14px; }
.nav-find-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(30,39,51,.12); margin-top: 4px; max-height: 60vh; overflow-y: auto; }
.nav-find-list a { display: flex; flex-direction: column; padding: 7px 10px; color: var(--ink); font-weight: 500; font-size: 14px; }
.nav-find-list a small { color: var(--muted); font-weight: 400; font-size: 12px; }
.nav-find-list a:hover, .nav-find-list a.on { background: var(--citrus-soft); text-decoration: none; }
.nav-find-none { padding: 7px 10px; color: var(--muted); }
/* Sortable table headers, quick table search */
th.tt-sort { cursor: pointer; user-select: none; }
th.tt-sort:hover { color: var(--ink); }
th.tt-sort::after { content: "\2195"; opacity: .3; margin-left: 4px; font-size: 11px; }
th.tt-asc::after { content: "\2191"; opacity: 1; } th.tt-desc::after { content: "\2193"; opacity: 1; }
.tt-q { max-width: 280px; margin: 0 0 8px; }

/* Platform management (v31): menu, dashboard lists, set-up */
.pa-list { list-style: none; padding: 0; margin: 0; }
.pa-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pa-list li:last-child { border-bottom: 0; }
.pa-setup { border: 2px solid var(--citrus); background: var(--citrus-soft); }
.panel h2 a { color: inherit; }
/* Support requests: status pills, conversation, feedback window */
.sup-pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.sp-blue { background: #E4F3FE; color: #1673B4; } .sp-orange { background: var(--citrus-soft); color: var(--citrus-deep); } .sp-yellow { background: #FFF5D6; color: #8A6500; }
.sp-purple { background: #EFE8FC; color: #6941C6; } .sp-green { background: var(--leaf-soft); color: var(--leaf); } .sp-gray { background: var(--bg); color: var(--muted); }
.tag-red { background: #FDECEC; border-color: #F5C2C2; color: var(--red); }
.sup-msg { white-space: normal; background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 12px; } .kv dt { color: var(--muted); font-weight: 500; } .kv dd { margin: 0; }
.sup-tl { list-style: none; padding: 0; margin: 0; }
.sup-tl li { border-left: 3px solid var(--sky); padding: 6px 0 8px 12px; margin-bottom: 8px; }
.sup-tl li.se-customer { border-left-color: var(--leaf); } .sup-tl li.se-internal { border-left-color: #A7B1BE; background: #FAFAF7; }
.sup-tl li.se-status, .sup-tl li.se-assign, .sup-tl li.se-priority { border-left-color: var(--line); font-size: 13.5px; }
.se-head small { margin-left: 4px; } .se-body { margin-top: 2px; }
.fb-btn { white-space: nowrap; }
.fb-kinds { display: flex; gap: 14px; flex-wrap: wrap; } .fb-kinds label { display: flex; gap: 5px; align-items: center; cursor: pointer; }
/* Calendar navigation right above a calendar (weekly boards, shift plan, teacher's month) */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
.cal-nav > b { flex: 1; text-align: center; font-size: 1.05rem; }
@media (max-width: 576px) { .cal-nav { flex-wrap: wrap; } .cal-nav > b { order: -1; flex-basis: 100%; } .cal-nav .btn { flex: 1; } }
@media print { .cal-nav .btn, .cal-nav b a { display: none; } }
/* Filter bar above a calendar */
.cal-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 10px 12px; }
.cal-filter label { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); gap: 2px; min-width: 150px; }
.cal-filter-btns { display: flex; gap: 4px; }
/* Month calendar (teacher's timetable) */
.month-cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mc-head, .mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mc-head div { padding: 6px 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #EEF1F4; text-align: center; }
.mc-day { min-height: 96px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px 5px; font-size: 12.5px; }
.mc-day:nth-child(7n+1) { border-left: 0; }
.mc-day.is-out { background: #F7F8FA; } .mc-day.is-out .mc-date { color: #B5BCC5; }
.mc-day.is-today { box-shadow: inset 0 0 0 2px var(--orange); }
.mc-date { font-weight: 600; text-align: right; margin-bottom: 2px; } .mc-dn { display: none; }
.mc-item { display: block; background: #FFF3EB; border-left: 3px solid var(--orange); border-radius: 4px; padding: 2px 5px; margin-bottom: 3px; color: inherit; text-decoration: none; line-height: 1.3; overflow-wrap: anywhere; }
.mc-item:hover { background: #FFE4D1; text-decoration: none; } .mc-item.is-off { opacity: .6; text-decoration: line-through; border-left-color: #999; background: #F1F1F1; }
@media (max-width: 768px) {   /* phones: one row per day that has lessons */
  .mc-head { display: none; } .mc-grid { display: block; }
  .mc-day { min-height: 0; border-left: 0; padding: 8px 10px; } .mc-day.is-empty, .mc-day.is-out { display: none; }
  .mc-date { text-align: left; } .mc-dn { display: inline; color: var(--muted); font-weight: 400; }
  .mc-item { font-size: 14px; padding: 6px 8px; }
}
@media print { .cal-filter { display: none; } }
/* Bugün hatırlatılacaklar: fixed under the general search, not part of any software's menu */
.side nav.nav-fixed { margin: -6px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
/* Ekip Görev Panosu: repeat calendar panel above the description */
.repeat-cal { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.repeat-times { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.repeat-time { display: inline-flex; align-items: center; } .repeat-time input { width: 110px; }

/* v35: sales opportunity - next step panel above the contact log, contact attachments */
.lead-next h2 small { font-size: 13px; font-weight: 600; margin-left: 6px; }
.lead-next.is-late { border-left: 4px solid var(--red); }
.lead-next-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.lead-next-row label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); margin: 0; }
.lead-next-row label.grow { flex: 1 1 240px; }
.lead-next-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.lead-compose-row label.lead-attach, label.lead-attach { display: flex; flex-direction: column; align-items: stretch; gap: 2px; font-size: 12.5px; color: var(--muted); white-space: normal; }
.lead-compose-row { grid-template-columns: 1fr auto auto; }
.tl-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl-file { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 8px 3px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; text-decoration: none; }
.tl-file:hover { border-color: var(--orange); text-decoration: none; }
.tl-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.tl-file img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; }
.tl-files-edit { display: grid; gap: 2px; margin-top: 6px; font-size: 13px; }
.tl-files-edit label { display: flex; align-items: center; gap: 4px; margin: 0; }
@media (max-width: 700px) { .lead-compose-row { grid-template-columns: 1fr 1fr; } .lead-compose-row .lead-attach { grid-column: 1 / -1; } }
/* v36: contact log - the text always starts on its own line under the heading (short lines used to sit beside it) */
#log .timeline li { align-items: flex-start; }
#log .timeline li > .tl-head, #log .timeline li > .js-tl-body { flex: 1 1 100%; min-width: 0; }

/* v54: serial numbers (stock in / out, product card) and shipment contents from stock outs */
.serial-box { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.serial-list { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; }
.serial-item { font-size: .9rem; font-family: var(--bs-font-monospace, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; padding: 2px 0; }
.ship-outs .serial-list { grid-template-columns: 1fr; font-family: inherit; }
.ship-outs .serial-item { font-family: inherit; white-space: normal; }
.serial-ul { columns: 2; padding-left: 1.1rem; margin: 0; font-family: var(--bs-font-monospace, monospace); font-size: .9rem; }
@media (max-width: 575px) { .serial-ul { columns: 1; } }
/* document lines: tied to a product or free text */
.tag-ok { background: #EAF6EC; border-color: #BFE3C6; color: #2E7D3A; }
.tag-warn { background: #FFF4E5; border-color: #F7D2A0; color: #9A5B00; }
.line-link { font-size: 11.5px; margin-top: 2px; min-height: 0; }
.line-link:empty { display: none; }
.line-link .ok { color: #2E7D3A; }
.line-link .free { color: #9A5B00; }
.line-link .bad { color: var(--red); }
.stock-held { color: var(--muted); font-size: 12px; }
.form-control.is-warn { border-color: #E8A33D; background: #FFF8EC; }
/* Occupancy calendar: back arrow on the left of the grid, forward arrow on the right */
.cal-range { margin: 0 0 8px; }
.cal-side { display: flex; align-items: stretch; gap: 8px; } .cal-side > .panel { flex: 1; min-width: 0; margin: 0; }
.cal-arrow { flex: 0 0 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); text-decoration: none; }
.cal-arrow:hover { background: #FFF4EC; border-color: var(--orange); color: var(--orange); }
.cal-arrow b { font-size: 30px; line-height: 1; } .cal-arrow small { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) { .cal-arrow { flex-basis: 30px; } .cal-arrow b { font-size: 24px; } }

/* ---------- Tur 1 (v64): self-guiding screens ---------- */
.page-intro { color: var(--muted); margin: -6px 0 14px; }
.tabs-line { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
/* customer account: choose "Borç yaz" or "Ödeme aldım" first (nothing pre-selected) */
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.kind-pick label { margin: 0; } .kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; cursor: pointer; background: var(--surface); height: 100%; }
.kind-pick span b { display: block; font-size: 1rem; } .kind-pick span small { display: block; color: var(--muted); font-size: .8rem; }
.kind-pick input:checked + span { border-color: var(--orange); background: #FFF4EC; } .kind-pick input:checked + span b { color: #C44400; }
.kind-pick input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.ledger-form[data-kind=""] #ldesc { display: none !important; }
.ledger-form .sub-form { margin-top: 0; }
/* forms: less used fields folded */
.more-fields > summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 6px 0; }
.more-fields > summary::marker { color: var(--orange); }
.next-step { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.empty-state { text-align: left; } .empty-state p { color: var(--ink); }
/* home: getting started */
.start-card .start-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.start-step { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface); }
.start-step .n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #E9EEF5; align-items: center; justify-content: center; font-weight: 700; margin-right: 6px; }
.start-step.now { border: 2px solid var(--orange); background: #FFF8F3; } .start-step.now .n { background: var(--orange); color: #fff; }
.start-step.done { opacity: .75; } .start-step.done .n { background: var(--leaf-brand); color: #fff; }
.start-step p { color: var(--muted); font-size: .875rem; margin: 6px 0 10px; }
@media (max-width: 767px) { .start-card .start-steps { grid-template-columns: 1fr; } }
/* Satış yap */
.pos { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
@media (max-width: 991px) { .pos { grid-template-columns: 1fr; } }
.pos-search { position: relative; }
.pos-hits { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 8px 20px rgba(25,61,109,.12); }
.pos-hit { display: flex; justify-content: space-between; width: 100%; border: 0; background: none; padding: 10px 14px; text-align: left; } .pos-hit:hover { background: #FFF4EC; }
.pos-hit span { color: var(--muted); } .pos-none { display: block; padding: 10px 14px; color: var(--muted); }
.pos-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 575px) { .pos-tiles { grid-template-columns: repeat(2, 1fr); } }
.pos-tile { border: 1px solid var(--line); border-radius: 10px; padding: 14px 8px; background: var(--surface); text-align: center; min-height: 72px; }
.pos-tile:hover, .pos-tile:active { border-color: var(--orange); background: #FFF8F3; }
.pos-tile b { display: block; font-size: .95rem; line-height: 1.2; } .pos-tile span { color: var(--muted); font-size: .8rem; }
.pos-cart h2 { margin-bottom: 8px; }
.pos-cart td .form-control { width: 90px; display: inline-block; }
.pq-btn { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 700; line-height: 1; }
.pq-n { display: inline-block; min-width: 30px; text-align: center; }
.pos-warn { display: block; font-size: .75rem; background: #FFF1D6; color: #8A5A00; border-radius: 6px; padding: 1px 6px; margin-top: 2px; width: fit-content; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.pos-total b { font-size: 1.9rem; }
.pos-cust { margin: 8px 0 10px; }
.pos-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pos-pay button { border: 0; border-radius: 10px; padding: 14px 6px; font-weight: 800; font-size: 1.05rem; color: #fff; }
.pp-cash { background: #1F8A4C; } .pp-card { background: #2A62B8; } .pp-credit { background: var(--orange); }
.pos-pay button:hover { filter: brightness(1.07); }
/* customer form: label above, not next to the person / company switch */
.cust-form .seg { display: inline-flex; }
.nav-group-items a.nav-more { color: #C44400; font-size: .85rem; }
/* Satış yap: category tabs + pager (v43) */
.pos-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 10px 0 8px; scrollbar-width: thin; }
.pos-cat { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .9rem; color: var(--navy); white-space: nowrap; }
.pos-cat small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.pos-cat.on { background: var(--navy); border-color: var(--navy); color: #fff; } .pos-cat.on small { color: rgba(255,255,255,.75); }
.pos-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.pos-tiles { min-height: 72px; }
.pos > * { min-width: 0; }
@media (max-width: 575px) {
  #ctab tr { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 6px; border-bottom: 1px solid var(--line); }
  #ctab td { border: 0; } #ctab td:first-child { grid-column: 1 / -1; padding-bottom: 0; } .pos-cart td .form-control { width: 100%; }
}
/* v65: sidebar groups (İş Paketi + each software), click the heading to open/close */
.nav-groups { display: flex; flex-direction: column; gap: 2px; }
.nav-groups .nav-group > summary.nav-label { margin: 14px 0 4px 0; padding: 6px 8px 6px 14px; border-radius: 8px; }
.nav-groups .nav-group > summary.nav-label:hover { background: rgba(25, 61, 109, .05); color: var(--navy); }
.nav-groups .nav-group > summary.nav-label:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.nav-groups .nav-group > summary > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.nav-groups .nav-group .chev { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-groups .nav-tool > summary.nav-label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--navy); margin-top: 4px; }
.nav-groups .nav-tool .ticon { flex: 0 0 auto; }
.nav-groups .nav-tool .nav-group-items a { padding-left: 44px; }
.nav-groups .nav-group[data-g="pkg"] + .nav-tool { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 8px; }
.pay-due-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--citrus-soft); border-radius: 10px; padding: 12px 14px; }
.pay-due-sum b { font-size: 1.5rem; color: var(--navy); } .pay-due-sum small { flex-basis: 100%; }
/* v65: Kılavuz button and field help (? next to labels, assets/help.js) */
.guide-btn { display: inline-flex; align-items: center; gap: 5px; }
.guide-btn svg { flex: 0 0 auto; }
@media (max-width: 575px) { .guide-btn { padding: 4px 7px; } .guide-btn .gb-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.help-q { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; padding: 0; border-radius: 50%; border: 1px solid #9AAAC0; background: #fff; color: #4A5D78; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; cursor: pointer; }
.help-q:hover, .help-q[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.help-q:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.help-pop { position: absolute; z-index: 1080; max-width: 300px; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 12px 10px 14px; font-size: .86rem; line-height: 1.45; box-shadow: 0 10px 28px rgba(25, 61, 109, .28); }
.help-pop::before { content: ""; position: absolute; top: -6px; left: var(--ax, 16px); width: 12px; height: 12px; background: var(--navy); transform: rotate(45deg); }
.help-pop .hp-x { float: right; margin: -4px -4px 0 8px; border: 0; background: none; color: #fff; opacity: .7; font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.help-pop .hp-x:hover { opacity: 1; }
/* "Müşteri gözüyle bak" (v66): fixed orange strip while platform support views a company's screens */
.pv-strip { position: sticky; top: 0; z-index: 1100; background: #EA580C; color: #fff; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 8px; margin-bottom: 14px; }
.pv-strip a { color: #fff; text-decoration: underline; }
.pv-strip .pv-left { font-weight: 400; opacity: .9; }
.demo-strip { background: #0F2A4A; font-weight: 500; }
.demo-strip .demo-go { display: inline-block; background: #F97316; color: #fff; text-decoration: none; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin: 0 4px; }

/* v68: "opens in a new tab" mark */
.ext-ico{font-size:.8em;opacity:.75;margin-left:2px;display:inline-block}
/* v68: long line texts (treatment card visits): two lines, then "devamı" */
.clamp2 { min-width: 160px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
section.panel[id^="sub-"] .clamp2 { min-width: 90px; }   /* v70: multi-line sub fields (bakım kartı) no longer push price and delete out of the panel */
.sub-form .sf-files { flex: 2 1 220px; } .sub-files a { text-decoration: none; } .sub-files .ficon { font-size: 10px; }
.sub-form textarea.js-grow { min-height: 76px; resize: vertical; }
.sub-form .sf-grow { flex: 1 1 calc(50% - 8px); min-width: 240px; }
/* v68: rental handover photos */
.rent-thumbs .th small { font-size: 10.5px; margin-top: 2px; } .rent-up .btn { margin-bottom: 0; cursor: pointer; }
.lb-over { position: fixed; inset: 0; background: rgba(10, 20, 35, .88); z-index: 2000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 12px; }
.lb-over img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.grid-cal td.bk-split { padding: 0; font-size: 10.5px; line-height: 1.3; background: none; } .grid-cal td.bk-split a { white-space: nowrap; background: var(--orange); padding: 1px 2px; } .grid-cal td.bk-split a + a { border-top: 1px solid #fff; } .grid-cal td.bk-split a.c-blue { background: var(--blue); }
/* v68 partial returns (returns.php) */
.ret-lines td, .ret-lines th { white-space: nowrap; } .ret-lines td:first-child { white-space: normal; min-width: 140px; }
.ret-lines .ret-sn td { border-top: 0; padding-top: 0; }
.sn-pick { display: flex; flex-wrap: wrap; gap: 6px; } .sn-chip { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: .85rem; cursor: pointer; background: #fff; }
.sn-chip:has(input:checked) { border-color: var(--orange); background: #fff4ec; }
.ret-form .pos-total b { font-size: 1.5rem; }
@media (max-width: 575px) { .ret-lines tr > :nth-child(2), .ret-lines tr > :nth-child(3) { display: none; } .ret-lines .ret-sn td { display: table-cell; } .ret-lines td:first-child { min-width: 110px; } }
/* v68 İşe alım talebi: progress bar, counters, bulk bar of the candidate list */
.rq-prog { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; min-width: 90px; margin: 3px 0 2px; }
.rq-prog.big { height: 12px; border-radius: 6px; margin-top: 4px; }
.rq-prog span { display: block; height: 100%; background: var(--citrus, #FD5F05); }
.rq-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-stats { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 0; }
.rq-stats .stat { padding: 10px 12px; } .rq-stats .stat b { font-size: 22px; } .rq-stats .stat span { font-size: 12px; }
.bulk-c { width: 34px; }
.bulk-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--citrus-soft, #fff1e8); border: 1px solid #F9A777; border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; }
.bulk-bar[hidden] { display: none; }
.bulk-bar .form-select { width: auto; max-width: 200px; }
@media (max-width: 575px) { .rq-stats { grid-template-columns: repeat(2, 1fr); } .bulk-bar .form-select { max-width: 46%; flex: 1 1 40%; } }
.filters .form-select { max-width: 100%; text-overflow: ellipsis; }
