:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #171827;
    background: #f5f6fa;
    font-synthesis: none;
    --ink: #171827;
    --muted: #5a6074;
    --brand: #c92129;
    --brand-hover: #a91920;
    --line: #e7e8ef;
    --surface: #fff;
    --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .47; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.09; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: 1.08rem; letter-spacing: -.015em; }
h1 small { display: block; margin-top: .5rem; color: var(--muted); font-size: 1rem; letter-spacing: 0; font-weight: 550; }
:focus-visible { outline: 3px solid #505add; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; z-index: 20; inset: 1rem auto auto 1rem; background: #fff; padding: .8rem; }
.shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; overflow: auto; background: var(--surface); padding: 24px 16px 14px; border-right: 1px solid var(--line); }
.brand { display: block; position: relative; overflow: hidden; width: 154px; max-width: 100%; aspect-ratio: 3.47; flex-shrink: 0; }
.brand img { display: block; position: absolute; width: 126%; height: auto; max-width: none; top: 50%; left: 50%; transform: translate(-50%, -48%); }
.sidebar .brand { margin: 4px 11px 29px; }
.workspace-label { color: #595e73; font-size: .71rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 760; margin: 0 11px 9px; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { display: flex; align-items: center; min-height: 42px; gap: 10px; border-radius: 10px; font-size: .875rem; font-weight: 570; color: #3f445b; padding: 6px 11px; }
.sidebar nav a:hover { background: #f6f6fa; }
.sidebar nav a.current { color: #a31720; background: #fdecef; font-weight: 740; }
.icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.28rem; line-height: 1; min-width: 1.15em; font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 18px 11px 3px; display: flex; align-items: center; gap: 8px; font-size: .77rem; color: var(--muted); }
.online { width: 8px; height: 8px; background: #64d49a; border-radius: 50%; display: inline-block; }
.main { min-width: 0; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px; background: var(--surface); border-bottom: 1px solid var(--line); gap: 10px; }
.account small { color: var(--muted); font-size: .8rem; }
.account { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: auto; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #fee8ea; color: #9c1927; font-weight: 760; display: grid; place-items: center; flex: none; }
.account-name { display: grid; gap: 2px; font-size: .85rem; font-weight: 700; overflow-wrap: anywhere; }
.account small { font-weight: 500; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 9px; color: #41465a; }
.icon-button:hover { background: #f0f1f5; }
.content { padding: 26px 30px 44px; max-width: 1440px; margin: auto; }
.hero { isolation: isolate; position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 196px; gap: 20px; overflow: hidden; border-radius: 22px; background: linear-gradient(114deg,#191b28 15%,#241e32 63%,#512839); color: white; padding: 30px; }
.hero h1 { margin: 9px 0 7px; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hero p { color: #e8dfe9; line-height: 1.5; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .73rem; font-weight: 720; text-transform: uppercase; letter-spacing: .14em; color: #f6d8e1; }
.hero > .button { flex: none; background: #d82935; }
.hero > .button:hover { background: #ba1b28; }
.hero-pattern, .login-pattern { position: absolute; z-index: -1; width: 280px; height: 280px; right: -20px; top: -38px; border-radius: 62px; border: 1px solid #df9eb352; transform: rotate(28deg); box-shadow: 0 0 0 25px #e496b221, 0 0 0 50px #f6b3cb14, inset 0 0 0 25px #efa3bb17; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 18px 0; }
.blue { --tint: #e9efff; --accent: #2443a3; }
.green { --tint: #e4f7ed; --accent: #126543; }
.purple { --tint: #f1e9fc; --accent: #693ca3; }
.amber { --tint: #fff1d9; --accent: #855010; }
.neutral { --tint: #eeeff4; --accent: #4b5064; }
.metric { min-width: 0; display: grid; gap: 8px; min-height: 138px; padding: 16px 17px; border-radius: var(--radius); color: var(--accent); background: var(--tint); border: 1px solid #17182709; transition: transform .15s; }
.metric:hover { transform: translateY(-2px); }
.metric-top { display: flex; justify-content: space-between; align-items: center; font-weight: 740; }
.metric-icon { display: grid; place-items: center; width: 35px; height: 35px; background: #ffffffb8; border-radius: 10px; }
.metric-label { font-size: .86rem; font-weight: 680; }
.metric strong { font-size: 2.04rem; color: var(--ink); letter-spacing: -.045em; line-height: 1; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stack { display: grid; gap: 15px; min-width: 0; }
.panel { min-width: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 25px #18213e04; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-title.flush { padding: 0 0 14px; }
.panel-title > span { color: var(--muted); font-size: .85rem; text-align: right; }
.text-link { color: #a91824; font-size: .86rem; font-weight: 720; }
.text-link:hover { text-decoration: underline; }
.back { display: inline-flex; align-items: center; min-height: 40px; }
.stream-row { display: flex; gap: 12px; align-items: center; min-height: 62px; padding: 11px 18px; }
.stream-row + .stream-row { border-top: 1px solid var(--line); }
a.stream-row:hover { background: #f8f8fc; }
.stream-icon { color: var(--accent); background: var(--tint); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.stream-label { flex: 1; min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.stream-label strong { font-size: .91rem; font-weight: 660; line-height: 1.3; }
.stream-label small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.pill { display: inline-flex; width: fit-content; align-items: center; min-height: 26px; padding: 3px 10px; color: var(--accent,#44485c); background: var(--tint,#f0f1f6); border-radius: 999px; font-weight: 700; font-size: .74rem; text-align: center; }
.date-block { display: grid; place-items: center; min-width: 44px; padding: 6px; border-radius: 9px; background: #f1e9fc; color: #693ca3; line-height: 1.05; flex: none; }
.date-block small { margin-top: 3px; font-size: .68rem; text-transform: uppercase; }
.empty { padding: 26px 20px; color: var(--muted); line-height: 1.5; }
.empty strong { color: var(--ink); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border: 1px solid #d6d8e3; background: #fff; border-radius: 10px; color: #30364b; font-size: .88rem; font-weight: 720; text-align: center; }
.button:hover { background: #f6f6fb; }
.button.primary { background: var(--brand); border-color: transparent; color: #fff; }
.button.primary:hover { background: var(--brand-hover); }
.form-panel { padding: min(5vw,24px); }
.form-panel h2 { margin-bottom: 12px; }
.form-panel .panel-title h2 { margin: 0; }
.form-stack { display: grid; gap: 16px; }
.form-grid, .detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
label { display: grid; gap: 7px; min-width: 0; color: #383d53; font-size: .87rem; font-weight: 650; }
label small { font-weight: 500; line-height: 1.4; }
input, textarea, select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #ccd0df; border-radius: 9px; background: #fff; color: #1b2235; padding: 9px 11px; font-size: 1rem; }
textarea { resize: vertical; }
.filters, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters input, .filters select { flex: 1 1 145px; max-width: 270px; }
.records { width: 100%; border-collapse: collapse; font-size: .88rem; }
.records th { background: #f7f7fa; color: #454b61; font-weight: 700; text-align: left; }
.records td, .records th { padding: 12px 14px; overflow-wrap: anywhere; }
.records td { border-top: 1px solid var(--line); }
.row-action { text-align: right; }
.row-action a { display: inline-flex; align-items: center; min-height: 43px; white-space: nowrap; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 13px; color: var(--muted); }
.detail-grid dt { color: var(--muted); font-size: .79rem; font-weight: 650; margin-bottom: 5px; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.timeline-row { display: flex; gap: 8px; align-items: center; padding: 7px 0; font-size: .8rem; }
.timeline-row time, .subtle { color: var(--muted); }
.record-action { margin-top: 17px; }
.quote-line { display: grid; grid-template-columns: 1fr 2fr .7fr 1fr auto; gap: 8px; align-items: end; background: #f8f8fc; border-radius: 12px; padding: 11px; }
.notice { border-radius: 10px; margin-bottom: 15px; padding: 12px 15px; }
.notice.success { color: #145b38; background: #e2f4eb; }
.notice.error { color: #9c2128; background: #fdecef; }
.notice ul { margin: 0; padding-left: 15px; }
.menu-toggle, .mobile-bar, .print-brand { display: none; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.14fr 1fr; background: #fff; }
.login-story { isolation: isolate; position: relative; overflow: hidden; display: grid; align-content: center; min-height: 330px; gap: 18px; background: linear-gradient(140deg,#191b28,#36263f 68%,#6b2b3b); color: #fff; padding: 9vw 7vw; }
.login-story h1 { font-size: clamp(2.7rem, 7.2vw, 6rem); }
.login-story p { color: #f1e3ed; line-height: 1.5; }
.login-pattern { top: auto; bottom: -100px; right: -25px; width: 360px; height: 360px; }
.login-panel { width: min(100%,480px); justify-self: center; align-self: center; padding: 38px 30px; }
.login-panel .brand { width: 192px; margin-bottom: 28px; }
.login-panel h2 { font-size: 1.45rem; margin-bottom: 20px; }
@media (max-width: 960px) {
    .shell { grid-template-columns: 198px minmax(0,1fr); }
    .content, .topbar { padding-inline: 18px; }
    .metrics { gap: 10px; }
    .metric { padding-inline: 12px; }
}
@media (max-width: 740px) {
    .shell { display: block; }
    .topbar { position: sticky; z-index: 5; top: 0; min-height: 58px; padding-inline: 12px; }
    .sidebar { display: none; }
    .sidebar.visible { display: flex; position: fixed; z-index: 6; top: 58px; bottom: 64px; height: auto; width: min(300px, 90vw); box-shadow: 24px 0 65px #1718274a; }
    .menu-toggle { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 6px 9px; border: 1px solid var(--line); color: var(--ink); font-weight: 720; border-radius: 9px; background: white; }
    .account { gap: 5px; }
    .account-name { font-size: .77rem; }
    .account small { font-size: .7rem; }
    .avatar { width: 30px; height: 30px; }
    .content { padding: 14px 12px calc(95px + env(safe-area-inset-bottom)); }
    .hero { align-items: flex-start; flex-direction: column; min-height: 176px; gap: 14px; padding: 19px; border-radius: 16px; }
    .hero p { font-size: .9rem; }
    .hero-pattern { right: -123px; }
    .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin-block: 12px; }
    .metric { min-height: 112px; padding: 11px 12px; gap: 6px; }
    .metric strong { font-size: 1.6rem; }
    .metric-label { font-size: .8rem; }
    .dashboard-grid, .form-grid, .detail-grid, .login { grid-template-columns: minmax(0,1fr); }
    .dashboard-grid { gap: 12px; }
    .panel-title { padding: 14px 12px; }
    .stream-row { padding: 10px 12px; gap: 8px; }
    .stream-icon { width: 30px; height: 30px; }
    .records, .records tbody, .records tr, .records td { display: block; }
    .records thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
    .records tr { padding: 6px 12px; border-bottom: 1px solid var(--line); }
    .records td { display: grid; grid-template-columns: minmax(80px,.45fr) minmax(0,1fr); gap: 9px; border: 0; padding: 5px 0; }
    .records td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 700; }
    .records td.row-action { display: flex; justify-content: flex-end; }
    .quote-line { grid-template-columns: 1fr 1fr; }
    .quote-line > label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
    .mobile-bar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: fixed; z-index: 8; inset: auto 0 0; background: #fff; padding: 4px 5px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); box-shadow: 0 -5px 21px #17203f0b; }
    .mobile-bar a { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 49px; font-size: .67rem; color: #33394c; font-weight: 700; text-align: center; }
    .mobile-bar .mobile-primary { background: #fdecef; color: #a31720; border-radius: 10px; }
    .login-story { min-height: 245px; padding: 28px 23px; }
    .login-panel { align-self: start; padding: 24px 20px 38px; }
}
@media print {
    body, .panel { background: #fff; }
    .sidebar, .topbar, .mobile-bar, .back, .actions, .skip { display: none !important; }
    .shell { display: block; }
    .content { padding: 0; }
    .print-brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
    .records tr { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.account-panel { max-width: 620px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.calendar-toolbar h2 { font-size: 1.22rem; }
.calendar-month { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekday { padding: 9px 8px; font-weight: 740; font-size: .79rem; color: var(--muted); background: #f7f7fa; text-align: center; }
.calendar-day { min-width: 0; min-height: 104px; padding: 5px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { background: #f7f7fa; color: var(--muted); }
.calendar-day.selected { background: #fdf2f3; }
.calendar-day.today { background: #fff4dd; box-shadow: inset 0 0 0 1px #ddb56a; }
.calendar-number { display: grid; place-items: center; border-radius: 8px; width: 28px; height: 28px; font-weight: 700; font-size: .85rem; }
.calendar-number:hover { background: #eee6f4; }
.calendar-day.today .calendar-number { background: #865015; color: #fff; }
.calendar-today-mark, .agenda-today-mark { color: #74410d; font-size: .72rem; font-weight: 700; }
.calendar-today-mark { display: none; margin-right: auto; }
@media (min-width: 1120px) { .calendar-today-mark { display: inline; } }
.calendar-item { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 4px; padding: 5px; border-radius: 6px; color: #56358b; background: #f1e9fc; font-size: .73rem; }
.calendar-item.done { color: #126543; background: #e4f7ed; }
.calendar-item:hover { text-decoration: underline; }
.calendar-item time { font-weight: 750; }
.calendar-agenda { margin-top: 15px; }
.calendar-agenda h3 { font-size: .88rem; color: #3e455d; background: #f6f6fa; padding: 10px 15px; }
@media (min-width: 1100px) {
    .records th { padding-block: 13px; }
    .records tbody tr:hover { background: #fafafe; }
    .records td:first-child { font-weight: 630; }
    .schedule + .calendar-agenda:not(:target) .stream-row { min-height: 54px; }
}
@media (max-width: 740px) {
    .calendar-month { display: none; }
    .calendar-toolbar h2 { font-size: 1rem; }
    .calendar-toolbar { padding-inline: 12px; }
}
.mobile-brand { display: none; }
@media (max-width: 740px) {
    .mobile-brand { display: block; flex: 0 0 84px; }
    .mobile-brand .brand { width: 84px; }
    .topbar { gap: 7px; }
}
@media (max-width: 350px) {
    .mobile-brand { flex-basis: 72px; }
    .mobile-brand .brand { width: 72px; }
    .account .avatar { display: none; }
}
.archive-shortcut { margin-top: 16px; }
.archive-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.archive-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.archive-grid .stream-row { border: 1px solid var(--line); }
@media (max-width: 740px) { .archive-grid { grid-template-columns: 1fr; } }
.hero-actions { z-index: 1; flex: none; }
.hero-secondary { background: #ffffff14; border-color: #ffffff57; color: #fff; }
.hero-secondary:hover { background: #ffffff26; }
.calendar-toolbar { flex-wrap: wrap; }
.period-title, .calendar-day-head, .calendar-modes, .agenda-day { display: flex; gap: 8px; align-items: center; }
.period-title { gap: 14px; flex-wrap: wrap; }
.calendar-modes .button { padding-inline: 11px; }
.calendar-modes .selected-mode { color: #a31720; background: #fdecef; border-color: #f1b6bc; }
.calendar-day-head { justify-content: space-between; margin-bottom: 4px; }
.calendar-slot-add { display: grid; place-items: center; min-width: 30px; min-height: 28px; border-radius: 7px; background: #fdecef; color: #a31720; font-weight: 760; }
.calendar-slot-add:hover { background: #fad7db; }
.calendar-week .calendar-day { min-height: 160px; }
.calendar-item { color: var(--accent, #56358b); background: var(--tint, #f1e9fc); }
.calendar-item.cancelled { text-decoration: line-through; color: #555a6e; background: #eef0f4; }
.calendar-hours { padding: 15px; }
.calendar-hours h3 { margin-bottom: 10px; }
.calendar-hour-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); gap: 7px; }
.calendar-hour-grid .button { padding-inline: 6px; }
.calendar-hour-grid span { color: var(--brand); font-weight: 760; }
.agenda-day { background: #f6f6fa; justify-content: space-between; padding-right: 15px; }
.agenda-day.agenda-today, .agenda-today h3 { background: #fff4dd; }
.agenda-today-mark { margin-inline-start: 4px; padding: 2px 6px; border-radius: 5px; background: #ffebc2; }
.agenda-add { min-height: 42px; display: inline-flex; align-items: center; }
.checkbox-row { display: flex; align-items: center; }
.checkbox-row input { width: 18px; min-height: 18px; }
@media (max-width: 740px) {
    .period-title { gap: 8px; }
    .calendar-modes .button { min-width: 55px; }
    .calendar-hour-grid { grid-template-columns: repeat(auto-fit,minmax(73px,1fr)); }
}
.operations-panel { margin: 0 0 15px; }
.operations-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 16px; }
.grid-ready .grid-fallback, .grid-ready .grid-fallback-search { display: none; }
.grid-ready form.filters:has(.grid-fallback-search):not(:has(select)) { display: none; }
.grid-link { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 10px; border: 1px solid #f1d6db; background: #fff3f4; color: #a31720; border-radius: 8px; font-size: .81rem; font-weight: 730; white-space: nowrap; }
.grid-link:hover { background: #fde4e8; }
.data-grid thead th { background: #f1f3f8; color: #343b53; }
.data-grid tbody tr:nth-child(even) { background: #fafbfe; }
.data-grid tbody td { padding: 11px 13px; }
div.dt-container { margin: 0; color: inherit; }
div.dt-container .dt-layout-row { margin: 0; padding: 10px 16px; gap: 8px; }
div.dt-container .dt-layout-row.dt-layout-table { display: table; padding: 0; }
div.dt-container .dt-layout-table .dt-layout-cell { padding: 0; }
div.dt-container .dt-layout-row:last-child { border-top: 1px solid var(--line); }
div.dt-container .dt-length select, div.dt-container .dt-search input { border-color: #d5dae6; border-radius: 9px; background: #fff; }
div.dt-container .dt-length select { width: auto; min-width: 64px; }
div.dt-container .dt-search input { width: min(28vw,230px); }
div.dt-container .dt-paging .dt-paging-button { border-radius: 8px; min-height: 42px; }
div.dt-container .dt-paging .dt-paging-button.current { background: #fdecef; color: #a31720 !important; border-color: #f3c5ca; }
div.dt-container table.dataTable { border-bottom: 0; margin: 0; }
.grid-mobile-sort { display: none; }
.grid-error .dt-container::before { display: block; padding: 13px 16px; content: "Tablo yüklenemedi. Sayfayı yenileyip tekrar deneyin."; color: #a31720; }
@media (max-width: 740px) {
    div.dt-container .dt-layout-row, div.dt-container .dt-layout-row.dt-layout-table, div.dt-container .dt-layout-cell { display: block; width: 100%; }
    div.dt-container .dt-layout-row:not(.dt-layout-table) > .dt-layout-cell + .dt-layout-cell { margin-top: 8px; }
    div.dt-container .dt-search { display: flex; gap: 6px; align-items: center; }
    div.dt-container .dt-search input { width: 100%; min-width: 0; margin: 0; }
    div.dt-container .dt-paging .dt-paging-button { padding: 7px 8px; min-width: 32px; }
    .grid-mobile-sort { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px 0; }
    .grid-mobile-sort select { max-width: 72%; }
    .data-grid tbody td { padding: 6px 0; }
    .data-grid tbody td.dt-empty { display: block; }
}
@media print {
    div.dt-container .dt-layout-row:not(.dt-layout-table), .grid-mobile-sort { display: none !important; }
}
.reporting { margin: 25px 0 18px; }
.reporting-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.reporting-header h2 { font-size: 1.34rem; }
.reporting-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.report-chart { margin: 0; padding: 16px; }
.report-chart figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.report-chart h3 { font-size: 1rem; margin-bottom: 4px; }
.report-chart p { color: var(--muted); font-size: .8rem; }
.report-bars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(3px, 1vw, 11px); }
.report-bars li { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.report-bar-space { width: 100%; height: 132px; border-bottom: 1px solid #dfe2ed; display: flex; align-items: end; justify-content: center; background: linear-gradient(0deg, transparent 95%, #e8ebf6 95%) 0 0/100% 34px; }
.report-bar { position: relative; min-height: 1px; width: min(90%, 38px); height: var(--value); border-radius: 6px 6px 0 0; background: linear-gradient(0deg, #7190ef, #4f6ddb); }
.report-bar > span { position: absolute; color: #31416f; font-size: .73rem; font-weight: 720; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); }
.report-axis-label { font-size: .72rem; color: var(--muted); }
.status-chart { display: flex; height: 20px; border-radius: 999px; overflow: hidden; margin: 17px 0 4px; }
.status-chart span { flex: var(--segment-weight) 0 0; background: var(--segment-color); }
.chart-legend, .chart-rank { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .82rem; }
.chart-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 7px; }
.chart-legend i { background: var(--segment-color); width: 8px; height: 8px; border-radius: 3px; }
.chart-rank li div { display: flex; justify-content: space-between; gap: 7px; align-items: baseline; }
.chart-track { display: block; height: 7px; margin-top: 4px; border-radius: 999px; background: #eef0f7; overflow: hidden; }
.chart-track i { display: block; width: var(--value); height: 100%; border-radius: inherit; background: #6e57c5; }
.renewals-chart .chart-track i { background: #b87920; }
@media (max-width: 740px) {
    .reporting-grid { grid-template-columns: minmax(0,1fr); }
    .report-bars:has(li:nth-child(12)) .report-bar > span { font-size: .59rem; }
    .report-bars:has(li:nth-child(12)) .report-axis-label { font-size: .61rem; }
}
.embedded-calendar { margin: 23px 0; scroll-margin-top: 74px; }
.calendar-heading { align-items: center; }
.calendar-heading h2 { font-size: 1.34rem; }
@media (min-width: 741px) {
    .embedded-calendar .month-agenda { display: none; }
}
.select2-container { max-width: 100%; min-width: 0; }
label > .select2-container { width: 100% !important; }
.select2-container .select2-selection--single { border: 1px solid #ccd0df; min-height: 44px; border-radius: 9px; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 11px; padding-right: 27px; color: #1b2235; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 42px; right: 6px; }
.select2-container--open .select2-selection--single, .select2-container--focus .select2-selection--single { border-color: #6f76d6; }
.select2-dropdown { border-color: #ccd0df; border-radius: 9px; overflow: hidden; }
.select2-results__option { padding: 8px 10px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #284aa6; }
.select2-container--default .select2-search--dropdown .select2-search__field { border-color: #ccd0df; }
.filters > .select2-container { flex: 1 1 140px; max-width: 250px; }
.dt-length > .select2-container { width: auto !important; min-width: 58px; margin: 0 4px; }
.grid-tools { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 11px 15px 0; }
.grid-columns { display: contents; }
.grid-columns summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid #d6d8e3; border-radius: 9px; color: #30364b; background: white; cursor: pointer; font-weight: 720; font-size: .86rem; }
.grid-columns summary::-webkit-details-marker { display: none; }
.grid-columns summary::after { content: "▾"; padding-left: 6px; }
.grid-columns[open] summary::after { content: "▴"; }
.grid-columns:not([open]) > :not(summary) { display: none; }
.grid-filter-fields { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); padding: 9px 12px; gap: 8px; border-radius: 9px; background: #f2f4fa; order: 4; }
.grid-columns > button { order: 5; }
@media print { .grid-tools { display: none !important; } }
.quote-editor { display: grid; grid-template-columns: minmax(0,1fr) minmax(248px,.34fr); gap: 16px; align-items: start; }
.quote-summary { position: sticky; top: 12px; }
.quote-section-head { display:flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.quote-section-head h2 { margin: 0; }
.quote-editor .quote-line { grid-template-columns: .75fr 2fr .6fr .9fr .95fr auto; }
.quote-line output { font-size: .87rem; min-height: 44px; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.quote-calculation { padding: 0; margin: 0; font-variant-numeric: tabular-nums; }
.quote-calculation div { display: flex; justify-content: space-between; gap: 7px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.quote-calculation dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.quote-calculation div:last-child { border: 0; color: #a31720; font-weight: 750; }
@media (max-width: 1120px) {
    .quote-editor .quote-line { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .quote-editor .quote-line > label:nth-child(2) { grid-column: span 2; }
}
@media (max-width: 740px) {
    .quote-editor { grid-template-columns: minmax(0,1fr); }
    .quote-summary { position: static; }
    .quote-editor .quote-line { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .quote-editor .quote-line > label:nth-child(2) { grid-column: 1 / -1; }
}
.calendar-item[draggable] { cursor: grab; }
.calendar-item.being-dragged { opacity: .45; cursor: grabbing; }
.calendar-day.calendar-drop-target { background: #e6edff; box-shadow: inset 0 0 0 2px #577ad8; }
.calendar-feedback:not(.sr-only) { padding: 8px 14px; background: #ecf0ff; color: #2342a0; }
.calendar-move { align-items: end; }
@media (max-width: 740px) {
    .page-head .actions { max-width: 100%; }
    .actions .button { white-space: normal; }
    .detail-grid, .form-grid, .panel, .records, .grid-filter-fields, .schedule, .embedded-calendar { min-width: 0; }
    .calendar-day-head .calendar-slot-add { min-height: 44px; }
    .agenda-day { gap: 4px; padding-right: 10px; }
    .agenda-day h3 { padding-left: 10px; }
}
.nav-icon { display: inline-block; flex: 0 0 auto; width: 19px; height: 19px; min-width: 0; vertical-align: middle; }
.sidebar-menu { row-gap: 5px !important; }
.sidebar-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 11px; min-height: 42px; border-radius: 10px; color: #3f445b; font-size: .875rem; font-weight: 660; cursor: pointer; }
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary:hover, .sidebar-group[open] summary { background: #f6f6fa; }
.menu-chevron { margin-left: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; padding: 3px; transform: rotate(45deg); }
.sidebar-group[open] .menu-chevron { transform: translateY(3px) rotate(225deg); }
.sidebar-links { margin: 4px 0 4px 20px; border-left: 1px solid var(--line); padding-left: 5px; display: grid; gap: 2px; }
.sidebar nav .sidebar-links a { min-height: 36px; padding: 5px 7px; font-size: .82rem; }
.sidebar-links .nav-icon { width: 16px; height: 16px; }
.quote-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.quote-editor h2 .nav-icon { margin-right: 4px; color: #a31720; }
.quote-editor .quote-line { padding: 13px; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; }
.quote-product-picker { grid-column: 1 / -1; }
.quote-editor label[hidden] { display: none; }
.quote-calculation div.quote-grand-total { border-top: 1px solid var(--brand); color: var(--ink); }
@media (max-width: 740px) {
    .quote-editor .quote-line { padding: 10px; }
    .quote-editor .quote-line > label:nth-child(2) { grid-column: auto; grid-row: auto; }
    .quote-editor .quote-line > label:nth-child(3) { grid-column: 1 / -1; }
    .sidebar nav .sidebar-links a { min-height: 42px; }
}
.quote-detail-banner { border-radius: var(--radius); background: #252539; color: #fff; padding: 16px 20px; align-items: center; }
.quote-line [data-line-total] { font-weight: 720; }
