:root {
  --ink: #18213f;
  --muted: #66708a;
  --line: #dde2f0;
  --line-soft: #edf0f7;
  --paper: #ffffff;
  --canvas: #f5f7fc;
  --green-950: #111a49;
  --green-800: #27348b;
  --green-650: #27348b;
  --green-100: #e9ecf8;
  --mint: #edf0ff;
  --amber: #f3aa43;
  --amber-soft: #fff1d8;
  --red: #c9514a;
  --red-soft: #fde9e7;
  --blue: #3a4eaa;
  --blue-soft: #e9ecf8;
  --shadow: 0 14px 35px rgba(24, 33, 95, .09);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.45 Calibri, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.auth-gate { position: fixed; inset: 0; z-index: 1000; display: block; overflow: auto; background: radial-gradient(circle at 50% -12%,rgba(119,137,222,.42),transparent 38%), radial-gradient(circle at 9% 91%,rgba(70,91,186,.28),transparent 31%), linear-gradient(145deg,#111a49,#27348b 61%,#3d51ac); }
body.authenticated .auth-gate { display: none; }
.auth-layout { position: relative; width: 100%; min-height: 100dvh; display: flex; align-items: center; flex-direction: column; padding: clamp(28px,4.5vh,52px) clamp(22px,3vw,48px) 42px; }
.auth-login-stack { position: relative; z-index: 1; width: min(440px,100%); display: grid; justify-items: center; gap: clamp(22px,3vh,28px); }
.auth-logo-wrap { display: grid; place-items: center; min-height: 84px; }
.auth-logo { display: block; width: min(300px,72vw); height: auto; filter: drop-shadow(0 12px 24px rgba(4,9,39,.22)); }
.auth-card { width: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.48); border-radius: 20px; background: rgba(255,255,255,.985); box-shadow: 0 26px 72px rgba(5,10,40,.32); }
.auth-card-body { padding: 27px 30px 28px; }
.auth-brand { display: grid; gap: 3px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { color: #222b48; font-size: 16px; font-weight: 800; letter-spacing: .055em; }
.auth-brand small { color: var(--muted); font-size: 11px; font-weight: 600; }
.auth-heading { margin-bottom: 18px; }.auth-heading span { color: #27348b; font-size: 9px; font-weight: 900; letter-spacing: .16em; }.auth-heading h1 { margin: 4px 0 3px; font-size: 25px; }.auth-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-form { display: grid; gap: 13px; }.auth-form label { color: #3f4965; font-size: 10px; font-weight: 800; }.auth-form input { width: 100%; min-height: 44px; margin-top: 5px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; font-size: 13px; }.auth-form input:focus { border-color: #6d7ed0; box-shadow: 0 0 0 3px rgba(58,78,170,.12); }
.auth-submit { width: 100%; min-height: 44px; margin-top: 3px; }.auth-error { margin: -2px 0 0; padding: 9px 10px; border-radius: 8px; color: #9a3530; background: var(--red-soft); font-size: 10px; }
.auth-password-hint { margin: -3px 0 0; color: var(--muted); font-size: 10px; }
.auth-error.success { color: #245d50; background: #e5f2ee; }
.auth-footnote { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.auth-quote { width: min(440px,100%); margin: 28px 0 0; padding: 0; color: rgba(255,255,255,.96); text-align: right; text-shadow: 0 2px 12px rgba(4,9,39,.28); }
.auth-quote blockquote { margin: 0; }
.auth-quote blockquote p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; text-wrap: balance; }
.auth-quote blockquote footer { margin-top: 11px; color: rgba(224,229,255,.9); font-size: 12px; }
.auth-quote cite { color: white; font-style: normal; font-weight: 700; }

@media (min-width: 1100px) {
  .auth-quote { position: absolute; right: clamp(28px,4vw,62px); bottom: clamp(24px,4vh,44px); width: min(330px,26vw); margin: 0; }
}

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 246px; display: flex; flex-direction: column; padding: 20px 16px; color: #f7f8ff; background: linear-gradient(175deg, #18245f 0%, #141f55 58%, #111a49 100%); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #27348b; background: white; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 19px; font-weight: 900; box-shadow: 0 5px 15px rgba(0,0,0,.16); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand small { margin-top: 1px; color: #aeb8e0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: grid; min-height: 0; gap: 4px; padding-right: 3px; overflow-y: auto; scrollbar-width: thin; }
.nav-section-label { padding: 13px 12px 4px; color: #7f8bc2; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 9px; color: #c5ccef; background: transparent; font-size: 11px; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #d4e3de; background: rgba(255,255,255,.06); }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: #1c286d; background: #eef0fb; font-weight: 800; }
.nav-item.active span { color: white; background: #3a4eaa; }
.sidebar-note { display: flex; gap: 10px; margin-top: auto; padding: 14px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: #d6dbf3; background: rgba(255,255,255,.04); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note small { margin-top: 3px; color: #98a4d4; font-size: 10px; }
.live-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #93a4ff; box-shadow: 0 0 0 4px rgba(147,164,255,.14); }
.profile { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.profile strong, .profile small { display: block; }
.profile > div { min-width: 0; }.profile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile strong { font-size: 12px; }
.profile small { color: #98a4d4; font-size: 10px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #27348b; background: #eef0fb; font-size: 11px; font-weight: 800; }
.profile-logout { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #c5ccef; background: rgba(255,255,255,.05); cursor: pointer; }.profile-logout:hover { color: white; background: rgba(255,255,255,.12); }

.app-shell { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 17px 30px; border-bottom: 1px solid rgba(221,226,240,.95); background: rgba(249,250,254,.94); backdrop-filter: blur(14px); }
.topbar h1 { margin: 1px 0 0; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 27px; line-height: 1.1; font-weight: 700; }
.eyebrow, .section-kicker { margin: 0; color: var(--green-650); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.top-actions, .toolbar { display: flex; align-items: center; gap: 9px; }
.today-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 12px; }

.page { display: none; padding: 24px 30px 44px; }
.page.active { display: block; animation: page-in .2s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(3px); } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 3px 18px rgba(24,33,95,.035); }
.btn { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: white; font-weight: 700; font-size: 12px; cursor: pointer; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(24,33,95,.08); }
.btn.primary { color: white; background: linear-gradient(135deg, #27348b, #3a4eaa); box-shadow: 0 4px 10px rgba(39,52,139,.18); }
.btn.accent { color: #3a2a0d; background: #f0bd61; }
.btn.ghost { border-color: var(--line); color: #46516e; background: white; }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 11px; }
.btn.danger { color: var(--red); border-color: #efcbc8; background: #fffafa; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 20px; cursor: pointer; }
.hidden { display: none !important; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { position: relative; overflow: hidden; min-height: 106px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.kpi-card::after { content: ""; position: absolute; right: -25px; bottom: -40px; width: 100px; height: 100px; border-radius: 50%; background: var(--tone, var(--green-100)); opacity: .7; }
.kpi-card .kpi-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi-card .kpi-value { margin-top: 8px; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 29px; line-height: 1; }
.kpi-card .kpi-detail { margin-top: 6px; color: var(--muted); font-size: 10px; }
.kpi-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--tone, var(--green-100)); }

.capacity-strip { margin-bottom: 16px; padding: 17px 19px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; }
.section-heading.compact { padding: 0 0 14px; }
.section-heading.page-heading { padding: 2px 0 20px; }
.section-heading h2 { margin: 3px 0 0; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 700; }
.section-heading h3 { margin: 3px 0; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.capacity-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.capacity-item { min-width: 0; }
.capacity-item header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.capacity-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.capacity-item span { color: var(--muted); font-size: 10px; }
.progress { overflow: hidden; height: 6px; border-radius: 99px; background: #e9ecf5; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--bar, var(--green-650)); }

.planning-panel { overflow: hidden; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fc; }
.segmented button { padding: 6px 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.segmented button.active { color: var(--green-800); background: white; box-shadow: 0 1px 4px rgba(24,33,95,.1); }
.period-label { min-width: 100px; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 14px; text-align: right; text-transform: capitalize; }
.planning-workspace { display: grid; grid-template-columns: 135px 250px minmax(0, 1fr); min-height: 620px; border-top: 1px solid var(--line); }
.view-switcher { padding: 13px 8px; border-right: 1px solid var(--line); background: white; }
.view-switcher-title { display: flex; align-items: center; justify-content: space-between; padding: 3px 7px 9px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.view-switcher-title button { width: 22px; height: 22px; border: 0; border-radius: 6px; color: var(--muted); background: #f2f5f4; cursor: pointer; }
.view-option { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 4px; padding: 9px 8px; border: 0; border-radius: 8px; color: #52607e; background: transparent; text-align: left; cursor: pointer; }
.view-option:hover { background: #f3f5fb; }
.view-option.active { color: var(--green-800); background: #e9ecf8; }
.view-option > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--green-650); background: white; font-size: 11px; }
.view-option strong, .view-option small { display: block; }
.view-option strong { font-size: 9px; }.view-option small { margin-top: 1px; color: var(--muted); font-size: 7px; }
.backlog { border-right: 1px solid var(--line); background: #f8f9fd; }
.backlog-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.backlog-header strong, .backlog-header small { display: block; }
.backlog-header small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.pulse-badge { padding: 4px 7px; border-radius: 99px; color: var(--green-650); background: var(--mint); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.backlog-filters { display: grid; grid-template-columns: 1fr 92px; gap: 6px; padding: 10px; }
.backlog-filters input, .backlog-filters select, .filterbar input, .filterbar select { min-width: 0; height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: white; font-size: 10px; }
.backlog-list { display: grid; gap: 9px; max-height: 630px; padding: 0 10px 12px; overflow: auto; }
.backlog-card { padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--priority-color, var(--green-650)); border-radius: 10px; background: white; box-shadow: 0 3px 10px rgba(24,33,95,.03); }
.backlog-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.backlog-card h4 { margin: 0; font-size: 12px; }
.backlog-card .customer { margin: 2px 0 8px; color: var(--muted); font-size: 9px; }
.backlog-card .operation-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px; border-radius: 7px; background: #f3f5fb; font-size: 10px; font-weight: 700; }
.backlog-card .meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin: 8px 0; color: var(--muted); font-size: 9px; }
.backlog-card .meta strong { display: block; margin-top: 1px; color: var(--ink); font-size: 10px; }
.backlog-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.backlog-card .due { color: var(--muted); font-size: 9px; }
.priority { display: inline-flex; padding: 3px 6px; border-radius: 99px; color: var(--priority-color, var(--green-650)); background: color-mix(in srgb, var(--priority-color, var(--green-650)) 12%, white); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.empty-state { display: grid; place-items: center; min-height: 180px; padding: 30px; color: var(--muted); text-align: center; }
.empty-state span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 9px; border-radius: 50%; background: var(--green-100); font-size: 20px; }

.schedule-area { min-width: 0; overflow: auto; background: white; }
.calendar-board { min-width: 1080px; }
.calendar-header, .calendar-row { display: grid; grid-template-columns: 150px repeat(14, minmax(65px, 1fr)); }
.calendar-header { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: white; }
.calendar-corner, .calendar-day { min-height: 56px; padding: 9px 6px; border-right: 1px solid var(--line-soft); }
.calendar-corner { display: flex; align-items: end; color: var(--muted); font-size: 9px; font-weight: 700; }
.calendar-day { text-align: center; }
.calendar-day strong, .calendar-day span { display: block; }
.calendar-day span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.calendar-day strong { margin-top: 3px; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 17px; }
.calendar-day.today { color: white; background: var(--green-650); }
.calendar-day.today span { color: #cce3da; }
.calendar-row { position: relative; min-height: var(--row-height, 82px); border-bottom: 1px solid var(--line-soft); }
.center-cell { grid-column: 1; grid-row: 1; z-index: 2; padding: 14px 10px; border-right: 1px solid var(--line); background: #fbfcfc; }
.center-cell strong, .center-cell span { display: block; }
.center-cell strong { font-size: 10px; }
.center-cell span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.day-cell { grid-row: 1; border-right: 1px solid var(--line-soft); background: repeating-linear-gradient(135deg, transparent, transparent 6px, rgba(238,243,241,.45) 7px); }
.day-cell.weekend { background: #fafbfb; }
.plan-bar { align-self: start; z-index: 3; min-width: 0; height: 31px; margin: var(--lane-top, 10px) 3px 0; padding: 5px 8px; overflow: hidden; border: 0; border-left: 3px solid var(--bar-color, var(--green-650)); border-radius: 6px; color: var(--ink); background: var(--bar-bg, var(--green-100)); text-align: left; cursor: pointer; box-shadow: 0 2px 5px rgba(30,60,52,.08); }
.plan-bar strong, .plan-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-bar strong { font-size: 9px; }
.plan-bar span { color: var(--muted); font-size: 8px; }
.plan-bar.locked::after { content: "• kilitli"; float: right; color: var(--green-650); font-size: 7px; }
.production-month { min-width: 560px; }
.production-month .month-day { position: relative; min-height: 122px; padding-bottom: 22px; }
.plan-month-chip { display: block; min-width: 0; width: 100%; margin-top: 4px; padding: 4px 6px; overflow: hidden; border: 0; border-left: 3px solid var(--chip-color, var(--green-650)); border-radius: 5px; color: var(--ink); background: var(--chip-bg, var(--green-100)); text-align: left; cursor: pointer; }
.plan-month-chip strong, .plan-month-chip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-month-chip strong { font-size: 8px; }.plan-month-chip span { color: var(--muted); font-size: 7px; }
.capacity-foot { position: absolute; right: 7px; bottom: 5px; left: 7px; display: flex; align-items: center; justify-content: space-between; color: #84938e; font-size: 7px; }
.capacity-foot i { width: 30px; height: 3px; overflow: hidden; border-radius: 99px; background: #e6ecea; }
.capacity-foot i::after { content: ""; display: block; width: var(--load, 0%); height: 100%; background: var(--load-color, var(--green-650)); }
.capacity-matrix { min-width: 1080px; }
.capacity-matrix-head, .capacity-matrix-row { display: grid; grid-template-columns: 150px repeat(var(--day-count), minmax(34px, 1fr)); }
.capacity-matrix-head { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: white; }
.matrix-corner, .matrix-day, .matrix-center, .matrix-cell { min-height: 48px; padding: 7px 4px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.matrix-corner { display: flex; align-items: end; padding-left: 10px; color: var(--muted); font-size: 8px; }
.matrix-day { text-align: center; }.matrix-day span, .matrix-day strong { display: block; }.matrix-day span { color: var(--muted); font-size: 7px; }.matrix-day strong { margin-top: 2px; font-size: 10px; }
.matrix-day.today { color: white; background: var(--green-650); }.matrix-day.today span { color: #cde3dc; }
.matrix-center { padding: 12px 9px; background: #fbfcfc; }.matrix-center strong, .matrix-center span { display: block; }.matrix-center strong { font-size: 9px; }.matrix-center span { color: var(--muted); font-size: 7px; }
.matrix-cell { display: grid; place-items: center; min-width: 34px; padding: 3px; background: color-mix(in srgb, var(--cell-color, #e7f0ed) var(--load, 0%), white); font-size: 7px; }
.matrix-cell.over { color: white; background: var(--red); font-weight: 900; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #f8faf9; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); font-size: 10px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfdfc; }
.status-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: var(--badge-color, var(--green-650)); background: var(--badge-bg, var(--green-100)); font-size: 8px; font-weight: 900; text-transform: uppercase; }

.activity-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.summary-tile { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.summary-tile span, .summary-tile strong { display: block; }
.summary-tile span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.summary-tile strong { margin-top: 5px; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 21px; }
.month-calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.month-head { min-height: 38px; padding: 11px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line-soft); color: var(--muted); background: #f8faf9; font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.month-day { min-height: 118px; padding: 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: white; }
.month-day.outside { background: #f8faf9; opacity: .55; }
.month-day.today { box-shadow: inset 0 0 0 2px var(--green-650); }
.month-number { color: var(--muted); font-size: 9px; font-weight: 800; }
.activity-chip { display: block; width: 100%; margin-top: 5px; padding: 5px 6px; border: 0; border-left: 2px solid var(--green-650); border-radius: 5px; background: var(--green-100); text-align: left; cursor: pointer; }
.activity-chip strong, .activity-chip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-chip strong { font-size: 8px; }.activity-chip span { color: var(--muted); font-size: 7px; }

.filterbar { display: grid; grid-template-columns: minmax(240px, 1fr) 180px 180px; gap: 9px; margin-bottom: 14px; }
.filterbar input, .filterbar select { height: 42px; font-size: 11px; }
.workorder-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.workorder-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 16px rgba(24,33,95,.035); }
.workorder-card > header { display: flex; justify-content: space-between; gap: 15px; padding: 16px 18px 12px; }
.status-stack { display: grid; justify-items: end; gap: 5px; }
.type-badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; color: #46527b; background: #edf0f8; font-size: 8px; font-weight: 800; }
.workorder-card h3 { margin: 0; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 18px; }
.workorder-card .wo-customer { margin-top: 2px; color: var(--muted); font-size: 10px; }
.workorder-facts { display: grid; grid-template-columns: repeat(4,1fr); margin: 0 18px 13px; padding: 10px 0; border-block: 1px solid var(--line-soft); }
.workorder-facts div { padding: 0 9px; border-right: 1px solid var(--line-soft); }
.workorder-facts div:last-child { border: 0; }
.workorder-facts span, .workorder-facts strong { display: block; }
.workorder-facts span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.workorder-facts strong { margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.route-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0 18px 16px; overflow: visible; }
.fulfillment-flow { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 18px 9px; }
.fulfillment-flow span { padding: 5px 7px; border: 1px solid #dbe0f1; border-radius: 7px; color: var(--green-800); background: #f3f5fb; font-size: 8px; }
.route-node { flex: 0 0 auto; padding: 6px 8px; border-radius: 7px; color: var(--muted); background: #f1f3f9; font-size: 9px; }
.route-node.done { color: var(--green-650); background: var(--green-100); }
.route-node.active { color: #80510c; background: var(--amber-soft); }
.route-arrow { color: #b5c0bc; font-size: 10px; }

.route-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 15px; align-items: start; }
.route-list { display: grid; gap: 12px; }
.route-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.route-card header { display: flex; justify-content: space-between; gap: 15px; }
.route-card h3 { margin: 0; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 17px; }
.route-card p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.route-steps-flow { display: flex; align-items: stretch; gap: 7px; margin-top: 14px; overflow-x: auto; }
.route-step-card { flex: 1 0 125px; min-width: 125px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #f8faf9; }
.route-step-card span, .route-step-card strong, .route-step-card small { display: block; }
.route-step-card span { color: var(--green-650); font-size: 8px; font-weight: 900; }
.route-step-card strong { margin: 4px 0; font-size: 10px; }
.route-step-card small { color: var(--muted); font-size: 8px; }
.resource-panel { padding: 18px; }
.resource-panel h3 { margin: 4px 0 14px; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 18px; }
.resource-row { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.resource-row:last-child { border: 0; }
.resource-row header { display: flex; justify-content: space-between; font-size: 10px; }
.resource-row p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }

.list-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0 0; }
.list-pagination span { color: var(--muted); font-size: 10px; }
.support-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.support-list { display: grid; gap: 0; }
.support-row { display: grid; grid-template-columns: 135px minmax(180px,1.4fr) 1fr 1fr auto; gap: 15px; align-items: center; padding: 14px 17px; border-bottom: 1px solid var(--line-soft); }
.support-row:last-child { border-bottom: 0; }
.support-row strong, .support-row span, .support-row small { display: block; }
.support-row span, .support-row small { color: var(--muted); font-size: 9px; }
.support-row strong { margin-top: 2px; font-size: 11px; }
.resource-catalog, .personnel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.resource-card, .personnel-card { position: relative; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 16px rgba(31,44,104,.04); }
.resource-card::after { content: ""; position: absolute; right: -27px; bottom: -35px; width: 90px; height: 90px; border-radius: 50%; background: var(--green-100); }
.resource-card header, .personnel-card header { display: flex; justify-content: space-between; gap: 10px; }
.resource-card h3, .personnel-card h3 { margin: 0; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 17px; }
.resource-card p, .personnel-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.resource-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 15px; }
.resource-facts div { padding: 9px; border-radius: 8px; background: #f5f7fc; }
.resource-facts span, .resource-facts strong { display: block; }
.resource-facts span { color: var(--muted); font-size: 8px; }.resource-facts strong { margin-top: 2px; font-size: 11px; }
.member-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.member-chips span { padding: 4px 7px; border-radius: 999px; color: #33418f; background: #eef0fb; font-size: 8px; }
.toolbar-select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: 11px; }
.personnel-table-panel { margin-top: 15px; overflow: hidden; }
.capacity-management-layout { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: 15px; align-items: start; }
.capacity-calculator { padding: 19px; }
.capacity-calculator h3 { margin: 4px 0 16px; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 19px; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.calculation-result { margin-top: 16px; padding: 16px; border: 1px solid #cfd5ee; border-radius: 11px; background: linear-gradient(135deg,#f2f4fc,#e9ecf8); }
.calculation-result span, .calculation-result strong, .calculation-result small { display: block; }
.calculation-result span { color: var(--muted); font-size: 9px; }.calculation-result strong { margin: 3px 0; color: #27348b; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 27px; }.calculation-result small { color: var(--muted); font-size: 9px; }
.standard-list { overflow: auto; }
.transfer-summary { min-height: 110px; margin: 14px 0; padding: 13px; border: 1px solid #cfd5ee; border-radius: 10px; background: #f5f7fc; }
.transfer-summary strong, .transfer-summary span { display: block; }.transfer-summary strong { font-size: 13px; }.transfer-summary span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.form-tabs { display: flex; gap: 4px; margin: -3px 0 18px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #f5f7fc; }
.form-tabs button { flex: 1 0 auto; min-height: 34px; padding: 0 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.form-tabs button.active { color: white; background: #27348b; box-shadow: 0 3px 8px rgba(39,52,139,.18); }
.workorder-tab-panel { min-height: 290px; }
.number-preview { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; padding: 12px 14px; border-left: 4px solid #27348b; border-radius: 8px; background: #eef0fb; }
.number-preview span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }.number-preview strong { color: #27348b; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 18px; }
.form-section-title.no-top { margin-top: 0; padding-top: 0; border-top: 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: none; background: rgba(8,25,21,.52); backdrop-filter: blur(3px); }
.modal-backdrop.visible { display: block; }
.modal { position: fixed; inset: 50% auto auto 50%; z-index: 60; width: min(630px, calc(100vw - 30px)); max-height: calc(100vh - 30px); margin: 0; padding: 0; overflow: hidden; transform: translate(-50%,-50%); border: 0; border-radius: 17px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(0,0,0,.26); }
.modal.wide { width: min(1080px, calc(100vw - 30px)); }
.modal::backdrop { display: none; }
.modal form { display: flex; min-width: 0; flex-direction: column; max-height: calc(100vh - 30px); }
.modal-header { display: flex; flex: 0 0 auto; justify-content: space-between; gap: 20px; padding: 20px 23px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 23px; font-weight: 700; }
.modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.modal-header .close-modal { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 20px; cursor: pointer; }
.modal-body { min-height: 0; padding: 18px 23px 22px; overflow: auto; overscroll-behavior: contain; }
.modal-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 8px; padding: 13px 23px; border-top: 1px solid var(--line); background: #fafbfe; }
.modal-footer .btn { flex: 0 0 auto; white-space: nowrap; }
.form-grid { display: grid; gap: 13px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.span-2 { grid-column: span 2; }.span-4 { grid-column: span 4; }
label { display: block; color: #40534d; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
label > span { color: #91a09b; font-weight: 500; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); outline: none; background: white; font-size: 11px; font-weight: 500; letter-spacing: 0; }
label input, label select { min-height: 38px; }
label textarea { resize: vertical; }
label input:focus, label select:focus, label textarea:focus { border-color: #5969bd; box-shadow: 0 0 0 3px rgba(39,52,139,.1); }
select[multiple] { min-height: 82px; }
.form-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 21px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title small { color: var(--muted); font-size: 8px; }
.workorder-line { position: relative; display: grid; min-width: 0; grid-template-columns: 28px minmax(0,1fr) 28px; gap: 9px; margin-bottom: 10px; padding: 13px 9px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.line-number { display: grid; place-items: center; align-self: start; width: 25px; height: 25px; margin-top: 18px; border-radius: 7px; color: white; background: var(--green-650); font-size: 9px; font-weight: 900; }
.line-fields { display: grid; min-width: 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.line-fields > label { min-width: 0; }
.product-select input { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }.product-entry .btn { min-height: 36px; padding-inline: 12px; }
.remove-line, .remove-step { align-self: start; width: 26px; height: 26px; border: 1px solid #efd4d1; border-radius: 7px; color: var(--red); background: white; cursor: pointer; }
.locked-product-info { display: grid; grid-template-columns: 1fr 1.8fr 1fr 1.2fr; gap: 9px; padding: 9px 10px; border-radius: 8px; color: var(--muted); background: #edf3f0; font-size: 9px; }
.locked-product-info strong { display: block; margin-top: 2px; color: var(--ink); font-size: 10px; }
.locked-product-info .stock-warning strong { color: var(--red); }
.selection-summary { margin-bottom: 14px; padding: 12px 13px; border: 1px solid #cfe2db; border-radius: 10px; background: #f0f7f4; }
.selection-summary strong { display: block; font-size: 12px; }
.selection-summary span { color: var(--muted); font-size: 9px; }
.worker-label { margin-top: 13px; }
.duration-estimate { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 13px; }
.duration-estimate div { padding: 10px; border-radius: 9px; background: #f3f6f5; }
.duration-estimate span, .duration-estimate strong { display: block; }
.duration-estimate span { color: var(--muted); font-size: 8px; }.duration-estimate strong { margin-top: 2px; font-size: 11px; }
.check-row { display: flex; align-items: center; gap: 7px; margin-top: 13px; }
.check-row input { width: auto; min-height: 0; margin: 0; }
.optimizer-controls { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 12px; align-items: end; }
.range-control { display: flex; align-items: center; gap: 9px; min-height: 38px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.range-control input { min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
.range-control strong { min-width: 34px; color: var(--green-650); font-size: 11px; }
.optimization-empty { display: grid; place-items: center; min-height: 240px; margin-top: 18px; border: 1px dashed #cad7d2; border-radius: 12px; color: var(--muted); text-align: center; }
.optimization-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #825815; background: var(--amber-soft); font-size: 22px; }
.optimization-empty strong { margin-top: -35px; color: var(--ink); }
.optimization-empty p { margin-top: -50px; font-size: 10px; }
.optimization-result { margin-top: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.optimization-result header { display: flex; justify-content: space-between; padding: 12px; border-bottom: 1px solid var(--line); background: #fafcfb; }
.optimization-result header span { color: var(--muted); font-size: 9px; }
.route-step-row { display: grid; grid-template-columns: 24px minmax(0,1fr) 28px; gap: 7px; margin-bottom: 8px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.drag-handle { align-self: center; color: #a9b7b2; cursor: grab; }
.route-step-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }

/* ERP ana kabuğu ve satış / sevkiyat modülleri */
.welcome-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 24px 26px; overflow: hidden; border-radius: 18px; color: white; background: linear-gradient(125deg,#18245f 0%,#27348b 62%,#4660c5 100%); box-shadow: 0 13px 32px rgba(24,36,95,.18); }
.welcome-panel h2 { margin: 4px 0; font-size: 25px; }.welcome-panel p { margin: 0; color: #dce1fb; font-size: 11px; }.welcome-panel .section-kicker { color: #c8d0ff; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.welcome-actions .btn.primary { color: #27348b; background: white; }.welcome-actions .btn.ghost { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.home-kpis, .offer-summary, .shipment-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.home-kpi, .summary-card { padding: 16px 17px; border: 1px solid var(--line); border-radius: 13px; background: white; }.home-kpi span, .summary-card span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }.home-kpi strong, .summary-card strong { display: block; margin-top: 5px; font-size: 24px; }.home-kpi small, .summary-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.home-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.7fr); gap: 16px; margin-bottom: 16px; }.home-module-panel, .attention-panel, .recent-panel { padding: 18px; }.home-layout .section-heading, .recent-panel .section-heading, .notification-layout .section-heading { padding: 0 0 14px; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.module-card { position: relative; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; cursor: pointer; transition: .16s ease; }.module-card:hover { border-color: #abb4df; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(39,52,139,.09); }.module-card .module-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 10px; border-radius: 10px; color: #27348b; background: #e9ecf8; font-size: 17px; }.module-card strong, .module-card span { display: block; }.module-card strong { font-size: 12px; }.module-card span { margin-top: 3px; color: var(--muted); font-size: 9px; }.module-card b { position: absolute; top: 15px; right: 15px; min-width: 24px; padding: 3px 6px; border-radius: 99px; color: #27348b; background: #eef0fb; font-size: 9px; text-align: center; }
.attention-list, .recent-list { display: grid; gap: 8px; }.attention-item, .recent-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; padding: 10px; border-radius: 9px; background: #f7f8fc; }.attention-item i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--attention,#df9a35); }.attention-item strong, .attention-item span, .recent-item strong, .recent-item span { display: block; }.attention-item strong, .recent-item strong { font-size: 10px; }.attention-item span, .recent-item span { margin-top: 2px; color: var(--muted); font-size: 8px; }.recent-list { grid-template-columns: repeat(3,minmax(0,1fr)); }.recent-item > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; margin: 0; border-radius: 8px; color: #27348b; background: #e9ecf8; font-size: 13px; }
.module-filterbar { margin-bottom: 15px; }.four-filter { grid-template-columns: minmax(220px,1.6fr) repeat(3,minmax(140px,.65fr)); }
.offer-filterbar { grid-template-columns: minmax(220px,1.7fr) repeat(5,minmax(120px,.65fr)); }
.record-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.shipment-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 3px 14px rgba(24,33,95,.035); }.shipment-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.shipment-card h3 { margin: 0; font-size: 15px; }.shipment-card header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.record-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 13px 0; padding: 11px; border-radius: 9px; background: #f7f8fc; }.record-facts span, .record-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; }.record-facts span { color: var(--muted); font-size: 8px; }.record-facts strong { margin-top: 2px; font-size: 10px; white-space: nowrap; }.record-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line-soft); }.record-card-footer > span { color: var(--muted); font-size: 9px; }.record-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.reminder-band { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 7px 9px; border-radius: 8px; color: #6d4b17; background: #fff3df; font-size: 9px; }.reminder-band.due { color: #a33f39; background: #fdecea; }.reminder-band.done { color: #365c51; background: #eaf3f0; }
.offer-table-panel { min-width: 0; overflow: hidden; }
.offer-table-scroll { width: 100%; overflow-x: auto; }
.offer-table { min-width: 1160px; }
.offer-table th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; white-space: nowrap; }
.offer-table td { padding: 8px 10px; }
.offer-table tbody tr:last-child td { border-bottom: 0; }
.offer-table th:first-child { width: 150px; }.offer-table th:nth-child(2) { width: 220px; }.offer-table th:nth-child(7) { width: 205px; }.offer-table th:last-child { width: 205px; }
.offer-number-link { display: block; max-width: 155px; padding: 0; overflow: hidden; border: 0; color: #27348b; background: transparent; font: inherit; font-weight: 900; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.offer-number-link:hover { text-decoration: underline; }
.offer-row-meta, .offer-customer-cell span, .offer-followup span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.offer-customer-cell { max-width: 220px; }.offer-customer-cell strong, .offer-customer-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.offer-customer-cell strong { display: block; font-size: 10px; }
.offer-nowrap { white-space: nowrap; }
.offer-followup { max-width: 205px; padding: 5px 7px; border-radius: 7px; color: #62501f; background: #fff6e4; }.offer-followup strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.offer-followup.due { color: #9b3f38; background: #fdecea; }.offer-followup.due span { color: #9b3f38; }
.offer-table-muted { color: var(--muted); font-size: 9px; white-space: nowrap; }
.offer-row-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.offer-status-draft { --badge-color:#5f6b68; --badge-bg:#edf0ef; }.offer-status-sent { --badge-color:#315f98; --badge-bg:#e6eff9; }.offer-status-negotiation { --badge-color:#65509a; --badge-bg:#eeeafa; }.offer-status-revisionrequested { --badge-color:#93601e; --badge-bg:#fff0d8; }.offer-status-won { --badge-color:#236c58; --badge-bg:#e2f1ec; }.offer-status-lost { --badge-color:#a13e38; --badge-bg:#fde8e6; }.offer-status-cancelled { --badge-color:#697572; --badge-bg:#edf0ef; }
.operation-progress-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }.operation-progress-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }.operation-progress-card header { display: flex; justify-content: space-between; gap: 8px; }.operation-progress-card h3 { margin: 0; font-size: 11px; }.operation-progress-card header span { color: var(--muted); font-size: 8px; }.operation-progress-card .progress { height: 7px; margin: 10px 0 7px; }.operation-progress-card footer { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; }.operation-progress-card footer strong { color: var(--ink); font-size: 9px; }
.support-row { cursor: pointer; }.support-row:hover { background: #f8f9fd; }.support-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }.timestamp-line { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0; }.timestamp-item { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; }.timestamp-item span, .timestamp-item strong, .timestamp-item small { display: block; }.timestamp-item span { color: var(--muted); font-size: 8px; text-transform: uppercase; }.timestamp-item strong { margin-top: 3px; font-size: 10px; }.timestamp-item small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.detail-modal { display: flex; flex-direction: column; }.detail-modal .modal-body { flex: 1 1 auto; }.detail-section { margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }.detail-section h3 { margin: 0 0 10px; font-size: 12px; }.detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.detail-grid div span, .detail-grid div strong { display: block; }.detail-grid div span { color: var(--muted); font-size: 8px; }.detail-grid div strong { margin-top: 3px; font-size: 10px; }.timeline { display: grid; gap: 0; }.timeline-item { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 9px; padding-bottom: 13px; }.timeline-item::before { content:""; position: absolute; top: 17px; bottom: 0; left: 9px; width: 1px; background: var(--line); }.timeline-item:last-child::before { display: none; }.timeline-dot { position: relative; z-index: 1; width: 19px; height: 19px; border: 5px solid #e9ecf8; border-radius: 50%; background: #27348b; }.timeline-item strong, .timeline-item span { display: block; }.timeline-item strong { font-size: 10px; }.timeline-item span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.shipment-order-summary { margin: 14px 0; }.photo-drop { display: grid; place-items: center; min-height: 155px; padding: 20px; border: 2px dashed #c5cce9; border-radius: 12px; background: #f8f9fd; text-align: center; cursor: pointer; }.photo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }.photo-drop > span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 0 8px; border-radius: 11px; color: #27348b; background: #e9ecf8; font-size: 20px; }.photo-drop strong { font-size: 11px; }.photo-drop small { margin-top: 3px; color: var(--muted); font-size: 8px; }.photo-queue { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 12px; }.photo-item { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }.photo-item img { display: block; width: 100%; height: 95px; object-fit: cover; }.photo-item div { padding: 7px; }.photo-item strong, .photo-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.photo-item strong { font-size: 8px; }.photo-item span { margin-top: 2px; color: var(--muted); font-size: 7px; }.modal-requirement { align-self: center; margin-right: auto; color: var(--red); font-size: 9px; }
.planning-source-notice { align-self: end; min-width: 0; min-height: 58px; padding: 8px 10px; border: 1px solid #cfd5ee; border-radius: 8px; background: #f5f7fc; }
.planning-source-notice span, .planning-source-notice strong { display: block; }.planning-source-notice span { color: var(--muted); font-size: 9px; }.planning-source-notice strong { margin-top: 4px; color: #27348b; font-size: 10px; }
.quality-plan-box { margin-bottom: 14px; padding: 14px; border: 1px solid #cfd5ee; border-radius: 11px; background: #f8f9fd; }
.quality-control-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.quality-option { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.quality-option.mandatory { border-color: #bac4ec; background: #f2f4fc; cursor: default; }.quality-option input { flex: 0 0 auto; width: auto; min-height: 0; margin: 2px 0 0; }.quality-option span, .quality-option strong, .quality-option small { display: block; min-width: 0; }.quality-option strong { font-size: 10px; }.quality-option small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.quality-requirement-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: -5px 0 12px; padding: 0 11px 11px; }.quality-requirement-list > span { padding: 7px 8px; border: 1px solid var(--line-soft); border-radius: 7px; background: #fafbfe; }.quality-requirement-list strong, .quality-requirement-list small { display: block; }.quality-requirement-list strong { font-size: 9px; }.quality-requirement-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.transfer-line-sources { display: grid; gap: 8px; margin: 0 0 14px; }.transfer-source-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,.65fr); align-items: end; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }.transfer-source-card > div strong, .transfer-source-card > div span { display: block; }.transfer-source-card > div strong { font-size: 10px; }.transfer-source-card > div span { margin-top: 3px; color: var(--muted); font-size: 8px; }.transfer-source-card label { margin: 0; }
.transfer-route-preview { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line-soft); }.transfer-route-preview > span { color: var(--muted); font-size: 8px; }.transfer-route-preview > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; }.transfer-route-preview > div strong { padding: 5px 7px; border: 1px solid #cfd5ee; border-radius: 7px; color: #27348b; background: #f2f4fc; font-size: 8px; }.transfer-route-preview > div i { color: var(--muted); font-style: normal; }
.record-facts small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.product-picker-filters { grid-template-columns: minmax(300px,1.5fr) minmax(190px,.7fr); }.product-picker-count { margin: 10px 0 7px; color: var(--muted); font-size: 9px; }.product-picker-list { display: grid; gap: 6px; }.product-picker-row { display: grid; grid-template-columns: minmax(115px,.65fr) minmax(280px,2fr) minmax(100px,.6fr) minmax(90px,.5fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }.product-picker-row:hover { border-color: #bbc5ec; background: #f8f9fd; }.product-picker-row div { min-width: 0; }.product-picker-row div strong, .product-picker-row div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.product-picker-row div strong { font-size: 9px; }.product-picker-row div span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.notification-health { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #ead6ae; border-radius: 10px; color: #69501e; background: #fff7e7; font-size: 10px; }.notification-health strong { display: block; }.notification-health span { display: block; margin-top: 2px; font-size: 8px; }.notification-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); gap: 15px; }.notification-layout > .panel { min-width: 0; padding: 17px; }.rule-list, .outbox-list { display: grid; gap: 8px; }.rule-row { display: grid; grid-template-columns: minmax(160px,1.3fr) minmax(150px,1fr) auto auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }.rule-row strong, .rule-row span { display: block; }.rule-row strong { font-size: 9px; }.rule-row span { color: var(--muted); font-size: 8px; }.switch-label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }.switch-label input { width: auto; min-height: 0; margin: 0; }.outbox-item { padding: 11px; border: 1px solid var(--line); border-radius: 9px; }.outbox-item header { display: flex; justify-content: space-between; gap: 8px; }.outbox-item strong, .outbox-item span, .outbox-item small { display: block; }.outbox-item strong { font-size: 9px; }.outbox-item span { margin-top: 3px; color: var(--muted); font-size: 8px; }.outbox-item small { margin-top: 5px; color: #27348b; font-size: 8px; }

/* Kullanıcı yönetimi */
.user-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.user-filterbar { grid-template-columns: minmax(260px,1fr) minmax(190px,240px); }
.user-table-panel { min-width: 0; overflow: hidden; }
.user-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.user-list-toolbar strong, .user-list-toolbar span { display: block; }.user-list-toolbar strong { font-size: 11px; }.user-list-toolbar span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.user-table-scroll { width: 100%; overflow-x: auto; }.user-table { min-width: 1120px; }.user-table th { white-space: nowrap; }.user-table tbody tr:last-child td { border-bottom: 0; }.user-row-passive { background: #fafbfb; }.user-row-passive td { color: #65706d; }
.user-person { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; min-width: 150px; }.user-person > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #27348b; background: #e9ecf8; font-size: 10px; font-weight: 900; }.user-person strong, .user-person small { display: block; }.user-person strong { font-size: 10px; }.first-login-note { margin-top: 2px; color: #9a6721; font-size: 8px; }
.user-table td > a { color: #27348b; font-weight: 700; text-decoration: none; }.user-table td > a:hover { text-decoration: underline; }.muted-value { color: var(--muted); font-size: 9px; }.user-module-count, .deactivation-date { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.last-login strong, .last-login small { display: block; }.last-login strong { font-size: 9px; }.last-login small, .user-never-login { margin-top: 2px; color: var(--muted); font-size: 8px; }.user-row-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.user-loading { display: grid; place-items: center; min-height: 240px; gap: 10px; color: var(--muted); text-align: center; }.user-loading > span { width: 28px; height: 28px; border: 3px solid #d9def1; border-top-color: #27348b; border-radius: 50%; animation: user-spin .8s linear infinite; }.user-loading strong { font-size: 10px; }.user-loading.idle > span { display: grid; place-items: center; width: 42px; height: 42px; border: 0; color: #27348b; background: #e9ecf8; animation: none; }.empty-state .user-loading { min-height: 0; } @keyframes user-spin { to { transform: rotate(360deg); } }
.user-status-field { align-self: end; min-height: 40px; margin: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; }
.permission-editor { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.permission-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }.permission-editor h3 { margin: 3px 0 0; font-size: 14px; }.permission-editor p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.permission-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.permission-matrix { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.permission-group { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfe; }.permission-group h4 { margin: 0 0 8px; color: #27348b; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }.permission-group > div { display: grid; gap: 6px; }.permission-option { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: flex-start; gap: 7px; min-height: 0; margin: 0; padding: 8px; border: 1px solid transparent; border-radius: 8px; background: white; cursor: pointer; }.permission-option:has(input:checked) { border-color: #c6cdec; background: #f1f3fb; }.permission-option input { width: 14px; min-height: 0; margin: 2px 0 0; accent-color: #27348b; }.permission-option span, .permission-option strong, .permission-option small { display: block; min-width: 0; }.permission-option strong { font-size: 9px; }.permission-option small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 400; }
.modal-context-note { align-self: center; margin-right: auto; color: var(--muted); font-size: 9px; }.reset-explainer { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 14px; border: 1px solid #cfd5ee; border-radius: 11px; background: #f6f7fc; }.reset-explainer > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #27348b; background: #e4e8f8; font-size: 20px; }.reset-explainer strong { display: block; font-size: 11px; }.reset-explainer p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.credential-modal .modal-frame { display: flex; flex-direction: column; max-height: calc(100vh - 30px); }.delivery-result { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid #cfd5ee; border-radius: 10px; background: #f6f7fc; }.delivery-result > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #27348b; background: #e4e8f8; font-weight: 900; }.delivery-result strong, .delivery-result p { display: block; }.delivery-result strong { font-size: 10px; }.delivery-result p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.delivery-result.warning { border-color: #ead6ae; background: #fff9ed; }.delivery-result.warning > span { color: #855916; background: #ffedc9; }.delivery-result.success { border-color: #c6ddd6; background: #f0f7f5; }.delivery-result.success > span { color: #276958; background: #dceee9; }
.temporary-password { margin-top: 12px; padding: 13px; border: 1px solid #bdc6ed; border-radius: 10px; background: #eef1fc; }.temporary-password > span, .temporary-password > small { display: block; }.temporary-password > span { color: #27348b; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.temporary-password > div { display: flex; align-items: center; gap: 8px; margin: 7px 0; }.temporary-password code { flex: 1 1 auto; min-width: 0; padding: 10px 11px; overflow: hidden; border: 1px solid #cbd2ef; border-radius: 8px; color: #18245f; background: white; font: 800 15px/1.2 Consolas, monospace; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }.temporary-password > small { color: var(--muted); font-size: 8px; }
.login-window-editor { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.login-window-editor p { margin: 4px 0 10px; color: var(--muted); font-size: 9px; }.login-window-days { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }.login-window-days .check-row { margin: 0; }

.detail-modal:not([open]) { display: none; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; width: min(350px,calc(100vw - 40px)); }
.toast { padding: 12px 14px; border: 1px solid #cde1d9; border-left: 4px solid var(--green-650); border-radius: 10px; color: var(--ink); background: white; box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast.error { border-color: #efd1ce; border-left-color: var(--red); }
.toast strong, .toast span { display: block; }.toast strong { font-size: 11px; }.toast span { margin-top: 2px; color: var(--muted); font-size: 9px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px); } }

@media (max-width: 1180px) {
  .capacity-grid { grid-template-columns: repeat(3,1fr); }
  .planning-workspace { grid-template-columns: 140px 250px minmax(0,1fr); }
  .route-layout { grid-template-columns: 1fr; }
  .resource-panel { order: -1; }
  .home-layout, .notification-layout { grid-template-columns: 1fr; }
  .operation-progress-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .offer-filterbar { grid-template-columns: minmax(240px,1.5fr) repeat(2,minmax(150px,1fr)); }
}
@media (max-width: 1100px) {
  .modal.wide { width: calc(100vw - 24px); }
  .modal .form-grid.four, .modal .line-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modal .span-4 { grid-column: span 2; }
  .modal .locked-product-info { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-catalog, .personnel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capacity-management-layout { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .record-grid { grid-template-columns: 1fr; }
  .permission-matrix { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .auth-layout { min-height: 100dvh; padding: 26px 14px 38px; }
  .auth-login-stack { width: min(440px,100%); gap: 21px; }
  .auth-quote { position: static; width: min(440px,100%); margin-top: 30px; padding-inline: 5px; align-self: center; }
  .sidebar { position: static; width: auto; height: auto; padding: 12px 14px; }
  .brand { padding: 0 0 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .main-nav { display: flex; padding-bottom: 3px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar, .view-switcher::-webkit-scrollbar { display: none; }
  .nav-section-label { display: none; }
  .nav-item { flex: 0 0 auto; width: auto; padding: 9px 11px; }
  .sidebar-note, .profile { display: none; }
  .app-shell { margin-left: 0; }
  .topbar { top: 0; min-height: 72px; padding: 12px 16px; }
  .topbar h1 { font-size: 22px; }
  .today-pill, #refresh-button { display: none; }
  .page { padding: 17px 14px 32px; }
  .offer-filterbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .offer-filterbar #offer-search { grid-column: 1 / -1; }
  .kpi-grid, .activity-summary { grid-template-columns: repeat(2,1fr); }
  .planning-workspace { grid-template-columns: 1fr; }
  .view-switcher { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .view-switcher-title { display: none; }
  .view-option { flex: 0 0 auto; width: auto; margin: 0; }
  .schedule-area { order: 2; }
  .backlog { order: 3; border-top: 1px solid var(--line); border-right: 0; border-bottom: 0; }
  .backlog-list { max-height: 330px; }
  .workorder-grid { grid-template-columns: 1fr; }
  .form-grid.four { grid-template-columns: repeat(2,1fr); }
  .line-fields { grid-template-columns: repeat(2,1fr); }
  .span-4 { grid-column: span 2; }
  .route-step-fields { grid-template-columns: repeat(2,1fr); }
  .optimizer-controls { grid-template-columns: repeat(2,1fr); }
  .support-row { grid-template-columns: 110px minmax(180px,1fr) 1fr; }
  .support-row > :nth-child(4), .support-row > :nth-child(5) { display: none; }
  .home-kpis, .offer-summary, .shipment-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recent-list { grid-template-columns: 1fr; }
  .photo-queue { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-picker-row { grid-template-columns: minmax(105px,.7fr) minmax(230px,1.8fr) minmax(90px,.6fr) auto; }.product-picker-row > div:nth-child(4) { display: none; }
  .user-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .user-table-scroll { overflow: visible; }
  .user-table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
  .user-table thead { display: none; }
  .user-table, .user-table tbody, .user-table tr, .user-table td { display: block; width: 100%; }
  .user-table tbody { padding: 3px 12px 12px; }
  .user-table tr { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 3px 12px rgba(24,33,95,.04); }
  .user-table tr.user-row-passive { background: #fafbfb; }
  .user-table td { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
  .user-table td:last-child { border-bottom: 0; }
  .user-table td::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
  .user-row-actions { flex-wrap: wrap; white-space: normal; }
  .user-list-toolbar { align-items: flex-start; }
}
@media (max-width: 580px) {
  .auth-layout { padding: 18px 10px 30px; }
  .auth-login-stack { gap: 17px; }
  .auth-logo-wrap { min-height: 70px; }
  .auth-card { border-radius: 17px; }
  .auth-logo { width: min(250px,74vw); }
  .auth-card-body { padding: 21px 19px 23px; }
  .auth-brand { margin-bottom: 19px; padding-bottom: 15px; }
  .auth-brand strong { font-size: 15px; }
  .auth-heading h1 { font-size: 22px; }
  .auth-quote { margin-top: 25px; padding-inline: 7px; }
  .auth-quote blockquote p { font-size: 15px; }
  .main-nav { display: flex; gap: 4px; overflow-x: auto; }
  .nav-item { flex: 0 0 92px; flex-direction: column; justify-content: center; gap: 3px; min-width: 92px; min-height: 52px; padding: 6px 4px; font-size: 9px; line-height: 1.1; text-align: center; white-space: normal; }
  .nav-item span { display: grid; width: 20px; height: 20px; }
  .section-heading, .section-heading.page-heading { align-items: flex-start; flex-direction: column; }
  .section-heading { padding: 16px; }
  .toolbar { width: 100%; flex-wrap: wrap; }
  .kpi-grid, .activity-summary, .capacity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .form-grid.two, .form-grid.three, .form-grid.four, .line-fields, .optimizer-controls, .route-step-fields { grid-template-columns: 1fr; }
  .span-2, .span-4 { grid-column: span 1; }
  .workorder-line { grid-template-columns: 23px minmax(0,1fr) 23px; padding-inline: 6px; }
  .modal-footer { flex-direction: column-reverse; padding: 10px 14px; }
  .modal-footer .btn { width: 100%; }
  .locked-product-info { grid-template-columns: 1fr; }
  .workorder-facts { grid-template-columns: repeat(2,1fr); row-gap: 10px; }
  .filterbar { grid-template-columns: 1fr; }
  .modal, .modal.wide { inset: 0; width: 100vw; height: 100dvh; max-height: 100dvh; transform: none; border-radius: 0; }
  .modal form { height: 100dvh; max-height: none; }
  .modal-header { padding: 16px; }.modal-body { padding: 14px; }
  .modal-footer { padding: 10px 14px max(10px,env(safe-area-inset-bottom)); }
  .workorder-line { display: block; padding: 48px 10px 12px; }
  .line-number { position: absolute; top: 12px; left: 12px; margin: 0; }
  .remove-line { position: absolute; top: 12px; right: 12px; }
  .resource-catalog, .personnel-grid, .support-summary { grid-template-columns: 1fr; }
  .support-row { grid-template-columns: 1fr; gap: 7px; }
  .support-row > :nth-child(4), .support-row > :nth-child(5) { display: block; }
  .number-preview { align-items: flex-start; flex-direction: column; }
  .welcome-panel { align-items: flex-start; flex-direction: column; padding: 19px; }.welcome-actions { justify-content: flex-start; width: 100%; }.welcome-actions .btn { flex: 1 1 auto; }
  .module-grid, .operation-progress-grid { grid-template-columns: 1fr; }
  .record-facts, .detail-grid, .timestamp-line { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-queue { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quality-control-options, .quality-requirement-list, .transfer-source-card { grid-template-columns: 1fr; }
  .product-picker-filters, .product-picker-row { grid-template-columns: 1fr; }.product-picker-row > div:nth-child(4) { display: block; }.product-picker-row .btn { width: 100%; }
  .rule-row { grid-template-columns: 1fr 1fr; }
  .modal-requirement { width: 100%; margin: 0 0 3px; text-align: center; }
  .user-filterbar, .permission-matrix { grid-template-columns: 1fr; }
  .permission-editor-head { flex-direction: column; }.permission-actions { justify-content: flex-start; }
  .user-list-toolbar { align-items: stretch; flex-direction: column; }.user-list-toolbar .btn { width: 100%; }
  .user-table tbody { padding-inline: 8px; }.user-table td { grid-template-columns: 90px minmax(0,1fr); padding-inline: 10px; }
  .user-row-actions .btn { flex: 1 1 calc(50% - 5px); }
  .modal-context-note { width: 100%; margin: 0; text-align: center; }
  .credential-modal .modal-frame { height: 100dvh; max-height: none; }.temporary-password > div { align-items: stretch; flex-direction: column; }.temporary-password .btn { width: 100%; }
}

@media (min-width: 901px) and (max-height: 700px) {
  .auth-layout { min-height: 100dvh; padding-top: 18px; padding-bottom: 24px; }
  .auth-login-stack { gap: 16px; }
  .auth-logo-wrap { min-height: 68px; }
  .auth-logo { width: min(245px,68vw); }
  .auth-card-body { padding-top: 18px; padding-bottom: 20px; }
  .auth-brand { margin-bottom: 16px; padding-bottom: 13px; }
  .auth-heading { margin-bottom: 13px; }
  .auth-form { gap: 10px; }
  .auth-footnote { margin-top: 14px; padding-top: 11px; }
  .auth-quote { bottom: 20px; }
}
