@charset "UTF-8";
:root {
  --ink: #18253c;
  --muted: #7c8799;
  --muted-2: #9ba5b4;
  --line: #e9edf2;
  --line-strong: #dde4ec;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --navy: #101d37;
  --navy-2: #182847;
  --blue: #3d69ee;
  --blue-deep: #3159da;
  --teal: #21ae9b;
  --green: #219c75;
  --amber: #e7a33b;
  --red: #d65a68;
  --violet: #8769da;
  --shadow-sm: 0 2px 10px rgba(25, 42, 72, .045);
  --shadow-md: 0 14px 36px rgba(18, 35, 65, .08);
  --radius: 16px;
  --radius-sm: 11px;
  --sidebar-width: 260px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { color: #fff; background: #496ef1; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.app-body { min-height: 100vh; background: var(--canvas); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 22px 17px 17px; color: #c3cce0; background: linear-gradient(165deg, #111e38 0%, #0e1a32 55%, #101d37 100%); box-shadow: 12px 0 42px rgba(13, 27, 52, .06); }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 3px 7px 20px; color: #fff; }
.brand-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 39px; width: 39px; height: 39px; color: #fff; font-size: 14px; font-weight: 850; letter-spacing: -.08em; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: linear-gradient(145deg, #5377f6, #20b4a1); box-shadow: 0 6px 20px rgba(53, 112, 221, .24); }
.brand-mark span { color: #bfe6df; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.28; }
.brand-copy strong { overflow: hidden; font-size: 13px; font-weight: 720; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: #8d9ab4; font-size: 10px; letter-spacing: .045em; }
.version-chip { padding: 2px 5px; color: #a5efe1; font-size: 8px; font-weight: 800; letter-spacing: .08em; border: 1px solid rgba(85, 208, 188, .24); border-radius: 5px; background: rgba(29, 184, 162, .12); }
.workspace-switch { display: flex; align-items: center; gap: 10px; margin: 2px 0 26px; padding: 11px 10px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.045); }
.workspace-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; color: #c7d2ef; font-size: 9px; font-weight: 800; border-radius: 9px; background: rgba(112, 138, 210, .22); }
.workspace-info { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.workspace-info strong { color: #eef2fb; font-size: 11px; font-weight: 650; }
.workspace-info small { margin-top: 3px; color: #8795af; font-size: 9px; }
.workspace-chevron { color: #8190ac; font-size: 17px; }
.side-navigation { flex: 1; overflow-y: auto; padding: 0 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.nav-caption { margin: 0 0 7px; padding: 0 11px; color: #71809d; font-size: 9px; font-weight: 760; letter-spacing: .13em; }
.nav-caption:not(:first-child) { margin-top: 23px; }
.side-link { display: flex; align-items: center; gap: 11px; min-height: 41px; margin: 2px 0; padding: 0 11px; color: #aeb9ce; font-size: 12px; font-weight: 530; border: 1px solid transparent; border-radius: 10px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.065); transform: translateX(2px); }
.side-link.is-active { color: #fff; font-weight: 650; border-color: rgba(105, 139, 240, .14); background: linear-gradient(90deg, rgba(69, 105, 231, .27), rgba(48, 80, 163, .12)); box-shadow: inset 2px 0 0 #6684ff; }
.side-link-icon { display: grid; place-items: center; width: 19px; color: #8696b4; }
.side-link.is-active .side-link-icon { color: #91a9ff; }
.side-link-arrow { margin-left: auto; color: #8393b0; font-size: 18px; }
.sidebar-bottom { padding: 13px 1px 0; }
.help-card { display: flex; gap: 9px; padding: 12px 10px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.045); }
.help-card-icon { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; color: #a8c5ff; font-size: 12px; font-weight: 750; border: 1px solid rgba(139, 168, 255, .24); border-radius: 50%; background: rgba(84, 119, 229, .16); }
.help-card strong { display: block; color: #e2e9f6; font-size: 10px; font-weight: 640; }
.help-card a { display: inline-flex; gap: 4px; margin-top: 4px; color: #9cafd3; font-size: 9px; }
.help-card a:hover { color: #fff; }
.sidebar-footnote { display: flex; align-items: center; gap: 7px; padding: 15px 10px 0; color: #8592aa; font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #45c8a6; box-shadow: 0 0 0 4px rgba(69, 200, 166, .12); }
.footnote-version { margin-left: auto; color: #596985; font-size: 9px; }
.sidebar-scrim { display: none; }
.sidebar-close, .mobile-menu-button { display: none !important; }
.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 36px; border-bottom: 1px solid rgba(226, 231, 239, .8); background: rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.topbar-left, .topbar-actions, .breadcrumb-line, .profile-trigger { display: flex; align-items: center; }
.breadcrumb-line { gap: 10px; color: #929bad; font-size: 11px; }
.breadcrumb-line strong { color: #34415a; font-size: 11px; font-weight: 650; }
.breadcrumb-separator { color: #c5cbd4; }
.topbar-actions { gap: 15px; }
.topbar-icon, .icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #758198; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; transition: .18s ease; }
.topbar-icon:hover, .icon-button:hover { color: var(--blue); border-color: #e7ebf4; background: #f7f9fc; }
.notification-button { position: relative; }
.notification-button i { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #ea6678; }
.topbar-divider { height: 27px; border-left: 1px solid var(--line); }
.profile-trigger { gap: 8px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #445ec0; font-size: 12px; font-weight: 750; border: 1px solid #e3e9ff; border-radius: 50%; background: linear-gradient(135deg, #e9edff, #d9f1ec); }
.profile-name { display: flex; flex-direction: column; min-width: 104px; line-height: 1.25; }
.profile-name strong { color: #36435b; font-size: 11px; font-weight: 650; }
.profile-name small { margin-top: 3px; color: #9ba5b4; font-size: 9px; }
.logout-form { margin-left: 2px; }
.logout-button { display: grid; place-items: center; width: 30px; height: 30px; color: #98a2b1; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.logout-button:hover { color: #d65265; background: #fff1f3; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; color: #956c20; font-size: 10px; font-weight: 650; border: 1px solid #f4e9cb; border-radius: 999px; background: #fffaf0; }
.demo-pill span { width: 6px; height: 6px; border-radius: 50%; background: #e5a33f; }
.page-area { width: min(100%, 1600px); margin: 0 auto; padding: 32px 36px 22px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.page-heading h1 { margin: 5px 0 5px; color: #1c2940; font-size: clamp(26px, 2.3vw, 32px); font-weight: 720; line-height: 1.2; letter-spacing: -.045em; }
.page-heading p { margin: 0; color: #8d97a7; font-size: 12px; }
.eyebrow { display: inline-block; color: #929caf; font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.eyebrow-light { display: inline-flex; align-items: center; gap: 8px; color: #9eb4dc; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.eyebrow-light i { width: 6px; height: 6px; border-radius: 50%; background: #36c4a5; box-shadow: 0 0 0 4px rgba(54,196,165,.11); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: #3d66e9; background: linear-gradient(135deg, #4b73f1, #365ee1); box-shadow: 0 5px 13px rgba(61, 105, 238, .19); }
.button-primary:hover { background: linear-gradient(135deg, #426be9, #2f56d7); box-shadow: 0 8px 18px rgba(61, 105, 238, .24); }
.button-secondary { color: #4e5b73; border-color: #e4e9f0; background: #fff; box-shadow: 0 2px 4px rgba(26,44,73,.025); }
.button-secondary:hover { color: var(--blue); border-color: #ccd7fa; background: #fafbff; }
.button-tertiary { color: #66738a; border-color: #e7ebf2; background: #fbfcfd; }
.button-danger-ghost { color: #ba4f5d; border-color: #f4d9dd; background: #fff9fa; }
.button-danger-ghost:hover { color: #a83b4c; border-color: #eebcc4; background: #fff1f3; }
.button-small { min-height: 31px; padding: 0 11px; font-size: 10px; border-radius: 8px; }
.button-block { width: 100%; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.metric-card { display: block; min-width: 0; padding: 18px 19px 16px; border: 1px solid rgba(225, 231, 239, .9); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.metric-card:hover { transform: translateY(-2px); border-color: #dce4f5; box-shadow: var(--shadow-md); }
.metric-card-static { cursor: default; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: #8994a5; font-size: 10px; font-weight: 580; }
.metric-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; }
.metric-amber { color: #cf8b27; background: #fff6e6; }
.metric-blue { color: #5275e6; background: #eef2ff; }
.metric-green { color: #199b76; background: #e9f8f3; }
.metric-violet { color: #8168d2; background: #f2eeff; }
.metric-value { overflow: hidden; margin-top: 13px; color: #1a2740; font-size: 30px; font-weight: 720; line-height: 1.06; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; color: #98a2b2; font-size: 9px; }
.metric-change { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-arrow { color: #8ca4ee; font-size: 16px; }
.metric-money-small { font-size: 25px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr); gap: 16px; margin-bottom: 17px; }
.panel { min-width: 0; border: 1px solid rgba(225, 231, 239, .9); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 21px 15px; }
.panel-heading h2 { margin: 5px 0 2px; color: #22304a; font-size: 16px; font-weight: 680; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: #98a2b1; font-size: 10px; }
.payment-chart-panel, .quick-approval-panel { min-height: 330px; }
.select-like { display: inline-flex; align-items: center; gap: 13px; padding: 7px 10px; color: #738096; font-size: 10px; border: 1px solid #e8ecf2; border-radius: 8px; background: #fff; }
.select-like span { color: #9aa4b4; }
.chart-summary { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 5px; }
.chart-summary > div:first-child { display: flex; flex-direction: column; }
.chart-summary strong { color: #25334b; font-size: 21px; font-weight: 720; letter-spacing: -.045em; }
.chart-summary span { margin-top: 3px; color: #9aa4b2; font-size: 9px; }
.chart-legend { display: flex; align-items: center; gap: 5px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 3px; background: #5879ed; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; height: 160px; margin: 2px 18px 0; padding: 8px 8px 0; border-bottom: 1px solid #eef1f5; background: repeating-linear-gradient(to bottom, transparent 0, transparent 38px, #f1f3f7 39px, transparent 40px); }
.chart-column { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px; height: 100%; min-width: 14px; color: #9aa4b3; font-size: 9px; }
.chart-track { display: flex; align-items: flex-end; justify-content: center; width: min(32px, 75%); height: 100%; }
.chart-bar { width: 100%; min-height: 8px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8ca0f2 0%, #5978eb 100%); opacity: .73; transition: opacity .2s ease, filter .2s ease; }
.chart-column:hover .chart-bar { opacity: 1; filter: saturate(1.1); }
.chart-bar-current { background: linear-gradient(180deg, #37c3ad, #18a590); opacity: 1; box-shadow: 0 5px 15px rgba(28, 179, 157, .17); }
.chart-footnote { display: flex; align-items: center; gap: 7px; padding: 12px 22px 15px; color: #9aa4b2; font-size: 9px; }
.chart-footnote-dot { width: 5px; height: 5px; border-radius: 50%; background: #24b99f; }
.text-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: #6480e6; font-size: 10px; font-weight: 640; white-space: nowrap; }
.text-link:hover { color: #345bd8; }
.approval-step-list { padding: 0 18px; }
.approval-step { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 10px 4px; border-bottom: 1px solid #f0f2f6; transition: padding .18s ease; }
.approval-step:last-child { border-bottom: 0; }
.approval-step:hover { padding-left: 8px; }
.step-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 11px; }
.step-blue { color: #5a77e5; background: #eff2ff; }
.step-violet { color: #826bd5; background: #f2efff; }
.step-amber { color: #cb913d; background: #fff6e7; }
.step-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.step-copy strong { color: #38455c; font-size: 11px; font-weight: 650; }
.step-copy small { margin-top: 3px; color: #9aa4b3; font-size: 9px; }
.step-count { color: #3f5fd2; font-size: 12px; font-weight: 700; }
.step-count i { margin-left: 10px; color: #a8b1bf; font-size: 17px; font-style: normal; }
.approval-panel-footer { display: flex; align-items: center; gap: 8px; margin: 4px 21px 0; padding: 12px 0 16px; color: #8c97a7; font-size: 9px; border-top: 1px solid #eff1f5; }
.approval-panel-footer .status-dot { width: 6px; height: 6px; }
.recent-panel { overflow: hidden; }
.recent-heading { align-items: center; padding-bottom: 12px; }
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d8dfeb transparent; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.data-table thead { background: #fafbfd; }
.data-table th { height: 39px; padding: 0 14px; color: #9aa4b3; font-size: 8px; font-weight: 730; letter-spacing: .105em; white-space: nowrap; border-top: 1px solid #f1f3f6; border-bottom: 1px solid #edf0f4; }
.data-table th:first-child, .data-table td:first-child { padding-left: 21px; }
.data-table td { height: 59px; padding: 9px 14px; color: #69758a; font-size: 10px; vertical-align: middle; border-bottom: 1px solid #f0f2f5; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdff; }
.table-primary-link { display: block; color: #4867d6; font-size: 10px; font-weight: 680; }
.table-primary-link:hover { color: #2e4fca; text-decoration: underline; text-underline-offset: 3px; }
.table-strong { display: block; color: #455269; font-size: 10px; font-weight: 620; }
.table-subtext { display: block; margin-top: 4px; color: #a2aab7; font-size: 9px; }
.table-desc { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount-cell { color: #34415a !important; font-weight: 670; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: 9px; font-weight: 620; white-space: nowrap; border-radius: 999px; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-warning { color: #a9741c; background: #fff7e7; }
.status-blue { color: #4f67c7; background: #eef2ff; }
.status-teal { color: #168a7a; background: #e7f7f3; }
.status-success { color: #16825e; background: #e9f8f0; }
.status-danger { color: #ba4d5a; background: #fff0f2; }
.status-violet { color: #7959bc; background: #f3efff; }
.row-action { display: grid; place-items: center; width: 27px; height: 27px; color: #8c98a9; font-size: 20px; border: 1px solid transparent; border-radius: 8px; }
.row-action:hover { color: #4365e4; border-color: #e6ebf5; background: #f7f9fc; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 19px 1px 0; color: #a5adba; font-size: 9px; }
.page-footer b { margin-left: 4px; color: #6c7fbb; font-size: 8px; letter-spacing: .08em; }
.flash-stack { display: grid; gap: 8px; margin: 0 0 15px; }
.alert { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 10px 13px; font-size: 11px; border: 1px solid transparent; border-radius: 10px; }
.alert-success { color: #16714f; border-color: #cfeee1; background: #effbf6; }
.alert-error { color: #a93e51; border-color: #f2d5da; background: #fff5f6; }
.alert-info { color: #405cb9; border-color: #dfe6ff; background: #f4f6ff; }
.alert-warning { color: #936b21; border-color: #f3e6c4; background: #fffbef; }
.alert-dismiss { margin-left: auto; color: currentColor; font-size: 18px; border: 0; background: none; cursor: pointer; }
/* Fatura listesi */
.list-panel { overflow: hidden; }
.tab-row { display: flex; align-items: center; gap: 21px; overflow-x: auto; padding: 0 22px; border-bottom: 1px solid #edf0f4; scrollbar-width: none; }
.tab-row::-webkit-scrollbar { display: none; }
.tab-link { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; color: #929cad; font-size: 10px; font-weight: 580; white-space: nowrap; }
.tab-link:hover { color: #5068cb; }
.tab-link.is-current { color: #3f5fd2; font-weight: 680; }
.tab-link.is-current::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: #5575ec; content: ""; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; color: #5269c4; font-size: 8px; font-weight: 700; border-radius: 99px; background: #eef2ff; }
.filter-bar { display: flex; align-items: center; gap: 9px; padding: 14px 21px; border-bottom: 1px solid #f0f2f6; }
.search-control { display: flex; align-items: center; gap: 8px; min-width: 180px; height: 36px; padding: 0 10px; color: #9aa4b3; border: 1px solid #e8ecf2; border-radius: 9px; background: #fff; }
.search-control:focus-within { border-color: #b7c7ff; box-shadow: 0 0 0 3px rgba(74, 109, 232, .07); }
.search-control input { width: 100%; min-width: 0; color: #455269; font-size: 10px; outline: none; border: 0; background: transparent; }
.search-control input::placeholder { color: #a6afbd; }
.date-filter { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; color: #a0a9b6; border: 1px solid #e8ecf2; border-radius: 9px; background: #fff; }
.date-filter input { width: 115px; color: #68758a; font-size: 9px; outline: none; border: 0; background: transparent; }
.date-dash { color: #bdc4ce; font-size: 11px; }
.filter-submit { min-height: 36px; padding: 0 12px; font-size: 10px; }
.clear-filter { color: #7c89a0; font-size: 9px; }
.clear-filter:hover { color: #4768e4; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 21px 8px; color: #99a3b0; font-size: 9px; }
.table-toolbar strong { color: #5a6780; font-weight: 680; }
.table-toolbar-meta { color: #a7afbb; }
.invoice-table { min-width: 980px; }
.invoice-table td { height: 65px; }
.pagination-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 21px; color: #9ba4b2; font-size: 9px; border-top: 1px solid #eff1f4; }
.pagination-actions { display: flex; gap: 6px; }
.page-button { padding: 7px 10px; color: #61708a; font-size: 9px; border: 1px solid #e7ebf1; border-radius: 8px; background: #fff; }
.page-button:hover { color: #4262da; border-color: #cbd6fa; }
.note-strip { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 11px 13px; color: #8590a2; font-size: 9px; line-height: 1.6; border: 1px solid #e9edf3; border-radius: 10px; background: #fbfcfe; }
.note-strip-icon { display: grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; color: #6278c8; font-size: 10px; font-weight: 750; border-radius: 50%; background: #edf1ff; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 45px 20px; text-align: center; }
.empty-state.compact { padding: 24px 14px; }
.empty-icon { display: grid; place-items: center; width: 43px; height: 43px; color: #7185da; border-radius: 14px; background: #f0f3ff; }
.empty-state strong { color: #4b5870; font-size: 12px; font-weight: 670; }
.empty-state span:not(.empty-icon) { color: #9ba5b3; font-size: 10px; }
.empty-state .button { margin-top: 8px; }
/* Formlar */
.form-layout { display: grid; gap: 14px; }
.form-panel { overflow: hidden; }
.form-panel-heading { align-items: center; padding-bottom: 17px; border-bottom: 1px solid #f0f2f5; }
.required-note { color: #a2acb9; font-size: 9px; }
.required-note i, .form-field i { color: #db6872; font-style: normal; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; padding: 21px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #59667b; font-size: 10px; font-weight: 620; }
.form-field > span { color: #59667c; }
.form-field input:not([type="file"]), .form-field select, .form-field textarea, .form-input-small { width: 100%; min-width: 0; min-height: 39px; padding: 9px 11px; color: #435169; font-size: 11px; font-weight: 470; outline: none; border: 1px solid #e4e9f0; border-radius: 9px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.form-field textarea { min-height: 78px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .form-input-small:focus { border-color: #a9baff; box-shadow: 0 0 0 3px rgba(73, 106, 228, .08); }
.form-field input::placeholder, .form-field textarea::placeholder, .form-input-small::placeholder { color: #afb7c3; }
.form-field small { color: #a3acb8; font-size: 9px; font-weight: 450; }
.form-field small code { color: #71809a; }
.form-field-wide { grid-column: 1 / -1; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 40px; }
.input-suffix > span { position: absolute; top: 50%; right: 12px; color: #99a4b2; font-size: 10px; transform: translateY(-50%); }
.attachment-panel .panel-heading { padding-bottom: 16px; }
.file-limit-chip { padding: 6px 9px; color: #828da0; font-size: 8px; border: 1px solid #edf0f4; border-radius: 7px; background: #fafbfd; }
.upload-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 128px; margin: 0 21px 21px; padding: 18px; text-align: center; border: 1px dashed #ccd5e4; border-radius: 12px; background: #fbfcff; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: #7c95ee; background: #f6f8ff; }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 35px; height: 35px; color: #5974dd; border-radius: 11px; background: #eef2ff; transform: rotate(180deg); }
.upload-dropzone strong { color: #56637a; font-size: 10px; font-weight: 650; }
.upload-dropzone small { color: #a2aab7; font-size: 9px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 3px 0 5px; }
/* Fatura detay */
.back-link { display: inline-block; margin: 0 0 8px; color: #7d8aa1; font-size: 10px; }
.back-link:hover { color: #4d69d8; }
.detail-title-line { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.detail-title-line h1 { margin: 0; }
.detail-heading p { margin-top: 7px; }
.detail-actions { display: flex; gap: 8px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); align-items: start; gap: 15px; }
.detail-main-column, .detail-side-column { display: grid; gap: 14px; min-width: 0; }
.invoice-summary-card { overflow: hidden; }
.invoice-summary-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; min-height: 132px; padding: 22px 24px; background: radial-gradient(circle at 90% 15%, rgba(81, 115, 236, .09), transparent 29%), linear-gradient(135deg, #fff, #fbfcff); }
.invoice-large-amount { display: block; margin-top: 9px; color: #1d2b45; font-size: clamp(28px, 3vw, 37px); font-weight: 750; letter-spacing: -.055em; }
.invoice-summary-top small { display: block; margin-top: 4px; color: #9ba5b3; font-size: 9px; }
.invoice-summary-watermark { display: grid; place-items: center; width: 56px; height: 56px; color: #6380e8; border: 1px solid #e3e9ff; border-radius: 17px; background: rgba(240,243,255,.8); }
.detail-stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 15px 24px 17px; border-top: 1px solid #eff1f5; }
.detail-stats-row > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-right: 10px; }
.detail-stats-row > div + div { padding-left: 15px; border-left: 1px solid #edf0f4; }
.detail-stats-row span, .detail-field span { color: #9aa4b2; font-size: 9px; }
.detail-stats-row strong { overflow: hidden; color: #4d5a70; font-size: 10px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.detail-info-panel { overflow: hidden; }
.detail-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; padding: 4px 22px 22px; }
.detail-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.detail-field strong { color: #536078; font-size: 10px; font-weight: 570; overflow-wrap: anywhere; }
.detail-field-wide { grid-column: 1 / -1; }
.approval-timeline { padding: 2px 22px 18px; }
.timeline-item { position: relative; display: flex; gap: 11px; min-height: 57px; }
.timeline-item:not(:last-child)::after { position: absolute; top: 25px; bottom: -2px; left: 10px; width: 1px; background: #e8ecf2; content: ""; }
.timeline-marker { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; color: #98a3b2; font-size: 9px; border: 1px solid #e0e5ec; border-radius: 50%; background: #fff; }
.timeline-done .timeline-marker { color: #1d9a78; border-color: #c9eadf; background: #e9f8f2; }
.timeline-copy { display: flex; flex-direction: column; gap: 4px; padding-top: 1px; }
.timeline-copy strong { color: #58657a; font-size: 10px; font-weight: 650; }
.timeline-copy small { color: #a0a9b6; font-size: 9px; }
.action-panel { padding: 15px; }
.action-title { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; }
.action-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; }
.action-approval { color: #4b69dd; background: #eef2ff; }
.action-management { color: #8567d0; background: #f3efff; }
.action-paid { color: #138d6d; background: #e9f8f2; }
.action-title strong { display: block; margin-top: 1px; color: #46536a; font-size: 10px; font-weight: 680; }
.action-title small { display: block; margin-top: 3px; color: #9ba5b2; font-size: 8px; }
.workflow-action-form { display: grid; gap: 8px; }
.action-buttons { display: flex; gap: 7px; }
.action-buttons .button { flex: 1; }
.form-input-small { min-height: 33px; padding: 7px 9px; font-size: 9px; }
.compact-action { padding: 13px; }
.small-counter { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; color: #6176c9; font-size: 9px; font-weight: 700; border-radius: 99px; background: #f0f3ff; }
.attachment-list { padding: 0 20px 16px; }
.attachment-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #eef1f5; border-radius: 10px; background: #fcfdff; }
.attachment-row + .attachment-row { margin-top: 7px; }
.attachment-file-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; color: #5e77de; border-radius: 9px; background: #eff2ff; }
.attachment-row > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.attachment-row strong { overflow: hidden; color: #536078; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.attachment-row small { margin-top: 4px; color: #9da7b4; font-size: 8px; }
.attachment-download { color: #8190aa; }
.empty-inline { padding: 4px 21px 19px; color: #9ca6b3; font-size: 10px; }
.rejection-banner { display: flex; align-items: flex-start; gap: 9px; margin: -9px 0 15px; padding: 12px; color: #a94352; border: 1px solid #f2d7dc; border-radius: 11px; background: #fff6f7; }
.rejection-banner > span { display: grid; place-items: center; flex: 0 0 20px; height: 20px; font-size: 11px; font-weight: 750; border-radius: 50%; background: #ffe5e8; }
.rejection-banner strong { font-size: 10px; }
.rejection-banner p { margin: 3px 0 0; font-size: 9px; }
.side-tip { padding: 13px 14px; color: #8793a5; border: 1px solid #e7ecf3; border-radius: 11px; background: #f9fbfe; }
.side-tip strong { color: #6d7a91; font-size: 9px; }
.side-tip p { margin: 4px 0 0; font-size: 9px; line-height: 1.6; }
/* Cari / tanımlar */
.entity-type-tabs, .report-type-tabs { display: flex; gap: 8px; overflow-x: auto; margin: -8px 0 15px; padding: 3px 0 5px; scrollbar-width: none; }
.entity-type-tab { padding: 8px 12px; color: #7d899d; font-size: 10px; white-space: nowrap; border: 1px solid #e6eaf0; border-radius: 9px; background: #fff; }
.entity-type-tab:hover, .entity-type-tab.is-active { color: #4564dc; border-color: #d8e0fb; background: #f4f6ff; }
.entity-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .7fr); align-items: start; gap: 15px; }
.entity-list-panel { overflow: hidden; }
.entity-search-form { display: flex; gap: 7px; padding: 0 20px 13px; }
.entity-search-form .search-control { flex: 1; }
.entity-table { min-width: 660px; }
.entity-actions { text-align: right !important; }
.entity-actions form { display: inline; }
.delete-icon { color: #a7afbc; font-size: 20px; }
.delete-icon:hover { color: #c94d5c; background: #fff2f3; }
.entity-create-panel { padding-bottom: 16px; }
.create-panel-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #536ed7; border-radius: 10px; background: #eff2ff; }
.stacked-form { display: grid; gap: 13px; padding: 0 20px; }
.stacked-form .form-field { gap: 6px; }
.stacked-form .form-field input, .stacked-form .form-field select, .stacked-form .form-field textarea { min-height: 37px; }
.stacked-form .form-field textarea { min-height: 63px; }
.form-help-note { display: flex; gap: 8px; margin: 15px 20px 0; padding: 10px; color: #929cad; border-radius: 9px; background: #f8f9fb; }
.form-help-note > span { display: grid; place-items: center; flex: 0 0 15px; height: 15px; color: #6378c8; font-size: 9px; font-weight: 700; border-radius: 50%; background: #e9edff; }
.form-help-note p { margin: 0; font-size: 8px; line-height: 1.6; }
.form-help-note a { color: #4e67d4; }
/* Kullanıcı / admin */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .68fr); align-items: start; gap: 15px; }
.admin-list-panel { overflow: hidden; }
.admin-create-panel { padding-bottom: 17px; }
.admin-grid .data-table { min-width: 680px; }
.user-cell { display: flex; align-items: center; gap: 8px; }
.user-cell > span:nth-child(2) { display: flex; flex-direction: column; }
.user-cell strong { color: #4c5870; font-size: 10px; font-weight: 650; }
.user-cell small { margin-top: 3px; color: #a2abb7; font-size: 8px; }
.avatar-small { flex-basis: 27px; width: 27px; height: 27px; font-size: 10px; }
.permission-chip { display: inline-block; padding: 5px 8px; color: #5e70bc; font-size: 8px; font-weight: 620; border-radius: 7px; background: #f0f2ff; }
.permissions-grid .data-table { min-width: 710px; }
/* Raporlar */
.report-type-tabs { margin: -8px 0 15px; }
.report-type-tab { display: inline-flex; align-items: center; gap: 15px; padding: 9px 12px; color: #7f8ba0; font-size: 9px; white-space: nowrap; border: 1px solid #e7ebf1; border-radius: 9px; background: #fff; }
.report-type-tab span { color: #a5adba; }
.report-type-tab.is-active { color: #4564d8; border-color: #d8e1fb; background: #f6f7ff; }
.report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.report-metrics .metric-value { font-size: 24px; }
.report-panel { overflow: hidden; }
.report-table { min-width: 820px; }
.report-bar-cell { display: flex; align-items: center; gap: 8px; min-width: 115px; }
.report-bar-track { overflow: hidden; width: 80px; height: 5px; border-radius: 10px; background: #edf0f5; }
.report-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #697fee, #28b39c); }
.report-bar-cell small { color: #9da7b4; font-size: 8px; }
/* Profil / yardım / hata */
.profile-settings-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.2fr); gap: 15px; align-items: start; }
.profile-card { padding: 21px; }
.profile-card-identity { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid #edf0f4; }
.profile-avatar-large { flex-basis: 49px; width: 49px; height: 49px; font-size: 17px; }
.profile-card-identity h2 { margin: 0; color: #35435a; font-size: 14px; font-weight: 680; }
.profile-card-identity div > span { display: block; margin-top: 4px; color: #99a3b2; font-size: 9px; }
.profile-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: #95a0af; font-size: 9px; border-bottom: 1px solid #f0f2f5; }
.profile-info-row:last-child { border: 0; }
.profile-info-row strong { color: #5c687e; font-size: 9px; font-weight: 620; text-align: right; }
.profile-active { color: #1b936b !important; }
.profile-active i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #2ab78d; vertical-align: middle; }
.profile-password-panel { padding-bottom: 17px; }
.profile-password-panel .stacked-form { max-width: 480px; }
.profile-password-panel .stacked-form .button { justify-self: start; margin-top: 4px; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-panel { padding: 20px; }
.help-panel-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #526edb; border-radius: 11px; background: #eff2ff; }
.help-panel h2 { margin: 13px 0 7px; color: #39475e; font-size: 13px; }
.help-panel p { margin: 0; color: #909bab; font-size: 10px; line-height: 1.75; }
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 55vh; padding: 35px; text-align: center; }
.error-illustration { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 18px; color: #5b75df; border: 1px solid #e0e7ff; border-radius: 22px; background: #f0f3ff; }
.error-page h1 { margin: 7px 0 8px; color: #26344e; font-size: 26px; letter-spacing: -.04em; }
.error-page p { max-width: 440px; margin: 0 0 19px; color: #8994a5; font-size: 11px; }
/* Giriş */
.login-body { min-height: 100vh; background: #fff; }
.login-layout { display: grid; grid-template-columns: minmax(390px, .95fr) minmax(430px, 1.05fr); min-height: 100vh; }
.login-showcase { position: relative; overflow: hidden; min-height: 100vh; color: #fff; background: radial-gradient(ellipse at 72% 32%, rgba(54, 88, 162, .34), transparent 37%), linear-gradient(155deg, #152846 0%, #10203c 46%, #0c1830 100%); }
.login-showcase::before { position: absolute; inset: 0; background: linear-gradient(130deg, transparent 54%, rgba(111, 137, 202, .08) 54.1%, transparent 54.5%), linear-gradient(42deg, transparent 62%, rgba(112, 143, 207, .08) 62.1%, transparent 62.5%); content: ""; }
.login-showcase-inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; padding: 28px clamp(30px, 5vw, 70px) 23px; }
.login-brand { padding: 0; }
.login-showcase-copy { width: min(520px, 100%); margin: auto 0; padding: 35px 0 45px; }
.login-showcase-copy h1 { margin: 19px 0 16px; font-size: clamp(37px, 4vw, 58px); font-weight: 670; line-height: 1.08; letter-spacing: -.055em; }
.login-showcase-copy h1 em { color: #64d3bd; font-style: normal; }
.login-showcase-copy p { max-width: 390px; margin: 0; color: #a9b7cf; font-size: 12px; line-height: 1.8; }
.login-feature-row { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 25px; color: #c5d1e4; font-size: 9px; }
.login-feature-row span { display: inline-flex; align-items: center; gap: 7px; }
.login-feature-row .icon { color: #72cdbc; }
.login-showcase-footer { display: flex; justify-content: space-between; gap: 12px; color: #7384a1; font-size: 9px; }
.showcase-orb { position: absolute; border: 1px solid rgba(154, 178, 226, .12); border-radius: 50%; pointer-events: none; }
.showcase-orb-one { top: 17%; right: -155px; width: 430px; height: 430px; box-shadow: 0 0 0 48px rgba(128, 156, 218, .025), 0 0 0 102px rgba(128, 156, 218, .02); }
.showcase-orb-two { bottom: -255px; left: -140px; width: 430px; height: 430px; border-color: rgba(31, 186, 162, .13); box-shadow: 0 0 0 38px rgba(31, 186, 162, .025); }
.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 36px; background: #fff; }
.login-form-wrap { width: min(400px, 100%); }
.login-heading { margin-bottom: 25px; }
.login-heading h2 { margin: 8px 0 6px; color: #1d2b44; font-size: 27px; font-weight: 720; letter-spacing: -.045em; }
.login-heading p { margin: 0; color: #929cad; font-size: 11px; }
.login-form { display: grid; gap: 9px; }
.field-label { color: #4f5c72; font-size: 10px; font-weight: 670; }
.input-wrap { display: flex; align-items: center; gap: 9px; min-height: 46px; margin-bottom: 12px; padding: 0 12px; color: #a3acba; border: 1px solid #e4e9f0; border-radius: 10px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.input-wrap:focus-within { border-color: #aebeff; box-shadow: 0 0 0 4px rgba(73, 107, 233, .08); }
.input-leading { display: grid; place-items: center; color: #9da7b5; }
.input-wrap input { width: 100%; min-width: 0; color: #40506a; font-size: 11px; outline: none; border: 0; background: transparent; }
.input-wrap input::placeholder { color: #adb6c2; }
.password-label-row { display: flex; justify-content: space-between; }
.quiet-label { color: #aab3bf; font-size: 8px; }
.password-toggle { padding: 4px; color: #7384b8; font-size: 9px; border: 0; background: transparent; cursor: pointer; }
.login-submit { min-height: 45px; margin-top: 3px; }
.login-submit span { margin-left: auto; font-size: 15px; }
.demo-login-note { display: flex; gap: 10px; margin-top: 19px; padding: 12px; border: 1px solid #e4ebff; border-radius: 11px; background: #f7f9ff; }
.demo-note-icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; color: #5a73da; border-radius: 8px; background: #e9eeff; }
.demo-login-note strong { display: block; color: #58688c; font-size: 9px; font-weight: 680; }
.demo-login-note p { margin: 4px 0 2px; color: #7785a2; font-size: 9px; }
.demo-login-note code { color: #435bb8; font-size: 9px; }
.demo-login-note small { display: block; color: #a1aabd; font-size: 8px; }
.login-privacy { margin: 18px 0 0; color: #a8b0bc; font-size: 8px; line-height: 1.6; text-align: center; }
.login-mobile-brand { display: none; }
/* mobil */
@media (max-width: 1200px) {
  :root { --sidebar-width: 238px; }
  .topbar { padding: 0 25px; }
  .page-area { padding: 28px 25px 20px; }
  .metric-grid { gap: 11px; }
  .metric-card { padding: 16px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(290px, 1fr); }
  .filter-bar { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 245px; }
  .sidebar { transform: translateX(-103%); transition: transform .24s ease; box-shadow: 18px 0 42px rgba(11, 22, 43, .2); }
  .app-body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 29; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; border: 0; background: rgba(8, 18, 36, .44); visibility: hidden; transition: opacity .24s ease, visibility .24s ease; }
  .app-body.nav-open .sidebar-scrim { opacity: 1; visibility: visible; }
  .sidebar-close, .mobile-menu-button { display: inline-grid !important; }
  .sidebar-close { margin-left: auto; color: #a8b4ca; }
  .main-shell { margin-left: 0; }
  .topbar { height: 64px; }
  .topbar-left { gap: 9px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr); }
  .entity-layout, .admin-grid, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .entity-create-panel, .admin-create-panel { order: -1; }
  .entity-create-panel .stacked-form, .admin-create-panel .stacked-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-create-panel .stacked-form .button, .admin-create-panel .stacked-form .button { align-self: end; }
  .detail-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-side-column .timeline-panel, .detail-side-column .side-tip { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .page-area { padding: 22px 17px 17px; }
  .topbar { padding: 0 17px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions > .topbar-icon:first-of-type, .notification-button, .topbar-divider { display: none; }
  .profile-name { display: none; }
  .logout-form { margin-left: 0; }
  .breadcrumb-line { font-size: 9px; }
  .breadcrumb-line strong { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 19px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .button { align-self: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 11px; }
  .metric-card { padding: 13px; border-radius: 13px; }
  .metric-icon { width: 31px; height: 31px; }
  .metric-label { font-size: 9px; }
  .metric-value { margin-top: 10px; font-size: 25px; }
  .metric-foot { margin-top: 9px; font-size: 8px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .payment-chart-panel, .quick-approval-panel { min-height: 0; }
  .panel-heading { padding: 16px 16px 13px; }
  .panel-heading h2 { font-size: 14px; }
  .bar-chart { height: 135px; margin: 2px 13px 0; gap: 8px; }
  .recent-heading { align-items: flex-start; }
  .recent-heading .button { align-self: center; padding: 0 9px; font-size: 8px; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; }
  .recent-panel .data-table { display: block; }
  .recent-panel .data-table thead { display: none; }
  .recent-panel .data-table tbody { display: grid; padding: 3px 12px 10px; }
  .recent-panel .data-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 5px; border-bottom: 1px solid #f0f2f5; }
  .recent-panel .data-table tr:last-child { border-bottom: 0; }
  .recent-panel .data-table td { display: block; height: auto; padding: 2px 0; font-size: 9px; border: 0; }
  .recent-panel .data-table td:first-child { padding-left: 0; }
  .recent-panel .data-table td:nth-child(2), .recent-panel .data-table td:nth-child(3) { display: none; }
  .recent-panel .data-table td:nth-child(4) { grid-column: 1; color: #9aa4b2; }
  .recent-panel .data-table td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; }
  .recent-panel .data-table td:nth-child(6) { grid-column: 1; }
  .recent-panel .data-table td:nth-child(7) { grid-column: 2; grid-row: 2; justify-self: end; }
  .recent-panel .data-table td:nth-child(7) .row-action { width: 23px; height: 23px; }
  .table-toolbar { padding: 10px 15px 8px; }
  .filter-bar { gap: 7px; padding: 11px 13px; }
  .search-control { flex: 1 1 100%; }
  .date-filter { flex: 1; }
  .date-filter input { width: 100%; }
  .filter-submit { flex: 1; }
  .date-dash { display: none; }
  .clear-filter { padding: 7px; }
  .tab-row { gap: 16px; padding: 0 15px; }
  .tab-link { min-height: 43px; font-size: 9px; }
  .invoice-table { display: block; min-width: 0; }
  .invoice-table thead { display: none; }
  .invoice-table tbody { display: grid; padding: 4px 12px 10px; }
  .invoice-table tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 12px 5px 12px 1px; border-bottom: 1px solid #eff1f5; }
  .invoice-table tr:last-child { border: 0; }
  .invoice-table td { display: block; height: auto; padding: 1px 0; font-size: 9px; border: 0; }
  .invoice-table td:first-child { padding-left: 0; }
  .invoice-table td:nth-child(2) { grid-column: 1; }
  .invoice-table td:nth-child(3), .invoice-table td:nth-child(5) { display: none; }
  .invoice-table td:nth-child(4) { grid-column: 1; color: #9ba5b2; font-size: 8px; }
  .invoice-table td:nth-child(6) { grid-column: 2; grid-row: 1; text-align: right; }
  .invoice-table td:nth-child(7) { grid-column: 1; grid-row: 4; }
  .invoice-table td:nth-child(8) { position: absolute; top: 14px; right: 1px; }
  .pagination-row { padding: 11px 14px; }
  .note-strip { font-size: 8px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .form-field-wide { grid-column: auto; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { flex: 1; }
  .detail-heading { flex-direction: column; }
  .detail-actions { align-self: stretch; }
  .detail-actions .button { flex: 1; }
  .detail-title-line { align-items: flex-start; }
  .detail-title-line h1 { font-size: 23px; }
  .detail-stats-row { padding: 13px 16px; }
  .detail-stats-row > div + div { padding-left: 9px; }
  .detail-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 4px 16px 17px; }
  .detail-side-column { grid-template-columns: minmax(0, 1fr); }
  .detail-side-column .timeline-panel, .detail-side-column .side-tip { grid-column: auto; }
  .entity-type-tabs { margin-top: -3px; }
  .entity-create-panel .stacked-form, .admin-create-panel .stacked-form { grid-template-columns: minmax(0, 1fr); }
  .entity-create-panel .stacked-form .button, .admin-create-panel .stacked-form .button { min-height: 40px; }
  .entity-list-panel .table-wrap, .admin-list-panel .table-wrap { overflow-x: auto; }
  .report-metrics { max-width: none; }
  .report-metrics .metric-value { font-size: 19px; }
  .report-type-tabs { gap: 6px; }
  .report-type-tab { gap: 7px; padding: 8px 9px; font-size: 8px; }
  .profile-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .page-footer { font-size: 8px; }
}
@media (max-width: 420px) {
  .page-area { padding-right: 12px; padding-left: 12px; }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .demo-pill { padding: 5px 7px; font-size: 8px; }
  .metric-card { padding: 11px; }
  .metric-value { font-size: 23px; }
  .recent-heading .button { max-width: 138px; overflow: hidden; }
  .detail-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .detail-stats-row > div + div { padding-left: 0; border-left: 0; }
  .detail-field-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-field-wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-showcase { display: none; }
  .login-form-panel { align-items: flex-start; padding: 34px 22px; }
  .login-form-wrap { width: min(420px, 100%); margin: 0 auto; }
  .login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; color: #26344e; font-size: 12px; }
  .login-mobile-brand .brand-mark { width: 35px; height: 35px; flex-basis: 35px; font-size: 12px; }
  .login-heading h2 { font-size: 24px; }
}
@media print {
  .sidebar, .topbar, .detail-actions, .action-panel, .note-strip, .page-footer { display: none !important; }
  .main-shell { margin: 0; }
  .page-area { padding: 0; }
  .panel { box-shadow: none; }
}

.currency-total-list { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; min-height: 28px; margin-top: 7px; color: #1d2d46; font-size: 15px; font-weight: 750; }
.currency-total-list span + span { padding-left: 10px; border-left: 1px solid #e4e8ef; }
.tracking-context { display: flex; align-items: center; gap: 12px; padding: 14px 19px; border-bottom: 1px solid #edf0f5; background: #fbfcfe; }
.tracking-context-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #eaf2ff; color: #376bcb; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.tracking-context > span:last-child { display: grid; gap: 3px; }
.tracking-context strong { color: #33435a; font-size: 11px; }
.tracking-context small { color: #8994a4; font-size: 9px; }
.tracking-filter-bar { flex-wrap: wrap; }
.tracking-cari { flex: 1.2 1 220px; }
.tracking-cari select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #405069; font: inherit; }
.tracking-department { display: grid; gap: 4px; min-width: 124px; color: #78869a; font-size: 9px; }
.tracking-department select { min-height: 36px; padding: 0 10px; border: 1px solid #e4e9f0; border-radius: 8px; background: #fff; color: #405069; font: inherit; }
.report-table .report-bar-cell { min-width: 100px; }
.report-table .report-bar-cell small { color: #77859a; }
@media (max-width: 760px) {
  .currency-total-list { font-size: 13px; }
  .currency-total-list span + span { padding-left: 6px; }
  .tracking-filter-bar .tracking-cari, .tracking-filter-bar .tracking-department { flex: 1 1 100%; }
  .tracking-department { grid-template-columns: 60px minmax(0,1fr); align-items: center; }
}

/* V2 navigation: primary menu stays in the top header on every screen. */
.app-shell { min-height: 100vh; }
.main-shell { min-height: 100vh; margin-left: 0 !important; }
.topbar { position: sticky; z-index: 50; top: 0; display: block; height: auto; padding: 0 30px; border-bottom: 1px solid #e8edf3; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); }
.topbar-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.topbar-brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; min-width: 200px; color: #23324b; }
.topbar-brand .brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
.topbar-brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-brand-copy strong { color: #25344d; font-size: 12px; font-weight: 760; white-space: nowrap; }
.topbar-brand-copy small { margin-top: 3px; color: #8793a4; font-size: 9px; letter-spacing: .045em; }
.topbar-brand-copy b { margin-left: 5px; color: #258e84; font-size: 8px; letter-spacing: .08em; }
.topbar-actions { flex: 0 0 auto; }
.mobile-menu-button { display: none !important; }
.top-navigation { position: relative; display: flex; align-items: stretch; gap: 5px; min-height: 48px; overflow: visible; }
.top-nav-home, .top-nav-group > summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 13px; color: #65738a; font-size: 11px; font-weight: 670; text-transform: capitalize; white-space: nowrap; border: 1px solid transparent; border-radius: 9px; cursor: pointer; list-style: none; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.top-nav-home:hover, .top-nav-group > summary:hover { color: #2c4fae; background: #f4f7ff; }
.top-nav-home.is-active, .top-nav-group.is-active > summary { color: #3158ca; border-color: #e3eafe; background: #f1f5ff; }
.top-nav-home .icon, .top-nav-group > summary .icon { color: #7890c7; }
.top-nav-group { position: relative; display: flex; align-items: center; }
.top-nav-group > summary::-webkit-details-marker { display: none; }
.top-nav-chevron { margin-left: 2px; color: #95a1b2; font-size: 13px; }
.top-nav-group[open] > summary { color: #3158ca; background: #f1f5ff; }
.top-nav-dropdown { position: absolute; z-index: 70; top: calc(100% - 4px); left: 0; display: none; width: max-content; min-width: 235px; max-width: min(320px, calc(100vw - 28px)); padding: 7px; border: 1px solid #e5eaf1; border-radius: 12px; background: #fff; box-shadow: 0 16px 42px rgba(24, 40, 70, .16); }
.top-nav-group[open] .top-nav-dropdown { display: grid; gap: 2px; }
.top-nav-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; color: #58677e; font-size: 11px; font-weight: 570; border-radius: 8px; }
.top-nav-link:hover { color: #3158ca; background: #f5f7ff; }
.top-nav-link.is-active { color: #3158ca; background: #eff3ff; font-weight: 690; }
.top-nav-link .icon { color: #8190a8; }
.top-nav-link i { margin-left: auto; color: #96a1b2; font-size: 8px; font-style: normal; }
.page-area { min-height: calc(100vh - 116px); }
.page-breadcrumb { gap: 8px; margin: 0 0 18px; color: #929bad; font-size: 10px; }
.page-breadcrumb strong { color: #54627a; font-weight: 650; }
@media (max-width: 1000px) {
  .topbar { padding-right: 22px; padding-left: 22px; }
  .topbar-main { min-height: 64px; }
  .topbar-brand { min-width: auto; }
  .top-navigation { gap: 2px; }
  .top-nav-home, .top-nav-group > summary { padding-right: 9px; padding-left: 9px; font-size: 10px; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 15px; }
  .topbar-main { min-height: 60px; }
  .mobile-menu-button { display: inline-flex !important; width: 36px; height: 36px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions > .topbar-icon, .topbar-divider, .profile-name { display: none !important; }
  .profile-trigger { gap: 0; }
  .logout-button { width: 30px; height: 30px; }
  .top-navigation { display: none; flex-direction: column; align-items: stretch; gap: 5px; max-height: min(70vh, 560px); overflow-y: auto; padding: 7px 0 13px; border-top: 1px solid #edf0f5; }
  body.nav-open .top-navigation { display: flex; }
  .top-nav-home, .top-nav-group > summary { justify-content: flex-start; width: 100%; min-height: 42px; padding: 0 12px; font-size: 11px; }
  .top-nav-group { display: block; width: 100%; }
  .top-nav-group > summary { justify-content: space-between; }
  .top-nav-dropdown { position: static; width: 100%; max-width: none; margin: 3px 0 5px; padding: 5px; border: 0; background: #f8faff; box-shadow: none; }
  .top-nav-link { min-height: 39px; padding-left: 15px; }
  .page-area { min-height: calc(100vh - 70px); padding: 20px 17px 18px; }
  .page-breadcrumb { margin-bottom: 14px; }
}
@media (max-width: 420px) {
  .topbar { padding-right: 12px; padding-left: 12px; }
  .topbar-brand-copy strong { font-size: 11px; }
  .topbar-brand .brand-mark { width: 35px; height: 35px; flex-basis: 35px; }
  .topbar-actions { gap: 5px; }
  .demo-pill { padding: 5px 7px; font-size: 8px; }
  .page-area { padding-right: 13px; padding-left: 13px; }
}
@media (max-width: 760px) {
  .topbar-main { gap: 8px; }
  .topbar-actions { gap: 5px; }
}
@media (max-width: 420px) {
  .topbar-actions > .demo-pill { display: none; }
}

/* ── V3 visual refresh: stronger hierarchy, legible type, clearer actions ── */
:root {
  --ink: #14233d;
  --muted: #65748d;
  --muted-2: #8592a6;
  --line: #e2e8f1;
  --line-strong: #d5deea;
  --canvas: #f3f6fb;
  --surface: #fff;
  --blue: #315fe6;
  --blue-deep: #244ecb;
  --shadow-sm: 0 3px 12px rgba(20, 39, 74, .055);
  --shadow-md: 0 16px 42px rgba(20, 39, 74, .11);
  --radius: 18px;
}
body { color: var(--ink); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font-size: inherit; }
:focus-visible { outline: 3px solid rgba(64, 104, 230, .42); outline-offset: 2px; }
.page-area { width: min(100%, 1720px); padding: 34px clamp(20px, 3.2vw, 48px) 30px; }
.topbar { padding-right: clamp(20px, 3vw, 42px); padding-left: clamp(20px, 3vw, 42px); border-bottom-color: #e3e9f2; box-shadow: 0 5px 20px rgba(29, 49, 84, .035); }
.topbar-main { min-height: 76px; }
.topbar-brand-copy strong { font-size: 14px; }
.topbar-brand-copy small { font-size: 10px; }
.top-navigation { min-height: 53px; gap: 8px; }
.top-nav-home, .top-nav-group > summary { min-height: 42px; padding-right: 15px; padding-left: 15px; font-size: 12px; border-radius: 11px; }
.top-nav-link { min-height: 42px; font-size: 12px; }
.top-nav-dropdown { min-width: 255px; padding: 9px; border-radius: 15px; }
.demo-pill { font-size: 11px; padding: 7px 12px; }
.profile-name strong { font-size: 12px; }
.profile-name small { font-size: 10px; }
.page-breadcrumb { margin-bottom: 20px; font-size: 11px; }
.page-breadcrumb strong { font-size: 11px; }
.page-heading { align-items: center; margin-bottom: 28px; }
.page-heading h1 { margin: 6px 0 8px; color: #13233f; font-size: clamp(29px, 2.45vw, 38px); font-weight: 780; letter-spacing: -.05em; }
.page-heading p { max-width: 800px; color: #697891; font-size: 14px; line-height: 1.55; }
.eyebrow { color: #647797; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.panel { border-color: #e2e8f0; border-radius: 19px; box-shadow: 0 6px 24px rgba(27, 45, 78, .055); }
.panel-heading { padding: 23px 25px 17px; }
.panel-heading h2 { margin: 6px 0 4px; color: #192a47; font-size: 19px; font-weight: 740; letter-spacing: -.035em; }
.panel-heading p { color: #718097; font-size: 12px; line-height: 1.55; }
.button { min-height: 44px; padding: 0 17px; font-size: 12px; font-weight: 720; border-radius: 11px; }
.button-small { min-height: 35px; padding: 0 12px; font-size: 11px; border-radius: 9px; }
.button-primary { border-color: #315fe6; background: linear-gradient(135deg, #4775f1, #3158d5); box-shadow: 0 7px 17px rgba(49, 95, 230, .2); }
.button-primary:hover { box-shadow: 0 10px 22px rgba(49, 95, 230, .25); }
.button-secondary { color: #3d4f6c; border-color: #dce4ef; background: #fff; }
.button-secondary:hover { color: #264fc8; border-color: #b8c8f4; background: #f7f9ff; }
.button-danger-ghost { color: #a83e4e; border-color: #edcbd1; background: #fff7f8; }
.metric-grid { gap: 16px; margin-bottom: 22px; }
.metric-card { position: relative; overflow: hidden; padding: 21px 22px 19px; border-color: #e1e8f1; border-radius: 18px; box-shadow: 0 5px 18px rgba(27, 45, 78, .05); }
.metric-card::after { position: absolute; right: -32px; bottom: -42px; width: 120px; height: 120px; border: 1px solid rgba(87, 119, 209, .08); border-radius: 50%; box-shadow: 0 0 0 18px rgba(87, 119, 209, .025), 0 0 0 38px rgba(87, 119, 209, .02); content: ""; pointer-events: none; }
a.metric-card:hover { transform: translateY(-3px); border-color: #cbd7ee; box-shadow: 0 14px 32px rgba(27, 45, 78, .11); }
.metric-label { color: #64748b; font-size: 12px; font-weight: 650; }
.metric-icon { width: 42px; height: 42px; border-radius: 13px; }
.metric-value { margin-top: 16px; color: #14233d; font-size: 36px; font-weight: 780; }
.metric-foot { margin-top: 14px; color: #718099; font-size: 11px; }
.dashboard-grid { gap: 19px; margin-bottom: 21px; }
.data-table { min-width: 820px; }
.data-table th { height: 46px; padding-right: 17px; padding-left: 17px; color: #60718b; font-size: 10px; font-weight: 780; letter-spacing: .1em; background: #f7f9fc; }
.data-table td { height: 66px; padding: 12px 17px; color: #42536d; font-size: 12px; border-bottom-color: #edf1f6; }
.data-table th:first-child, .data-table td:first-child { padding-left: 24px; }
.data-table tbody tr:hover { background: #f9fbff; }
.table-primary-link { color: #3158c8; font-size: 12px; font-weight: 740; }
.table-subtext, .v3-small { color: #718099; font-size: 10px; }
.status-badge { gap: 7px; padding: 6px 10px; font-size: 10px; font-weight: 720; }
.status-badge i { width: 7px; height: 7px; }
.row-action { width: 34px; height: 34px; color: #667892; border: 1px solid #e5ebf3; border-radius: 10px; background: #fff; }
.row-action:hover { color: #3158c8; border-color: #cbd8fa; background: #f4f7ff; }
.tab-row { gap: 24px; padding-right: 25px; padding-left: 25px; }
.tab-link { min-height: 54px; color: #64748b; font-size: 12px; font-weight: 650; }
.tab-link.is-current { color: #294fc2; }
.filter-bar { gap: 11px; padding: 18px 23px; }
.search-control, .date-filter { min-height: 42px; border-radius: 11px; }
.search-control input, .date-filter input { color: #334761; font-size: 12px; }
.date-filter { gap: 8px; padding: 0 11px; }
.date-filter input { width: 125px; }
.filter-submit { min-height: 42px; font-size: 11px; }
.form-field { gap: 8px; color: #3f526e; font-size: 12px; font-weight: 700; }
.form-field > span { color: #425570; }
.form-field input, .form-field select, .form-field textarea, .form-input-small { min-height: 45px; padding: 10px 13px; color: #293d59; font-size: 13px; border-color: #dce4ef; border-radius: 11px; }
.form-field textarea { min-height: 96px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .form-input-small:focus { border-color: #8ca8f7; box-shadow: 0 0 0 4px rgba(61, 99, 221, .1); }
.form-field small { color: #718097; font-size: 10px; }
.form-grid { gap: 21px 22px; padding: 25px; }
.form-panel-heading { padding-bottom: 19px; }
.required-note { color: #718097; font-size: 11px; }
.upload-dropzone { min-height: 150px; border-color: #bfcce0; border-radius: 15px; background: linear-gradient(180deg, #fbfcff, #f7f9fd); }
.upload-icon { width: 43px; height: 43px; border-radius: 14px; }
.upload-dropzone strong { color: #30425e; font-size: 13px; }
.upload-dropzone small { color: #73829a; font-size: 11px; }
.file-limit-chip { padding: 8px 11px; color: #536682; font-size: 10px; font-weight: 700; border-color: #dce5f0; border-radius: 9px; background: #f7f9fc; }
.form-actions { padding-top: 6px; }
.detail-layout, .entity-layout { gap: 19px; }
.detail-main-column, .detail-side-column { gap: 18px; }
.detail-title-line h1 { font-size: clamp(28px, 2.25vw, 36px); }
.detail-heading p { margin-top: 9px; font-size: 13px; }
.detail-stats-row { padding: 19px 25px 20px; }
.detail-stats-row span, .detail-field span { color: #687a94; font-size: 11px; font-weight: 600; }
.detail-stats-row strong { color: #2a3d58; font-size: 13px; }
.detail-field-grid { gap: 20px 25px; padding: 7px 25px 25px; }
.detail-field strong { color: #263b59; font-size: 13px; font-weight: 650; line-height: 1.55; }
.action-panel { padding: 18px; }
.action-title strong { color: #283e5c; font-size: 13px; }
.action-title small { color: #718099; font-size: 10px; }
.action-panel .panel-heading { padding: 3px 3px 14px; }
.action-panel .panel-heading h2 { font-size: 16px; }
.action-panel .panel-heading p { font-size: 11px; }
.stacked-form { gap: 15px; padding-right: 21px; padding-left: 21px; }
.side-tip { padding: 16px; border-radius: 14px; background: #f7f9fc; }
.side-tip strong { color: #435775; font-size: 11px; }
.side-tip p { color: #718099; font-size: 11px; }
.note-strip, .v3-note { color: #4f627e; font-size: 11px; border-radius: 13px; }
.v3-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0 24px; }
.v3-progress-step { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 13px; text-align: left; border-radius: 15px; box-shadow: 0 3px 10px rgba(23, 44, 82, .035); }
.v3-progress-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; color: #72819a; border-radius: 12px; background: #edf1f7; }
.v3-progress-step.done .v3-progress-icon { color: #128264; background: #dff6ed; }
.v3-progress-step.current .v3-progress-icon { color: #3158c8; background: #e4ebff; }
.v3-progress-copy { display: grid; gap: 4px; min-width: 0; }
.v3-progress-copy strong { color: #52637d; font-size: 12px; font-weight: 740; }
.v3-progress-copy small { color: #7888a0; font-size: 10px; }
.v3-progress-step.done .v3-progress-copy strong { color: #16795f; }
.v3-progress-step.current .v3-progress-copy strong { color: #2e55bf; }
.rejection-banner { align-items: center; gap: 13px; margin: -8px 0 15px; padding: 15px 18px; border-radius: 14px; }
.rejection-banner > span { flex: 0 0 34px; width: 34px; height: 34px; color: #bd4053; }
.rejection-banner strong { font-size: 13px; }
.rejection-banner p { margin-top: 4px; font-size: 12px; line-height: 1.5; }
.v3-attachment { padding: 13px 15px; border-color: #e1e8f1; border-radius: 12px; background: #fafcff; }
.v3-attachment strong { color: #30435f; font-size: 11px; }
.v3-attachment small { color: #718099; font-size: 10px; }
.v3-attachment-list { gap: 10px; }
.empty-inline { padding: 9px 24px 21px; color: #718099; font-size: 12px; }
.alert { min-height: 48px; padding: 13px 16px; font-size: 13px; border-radius: 12px; }
.page-footer { padding-top: 25px; color: #718099; font-size: 10px; }

/* Invoice edit permissions are visible and understandable at a glance. */
.invoice-edit-guide { display: flex; align-items: center; gap: 12px; margin: 0 18px 13px; padding: 13px 15px; border: 1px solid #dbe6fb; border-radius: 14px; background: linear-gradient(100deg, #f4f7ff, #fbfcff); }
.invoice-edit-guide-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: #3158c8; border-radius: 12px; background: #e7edff; }
.invoice-edit-guide-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.invoice-edit-guide-copy strong { color: #263f72; font-size: 12px; font-weight: 780; }
.invoice-edit-guide-copy small { color: #5f7190; font-size: 10px; line-height: 1.5; }
.invoice-edit-legend { display: inline-flex; align-items: center; gap: 6px; color: #516581; font-size: 10px; font-weight: 700; white-space: nowrap; }
.invoice-edit-legend i { display: grid; place-items: center; width: 25px; height: 25px; color: #168260; border-radius: 8px; background: #e0f6ed; font-style: normal; }
.invoice-edit-legend i.is-locked { color: #76849a; background: #e9edf3; }
.invoice-row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.row-action-edit { color: #3158c8; border-color: #dce5ff; background: #f3f6ff; }
.row-action-edit:hover { color: #2148b4; border-color: #b9c9f7; background: #e9efff; }
.row-lock-indicator { display: grid; place-items: center; width: 34px; height: 34px; color: #8995a8; border: 1px solid #e5eaf1; border-radius: 10px; background: #f8f9fb; cursor: help; }
.invoice-edit-state { display: flex; align-items: center; gap: 13px; margin: 0 0 20px; padding: 15px 18px; border: 1px solid; border-radius: 15px; box-shadow: 0 5px 18px rgba(27, 45, 78, .04); }
.invoice-edit-state.is-open { border-color: #bde8d7; background: linear-gradient(100deg, #f0fbf6, #fbfffd); }
.invoice-edit-state.is-locked { border-color: #dfe5ed; background: linear-gradient(100deg, #f4f6f9, #fbfcfe); }
.invoice-edit-state-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; color: #178363; border-radius: 13px; background: #ddf6eb; }
.invoice-edit-state.is-locked .invoice-edit-state-icon { color: #64748b; background: #e6ebf2; }
.invoice-edit-state > span:nth-child(2) { display: grid; gap: 4px; flex: 1; min-width: 0; }
.invoice-edit-state strong { color: #156b53; font-size: 13px; font-weight: 780; }
.invoice-edit-state.is-locked strong { color: #43536b; }
.invoice-edit-state small { color: #5f748c; font-size: 11px; line-height: 1.5; }
.invoice-edit-state-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: #16795c; font-size: 10px; font-weight: 800; white-space: nowrap; border: 1px solid #cdeee0; border-radius: 999px; background: #e3f8ef; }
.invoice-edit-state.is-locked .invoice-edit-state-tag { color: #61718a; border-color: #dce3ec; background: #edf1f6; }

@media (max-width: 1100px) {
  .invoice-edit-guide { flex-wrap: wrap; }
  .invoice-edit-guide-copy { flex-basis: calc(100% - 54px); }
  .invoice-edit-legend { margin-left: 47px; }
  body .v3-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-area { padding: 22px 17px 18px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 12px; }
  .panel-heading { padding: 18px 17px 14px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading p { font-size: 11px; }
  .metric-grid { gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 28px; }
  .metric-foot { font-size: 10px; }
  .button { min-height: 42px; padding-right: 13px; padding-left: 13px; font-size: 11px; }
  .button-small { min-height: 34px; font-size: 10px; }
  .data-table th { font-size: 9px; }
  .data-table td { font-size: 11px; }
  .form-grid { gap: 15px; padding: 17px; }
  .form-field { font-size: 11px; }
  .form-field input, .form-field select, .form-field textarea, .form-input-small { min-height: 43px; font-size: 12px; }
  .detail-field-grid { gap: 15px; padding-right: 17px; padding-left: 17px; }
  .detail-field strong { font-size: 12px; }
  body .v3-progress { grid-template-columns: 1fr; gap: 8px; margin: 15px 0 18px; }
  body .v3-progress-step { min-height: 60px; }
  .invoice-edit-guide { align-items: flex-start; margin-right: 10px; margin-left: 10px; padding: 11px; }
  .invoice-edit-guide-icon { flex-basis: 32px; width: 32px; height: 32px; }
  .invoice-edit-guide-copy { flex-basis: calc(100% - 46px); }
  .invoice-edit-guide-copy small { font-size: 10px; }
  .invoice-edit-legend { margin-left: 43px; font-size: 10px; }
  .invoice-edit-state { align-items: flex-start; padding: 12px; }
  .invoice-edit-state-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .invoice-edit-state-tag { display: none; }
  .invoice-edit-state small { font-size: 10px; }
  .invoice-row-actions { gap: 4px; }
  .row-action, .row-lock-indicator { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.invoice-inline-update, .invoice-inline-lock { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; padding: 0 9px; font-size: 10px; font-weight: 760; white-space: nowrap; border: 1px solid; border-radius: 9px; }
.invoice-inline-update { color: #2853c3; border-color: #cbd8fb; background: #f1f5ff; }
.invoice-inline-update:hover { color: #183fa8; border-color: #9fb5f1; background: #e5ecff; }
.invoice-inline-lock { color: #6d7d94; border-color: #dde4ed; background: #f6f8fa; cursor: help; }
@media (max-width: 760px) {
  .topbar { padding-right: 15px; padding-left: 15px; }
  .topbar-main { min-height: 62px; }
  .topbar-brand-copy strong { font-size: 12px; }
  .invoice-inline-update, .invoice-inline-lock { width: 30px; min-height: 30px; padding: 0; border-radius: 8px; }
  .invoice-inline-update span, .invoice-inline-lock span { display: none; }
}
@media (max-width: 760px) {
  .invoice-table td { font-size: 11px; }
  .invoice-table td:nth-child(4) { color: #718099; font-size: 10px; }
  .invoice-table td:nth-child(6) { font-size: 12px; }
  .invoice-table td:nth-child(7) { font-size: 10px; }
}

/* V3 migration guard: no legacy left rail in any view. */
.app-shell, .main-shell { width: 100% !important; margin-left: 0 !important; }
.sidebar, .sidebar-scrim, .side-navigation, .sidebar-bottom, .sidebar-close { display: none !important; }
.top-navigation-v1 { display: flex; flex-flow: row wrap; align-items: center; gap: 6px; width: min(100%,1600px); margin: 0 auto; padding: 8px clamp(20px,3vw,44px) 9px; }

/* ------------------------------------------------------------------
   Dosya seçme alanları (05.10.2026 · dosya-girisi-tasmasi)
   "genişlik: %100" kuralı gizli dosya girişine uygulanınca kutu, panelin sol
   boşluğu kadar sağa taşıyor ve sayfada sağa-sola kaydırma çubuğu oluşuyordu.
   Dosya girişleri artık bu kuraldan muaftır; yükleme alanlarındaki gizli giriş
   1 piksel boyutunda ve kendi alanına konumlandırılmış olarak durur.
   ------------------------------------------------------------------ */
.form-field input[type="file"] { width: auto; max-width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; }
.upload-dropzone-compact { position: relative; }
.upload-dropzone-compact input[type="file"] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; border: 0; }
