﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Display:wdth,wght@62.5,700&display=swap');

:root {
    --red: #df0e21;
    --dark: #202427;
    --muted: #6b7378;
    --line: #e4e7e9;
    --soft: #f5f6f7;
    --blue: #156eb8;
    --cream: #fff5d9;
    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --surface-3: #eef3f7;
    --ink-strong: #1f2f3e;
    --ink-soft: #5f6f7d;
    --accent-navy: #2f5d86;
    --accent-navy-soft: #eaf2f8;
}

/* Quantity revision create/edit workspace */
.quantity-revision-form-workspace { display:grid; gap:18px; color:#24362f; }
.quantity-revision-form-hero { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:28px 30px; border-radius:16px; color:#fff; background:linear-gradient(135deg,#013927 0%,#07513a 100%); box-shadow:0 16px 34px rgba(1,57,39,.18); }
.quantity-revision-form-eyebrow,.quantity-revision-form-card-head>span { display:block; margin-bottom:6px; color:#c2a685; font-size:11px; font-weight:800; letter-spacing:.12em; }
.quantity-revision-form-hero h1 { margin:0 0 18px; font-size:clamp(26px,3vw,38px); font-weight:750; }
.quantity-revision-form-identity { display:flex; flex-wrap:wrap; gap:12px 28px; }
.quantity-revision-form-identity span { display:grid; gap:3px; }
.quantity-revision-form-identity small { color:rgba(255,255,255,.62); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.quantity-revision-form-identity strong { font-size:13px; font-weight:650; }
.quantity-revision-form-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.quantity-revision-form-metrics article { min-height:94px; padding:18px; border:1px solid rgba(114,121,89,.18); border-radius:13px; background:#fff; box-shadow:0 8px 22px rgba(20,43,34,.06); }
.quantity-revision-form-metrics span,.quantity-revision-preview-grid span { display:block; margin-bottom:9px; color:#727959; font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.055em; }
.quantity-revision-form-metrics strong { color:#20332b; font-size:17px; }
.quantity-revision-form-metrics .is-accent { border-color:#c2a685; background:#efeada; }
.quantity-revision-boss-warning,.quantity-revision-info-box { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; border-radius:12px; }
.quantity-revision-boss-warning { border:1px solid #d4b478; background:#fff7e6; color:#624b20; }
.quantity-revision-boss-warning div { display:grid; gap:3px; }
.quantity-revision-boss-warning span { font-size:12px; }
.quantity-revision-boss-warning a { flex:none; color:#013927; font-weight:750; }
.quantity-revision-info-box { justify-content:flex-start; border:1px solid rgba(114,121,89,.24); background:#efeada; }
.quantity-revision-info-box>span { display:grid; place-items:center; flex:0 0 28px; height:28px; border-radius:50%; color:#fff; background:#727959; font-family:serif; font-weight:800; }
.quantity-revision-info-box p { margin:0; font-size:13px; }
.quantity-revision-form { display:grid; gap:18px; }
.quantity-revision-form-card,.quantity-revision-preview { padding:24px; border:1px solid rgba(114,121,89,.17); border-radius:15px; background:#fff; box-shadow:0 10px 28px rgba(20,43,34,.07); }
.quantity-revision-form-card-head { margin-bottom:20px; }
.quantity-revision-form-card-head h2 { margin:0 0 5px; color:#013927; font-size:20px; }
.quantity-revision-form-card-head p { margin:0; color:#6e786f; font-size:12px; }
.quantity-revision-direction { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.quantity-revision-direction label { cursor:pointer; }
.quantity-revision-direction input { position:absolute; opacity:0; pointer-events:none; }
.quantity-revision-direction label>span { display:grid; gap:3px; padding:17px 18px; border:1px solid #dce1dc; border-radius:12px; background:#fafbf9; transition:.18s ease; }
.quantity-revision-direction input:checked+span { border-color:#013927; background:#efeada; box-shadow:0 0 0 2px rgba(1,57,39,.08); }
.quantity-revision-direction strong { color:#013927; font-size:14px; }
.quantity-revision-direction small { color:#727959; font-size:11px; }
.quantity-revision-amount-field { max-width:610px; margin-top:22px; }
.quantity-revision-amount-field>label,.quantity-revision-reason-label { display:block; margin-bottom:8px; color:#263a31; font-size:12px; font-weight:750; }
.quantity-revision-amount-input { display:flex; align-items:center; overflow:hidden; border:2px solid #d5dbd5; border-radius:12px; background:#fff; }
.quantity-revision-amount-input:focus-within { border-color:#013927; box-shadow:0 0 0 3px rgba(1,57,39,.09); }
.quantity-revision-amount-input input { min-width:0; width:100%; padding:15px 17px; border:0; outline:0; color:#013927; font-size:24px; font-weight:750; }
.quantity-revision-amount-input span { align-self:stretch; display:grid; place-items:center; min-width:74px; padding:0 16px; color:#fff; background:#727959; font-weight:750; }
.quantity-revision-amount-field>small { display:block; margin-top:7px; color:#7c857e; font-size:11px; }
.quantity-revision-decrease-note,.quantity-revision-preview-warning { margin-top:16px; padding:12px 14px; border-left:4px solid #c2a685; border-radius:7px; background:#fff8ed; color:#665131; font-size:12px; }
.quantity-revision-preview { background:#f7f5ee; }
.quantity-revision-preview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid #dfe2d8; border-radius:12px; background:#dfe2d8; }
.quantity-revision-preview-grid>div { min-height:88px; padding:17px; background:#fff; }
.quantity-revision-preview-grid strong { color:#013927; font-size:17px; }
.quantity-revision-preview-grid .is-financial { background:#013927; }
.quantity-revision-preview-grid .is-financial span { color:#c2a685; }
.quantity-revision-preview-grid .is-financial strong { color:#fff; }
.quantity-revision-form textarea { width:100%; padding:15px 16px; resize:vertical; border:1px solid #d5dbd5; border-radius:11px; outline:0; line-height:1.55; }
.quantity-revision-form textarea:focus { border-color:#013927; box-shadow:0 0 0 3px rgba(1,57,39,.08); }
.quantity-revision-validation-summary,.field-validation-error { color:#a12828; font-size:12px; }
.quantity-revision-validation-summary:empty,.field-validation-error:empty { display:none; }
.quantity-revision-form-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 0 8px; }
.quantity-revision-form-actions>div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; }
.quantity-revision-form-button { display:inline-flex; align-items:center; justify-content:center; min-height:43px; padding:10px 18px; border:1px solid transparent; border-radius:9px; text-decoration:none; font-size:12px; font-weight:750; cursor:pointer; }
.quantity-revision-form-button.is-hero { border-color:rgba(255,255,255,.34); color:#fff; background:rgba(255,255,255,.09); }
.quantity-revision-form-button.is-secondary { border-color:#cbd2cc; color:#33463d; background:#fff; }
.quantity-revision-form-button.is-draft { border-color:#727959; color:#525a40; background:#efeada; }
.quantity-revision-form-button.is-primary { color:#fff; background:#013927; box-shadow:0 8px 18px rgba(1,57,39,.16); }
.quantity-revision-form-button:disabled { cursor:not-allowed; opacity:.45; box-shadow:none; }
@media (max-width:991px) { .quantity-revision-form-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .quantity-revision-preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .quantity-revision-form-hero { align-items:flex-start; flex-direction:column; padding:23px 20px; } .quantity-revision-form-identity { display:grid; } .quantity-revision-form-metrics,.quantity-revision-direction,.quantity-revision-preview-grid { grid-template-columns:1fr; } .quantity-revision-boss-warning,.quantity-revision-form-actions { align-items:stretch; flex-direction:column; } .quantity-revision-form-actions>div { display:grid; grid-template-columns:1fr; } .quantity-revision-form-button { width:100%; } }
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
* { box-sizing: border-box; }
body {
    margin: 0; font-family: Inter, Arial, sans-serif; color: var(--dark);
    background: #f3f4f5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.topbar {
    min-height: 68px;
    background: #fff;
    color: #0097b2;
    width: 100%;
    padding: 0 28px;
    border-bottom: 1px solid #d9edf2;
    box-shadow: 0 10px 28px rgba(0, 151, 178, 0.08);
}
.topbar-inner {
    width: min(100%, 1500px);
    margin-inline: auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.topbar-inner > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar strong { font-size: 23px; letter-spacing: .08em; color: #0097b2; font-weight: 800; }
.topbar span { color: #0097b2; font-weight: 700; }
.topbar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.topbar nav a,
.topbar nav button {
    padding: 10px 13px;
    border-radius: 8px;
    color: #0097b2;
    font-weight: 800;
    white-space: nowrap;
}
.topbar nav a.active,
.topbar nav button.active {
    background: #eefafd;
    color: #0097b2;
}
.topbar nav a:hover,
.topbar nav button:hover {
    background: #eefafd;
    color: #0097b2;
}
.topbar nav button {
    border: 0;
    cursor: pointer;
    background: transparent;
}
.topbar-logout-form {
    margin: 0;
    display: inline-flex;
}
.topbar .logout {
    background: #fff;
    color: #0097b2;
    border: 1px solid #b7e3eb;
    box-shadow: none;
}
.topbar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #b7e3eb;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.topbar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0097b2;
}
.page {
    width: min(100% - 56px, 1500px);
    margin-inline: auto;
    padding: 28px;
}
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.alert-success { background: #dff5e6; color: #155b2b; }
.alert-danger { background: #ffe0e3; color: #86111d; }
.alert-warning { background: #fff0cc; color: #725000; }
.hero {
    background: linear-gradient(120deg, #111 0%, #24282b 72%, var(--red) 72%);
    min-height: 210px;
    color: white;
    border-radius: 18px;
    padding: 38px;
    display: flex;
    align-items: center;
    box-shadow: 0 18px 45px rgba(0,0,0,.13);
}
.eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 800; color: var(--red); }
.hero .eyebrow { color: white; opacity: .75; }
.hero h1, .page-heading h1 { margin: 9px 0 10px; font-size: clamp(30px, 4vw, 48px); }
.hero p, .page-heading p { margin: 0; color: #d7dadd; font-size: 17px; }
.page-heading p { color: var(--muted); }
.page-heading {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
    margin-bottom: 22px;
}
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 18px; }
.kpi { background: #fff; border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.kpi b { display: block; font-size: 36px; }
.kpi span { color: var(--muted); font-weight: 700; }
.action-grid, .project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.action-card, .project-card, .empty-card {
    background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 24px;
    transition: .2s ease;
}
.action-card:hover, .project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,.08); }
.action-card h3, .project-card h3 { margin: 0 0 9px; font-size: 21px; }
.action-card p, .project-card p { color: var(--muted); line-height: 1.5; }
.project-card > span { font-size: 12px; color: var(--red); font-weight: 800; }
.project-card > div { margin-top: 15px; font-weight: 700; }
.tabs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel {
    background: #fff; border: 1px solid var(--line); border-radius: 15px;
    padding: 22px; margin-bottom: 18px;
}
.panel h2 { margin-top: 0; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-5 { grid-template-columns: 2fr 1fr 1fr 2fr auto; }
.form-grid textarea { min-height: 44px; }
input, select, textarea {
    width: 100%; border: 1px solid #cfd4d7; background: white; padding: 11px 12px;
    border-radius: 8px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223,14,33,.09); }
button {
    border: 1px solid #d5dde4;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fa 100%);
    color: var(--ink-strong);
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(20, 39, 56, 0.05);
}
button:hover {
    background: var(--accent-navy-soft);
    border-color: #b8c8d6;
    color: var(--accent-navy);
}
.form-grid button { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form input:nth-child(2) { flex: 1; }
.mini-list { margin-top: 14px; border-top: 1px solid var(--line); }
.mini-list > div, .mini-list > a {
    display: flex; justify-content: space-between; gap: 15px; padding: 11px 2px;
    border-bottom: 1px solid var(--line);
}
.mini-list span { color: var(--muted); white-space: nowrap; }
.table-panel { padding: 0; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--cream); text-align: left; font-style: italic; padding: 10px 12px; border-bottom: 1px solid #c9bb8d; }
td { padding: 9px 12px; border-bottom: 1px dotted #9aa0a3; }
.compact-definition-table .compact-definition-main { width: 78%; }
.compact-definition-table .compact-definition-actions { width: 22%; }
.compact-definition-table .actions-column,
.compact-definition-table .actions-cell { text-align: center; }
.code { color: var(--red); font-weight: 900; }
.work-name { font-weight: 900; }
.parent-row { color: var(--red); font-weight: 800; }
.parent-row .work-name { color: var(--red); }
.child-row .work-name, .child-row td:nth-child(2) { color: var(--blue); font-weight: 800; }
.child-row { background: #fbfcfd; }
.link-danger { padding: 4px 8px; background: transparent; color: var(--red); }
.link-danger:hover { background: #ffe5e8; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.percentage-badge { padding: 13px 18px; border-radius: 12px; font-weight: 900; }
.percentage-badge.ok { background: #daf2e1; color: #15612d; }
.percentage-badge.warn { background: #fff0d5; color: #7d5200; }
.project-summary {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px;
}
.project-summary > div {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
    color: var(--dark);
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #dbe1e6;
    box-shadow: 0 8px 22px rgba(19, 36, 54, 0.05);
}
.project-summary span {
    display: block;
    color: #687681;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: .03em;
}
.project-summary b {
    font-size: 24px;
    line-height: 1.15;
    color: #1f2f3e;
}
.customer-kpi-panel {
    padding: 22px 24px 24px;
}
.customer-kpi-head {
    margin-bottom: 16px;
}
.customer-kpi-head h2 {
    margin: 8px 0 6px;
    font-size: 24px;
    color: #1f2f3e;
}
.customer-kpi-head p {
    margin: 0;
    color: #6d7882;
}
.customer-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.customer-kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    border: 1px solid #d7dee6;
    border-radius: 18px;
    padding: 20px 20px 18px;
    box-shadow: 0 14px 30px rgba(22, 40, 58, 0.06);
    position: relative;
    overflow: hidden;
}
.customer-kpi-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #9aa9b6;
}
.customer-kpi-card.planned::before {
    background: #255f8f;
}
.customer-kpi-card.done::before {
    background: #1f8a5b;
}
.customer-kpi-card.remaining::before {
    background: #d17a18;
}
.customer-kpi-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #344453;
}
.customer-kpi-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.customer-kpi-metrics div {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5eaee;
}
.customer-kpi-metrics div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.customer-kpi-metrics span {
    color: #70808d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.customer-kpi-metrics b {
    font-size: 28px;
    color: #1f2f3e;
    line-height: 1.1;
    word-break: break-word;
}
.work-block-header { display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; }
.work-block-header span { color: var(--red); font-weight: 900; }
.work-block-header h2 { margin: 5px 0 0; }
.work-block-header .amount { font-size: 23px; font-weight: 900; }
.progress-work-block .work-block-header {
    background: #727959;
    color: #ffffff;
}
.progress-work-block .work-block-header h2,
.progress-work-block .work-block-header p,
.progress-work-block .work-block-header .amount,
.progress-work-block .work-block-header b {
    color: #ffffff;
}
.work-block-status {
    align-self: center;
    justify-self: center;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    border: 0;
}
.work-block-status.is-active {
    color: #ffffff;
    background: transparent;
    border: 0;
}
.work-block-status.is-done {
    color: #ffffff;
    background: transparent;
    border: 0;
}
.ledger-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.ledger-header-title {
    text-align: center;
}

.ledger-view-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.ledger-view-switch a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
    color: var(--muted);
}

.ledger-view-switch a.active {
    color: var(--accent-navy);
    background: var(--accent-navy-soft);
    border-color: #bfd0df;
}

.project-table-group + .project-table-group {
    margin-top: 24px;
    border-top: 1px solid #d8dee5;
    padding-top: 24px;
}

.project-table-title {
    padding: 0 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.project-table-title span {
    color: var(--blue);
    font-weight: 800;
    letter-spacing: .01em;
}

.project-table-title strong {
    font-size: 22px;
    color: #18222d;
}

.grouped-ledger-table {
    border-top: 1px solid #d8dee5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.subcontractor-line { padding: 14px 22px; background: #f5f6f7; display: flex; gap: 8px; }
.subcontractor-line span { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-page {
    --login-bg: #f7f6f3;
    --login-panel: #fdfdfc;
    --login-panel-border: rgba(18, 24, 32, .09);
    --login-showcase: #17181b;
    --login-showcase-soft: #23252a;
    --login-text: #18212b;
    --login-text-soft: #626c78;
    --login-line: #d9dfe6;
    --login-accent: #df0e21;
    --login-accent-dark: #b30d1b;
    --login-shadow: 0 34px 80px rgba(15, 23, 42, .14);
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(23, 24, 27, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 24, 27, .04) 1px, transparent 1px),
        linear-gradient(rgba(223, 14, 33, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(223, 14, 33, .025) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(223, 14, 33, .07), transparent 28%),
        radial-gradient(circle at bottom right, rgba(17, 24, 39, .05), transparent 22%),
        linear-gradient(180deg, #f9f8f5 0%, #efeeeb 100%);
    background-size: 36px 36px, 36px 36px, 108px 108px, 108px 108px, auto, auto, auto;
    color: var(--login-text);
}

.login-page-main {
    min-height: 100vh;
    max-width: none;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-page-main > .alert {
    width: min(1120px, 100%);
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .08);
    font-weight: 700;
}

.login-page-main > .alert-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.login-page-main > .alert-danger {
    background: #fff1f2;
    color: #9f1239;
    border-color: #fecdd3;
}

.login-page-main > .alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(380px, 1.05fr) minmax(360px, .95fr);
    background: var(--login-panel);
    border: 1px solid var(--login-panel-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--login-shadow);
}

.login-showcase {
    position: relative;
    min-width: 0;
    background:
        linear-gradient(160deg, rgba(223, 14, 33, .16), transparent 34%),
        linear-gradient(180deg, var(--login-showcase) 0%, #1d1f23 100%);
    color: #fff;
}

.login-showcase-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 6px;
    background: var(--login-accent);
    border-radius: 0 0 12px 0;
}

.login-showcase-inner {
    height: 100%;
    padding: 34px 42px 28px;
    display: flex;
    flex-direction: column;
}

.login-showcase-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.login-brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: .08em;
}

.login-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border: 1px solid rgba(223, 14, 33, .52);
    border-radius: 999px;
    background: rgba(223, 14, 33, .12);
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-showcase h1 {
    margin: 0 0 8px;
    font-size: clamp(42px, 4.6vw, 54px);
    line-height: .96;
    letter-spacing: .04em;
}

.login-showcase h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .84);
}

.login-showcase-copy {
    max-width: 410px;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .8);
}

.login-timeline {
    display: grid;
    gap: 14px;
    padding: 20px 22px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
}

.login-timeline-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.login-timeline-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .72);
}

.login-timeline-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .06));
}

.login-timeline-track::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 72px 100%, 24px 100%;
}

.login-timeline-bar {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #df0e21, #ef4a58);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 8px 16px rgba(223, 14, 33, .16);
}

.login-timeline-bar-plan { width: 36%; }
.login-timeline-bar-progress { width: 64%; }
.login-timeline-bar-control { width: 78%; }
.login-timeline-bar-approval { width: 46%; }

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.login-feature-card {
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
}

.login-feature-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: #fff;
}

.login-feature-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.48;
    color: rgba(255, 255, 255, .66);
}

.login-feature-icon {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(223, 14, 33, .4);
    border-radius: 10px;
    background: rgba(223, 14, 33, .12);
}

.login-feature-icon::before,
.login-feature-icon::after {
    content: "";
    position: absolute;
}

.login-feature-icon-plan::before {
    left: 6px;
    right: 6px;
    top: 8px;
    height: 2px;
    background: #fff;
    box-shadow: 0 5px 0 rgba(255, 255, 255, .65);
}

.login-feature-icon-plan::after {
    left: 6px;
    top: 8px;
    width: 8px;
    height: 7px;
    border-radius: 999px;
    background: var(--login-accent);
}

.login-feature-icon-meterage::before {
    left: 6px;
    top: 13px;
    width: 16px;
    height: 2px;
    background: #fff;
    box-shadow: 0 -5px 0 rgba(255, 255, 255, .7), 0 5px 0 rgba(255, 255, 255, .7);
}

.login-feature-icon-meterage::after {
    left: 11px;
    top: 6px;
    width: 6px;
    height: 16px;
    border-left: 2px solid var(--login-accent);
    border-right: 2px solid var(--login-accent);
}

.login-feature-icon-progress::before {
    left: 6px;
    bottom: 6px;
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 999px 999px 0 0;
    box-shadow: 6px -3px 0 rgba(255, 255, 255, .82), 12px -7px 0 var(--login-accent);
}

.login-showcase-foot {
    margin: auto 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .54);
}

.login-panel {
    position: relative;
    min-width: 0;
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(253, 253, 252, .98), rgba(248, 248, 246, .98));
}

.login-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 32px;
    bottom: 32px;
    width: 1px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, .1), rgba(17, 24, 39, 0));
}

.login-panel-header {
    margin-bottom: 26px;
}

.login-panel-header h3 {
    margin: 0 0 8px;
    font-size: 36px;
    letter-spacing: -.03em;
    color: #161d27;
}

.login-panel-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--login-text-soft);
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #222937;
}

.login-field input {
    height: 58px;
    padding: 0 18px;
    border: 1px solid var(--login-line);
    border-radius: 16px;
    background: #fff;
    color: var(--login-text);
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.login-field input::placeholder {
    color: #98a1b2;
}

.login-field input:hover {
    border-color: #c1c9d4;
}

.login-field input:focus,
.login-field input:focus-visible {
    outline: none;
    border-color: var(--login-accent);
    box-shadow: 0 0 0 4px rgba(223, 14, 33, .12);
    background: #fffefe;
}

.login-submit {
    width: 100%;
    min-height: 60px;
    margin-top: 4px;
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #df0e21 0%, #c40f1f 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 14px 24px rgba(223, 14, 33, .18);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.login-submit:hover {
    background: linear-gradient(180deg, #c90d1e 0%, #ab0c19 100%);
    box-shadow: 0 16px 26px rgba(223, 14, 33, .22);
    color: #fff;
    border-color: transparent;
}

.login-submit:focus,
.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(223, 14, 33, .16), 0 16px 26px rgba(223, 14, 33, .18);
}

.login-submit:active {
    transform: translateY(1px);
}
@media (max-width: 900px) {
    .kpi-grid, .action-grid, .project-cards, .tabs-grid, .project-summary { grid-template-columns: 1fr 1fr; }
    .form-grid-5, .form-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .topbar { align-items: flex-start; padding: 15px; flex-direction: column; }
    .page { padding: 15px; }
    .kpi-grid, .action-grid, .project-cards, .tabs-grid, .project-summary, .form-grid, .form-grid-3, .form-grid-5 { grid-template-columns: 1fr; }
    .inline-form { flex-direction: column; align-items: stretch; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .table-panel { overflow-x: auto; }
    table { min-width: 780px; }
    .login-page-main {
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .login-showcase-inner,
    .login-panel {
        padding: 30px 28px;
    }

    .login-panel::before {
        left: 28px;
        right: 28px;
        top: 0;
        bottom: auto;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, .1), rgba(17, 24, 39, 0));
    }

    .login-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .login-page-main {
        padding: 14px;
    }

    .login-shell {
        border-radius: 22px;
    }

    .login-showcase-inner,
    .login-panel {
        padding: 28px 20px;
    }

    .login-showcase-top {
        gap: 10px;
    }

    .login-brand-mark {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .login-showcase-copy {
        font-size: 15px;
    }

    .login-timeline {
        padding: 16px;
        gap: 12px;
    }

    .login-timeline-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    .login-panel-header h3 {
        font-size: 29px;
    }
}

@media (max-width: 420px) {
    .login-page-main {
        padding: 10px;
    }

    .login-showcase-inner,
    .login-panel {
        padding: 24px 16px;
    }

    .login-eyebrow {
        font-size: 11px;
        letter-spacing: .1em;
    }

    .login-showcase h2 {
        font-size: 14px;
        letter-spacing: .12em;
    }
}


/* İş reçetesi: kod alanı dar, iş adı alanı geniş ve satırlar düzenlenebilir */
.recipe-add-form,
.recipe-edit-form {
    display: grid;
    grid-template-columns: 130px minmax(420px, 1fr) 150px 170px;
    gap: 10px;
    align-items: center;
}
.recipe-add-form .recipe-code-input,
.recipe-edit-form .recipe-code-input { min-width: 0; }
.recipe-add-form .recipe-name-input,
.recipe-edit-form .recipe-name-input { min-width: 0; }
.recipe-add-form button { height: 44px; }
.recipe-table .recipe-col-code { width: 140px; }
.recipe-table .recipe-col-name { width: auto; }
.recipe-table .recipe-col-percent { width: 160px; }
.recipe-table .recipe-col-actions { width: 180px; }
.recipe-edit-cell { padding: 10px 12px; }
.recipe-edit-form input { height: 42px; }
.recipe-actions { display: grid; grid-template-columns: 1fr 58px; gap: 7px; }
.recipe-actions button { height: 42px; padding: 8px 10px; }
.save-button {
    background: linear-gradient(180deg, #fdfefe 0%, #eef4f8 100%);
    color: var(--accent-navy);
    border-color: #bfd0df;
}
.recipe-actions .link-danger { background: #fff0f1; color: var(--red); }
.recipe-actions .link-danger:hover { background: var(--red); color: #fff; }
@media (max-width: 900px) {
    .recipe-add-form,
    .recipe-edit-form { grid-template-columns: 110px minmax(260px, 1fr) 125px 150px; }
}
@media (max-width: 700px) {
    .recipe-table-panel { overflow-x: auto; }
    .recipe-table { min-width: 850px; }
    .recipe-add-form { grid-template-columns: 1fr; }
}

.autofill-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
/* Aylık taşeron hakediş girişi */
.progress-page-heading { align-items: center; }
.page > .progress-period-panel:not(.relocated-period-panel),
.page > .progress-title-card:not(.relocated-title-card),
.page > .project-summary.progress-summary {
    display: none;
}
.progress-period-panel {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: #efeada;
    border-color: #efeada;
    color: #ffffff;
}
.progress-period-panel h2,
.progress-period-panel .hint,
.progress-period-panel p {
    color: #c2a685;
}
.relocated-period-panel {
    display: flex !important;
}
.relocated-title-card {
    display: flex !important;
}
.progress-period-panel h2 { margin-bottom: 5px; }
.period-selector {
    display: grid; grid-template-columns: 150px 120px auto auto; gap: 9px;
    min-width: 620px;
}
.progress-period-panel .period-selector button {
    background: #c2a685;
    color: #ffffff;
    border-color: #c2a685;
}
.progress-period-panel .period-selector button:hover {
    background: #c2a685;
    color: #ffffff;
    border-color: #c2a685;
}
.report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid #c6d4e0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fb 100%);
    color: var(--accent-navy);
    font-weight: 800;
    transition: .18s ease;
}
.report-button:hover {
    border-color: #aabfd1;
    color: #214f78;
    background: #edf5fb;
}
.progress-title-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 72%, #eef4f8 100%);
    color: var(--ink-strong);
    border: 1px solid #dbe4eb;
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 12px 28px rgba(19, 36, 54, 0.05);
}
.progress-title-card span { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.progress-title-card h2 { margin: 5px 0; font-size: 30px; color: var(--ink-strong); }
.progress-title-card p { margin: 0; color: var(--ink-soft); }
.progress-status {
    background: #fff8ea;
    color: #9a6500;
    border: 1px solid #f0ddb2;
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 900;
    white-space: nowrap;
}
.progress-summary { grid-template-columns: repeat(6, 1fr); }
.progress-work-block .work-block-header p { margin: 7px 0 0; color: #ffffff; }
.progress-entry-table {
    min-width: 1320px;
    border-top: 1px solid #e2d6ad;
}
.progress-entry-table th {
    white-space: nowrap;
    text-align: center;
    border-right: 1px solid #ece7d7;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .01em;
    color: #ffffff;
    background: #abb194;
    font-style: normal;
}
.progress-entry-table th:last-child {
    border-right: 0;
}
.progress-entry-table td {
    vertical-align: middle;
    text-align: right;
    border-right: 1px solid #e7ebef;
}
.progress-entry-table td:last-child {
    border-right: 0;
}
.progress-entry-table td:nth-child(1),
.progress-entry-table td:nth-child(2) { text-align: left; }
.progress-entry-table td:nth-child(1),
.progress-entry-table td:nth-child(2),
.progress-entry-table th:nth-child(1),
.progress-entry-table th:nth-child(2) {
    background: #fff;
}
.progress-entry-table th:nth-child(1),
.progress-entry-table th:nth-child(2) {
    border-right-color: #dfe5ea;
    background: #abb194;
    color: #ffffff;
}
.progress-entry-table td:nth-child(1),
.progress-entry-table td:nth-child(2) {
    border-right-color: #dfe5ea;
}
.progress-entry-table small {
    display: block; margin-top: 3px; color: var(--muted); font-size: 11px;
}
.progress-entry-table input {
    min-width: 105px; text-align: right; font-weight: 800;
    border-color: #bcc4c9; background: #fff;
}
.progress-entry-table input:focus { background: #fff9e8; }
.progress-save-panel {
    display: grid;
    gap: 14px;
    background: #efeada;
    border-color: #efeada;
}
.progress-save-fields {
    display: grid; grid-template-columns: 220px 1fr; gap: 10px;
}
.progress-save-fields textarea { min-height: 75px; }
.progress-save-button {
    width: 100%;
    background: #c2a685;
    color: #ffffff;
    border-color: #c2a685;
    font-size: 16px;
}
.progress-save-button:hover {
    background: #c2a685;
    color: #ffffff;
    border-color: #c2a685;
}
.progress-search-panel {
    display: grid;
    gap: 14px;
}
.progress-search-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}
.progress-search-head h2 {
    margin-bottom: 6px;
}
.progress-search-form {
    display: grid;
    grid-template-columns: 150px 120px 180px minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: end;
}
.progress-search-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.progress-search-summary > div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafbfc;
}
.progress-search-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}
.progress-search-summary b {
    font-size: 18px;
}
.progress-history-table-wrap {
    overflow-x: auto;
}
.progress-history-table {
    min-width: 1380px;
}
.progress-history-table th {
    white-space: nowrap;
    text-align: center;
    background: #ece3d6;
    color: #4d3636;
    font-style: normal;
    font-weight: 400;
}
.progress-history-table td {
    vertical-align: top;
    font-size: 14px;
}
.progress-history-table td:nth-child(5),
.progress-history-table td:nth-child(6),
.progress-history-table td:nth-child(7),
.progress-history-table td:nth-child(8),
.progress-history-table td:nth-child(9) {
    text-align: right;
    white-space: nowrap;
}
.progress-history-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}
.period-history {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.period-history-item {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.period-history-card {
    flex: 1;
    min-width: 0;
    min-height: 104px;
    border: 1px solid #727959;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: #727959;
    color: #ffffff;
}

.period-history-card b {
    font-size: 15px;
    line-height: 1.2;
}

.period-history-card .period-history-amount {
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: .01em;
}

.period-history-card span {
    color: #ffffff;
    font-size: 12px;
}

.period-history-card:hover,
.period-history-card.active {
    border-color: #727959;
    box-shadow: 0 0 0 3px rgba(114, 121, 89, .18);
}

.period-history-delete-form {
    display: flex;
    margin: 0;
}

.period-history-delete-button {
    min-width: 54px;
    border: 1px solid #dc2626;
    background: #ffffff;
    color: #b91c1c;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.period-history-delete-button:hover {
    background: #fff1f2;
    border-color: #b91c1c;
    color: #991b1b;
}
.approval-timeline-panel {
    display: grid;
    gap: 16px;
}
.approval-timeline-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}
.approval-timeline-card-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr);
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: #fafbfc;
}
.approval-timeline-card-head h3 {
    margin: 4px 0;
}
.approval-timeline-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.approval-timeline-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.approval-timeline-summary > div {
    border-left: 3px solid #94a3b8;
    padding: 4px 0 4px 10px;
}
.approval-timeline-summary span,
.approval-timeline-summary b {
    display: block;
}
.approval-timeline-summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.approval-timeline-summary b {
    font-size: 13px;
}
.approval-timeline {
    list-style: none;
    margin: 0;
    padding: 14px 18px 4px;
}
.approval-timeline-event {
    display: grid;
    grid-template-columns: 130px 18px minmax(0, 1fr);
    gap: 10px;
    min-height: 76px;
    position: relative;
}
.approval-timeline-event:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 138px;
    top: 19px;
    bottom: -4px;
    width: 2px;
    background: #dbe3ea;
}
.approval-timeline-time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding-top: 1px;
}
.approval-timeline-marker {
    width: 12px;
    height: 12px;
    margin: 3px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 2px #94a3b8;
    z-index: 1;
}
.approval-timeline-event.submitted .approval-timeline-marker { background: #2563eb; box-shadow: 0 0 0 2px #2563eb; }
.approval-timeline-event.manager-approved .approval-timeline-marker { background: #16a34a; box-shadow: 0 0 0 2px #16a34a; }
.approval-timeline-event.boss-approved .approval-timeline-marker { background: #166534; box-shadow: 0 0 0 2px #166534; }
.approval-timeline-event.returned .approval-timeline-marker { background: #ea580c; box-shadow: 0 0 0 2px #ea580c; }
.approval-timeline-event.cancelled .approval-timeline-marker { background: #dc2626; box-shadow: 0 0 0 2px #dc2626; }
.approval-timeline-event-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.approval-timeline-event-head span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.approval-timeline-content p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
}
.approval-timeline-description {
    margin: 6px 0 10px;
    padding: 8px 10px;
    border-left: 3px solid #ea580c;
    border-radius: 4px;
    background: #fff7ed;
    font-size: 13px;
    white-space: pre-wrap;
}
.approval-timeline-current {
    margin: 0 18px 18px 158px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    white-space: pre-line;
}
.report-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 12px 0 18px;
    padding: 16px 18px;
    border: 1px solid #efeada;
    border-radius: 14px;
    background: #efeada;
}
.report-toolbar-copy span {
    display: block;
    color: #4d3636;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}
.report-toolbar-copy h3 {
    margin: 6px 0 0;
    font-size: 22px;
    color: #4d3636;
}
.report-toolbar-form {
    display: grid;
    grid-template-columns: 200px 280px auto;
    gap: 12px;
    align-items: end;
}
.report-toolbar-form label {
    display: grid;
    gap: 6px;
}
.report-toolbar-form label span {
    color: #4d3636;
    font-size: 12px;
    font-weight: 800;
}
.report-toolbar-form select {
    min-height: 46px;
}
.report-toolbar .report-button {
    background: #c2a685;
    color: #ffffff;
    border-color: #c2a685;
}
.report-toolbar .report-button:hover {
    background: #c2a685;
    color: #ffffff;
    border-color: #c2a685;
}
.new-job-panel {
    background: #0097b2;
    border-color: #0097b2;
    color: #ffffff;
}

.new-job-panel h2,
.new-job-panel label,
.new-job-panel .hint,
.new-job-panel p {
    color: #ffffff;
}

.new-job-panel input,
.new-job-panel select,
.new-job-panel textarea {
    background: #ffffff;
}

.new-job-panel select:disabled {
    background: #ffffff;
    color: var(--muted);
    opacity: 1;
}

.new-job-panel button {
    background: #5ce1e6;
    color: #ffffff;
    border-color: #5ce1e6;
}

.new-job-panel button:hover {
    background: #45d3d9;
    color: #ffffff;
    border-color: #45d3d9;
}

.planning-create-form {
    grid-template-columns: repeat(40, minmax(0, 1fr));
}

.planning-field-customer {
    grid-column: span 16;
}

.planning-field-manager,
.planning-field-boss {
    grid-column: span 20;
}

.planning-field-job {
    grid-column: span 18;
}

.planning-field-code {
    grid-column: span 6;
}

.planning-field-start,
.planning-field-end {
    grid-column: span 14;
}

.planning-field-retention {
    grid-column: span 12;
}

.planning-field-submit {
    grid-column: 1 / -1;
    width: 100%;
}

.plan-list-table {
    min-width: 1480px;
}

@media (max-width: 900px) {
    .planning-create-form {
        grid-template-columns: 1fr 1fr;
    }

    .planning-field-customer,
    .planning-field-job,
    .planning-field-code,
    .planning-field-manager,
    .planning-field-boss,
    .planning-field-start,
    .planning-field-end,
    .planning-field-retention,
    .planning-field-submit {
        grid-column: span 1;
    }
}

@media (max-width: 1150px) {
    .progress-summary { grid-template-columns: repeat(3, 1fr); }
    .customer-kpi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .progress-period-panel { flex-direction: column; align-items: stretch; }
    .period-selector { grid-template-columns: 1fr; min-width: 0; }
    .customer-kpi-metrics div { grid-template-columns: 1fr; gap: 4px; }
    .progress-search-head { flex-direction: column; align-items: stretch; }
    .progress-search-form { grid-template-columns: 1fr; }
    .progress-search-summary { grid-template-columns: 1fr 1fr; }
    .approval-timeline-card-head { grid-template-columns: 1fr; }
    .approval-timeline-summary { grid-template-columns: 1fr; }
    .approval-timeline-event { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; }
    .approval-timeline-marker { position: absolute; left: 0; top: 1px; }
    .approval-timeline-event:not(:last-child)::after { left: 8px; top: 17px; bottom: -4px; }
    .approval-timeline-current { margin-left: 18px; }
    .report-toolbar { flex-direction: column; align-items: stretch; }
    .report-toolbar-form { grid-template-columns: 1fr; }
    .progress-title-card { align-items: flex-start; flex-direction: column; }
    .progress-summary { grid-template-columns: 1fr 1fr; }
    .progress-save-fields { grid-template-columns: 1fr; }
}

/* Hakediş metraj giriş alanı: rahat veri girişi ve kompakt sütun */
.progress-entry-table th:nth-child(5),
.progress-entry-table td:nth-child(5) {
    width: 118px;
    min-width: 118px;
    padding-left: 7px;
    padding-right: 7px;
}

.progress-entry-table .progress-quantity {
    width: 92px;
    min-width: 92px;
    padding-left: 8px;
    padding-right: 8px;
}

.progress-entry-table .progress-percentage {
    width: 96px;
    min-width: 96px;
}

.progress-entry-table input[type="text"] {
    text-align: right;
    font-weight: 800;
}

/* Hakediş ekranı: kodları gizle ve admin tarafından hazırlanan alanları ayır */
.progress-entry-table .admin-prepared-heading {
    font-weight: 900;
    color: var(--dark);
}
.progress-entry-table .admin-prepared-cell {
    background: #fff;
    color: #0097b2;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 900;
}
.progress-entry-table .planned-quantity {
    text-align: right;
    white-space: nowrap;
    background: #fff;
    color: #0097b2;
}
.progress-entry-table td:nth-child(1) {
    text-align: left;
}
.progress-entry-table td:nth-child(2) {
    text-align: right;
}

.selected-plan-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.secondary-link {
    color: var(--blue);
    font-weight: 800;
}

.secondary-link:hover {
    color: var(--red);
    text-decoration: underline;
}

.page-heading-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.plan-table-wrap,
.editable-plan-panel {
    overflow-x: auto;
}

.plan-list-table {
    min-width: 1240px;
    border-collapse: collapse;
}

.plan-list-table td,
.editable-plan-table td {
    vertical-align: middle;
}

.plan-filters {
    margin-bottom: 22px;
}

.project-detail-shell {
    display: grid;
    gap: 18px;
}

.project-recipe-panel {
    margin-bottom: 0;
}

.project-plan-block {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d8e8ec;
    box-shadow: 0 16px 32px rgba(17, 39, 52, 0.06);
}

.project-plan-table-wrap {
    overflow-x: auto;
}

.project-plan-table tfoot td {
    background: #0097b2;
    color: #ffffff;
    font-weight: 800;
}

.project-plan-parent-row td {
    background: #effcfd !important;
    color: #0097b2;
    font-weight: 800;
}

.project-plan-input,
.project-plan-select {
    width: 100%;
    min-width: 110px;
    min-height: 42px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    padding: 8px 10px;
    color: inherit;
    border-radius: 8px;
}

.project-plan-input[readonly],
.project-plan-select:disabled {
    opacity: 1;
    cursor: default;
}

.project-detail-shell .plan-row.is-editing .project-plan-input,
.project-detail-shell .plan-row.is-editing .project-plan-select {
    border-color: #7ad9de;
    background: rgba(255, 255, 255, 0.92);
}

.project-plan-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-plan-icon {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 900;
    box-shadow: none;
}

.project-plan-icon.edit-link {
    background: #eef6ff;
    border-color: #c8def7;
    color: #156eb8;
}

.project-plan-icon.save-link {
    background: #e9fbef;
    border-color: #bce7c8;
    color: #157347;
}

.project-plan-icon.delete-link {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #df0e21;
}

.project-plan-icon:hover {
    transform: translateY(-1px);
}

.plan-list-table th,
.plan-list-table td {
    border-right: 1px solid rgba(35, 46, 58, 0.18);
}

.plan-list-table th:last-child,
.plan-list-table td:last-child {
    border-right: 0;
}

.plan-list-table thead th {
    background: #0097b2;
    color: #ffffff;
    text-align: center;
    font-style: normal;
    font-weight: 800;
    border-bottom: 1px solid rgba(35, 46, 58, 0.18);
}

.plan-list-table tbody td {
    border-bottom: 1px solid rgba(35, 46, 58, 0.14);
}

.plan-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.plan-actions form {
    margin: 0;
}

.action-button {
    min-width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border-radius: 0;
    font-weight: 800;
    background: transparent;
    border: 0;
    box-shadow: none;
    white-space: nowrap;
    line-height: 1;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    font-size: 12px;
    line-height: 1;
}

.open-button,
.edit-button,
.copy-button,
.archive-button {
    color: var(--accent-navy);
}

.open-button:hover,
.edit-button:hover,
.copy-button:hover,
.archive-button:hover {
    color: #244f76;
    text-decoration: underline;
}

.delete-button {
    color: var(--red);
}

.delete-button:hover {
    color: #b20b1a;
    text-decoration: underline;
}

.editable-plan-table {
    width: 100%;
    min-width: 1180px;
}

.editable-parent-row td {
    padding: 12px 16px;
}

.work-edit-form {
    display: grid;
    grid-template-columns: minmax(320px, 2.2fr) 140px 150px 150px minmax(220px, 1.4fr) 170px;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.work-edit-form input,
.work-edit-form select {
    height: 42px;
}

.calculated-amount {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #cfd4d7;
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    white-space: nowrap;
}

.save-row-button {
    background: linear-gradient(180deg, #ffffff 0%, #eff4f8 100%);
    color: var(--accent-navy);
    border: 1px solid #c6d2dd;
    min-width: 98px;
}

.delete-row-button {
    background: #fff0f1;
    color: var(--red);
    min-width: 58px;
}

.delete-row-button:hover {
    background: var(--red);
    color: #fff;
}

@media (max-width: 900px) {
    .selected-plan-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .work-edit-form {
        min-width: 1120px;
    }
}

.subcontractor-summary {
    grid-template-columns: repeat(3, 220px);
}

.subcontractor-summary > div {
    height: 75px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subcontractor-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.subcontractor-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.subcontractor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 14, 33, .32);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .09);
}

.subcontractor-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.subcontractor-card-head h3 {
    margin: 6px 0 0;
    font-size: 22px;
}

.subcontractor-label {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.subcontractor-period {
    white-space: nowrap;
    background: #eef4f8;
    color: var(--accent-navy);
    border: 1px solid #c6d4e0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
}

.subcontractor-card p {
    color: var(--muted);
    line-height: 1.55;
    margin: 14px 0 18px;
}

.subcontractor-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.subcontractor-kpis > div,
.subcontractor-info-panel > div {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 14px 15px;
}

.subcontractor-kpis span,
.subcontractor-info-panel span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.subcontractor-kpis b,
.subcontractor-info-panel b {
    font-size: 21px;
}

.subcontractor-info-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.subcontractor-ledger-table td:nth-child(3),
.subcontractor-ledger-table td:nth-child(4),
.subcontractor-ledger-table td:nth-child(5),
.subcontractor-ledger-table td:nth-child(6) {
    text-align: right;
    white-space: nowrap;
}

.subcontractor-ledger-table small {
    display: block;
    color: #67727d;
    margin-top: 4px;
}

.subcontractor-ledger-table thead tr:first-child th {
    background: #abb194;
    text-align: center;
    font-style: normal;
    border-right: 1px dotted rgba(35, 46, 58, .45);
    border-bottom: 1px solid #abb194;
    color: #24313f;
    padding-top: 12px;
    padding-bottom: 12px;
}

.subcontractor-ledger-table thead tr:last-child th {
    background: #727959;
    text-align: center;
    font-style: normal;
    border-right: 1px dotted rgba(35, 46, 58, .45);
    border-bottom: 1px solid #727959;
    color: #ffffff;
}

.subcontractor-ledger-table td:first-child,
.subcontractor-ledger-table td:nth-child(2) {
    text-align: left;
}

.subcontractor-ledger-table th,
.subcontractor-ledger-table td {
    border-right: 1px dotted rgba(35, 46, 58, .4);
}

.subcontractor-ledger-table th:last-child,
.subcontractor-ledger-table td:last-child {
    border-right: 0;
}

.subcontractor-ledger-table tbody td {
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom: 1px dotted rgba(70, 84, 99, .28);
}

.subcontractor-ledger-table tbody tr:hover td {
    background: #f9fbfc;
}

.subcontractor-ledger-table tfoot td {
    color: var(--red);
    font-weight: 900;
    background: #abb194;
    border-top: 1px solid #abb194;
    font-size: 17px;
}

.subcontractor-ledger-table tfoot td:first-child {
    text-align: right;
}

.subcontractor-ledger-table tfoot td:nth-child(3),
.subcontractor-ledger-table tfoot td:nth-child(4),
.subcontractor-ledger-table tfoot td:nth-child(5),
.subcontractor-ledger-table tfoot td:nth-child(6) {
    text-align: right;
}

.project-customer-name {
    display: block;
    color: var(--blue);
    font-weight: 800;
    margin-bottom: 3px;
    letter-spacing: .01em;
}

.project-detail-link {
    display: block;
    font-weight: 900;
    color: #172432;
}

.project-detail-link:hover {
    color: var(--red);
}

.ledger-revision-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    margin-top: 6px;
    padding: 2px 8px;
    border: 1px solid #d6dfe4;
    border-radius: 999px;
    background: #f5f7f8;
    color: #52616b;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}
.ledger-revision-status.is-final { border-color: #b7ddcf; background: #edf8f4; color: #176847; }
.ledger-revision-status.is-pending { border-color: #bfd8ed; background: #eef6fc; color: #225f8d; }
.ledger-revision-status.is-revision { border-color: #dbcdf5; background: #f5f0fd; color: #6d43a5; }
.ledger-revision-status.is-draft { border-color: #e2d8bc; background: #fbf7ea; color: #7b6425; }
.ledger-revision-history-row > td {
    padding: 0 12px 12px !important;
    border-bottom: 1px dotted rgba(70, 84, 99, .28);
    background: #fbfcfd;
    text-align: left !important;
    white-space: normal !important;
}
.ledger-revision-history {
    overflow: hidden;
    border: 1px solid #dde5e9;
    border-radius: 10px;
    background: #fff;
}
.ledger-revision-history summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    color: #334650;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}
.ledger-revision-history summary::-webkit-details-marker { display: none; }
.ledger-revision-history summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    margin-left: auto;
    border-radius: 50%;
    background: #edf4f6;
    color: #46616e;
    font-size: 14px;
}
.ledger-revision-history[open] summary::after { content: "−"; }
.ledger-revision-history summary span {
    color: #7a8790;
    font-size: 10px;
    font-weight: 700;
}
.ledger-revision-history-list {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
    border-top: 1px solid #edf1f3;
}
.ledger-revision-history-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr repeat(3, minmax(90px, .7fr));
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #e6ebee;
    border-radius: 8px;
    background: #f8fafb;
}
.ledger-revision-history-item:first-child { margin-top: 11px; }
.ledger-revision-history-item > div { min-width: 0; }
.ledger-revision-history-item span {
    display: block;
    margin-bottom: 3px;
    color: #7a8790;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ledger-revision-history-item strong { display: block; color: #273842; font-size: 11px; overflow-wrap: anywhere; }
.ledger-revision-history-item small { margin-top: 2px; font-size: 9px; }
@media (max-width: 760px) {
    .ledger-revision-history-item { grid-template-columns: 1fr 1fr; }
    .ledger-revision-history-item > div:nth-child(n+3) { text-align: right; }
}

.pdf-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--red);
}

.release-row td {
    background: linear-gradient(180deg, #f4faff 0%, #edf6ff 100%);
}

.retention-release-panel {
    display: grid;
    gap: 18px;
    background: #0097b2;
    border-color: #0097b2;
    color: #ffffff;
}

.retention-release-header h2 {
    margin: 6px 0 4px;
    color: #ffffff;
}

.retention-release-header .eyebrow,
.retention-release-header .hint,
.retention-release-form label {
    color: #ffffff;
}

.retention-release-form {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 1.3fr 0.9fr 0.9fr;
    gap: 12px;
    align-items: end;
}

.retention-release-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.retention-release-notes {
    grid-column: 1 / -2;
}

.retention-release-notes textarea {
    min-height: 72px;
}

.retention-release-form button {
    grid-column: 5;
    height: 44px;
    background: #5ce1e6;
    color: #ffffff;
    border-color: #5ce1e6;
    min-width: 180px;
    box-shadow: 0 10px 22px rgba(92, 225, 230, .28);
}

.retention-release-form button:hover {
    background: #45d3d9;
    color: #ffffff;
    border-color: #45d3d9;
}

.retention-release-form button:disabled {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    cursor: not-allowed;
}

.retention-release-form input[readonly] {
    background: #ffffff;
}

.retention-release-status {
    min-height: 20px;
    color: #eaf7fb;
    font-weight: 700;
}

.extras-form {
    grid-template-columns: 1.05fr 1.05fr 1.2fr 0.8fr 0.8fr;
}

.extras-notes {
    grid-column: 1 / span 5;
}

.extras-ledger-table td:nth-child(5),
.extras-ledger-table td:nth-child(6) {
    text-align: right;
    white-space: nowrap;
}

.extras-ledger-table td:nth-child(7) {
    min-width: 220px;
}

@media (max-width: 900px) {
    .retention-release-form {
        grid-template-columns: 1fr 1fr;
    }

    .retention-release-notes {
        grid-column: 1 / -1;
    }

    .retention-release-form button {
        grid-column: auto;
    }

    .page-heading-actions {
        justify-content: flex-start;
    }

    .ledger-header {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .ledger-view-switch,
    .ledger-header-title,
    .ledger-header .amount {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 1100px) {
    .subcontractor-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .subcontractor-info-panel,
    .subcontractor-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .subcontractor-card-grid,
    .subcontractor-kpis,
    .subcontractor-info-panel,
    .subcontractor-summary {
        grid-template-columns: 1fr;
    }

    .retention-release-form {
        grid-template-columns: 1fr;
    }

    .retention-release-form button {
        grid-column: auto;
    }

    .subcontractor-card-head {
        flex-direction: column;
    }
}

.pdf-editor-hero {
    min-height: 160px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fb 68%, #eef3f7 100%);
    color: var(--ink-strong);
    border: 1px solid #dde5ec;
    box-shadow: 0 18px 45px rgba(20, 39, 56, 0.08);
}

.pdf-editor-hero .eyebrow {
    color: var(--red);
    opacity: 1;
}

.pdf-editor-hero h1 {
    color: var(--ink-strong);
}

.pdf-editor-hero p {
    color: var(--ink-soft);
}

.pdf-editor-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
    width: min(1880px, 100%);
    margin: 0 auto;
}

.pdf-editor-sidebar,
.pdf-editor-properties {
    display: grid;
    gap: 16px;
}

.pdf-editor-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #dbe4ec;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 28px rgba(20, 39, 56, 0.06);
}

.pdf-editor-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pdf-editor-panel h2,
.pdf-editor-panel h3 {
    margin: 0;
    color: var(--ink-strong);
}

.pdf-editor-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.pdf-editor-field span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.pdf-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.pdf-editor-actions-single {
    grid-template-columns: 1fr;
}

.pdf-editor-actions .secondary,
.pdf-editor-stage-actions .secondary {
    background: #ffffff;
}

.pdf-editor-meta {
    display: grid;
    gap: 8px;
}

.pdf-editor-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f8fb;
    border: 1px solid #e2eaf0;
}

.pdf-editor-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pdf-editor-tool {
    min-height: 56px;
}

.pdf-editor-help {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

.pdf-editor-upload {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 14px;
    background: #f5f8fb;
    border: 1px dashed #c9d5df;
}

.pdf-editor-upload span {
    font-weight: 800;
    color: var(--ink-strong);
}

.pdf-editor-assets {
    display: grid;
    gap: 16px;
}

.pdf-editor-asset-list {
    display: grid;
    gap: 10px;
    max-height: 240px;
    overflow: auto;
}

.pdf-editor-asset-button,
.pdf-editor-font-button {
    display: grid;
    gap: 8px;
    justify-items: start;
    text-align: left;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #d8e1e8;
}

.pdf-editor-asset-button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.pdf-editor-asset-button img {
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    background: #f7fafc;
    border-radius: 10px;
}

.pdf-editor-stage-wrap {
    display: grid;
    gap: 12px;
}

.pdf-editor-stage-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e2ea;
    border-radius: 16px;
    padding: 12px 14px;
}

.pdf-editor-stage-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-editor-stage-status {
    font-weight: 800;
    color: var(--accent-navy);
}

.pdf-editor-stage-status.is-error {
    color: var(--red);
}

.pdf-editor-stage-scroll {
    min-height: 900px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(28, 155, 192, 0.08), transparent 28%),
        linear-gradient(180deg, #edf3f7 0%, #e6edf3 100%);
    border: 1px solid #d9e2ea;
    border-radius: 22px;
    padding: 28px;
}

.pdf-editor-canvas-viewport {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transform-origin: top center;
}

.pdf-editor-canvas {
    position: relative;
    margin: 0 auto;
    background: #f4f7ff;
    box-shadow: 0 20px 50px rgba(16, 35, 52, 0.15);
    border: 1px solid #d8e1ea;
}

.pdf-editor-item {
    position: absolute;
    cursor: move;
    overflow: hidden;
    white-space: pre-wrap;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px;
    border-style: solid;
}

.pdf-editor-item.type-text {
    background: transparent !important;
}

.pdf-editor-item.type-line {
    padding: 0;
    min-height: 2px;
}

.pdf-editor-item.type-image {
    padding: 0;
}

.pdf-editor-item.is-selected {
    outline: 2px solid #1c9bc0;
    outline-offset: 2px;
}

.pdf-editor-resize-handle {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border: 2px solid #1c9bc0;
    background: #ffffff;
    border-radius: 50%;
    cursor: nwse-resize;
    padding: 0;
}

.pdf-editor-empty {
    color: var(--ink-soft);
    background: #f5f8fb;
    border: 1px dashed #c7d4df;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.pdf-editor-selected-fields.is-hidden {
    display: none;
}

.pdf-editor-inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 1400px) {
    .pdf-editor-shell {
        grid-template-columns: 280px minmax(0, 1fr);
        width: 100%;
    }

    .pdf-editor-properties {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .pdf-editor-shell,
    .pdf-editor-properties {
        grid-template-columns: 1fr;
    }

    .pdf-editor-stage-scroll {
        padding: 16px;
    }
}

.premium-dashboard-hero {
    justify-content: space-between;
    gap: 28px;
}

.hero-side-metric {
    min-width: 280px;
    padding: 24px 26px;
    border-radius: 18px;
    background: rgba(17,17,17,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: none;
}

.hero-side-metric span {
    display: block;
    font-size: 12px;
    letter-spacing: .12em;
    opacity: .82;
    margin-bottom: 8px;
}

.hero-side-metric strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 10px;
}

.hero-side-metric small {
    display: block;
    opacity: .82;
}

.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.executive-kpi-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    min-height: 138px;
    box-shadow: none;
}

.executive-kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.executive-kpi-card strong {
    display: block;
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 8px;
}

.executive-kpi-card small {
    color: var(--muted);
}

.executive-kpi-card.emphasis {
    background: #111;
    color: #fff;
    border-color: #111;
}

.executive-kpi-card.emphasis span,
.executive-kpi-card.emphasis strong,
.executive-kpi-card.emphasis small {
    color: #fff;
}

.executive-kpi-card.danger {
    border-color: #f0c8cb;
    background: #fff;
}

.dashboard-two-column {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 18px;
    margin-top: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.panel-head h2 {
    margin: 8px 0 0;
    font-size: 28px;
    color: #1f2f3e;
}

.panel-head p {
    margin: 8px 0 0;
    color: #6a7885;
}

.executive-insights-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.insight-list {
    display: grid;
    gap: 12px;
}

.insight-item {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f4f8fb;
    border: 1px solid #dbe4eb;
    color: #284154;
    font-weight: 700;
    line-height: 1.5;
}

.workflow-hero { align-items: center; }

.workflow-hero-metric { background: rgba(17,17,17,.18); }

.workflow-kpi-grid {
    margin-bottom: 18px;
}

.workflow-dashboard-panel {
    padding: 22px;
}

.workflow-project-grid {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.workflow-card-grid {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.workflow-project-card {
    border-width: 2.5px;
    border-color: #89b8cc;
    box-shadow:
        0 20px 44px rgba(18, 39, 58, 0.1),
        0 0 0 1px rgba(0, 151, 178, 0.08);
}

.workflow-project-card > summary {
    padding-bottom: 24px;
}

.workflow-project-card > .workflow-card-body {
    background: linear-gradient(180deg, #f7fbfd 0%, #eef6fa 100%);
    border-top: 1.5px solid #bed5e0;
}

.workflow-card {
    border: 2px solid #c4d5df;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    overflow: hidden;
    box-shadow:
        0 18px 38px rgba(18, 39, 58, 0.09),
        0 0 0 1px rgba(36, 79, 118, 0.04);
    position: relative;
    min-width: 0;
}

.workflow-card[open] {
    border-color: #0097b2;
    box-shadow:
        0 24px 48px rgba(0, 151, 178, 0.18),
        0 0 0 2px rgba(0, 151, 178, 0.1);
}

.workflow-card summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 24px;
    position: relative;
}

.workflow-card summary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(0, 151, 178, 0.12);
    pointer-events: none;
}

.workflow-card summary::-webkit-details-marker {
    display: none;
}

.workflow-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.workflow-project-label {
    display: inline-block;
    color: #5f7385;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.workflow-card h3 {
    margin: 0 0 6px;
    font-size: 26px;
    color: #1e2d3a;
}

.workflow-card p {
    margin: 0;
    color: #637483;
}

.workflow-reporting-note,
.workflow-assessment-note {
    margin-top: 10px;
    color: #5f7385;
    font-size: 14px;
    line-height: 1.5;
}

.workflow-assessment-note {
    margin-bottom: 14px;
    font-weight: 700;
}

.workflow-summary-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.workflow-card-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.workflow-card-metrics > div,
.workflow-item-meta > div {
    border: 1.5px solid #d2dde5;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.workflow-card-metrics span,
.workflow-item-meta span {
    display: block;
    color: #6b7a88;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.workflow-card-metrics b,
.workflow-item-meta b {
    color: #1d2d3c;
    font-size: 17px;
}

.workflow-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.workflow-status-good {
    background: #e8f8f0;
    color: #157246;
}

.workflow-status-warn {
    background: #fff5df;
    color: #9a6500;
}

.workflow-status-danger {
    background: #fff0f2;
    color: #b61a2a;
}

.workflow-status-neutral {
    background: #eef4f8;
    color: #476173;
}

.workflow-card-body {
    border-top: 1.5px solid #d5e1e8;
    padding: 22px 24px 24px;
    background: #f8fbfd;
}

.workflow-card-body-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.workflow-card-body-head h4 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #1f2f3e;
}

.workflow-card-body-head p {
    margin: 0;
    color: #687987;
}

.workflow-open-link {
    padding: 11px 14px;
    border-radius: 12px;
    background: #0097b2;
    color: #ffffff;
    font-weight: 800;
    border: 1px solid #00839a;
    box-shadow: 0 8px 20px rgba(0, 151, 178, 0.18);
}

.workflow-open-link-inline {
    min-width: 180px;
    text-align: center;
}

.workflow-item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.workflow-item-card {
    border: 1.5px solid #ccdbe4;
    border-radius: 16px;
    background: #ffffff;
    padding: 18px;
    box-shadow:
        0 10px 24px rgba(18, 39, 58, 0.05),
        0 0 0 1px rgba(36, 79, 118, 0.03);
    min-width: 0;
}

.workflow-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.workflow-item-head strong {
    color: #5d7284;
    letter-spacing: .04em;
}

.workflow-item-card h5 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #1f2f3e;
}

.workflow-item-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.workflow-tone-danger {
    border-color: #f0c9ce;
}

.workflow-tone-warn {
    border-color: #e9d8b4;
}

.workflow-tone-good {
    border-color: #cfe7da;
}

.workflow-tone-neutral {
    border-color: #dce5ec;
}

.executive-support-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.executive-support-metrics div {
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.executive-support-metrics span {
    display: block;
    font-size: 12px;
    color: #72808c;
    font-weight: 800;
    margin-bottom: 8px;
}

.executive-support-metrics b {
    font-size: 26px;
    color: #203142;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.spotlight-card {
    display: block;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #dbe2e8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: 0 14px 28px rgba(16, 34, 50, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(16, 34, 50, 0.12);
}

.spotlight-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.spotlight-top span {
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 800;
    color: #647684;
}

.spotlight-top b {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #eef3f7;
    color: #264458;
}

.spotlight-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.spotlight-card p {
    margin: 0 0 14px;
    color: #6d7a86;
}

.spotlight-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.spotlight-meta div {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f4f8fb;
}

.spotlight-meta span {
    display: block;
    font-size: 11px;
    color: #72808c;
    font-weight: 800;
    margin-bottom: 6px;
}

.spotlight-meta strong {
    font-size: 18px;
}

.spotlight-footer {
    margin-top: 14px;
    color: #324b5e;
    font-weight: 700;
    line-height: 1.45;
}

.spotlight-card.tone-danger {
    border-color: #efc6cb;
    background: linear-gradient(180deg, #fff7f8 0%, #fff2f4 100%);
}

.spotlight-card.tone-warn {
    border-color: #ecd7b5;
    background: linear-gradient(180deg, #fffaf2 0%, #fff5e7 100%);
}

.spotlight-card.tone-good {
    border-color: #cfe7da;
    background: linear-gradient(180deg, #f8fffb 0%, #effbf4 100%);
}

.spotlight-card.tone-neutral {
    border-color: #dbe3ea;
}

.portfolio-table-panel {
    margin-top: 20px;
    padding-bottom: 8px;
}

.portfolio-table-wrap {
    overflow-x: auto;
}

.portfolio-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.portfolio-table th {
    font-style: normal;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #476074;
    background: #f5f1e4;
    padding: 14px 16px;
}

.portfolio-table td {
    vertical-align: top;
    padding: 16px;
    background: #fff;
}

.portfolio-table tbody tr:nth-child(even) td {
    background: #fbfcfd;
}

.portfolio-project-link {
    display: grid;
    gap: 5px;
}

.portfolio-project-link span {
    font-size: 12px;
    color: #d52035;
    font-weight: 900;
    letter-spacing: .08em;
}

.portfolio-project-link strong {
    font-size: 18px;
}

.portfolio-project-link small {
    color: #6b7a86;
}

.date-stack {
    display: grid;
    gap: 4px;
}

.date-stack strong,
.date-stack span {
    font-size: 14px;
}

.date-stack small {
    color: #7a8791;
    font-weight: 700;
}

.progress-metric {
    min-width: 190px;
}

.metric-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.metric-top strong {
    font-size: 16px;
    color: #203142;
}

.metric-top span {
    font-size: 12px;
    color: #72808c;
    font-weight: 700;
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e8eef3;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1b4f74 0%, #4f87ae 100%);
}

.progress-bar.schedule span {
    background: linear-gradient(90deg, #8aa4ba 0%, #c0cfdb 100%);
}

.metric-placeholder {
    color: #7a8894;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 0;
}

.remaining-metric {
    display: grid;
    gap: 6px;
}

.remaining-metric strong {
    font-size: 18px;
    color: #203142;
}

.remaining-metric span {
    color: #7b8791;
    font-size: 13px;
    font-weight: 700;
}

.health-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.health-badge.tone-danger {
    background: #ffe8eb;
    color: #b41c2e;
}

.health-badge.tone-warn {
    background: #fff0d9;
    color: #a66400;
}

.health-badge.tone-good {
    background: #e8f7ee;
    color: #1f7d52;
}

.health-badge.tone-neutral {
    background: #edf2f6;
    color: #516775;
}

.health-note {
    display: block;
    color: #64727e;
    line-height: 1.45;
}

.premium-action-grid {
    margin-top: 22px;
}

.definitions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.definitions-legacy {
    max-width: 1120px;
}

.definitions-legacy-heading {
    margin-bottom: 18px;
}

.definitions-legacy-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(430px, 1.08fr);
    gap: 18px 22px;
    align-items: start;
}

.definitions-legacy-panel {
    padding: 22px;
    margin-bottom: 0;
}

.definitions-legacy-panel .panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.definitions-legacy-panel .panel-title-row h2 {
    font-size: 20px;
}

.definitions-legacy-panel .hint {
    margin: 0 0 14px;
    line-height: 1.45;
}

.definitions-legacy-form {
    display: grid;
    gap: 8px;
}

.definitions-legacy-form input,
.definitions-legacy-form textarea,
.definitions-legacy-form select,
.definitions-legacy-recipe-form input {
    border: 1px solid #cfd4d7;
    background: #fff;
    padding: 11px 12px;
    border-radius: 8px;
}

.definitions-legacy-form textarea {
    min-height: 108px;
    resize: vertical;
}

.definitions-legacy-form-customer {
    grid-template-columns: 1fr 1.18fr;
    align-items: start;
}

.definitions-legacy-form-customer > input[type="hidden"] {
    display: none;
}

.definitions-legacy-form-customer > .text-danger,
.definitions-legacy-form-single > .text-danger {
    grid-column: 1 / -1;
}

.definitions-legacy-form-customer button,
.definitions-legacy-form-single button,
.definitions-legacy-recipe-form button {
    width: 100%;
    border: 0;
    background: #111;
    color: #fff;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: none;
}

.definitions-legacy-form-customer button:hover,
.definitions-legacy-form-single button:hover,
.definitions-legacy-recipe-form button:hover {
    background: var(--red);
    color: #fff;
}

.definitions-legacy-form-customer button {
    grid-column: 1 / -1;
}

.definitions-legacy-form-single {
    grid-template-columns: 1fr;
}

.definitions-legacy-recipe-form {
    grid-template-columns: 92px minmax(180px, 1fr) 72px 154px;
    gap: 10px;
    align-items: center;
}

.definitions-legacy-full-row {
    grid-column: 1 / -1;
}

.definition-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.definition-panel-wide {
    grid-column: 1 / -1;
}

.definition-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.definition-panel-head h2,
.definition-panel-head h3 {
    margin: 0 0 8px;
    color: var(--ink-strong);
}

.definition-panel-head p {
    margin: 0;
    color: var(--ink-soft);
}

.definition-count,
.definition-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent-navy-soft);
    color: var(--accent-navy);
    font-weight: 800;
    white-space: nowrap;
}

.definition-form {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcfd 100%);
}

.definition-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink-strong);
}

.definition-full {
    grid-column: 1 / -1;
}

.definition-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.definition-link-button,
.definition-danger-button,
.chip-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #cfd8df;
    background: #fff;
    color: var(--ink-strong);
    font-weight: 800;
    cursor: pointer;
}

.definition-danger-button,
.chip-delete-button {
    color: var(--red);
    border-color: #f0b7be;
    background: #fff5f6;
}

.definition-link-button:hover,
.definition-danger-button:hover,
.chip-delete-button:hover {
    opacity: .92;
}

.definition-table-wrap {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.definition-master-table th {
    background: #f5f0dc;
}

.definition-master-table td {
    vertical-align: top;
}

.definition-inline-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.definition-chip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.definition-chip-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #dde6ec;
}

.recipe-detail-shell {
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 1200px) {
    .executive-kpi-grid,
    .spotlight-grid,
    .dashboard-two-column,
    .definitions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .definitions-legacy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .workflow-card-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workflow-item-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .premium-dashboard-hero,
    .executive-kpi-grid,
    .dashboard-two-column,
    .spotlight-grid,
    .definitions-grid,
    .definitions-legacy-grid,
    .executive-support-metrics,
    .workflow-card-metrics,
    .workflow-item-meta {
        grid-template-columns: 1fr;
    }

    .premium-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-side-metric {
        width: 100%;
    }

    .workflow-card-top,
    .workflow-card-body-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .page {
        width: min(100% - 24px, 100%);
        padding: 20px 0;
    }

    .definitions-legacy {
        max-width: none;
    }

    .definitions-legacy-recipe-form {
        grid-template-columns: 1fr;
    }

    .definitions-legacy-form-customer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 0 12px;
    }

    .topbar-inner {
        position: relative;
        min-height: 68px;
        padding: 12px 0;
        align-items: center;
        flex-wrap: wrap;
    }

    .topbar-toggle {
        display: inline-flex;
    }

    .topbar nav {
        display: none;
        width: 100%;
        padding-top: 12px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
    }

    .topbar nav.is-open {
        display: flex;
    }

    .topbar nav a,
    .topbar nav button,
    .topbar-logout-form {
        width: 100%;
    }

    .topbar nav a,
    .topbar nav button {
        justify-content: flex-start;
        text-align: left;
    }

    .topbar-logout-form {
        display: flex;
    }

    .premium-dashboard-hero {
        padding: 24px;
    }

    .hero-side-metric {
        min-width: 0;
        width: 100%;
        padding: 20px;
    }

    .workflow-dashboard-panel,
    .workflow-card summary,
    .workflow-card-body,
    .workflow-item-card {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* compact plan actions */
.plan-list-table th:last-child,
.plan-list-table td:last-child{
    width:140px;
    min-width:140px;
    text-align:center;
}
.plan-actions{
    gap:4px;
    justify-content:center;
    flex-wrap:nowrap;
}
.action-button{
    width:26px;
    height:26px;
    padding:0;
    border-radius:6px;
    font-size:0;
}
.action-button .action-label{
    display:none!important;
}
.action-icon{
    width:16px;
    font-size:14px;
}
.plan-list-table tbody td{
    font-weight:400!important;
}


/* =========================================================
   Proje Düzenle — kurumsal premium görünüm
   ========================================================= */
.project-edit-page {
    --project-edit-ink: #18212b;
    --project-edit-muted: #6b7480;
    --project-edit-border: #e2e7ec;
    --project-edit-soft: #f7f8fa;
    --project-edit-dark: #111315;
    --project-edit-red: #df0e21;
    display: grid;
    gap: 22px;
}

.project-edit-hero {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,.08), transparent 22%),
        linear-gradient(128deg, #101214 0%, #24282c 73%, #df0e21 73%);
    color: #fff;
    box-shadow: 0 24px 55px rgba(19, 24, 31, .15);
}

.project-edit-hero::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: -95px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
}

.project-edit-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.project-edit-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.project-edit-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -.035em;
}

.project-edit-hero p {
    max-width: 670px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 16px;
    line-height: 1.65;
}

.project-edit-back {
    position: relative;
    z-index: 1;
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.project-edit-back:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.36);
    color: #fff;
}

.project-edit-back svg,
.project-edit-deactivate svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-edit-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.project-edit-card,
.project-edit-danger-card {
    border: 1px solid var(--project-edit-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(28, 42, 55, .07);
}

.project-edit-card {
    overflow: hidden;
}

.project-edit-card-head {
    padding: 25px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--project-edit-border);
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.project-edit-card-head > div:first-child > span,
.project-edit-danger-copy > span {
    color: var(--project-edit-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.project-edit-card-head h2,
.project-edit-danger-card h2 {
    margin: 7px 0 5px;
    color: var(--project-edit-ink);
    font-size: 24px;
    letter-spacing: -.02em;
}

.project-edit-card-head p,
.project-edit-danger-card p {
    margin: 0;
    color: var(--project-edit-muted);
    line-height: 1.55;
}

.project-edit-code-badge {
    min-width: 150px;
    padding: 13px 16px;
    border: 1px solid #dce3e9;
    border-radius: 15px;
    background: #f6f8fa;
    text-align: right;
}

.project-edit-code-badge small {
    display: block;
    margin-bottom: 4px;
    color: #7a8490;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.project-edit-code-badge strong {
    display: block;
    color: var(--project-edit-ink);
    font-size: 18px;
    word-break: break-word;
}

.project-edit-form-surface {
    padding: 28px;
}

/* Partial içindeki mevcut form yapısını, markup bağımsız olarak düzenler. */
.project-edit-form-surface form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 20px;
}

.project-edit-form-surface form > .text-danger,
.project-edit-form-surface form > [asp-validation-summary],
.project-edit-form-surface form > .validation-summary-errors,
.project-edit-form-surface form > hr,
.project-edit-form-surface form > textarea,
.project-edit-form-surface form > .mb-3:has(textarea),
.project-edit-form-surface form > .form-group:has(textarea),
.project-edit-form-surface form > [class*="col-"]:has(textarea),
.project-edit-form-surface form > .d-flex,
.project-edit-form-surface form > .row,
.project-edit-form-surface form > button {
    grid-column: 1 / -1;
}

.project-edit-form-surface .row {
    margin: 0;
}

.project-edit-form-surface .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.project-edit-form-surface label {
    display: block;
    margin-bottom: 8px;
    color: #303946;
    font-size: 13px;
    font-weight: 800;
}

.project-edit-form-surface input,
.project-edit-form-surface select,
.project-edit-form-surface textarea {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #d8dfe5;
    border-radius: 13px;
    background: #fff;
    color: var(--project-edit-ink);
    box-shadow: inset 0 1px 2px rgba(20, 31, 43, .02);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.project-edit-form-surface textarea {
    min-height: 130px;
    resize: vertical;
}

.project-edit-form-surface input:hover,
.project-edit-form-surface select:hover,
.project-edit-form-surface textarea:hover {
    border-color: #bbc5ce;
}

.project-edit-form-surface input:focus,
.project-edit-form-surface select:focus,
.project-edit-form-surface textarea:focus {
    outline: none;
    border-color: #202427;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(32, 36, 39, .09);
}

.project-edit-form-surface .project-edit-status-select {
    font-weight: 750;
}

.project-edit-form-surface .text-danger,
.project-edit-form-surface .field-validation-error,
.project-edit-form-surface .validation-summary-errors {
    color: #b30d1b !important;
    font-size: 12px;
    font-weight: 700;
}

.project-edit-form-surface .d-flex,
.project-edit-form-surface form > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    flex-wrap: wrap;
}

.project-edit-save,
.project-edit-cancel {
    min-height: 48px !important;
    padding: 0 21px !important;
    border-radius: 12px !important;
    font-weight: 850 !important;
    box-shadow: none !important;
}

.project-edit-save {
    border: 1px solid #111315 !important;
    background: #111315 !important;
    color: #fff !important;
}

.project-edit-save:hover {
    border-color: #272b2f !important;
    background: #272b2f !important;
    color: #fff !important;
}

.project-edit-cancel {
    border: 1px solid #d8dfe5 !important;
    background: #f6f8fa !important;
    color: #3d4650 !important;
}

.project-edit-cancel:hover {
    border-color: #c5cdd5 !important;
    background: #edf1f4 !important;
    color: #20262d !important;
}

.project-edit-danger-card {
    position: sticky;
    top: 22px;
    overflow: hidden;
}

.project-edit-danger-copy {
    padding: 25px 25px 22px;
}

.project-edit-danger-card h2 {
    font-size: 21px;
}

.project-edit-danger-card p {
    font-size: 14px;
}

.project-edit-deactivate-form {
    padding: 19px 25px 25px;
    border-top: 1px solid #f0d8dc;
    background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
}

.project-edit-deactivate {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--project-edit-red);
    border-radius: 12px;
    background: #fff;
    color: var(--project-edit-red);
    font-weight: 850;
    box-shadow: none;
}

.project-edit-deactivate:hover {
    border-color: #b80b1b;
    background: var(--project-edit-red);
    color: #fff;
}

@media (max-width: 1050px) {
    .project-edit-shell {
        grid-template-columns: 1fr;
    }

    .project-edit-danger-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .project-edit-hero {
        min-height: 0;
        padding: 27px 22px;
        align-items: flex-start;
        flex-direction: column;
        background: linear-gradient(155deg, #101214 0%, #24282c 82%, #df0e21 82%);
    }

    .project-edit-back {
        width: 100%;
    }

    .project-edit-card-head {
        padding: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .project-edit-code-badge {
        width: 100%;
        text-align: left;
    }

    .project-edit-form-surface {
        padding: 22px;
    }

    .project-edit-form-surface form {
        grid-template-columns: 1fr;
    }

    .project-edit-form-surface form > * {
        grid-column: 1 / -1;
    }

    .project-edit-form-surface .d-flex,
    .project-edit-form-surface form > div:last-child {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .project-edit-save,
    .project-edit-cancel {
        width: 100%;
        justify-content: center;
    }
}


/* Proje Detay - eski Hakediş ekranı ile birebir davranış/görünüm tamamlayıcıları */
.progress-page-heading .eyebrow {
    color: #0097b2;
}

.progress-page-heading h1 {
    color: #1f2f3e;
}

.progress-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.progress-entry-table {
    width: 100%;
}

.progress-entry-table input:disabled,
.progress-save-fields select:disabled,
.progress-save-fields textarea:disabled {
    cursor: not-allowed;
    opacity: .72;
    background: #f2f4f5;
}

.progress-work-block {
    overflow: hidden;
}

.progress-work-block .work-block-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(140px, auto);
    align-items: center;
}

.progress-work-block .work-block-header .amount {
    text-align: right;
    white-space: nowrap;
}

.customer-kpi-card.done {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

.customer-kpi-card.remaining {
    background: linear-gradient(180deg, #ffffff 0%, #fff9f1 100%);
}

@media (max-width: 900px) {
    .progress-work-block .work-block-header {
        grid-template-columns: 1fr;
    }

    .progress-work-block .work-block-header .amount,
    .work-block-status {
        text-align: left;
        justify-self: start;
    }
}

/* ===== PDF EDITOR PRO - WYSIWYG TASARIM ARAÇLARI ===== */
.pdf-editor-stage-bar-pro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}

.pdf-editor-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    border-right: 1px solid #dfe6ec;
}

.pdf-editor-toolbar-group:last-of-type {
    border-right: 0;
}

.pdf-editor-toolbar-group button {
    padding: 7px 10px;
    min-height: 34px;
    border-radius: 8px;
    font-size: 12px;
}

.pdf-editor-zoom-group select {
    width: 78px;
    min-width: 78px;
    padding: 7px 8px;
}

.pdf-editor-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid #d7e0e7;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    color: #425465;
}

.pdf-editor-toggle input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.pdf-editor-canvas.show-grid {
    background-image:
        linear-gradient(to right, rgba(47, 93, 134, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(47, 93, 134, .08) 1px, transparent 1px);
    background-size: 10px 10px;
}

.pdf-editor-canvas.show-grid[style*="background-image: url"] {
    background-blend-mode: multiply;
}

.pdf-editor-item.is-locked {
    outline: 1px dashed rgba(148, 99, 15, .75);
}

.pdf-editor-item.is-locked::before {
    content: "KILIT";
    position: absolute;
    right: 3px;
    top: 3px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(255, 245, 217, .94);
    color: #8a6214;
    font-size: 8px;
    font-weight: 900;
    pointer-events: none;
    z-index: 20;
}

.pdf-editor-panel-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf2f8;
    color: #2f5d86;
    font-size: 10px;
    font-weight: 900;
}

.pdf-editor-dynamic-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.pdf-editor-dynamic-fields button {
    padding: 8px 9px;
    min-height: 36px;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe4eb;
    color: #33495c;
    box-shadow: none;
    font-size: 11px;
}

.pdf-editor-dynamic-fields button:hover {
    border-color: #8db2ce;
    background: #eef6fb;
    color: #245f8e;
}

.pdf-editor-layer-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 260px;
    overflow-y: auto;
}

.pdf-editor-layer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    padding: 4px;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    background: #fff;
}

.pdf-editor-layer-row.is-selected {
    border-color: #6399bf;
    box-shadow: 0 0 0 2px rgba(21, 110, 184, .10);
}

.pdf-editor-layer-row.is-locked {
    background: #fff9e9;
}

.pdf-editor-layer-select,
.pdf-editor-layer-lock {
    min-width: 0;
    padding: 7px 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font-size: 11px;
}

.pdf-editor-layer-select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-editor-layer-lock {
    font-size: 9px;
    color: #667684;
}

.pdf-editor-selected-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}

#pdfLockElement.is-active {
    background: #fff3cd;
    border-color: #e3bd58;
    color: #725000;
}

.pdf-editor-stage-status {
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 1450px) {
    .pdf-editor-stage-bar-pro {
        align-items: flex-start;
    }
    .pdf-editor-stage-status {
        width: 100%;
        margin-left: 0;
        padding-top: 4px;
    }
}

@media (max-width: 1100px) {
    .pdf-editor-dynamic-fields {
        grid-template-columns: 1fr;
    }
}



/* Onay Merkezi - Hakediş Hareketleri */
.approval-movements-card { background:#fff; border:1px solid #e1e5e8; border-radius:18px; padding:24px 28px 28px; box-shadow:0 8px 24px rgba(20,39,56,.04); overflow:hidden; }
.approval-movements-head { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin-bottom:20px; }
.approval-movements-head h2 { margin:0 0 7px; font-size:24px; color:#202427; }
.approval-movements-head p { margin:0; color:#7a838a; font-size:14px; }
.approval-movements-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.approval-movements-summary>div { min-width:0; padding:15px 18px; background:#fafbfc; border:1px solid #e1e5e8; border-radius:12px; }
.approval-movements-summary span { display:block; margin-bottom:5px; color:#65717a; font-size:12px; font-weight:800; }
.approval-movements-summary strong { display:block; color:#202427; font-size:18px; line-height:1.2; overflow-wrap:anywhere; }
.approval-movements-table-wrap { width:100%; overflow-x:auto; }
.approval-movements-table { width:100%; min-width:1180px; border-collapse:collapse; table-layout:auto; }
.approval-movements-table th { padding:13px 14px; background:#ece3d6; color:#4d3636; border-bottom:1px solid #cdbfa9; font-style:normal; font-weight:400; white-space:nowrap; }
.approval-movements-table td { padding:12px 14px; color:#202427; border-bottom:1px dotted #b8bec3; vertical-align:top; line-height:1.3; }
.approval-movements-table tbody tr:last-child td { border-bottom:0; }
.approval-movements-table td strong { display:block; font-weight:500; }
.approval-movements-table td small { display:block; margin-top:2px; color:#6b7378; font-size:12px; }
.approval-movements-table .num { text-align:right; white-space:nowrap; }
.approval-movements-empty { text-align:center; color:#6b7378 !important; padding:28px !important; }
@media(max-width:1000px){.approval-movements-summary{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.approval-movements-card{padding:18px 14px}.approval-movements-summary{grid-template-columns:1fr}.approval-movements-head{align-items:flex-start;flex-direction:column;}}

/* Progress payment detail - clear approval history */
.approval-history-card {
    overflow: hidden;
    border: 1px solid #dfe5e9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 39, 56, .05);
}
.approval-history-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e5eaed;
    background: linear-gradient(135deg, #f9fcfd 0%, #fff 70%);
}
.approval-history-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #0097b2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}
.approval-history-card-head h2 {
    margin: 0 0 5px;
    color: #1d2a34;
    font-size: 22px;
}
.approval-history-card-head p {
    margin: 0;
    color: #74818a;
    font-size: 13px;
}
.approval-history-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.approval-history-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #d9e3e7;
    border-radius: 999px;
    background: #fff;
    color: #52636e;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.approval-history-card-body { padding: 20px 24px 24px; }
.approval-history-empty {
    padding: 28px;
    border: 1px dashed #ccd7dc;
    border-radius: 12px;
    color: #75828a;
    text-align: center;
}
.approval-history-revisions { display: grid; gap: 18px; }
.approval-history-revision {
    overflow: hidden;
    border: 1px solid #dfe6e9;
    border-radius: 14px;
    background: #fbfcfc;
}
.approval-history-revision-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid #e2e8eb;
    background: #f2f7f8;
}
.approval-history-revision-head > div { display: flex; align-items: center; gap: 9px; }
.approval-history-revision-head span {
    color: #61717b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}
.approval-history-revision-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    background: #0097b2;
    color: #fff;
    font-size: 12px;
}
.approval-history-revision-head small { color: #75828a; font-size: 11px; }
.approval-history-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 16px 14px 44px;
    list-style: none;
}
.approval-history-event { position: relative; padding: 7px 0; }
.approval-history-event:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 23px;
    bottom: -9px;
    left: -24px;
    width: 2px;
    background: #d8e1e5;
}
.approval-history-marker {
    position: absolute;
    top: 22px;
    left: -29px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #78909c;
    box-shadow: 0 0 0 2px #78909c;
}
.approval-history-event.is-approved .approval-history-marker { background: #24875b; box-shadow: 0 0 0 2px #24875b; }
.approval-history-event.is-submitted .approval-history-marker { background: #2563eb; box-shadow: 0 0 0 2px #2563eb; }
.approval-history-event.is-returned .approval-history-marker { background: #e97921; box-shadow: 0 0 0 2px #e97921; }
.approval-history-event.is-cancelled .approval-history-marker { background: #c93b3b; box-shadow: 0 0 0 2px #c93b3b; }
.approval-history-event.is-revision .approval-history-marker { background: #8b5cf6; box-shadow: 0 0 0 2px #8b5cf6; }
.approval-history-event-card {
    padding: 14px 16px;
    border: 1px solid #e1e7ea;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(24, 43, 56, .035);
}
.approval-history-event-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}
.approval-history-event-head strong { color: #1e2d36; font-size: 14px; }
.approval-history-event-head time { color: #75828a; font-size: 11px; white-space: nowrap; }
.approval-history-status-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.approval-history-status-flow span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    border: 1px solid #dce4e8;
    border-radius: 7px;
    background: #f7f9fa;
    color: #485963;
    font-size: 11px;
    font-weight: 700;
}
.approval-history-status-flow span:last-child { border-color: #bfe4dc; background: #eff9f6; color: #176847; }
.approval-history-status-flow b { color: #8b989f; font-size: 13px; }
.approval-history-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 10px;
}
.approval-history-meta > div {
    padding: 9px 11px;
    border-radius: 8px;
    background: #f7f9fa;
}
.approval-history-meta span,
.approval-history-description > span {
    display: block;
    margin-bottom: 3px;
    color: #7a8790;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.approval-history-meta strong { display: block; color: #2c3a43; font-size: 12px; overflow-wrap: anywhere; }
.approval-history-description {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid #67cdb7;
    border-radius: 7px;
    background: #f0f9f7;
}
.approval-history-description p { margin: 0; color: #34454e; font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
@media (max-width: 720px) {
    .approval-history-card-head { flex-direction: column; padding: 18px 16px; }
    .approval-history-head-actions { width: 100%; justify-content: space-between; }
    .approval-history-card-body { padding: 14px; }
    .approval-history-timeline { padding-left: 39px; padding-right: 10px; }
    .approval-history-event-head { flex-direction: column; gap: 4px; }
    .approval-history-status-flow { align-items: stretch; flex-direction: column; }
    .approval-history-status-flow b { transform: rotate(90deg); align-self: center; }
    .approval-history-meta { grid-template-columns: 1fr; }
}


/* =========================================================
   ONAY MERKEZI - Premium operasyon ekrani
   ========================================================= */
.approval-center-page { display:grid; gap:18px; padding-bottom:32px; }
.approval-page-heading { display:grid; gap:5px; padding:2px 2px 4px; }
.approval-page-heading span { color:#8c7544; font-size:11px; font-weight:900; letter-spacing:.16em; }
.approval-page-heading h1 { margin:0; color:#1d2a34; font-family:"Noto Serif Display",Georgia,serif; font-size:34px; font-weight:700; line-height:1.05; letter-spacing:-.025em; }
.approval-section-eyebrow { display:block; font-size:11px; font-weight:900; letter-spacing:.16em; }

.approval-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.approval-action-button {
    position:relative; display:flex; min-width:0; min-height:178px; flex-direction:column; justify-content:center;
    padding:25px 22px; border:1px solid #ad9560; border-radius:18px;
    background:linear-gradient(145deg,#064934,#013927); color:#fff; text-align:center;
    box-shadow:0 12px 28px rgba(1,57,39,.13);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease;
}
.approval-action-button:hover { color:#fff; transform:translateY(-3px); border-color:#d7bd80; box-shadow:0 17px 34px rgba(1,57,39,.2); }
.approval-action-button.is-selected { border-color:#e0c787; box-shadow:0 0 0 3px rgba(203,174,105,.2),0 15px 32px rgba(1,57,39,.18); }
.approval-action-button.is-empty { filter:saturate(.72); opacity:.76; box-shadow:0 8px 20px rgba(1,57,39,.08); }
.approval-action-button.has-pending {
    border-color:#e5bd55;
    background:
        radial-gradient(circle at 88% 12%,rgba(242,197,84,.16),transparent 24%),
        linear-gradient(145deg,#07523a,#013927 72%);
}
.approval-action-button.has-pending::before {
    content:"";
    position:absolute;
    inset:-2px;
    pointer-events:none;
    border:2px solid rgba(235,190,77,.72);
    border-radius:20px;
    opacity:.65;
}
.approval-action-button.has-pending .approval-action-title::after {
    content:"  •  ONAY BEKLİYOR";
    color:#f2c554;
    font-size:10px;
    letter-spacing:.08em;
}
.approval-action-button.has-pending .approval-action-badge {
    background:#d3232a;
    border-color:#fff;
    box-shadow:0 0 0 4px rgba(211,35,42,.12),0 8px 18px rgba(128,16,20,.34);
}
.approval-pulse {
    animation:approvalPendingPulse 1.45s cubic-bezier(.4,0,.2,1) infinite;
    transform-origin:center;
    will-change:transform,box-shadow,filter;
}
.approval-pulse::before {
    animation:approvalPendingRing 1.45s cubic-bezier(.4,0,.2,1) infinite;
}
.approval-pulse .approval-action-badge {
    animation:none;
}
.approval-action-button.is-acknowledged {
    border-color:#d3b873;
    box-shadow:0 12px 28px rgba(1,57,39,.13);
}
.approval-action-button.is-acknowledged::before { opacity:.24; }
.approval-action-button.is-acknowledged .approval-action-badge { animation:none; }

@keyframes approvalPendingPulse {
    0%,100% {
        transform:translateY(0) scale(1);
        filter:brightness(1);
        box-shadow:
            0 14px 30px rgba(1,57,39,.18),
            0 0 0 0 rgba(235,190,77,0),
            0 0 14px rgba(235,190,77,.14);
    }
    50% {
        transform:translateY(-3px) scale(1.018);
        filter:brightness(1.12);
        box-shadow:
            0 22px 42px rgba(1,57,39,.28),
            0 0 0 7px rgba(235,190,77,.13),
            0 0 38px 10px rgba(235,190,77,.42);
    }
}
@keyframes approvalPendingRing {
    0%,100% { opacity:.48; box-shadow:inset 0 0 0 0 rgba(242,197,84,.08),0 0 0 0 rgba(242,197,84,.08); }
    50% { opacity:1; box-shadow:inset 0 0 24px rgba(242,197,84,.18),0 0 18px 3px rgba(242,197,84,.28); }
}
@media(prefers-reduced-motion:reduce) {
    .approval-pulse,
    .approval-pulse::before,
    .approval-pulse .approval-action-badge { animation:none; }
}

.approval-filter-panel,.approval-list-panel { border:1px solid #dfe5e9; border-radius:20px; background:#fff; box-shadow:0 10px 28px rgba(20,39,56,.045); }
.approval-filter-panel { padding:22px 24px 24px; }
.approval-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.approval-section-eyebrow { color:#0097b2; margin-bottom:5px; }
.approval-section-head h2 { margin:0 0 4px; color:#1d2a34; font-size:22px; }
.approval-section-head p { margin:0; color:#7a8791; font-size:13px; }
.approval-clear-link { padding:9px 12px; border-radius:9px; color:#657682; font-size:12px; font-weight:800; }
.approval-clear-link:hover { background:#f0f5f7; color:#0097b2; }

.approval-filter-grid { display:grid; grid-template-columns:1.35fr 1.35fr .8fr .9fr .8fr 1fr auto; gap:11px; align-items:end; }
.approval-field { display:grid; gap:6px; min-width:0; }
.approval-field > span { color:#53636f; font-size:11px; font-weight:900; letter-spacing:.035em; }
.approval-field input,.approval-field select { height:43px; padding:0 11px; border:1px solid #d4dde3; border-radius:10px; background:#fbfcfd; color:#25333d; font-size:13px; box-shadow:none; }
.approval-field input:focus,.approval-field select:focus { background:#fff; border-color:#62cbd8; box-shadow:0 0 0 3px rgba(0,151,178,.09); }
.approval-filter-button { min-width:108px; height:43px; padding:0 18px; border:1px solid #0097b2; border-radius:10px; background:#0097b2; color:#fff; box-shadow:0 8px 16px rgba(0,151,178,.15); }
.approval-filter-button:hover { background:#00849c; border-color:#00849c; color:#fff; }

.approval-list-panel { overflow:hidden; }
.approval-list-head { padding:22px 24px 0; margin-bottom:17px; }
.approval-table-wrap { width:100%; overflow-x:auto; border-top:1px solid #e6ebee; }
.approval-table { width:100%; min-width:1180px; border-collapse:separate; border-spacing:0; }
.approval-table th { padding:12px 14px; background:#f4f7f8; color:#50606c; border-bottom:1px solid #dce3e7; font-size:11px; font-style:normal; font-weight:900; letter-spacing:.045em; text-transform:uppercase; white-space:nowrap; }
.approval-table td { padding:14px; border-bottom:1px solid #edf0f2; color:#25323b; font-size:13px; vertical-align:middle; }
.approval-table tbody tr { transition:background-color .15s ease; }
.approval-table tbody tr:hover { background:#f9fcfd; }
.approval-table tbody tr:last-child td { border-bottom:0; }
.approval-table td strong { display:block; color:#1e2c36; font-weight:800; }
.approval-table td small { display:block; margin-top:3px; color:#7a8791; font-size:11px; line-height:1.35; }
.approval-table .num { text-align:right; white-space:nowrap; }
.approval-table .actions { text-align:right; }
.approval-payment-no { color:#0097b2 !important; }
.approval-row-actions { display:flex; justify-content:flex-end; gap:7px; align-items:center; }
.approval-row-actions form { margin:0; }
.approval-detail-button,.approval-approve-button { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:0 11px; border-radius:8px; font-size:11px; font-weight:900; white-space:nowrap; }
.approval-detail-button { border:1px solid #cbd8df; background:#fff; color:#315467; }
.approval-detail-button:hover { border-color:#0097b2; color:#0097b2; background:#f3fbfc; }
.approval-approve-button { border:1px solid #24875b; background:#24875b; color:#fff; box-shadow:none; }
.approval-approve-button:hover { border-color:#1d724c; background:#1d724c; color:#fff; }
.approval-empty { padding:46px 20px !important; text-align:center; }
.approval-empty-icon { width:42px; height:42px; margin:0 auto 10px; display:grid; place-items:center; border-radius:50%; background:#edf8fa; color:#0097b2; font-weight:900; }
.approval-empty strong { margin-bottom:5px; font-size:15px; }
.approval-empty span { display:block; color:#7a8791; font-size:12px; }

@media(max-width:1250px) {
    .approval-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .approval-filter-action { display:flex; align-items:end; }
    .approval-filter-button { width:100%; }
}
@media(max-width:900px) {
    .approval-action-grid { gap:12px; }
}
@media(max-width:700px) {
    .approval-page-heading h1 { font-size:30px; }
    .approval-action-grid { grid-template-columns:1fr; }
    .approval-action-button { min-height:145px; }
    .approval-filter-grid { grid-template-columns:1fr; }
    .approval-section-head { align-items:flex-start; flex-direction:column; }
    .approval-filter-panel { padding:19px 16px; }
}

/* Dashboard KPI kartları: aktif filtre davranışı */
button.executive-kpi-card.dashboard-filter-kpi {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    appearance: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

button.executive-kpi-card.dashboard-filter-kpi:hover {
    transform: translateY(-2px);
    border-color: #8fcbd5;
    box-shadow: 0 12px 28px rgba(18, 39, 58, .10);
}

button.executive-kpi-card.dashboard-filter-kpi:focus-visible {
    outline: 3px solid rgba(0, 151, 178, .22);
    outline-offset: 3px;
}

button.executive-kpi-card.dashboard-filter-kpi.is-active {
    border-color: #0097b2;
    box-shadow: 0 0 0 3px rgba(0, 151, 178, .11), 0 12px 28px rgba(18, 39, 58, .08);
}

button.executive-kpi-card.dashboard-filter-kpi.emphasis.is-active {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 151, 178, .18), 0 12px 28px rgba(18, 39, 58, .12);
}

.workflow-project-card[hidden] {
    display: none !important;
}

.dashboard-filter-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
}



/* =========================================================
   DASHBOARD - Tüm Projeler İlerleme Özeti
   Mevcut Ana İşler/workflow yapısından bağımsızdır.
   ========================================================= */
.dashboard-portfolio-summary {
    margin-top: 20px;
    margin-bottom: 20px;
}
.dashboard-portfolio-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 0 2px 14px;
}
.dashboard-portfolio-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #df0e21;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}
.dashboard-portfolio-head h2 {
    margin: 0 0 4px;
    color: #1d2b38;
    font-size: 23px;
    line-height: 1.15;
}
.dashboard-portfolio-head p {
    margin: 0;
    color: #6d7b87;
    font-size: 13px;
}
.dashboard-portfolio-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid #dfe6eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 39, 56, .055);
}
.dashboard-portfolio-row {
    display: grid;
    grid-template-columns: minmax(250px, 1.18fr) repeat(3, minmax(205px, 1fr)) 46px;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
    padding: 13px 14px;
    border-bottom: 1px solid #e8edf0;
    background: #fff;
}
.dashboard-portfolio-row:last-child {
    border-bottom: 0;
}
.dashboard-portfolio-row:hover {
    background: #fbfdfe;
}
.dashboard-portfolio-project {
    min-width: 0;
    padding: 3px 4px;
    align-self: center;
}
.dashboard-portfolio-code {
    display: block;
    margin-bottom: 4px;
    color: #156eb8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}
.dashboard-portfolio-project h3 {
    margin: 0 0 5px;
    color: #172635;
    font-size: 19px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.dashboard-portfolio-meta,
.dashboard-portfolio-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: #687887;
    font-size: 11px;
    line-height: 1.4;
}
.dashboard-portfolio-submeta {
    margin-top: 4px;
}
.dashboard-portfolio-meta b,
.dashboard-portfolio-submeta b {
    color: #415465;
    font-weight: 800;
}
.dashboard-progress-kpi {
    position: relative;
    min-width: 0;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px solid #dce4ea;
    border-radius: 11px;
    background: linear-gradient(180deg, #fff 0%, #fafcfd 100%);
}
.dashboard-progress-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}
.dashboard-progress-kpi.planned {
    background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
.dashboard-progress-kpi.planned::before { background: #2b77c0; }
.dashboard-progress-kpi.done {
    background: linear-gradient(180deg, #fff 0%, #f5fbf8 100%);
}
.dashboard-progress-kpi.done::before { background: #279665; }
.dashboard-progress-kpi.remaining {
    background: linear-gradient(180deg, #fff 0%, #fff9f3 100%);
}
.dashboard-progress-kpi.remaining::before { background: #df821d; }
.dashboard-progress-kpi-title {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .035em;
}
.dashboard-progress-kpi.planned .dashboard-progress-kpi-title { color: #1763ae; }
.dashboard-progress-kpi.done .dashboard-progress-kpi-title { color: #21855a; }
.dashboard-progress-kpi.remaining .dashboard-progress-kpi-title { color: #c76710; }
.dashboard-progress-kpi dl {
    display: grid;
    gap: 4px;
    margin: 0;
}
.dashboard-progress-kpi dl > div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}
.dashboard-progress-kpi dt {
    color: #71808d;
    font-size: 10px;
    font-weight: 700;
}
.dashboard-progress-kpi dd {
    margin: 0;
    color: #1d2d3b;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.dashboard-portfolio-open {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 100%;
    border-radius: 10px;
    color: #284a68;
    font-size: 30px;
    line-height: 1;
    transition: background .16s ease, color .16s ease;
}
.dashboard-portfolio-open:hover {
    background: #edf6fa;
    color: #0097b2;
}
@media (max-width: 1180px) {
    .dashboard-portfolio-row {
        grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(170px, 1fr)) 42px;
    }
    .dashboard-progress-kpi {
        padding: 11px 10px;
    }
}
@media (max-width: 900px) {
    .dashboard-portfolio-row {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-portfolio-project {
        grid-column: 1 / -1;
    }
    .dashboard-progress-kpi.remaining {
        grid-column: 1 / -1;
    }
    .dashboard-portfolio-open {
        grid-column: 1 / -1;
        min-height: 38px;
    }
}
@media (max-width: 620px) {
    .dashboard-portfolio-row {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .dashboard-portfolio-project,
    .dashboard-progress-kpi.remaining,
    .dashboard-portfolio-open {
        grid-column: auto;
    }
}

/* =========================================================
   DASHBOARD - HAKEDİŞ MERKEZİ / 10 KPI COMMAND CENTER
   Eski Dashboard hero bloğunun yerine kullanılır.
   ========================================================= */
.dashboard-command-center {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 195px 1px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: #4f674f;
    box-shadow: 0 20px 44px rgba(0, 75, 53, .18);
}

.dashboard-command-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
}

.dashboard-command-brand-icon {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.dashboard-command-brand-icon span {
    font-size: 32px;
    line-height: 1;
    color: #fff;
}

.dashboard-command-brand-title {
    font-size: 27px;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.03em;
}

.dashboard-command-divider {
    width: 1px;
    background: rgba(255,255,255,.52);
    border-radius: 999px;
}

.dashboard-command-kpis {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 28px rgba(16, 32, 27, .12);
}

/* Dashboard: Onay Bildirimleri KPI kartını kaldır */
.dashboard-command-kpis > .dashboard-command-kpi.kpi-purple,
.dashboard-command-kpis > .dashboard-command-kpi-link.kpi-purple {
    display: none !important;
}

.dashboard-command-kpi {
    min-width: 0;
    width: 100%;
    min-height: 178px;
    padding: 14px 5px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: #013927;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.dashboard-command-kpi-link {
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-command-kpi-link:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
}

.dashboard-command-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 12px rgba(0,0,0,.18);
}

.kpi-blue .dashboard-command-icon { background: linear-gradient(180deg, #1799d2, #0876ad); }
.kpi-green .dashboard-command-icon { background: linear-gradient(180deg, #24a773, #138455); }
.kpi-gold .dashboard-command-icon { background: linear-gradient(180deg, #e5c66f, #c9a746); }
.kpi-red .dashboard-command-icon { background: linear-gradient(180deg, #df5360, #bd303d); }
.kpi-purple .dashboard-command-icon { background: linear-gradient(180deg, #8d5ad7, #6840b5); }

.dashboard-command-kpi h3 {
    min-height: 38px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 900;
}

.dashboard-command-kpi strong {
    width: 100%;
    margin: auto 0 9px;
    color: #fff;
    font-size: 16px;
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.dashboard-command-kpi small {
    color: rgba(255,255,255,.72);
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 1450px) {
    .dashboard-command-center {
        grid-template-columns: 185px 1px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .dashboard-command-brand {
        gap: 12px;
    }

    .dashboard-command-brand-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        border-radius: 17px;
    }

    .dashboard-command-brand-title {
        font-size: 22px;
    }

    .dashboard-command-kpis {
        grid-template-columns: repeat(5, minmax(130px, 1fr));
    }

    .dashboard-command-kpi {
        min-height: 154px;
    }
}

@media (max-width: 980px) {
    .dashboard-command-center {
        grid-template-columns: 1fr;
    }

    .dashboard-command-brand {
        justify-content: flex-start;
        padding: 4px 8px;
    }

    .dashboard-command-divider {
        width: 100%;
        height: 1px;
    }

    .dashboard-command-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboard-command-kpis {
        grid-template-columns: 1fr;
    }
}
/* Extras module only */
.extras-workspace{max-width:1180px;margin:auto;padding:1.5rem 0}.extras-hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:1rem}.extras-hero p{color:#b8473d;font-size:.75rem;font-weight:800;letter-spacing:.1em;margin:0}.extras-hero h1{margin:.2rem 0}.extras-hero span{color:#62727a}.extras-transaction-card{position:relative;background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 10px 28px rgba(21,50,59,.09)}.extras-fields,.extras-financial,.extras-period{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1rem}.extras-financial{grid-template-columns:1fr 2fr}.extras-transaction-card label{display:grid;gap:.4rem;font-weight:700}.extras-transaction-card input,.extras-transaction-card select,.extras-transaction-card textarea{border:1px solid #d6e1e3;border-radius:10px;padding:.7rem}.extras-transaction-card small,.extras-transaction-card span{font-weight:400;color:#687b81;font-size:.8rem}.extras-retention{background:linear-gradient(145deg,#b45239,#dc7a43);color:#fff;border-radius:14px;padding:1rem;margin-bottom:1rem}.extras-retention div{display:flex;justify-content:space-between;margin:.65rem 0}.extras-retention .available{border-top:1px solid #ffffff70;padding-top:.65rem;font-size:1.1rem}.extras-retention em{font-size:.8rem}.extras-actions{display:flex;gap:.7rem}.extras-actions button{flex:1;border:0;border-radius:10px;padding:.85rem;font-weight:800}.extras-actions .save{background:#13805e;color:#fff}.extras-actions .submit{background:#d78b23;color:#fff}.extras-actions .pdf{background:#ede8f5;color:#7652a6}@media(max-width:760px){.extras-hero{display:block}.extras-fields,.extras-financial,.extras-period{grid-template-columns:1fr}.extras-actions{display:grid}}

/* =========================================================
   EKSTRALAR - Kurumsal işlem yönetimi
   ========================================================= */
.extras-workspace {
    width:100%; max-width:1540px; margin:0 auto; padding:28px 0 42px;
    display:grid; gap:18px;
}
.extras-workspace .extras-hero {
    position:relative; display:flex; align-items:center; justify-content:space-between; gap:28px;
    min-height:178px; margin:0; padding:30px 34px; overflow:hidden;
    border:1px solid rgba(255,255,255,.1); border-radius:22px;
    background:#013927; color:#fff; box-shadow:0 18px 42px rgba(1,57,39,.16);
}
.extras-workspace .extras-hero::after {
    content:""; position:absolute; top:-85px; right:-55px; width:280px; height:280px;
    border:1px solid rgba(103,205,183,.18); border-radius:50%;
}
.extras-hero-copy { position:relative; z-index:1; max-width:720px; }
.extras-workspace .extras-hero-copy p {
    margin:0 0 9px; color:#67cdb7; font-size:11px; font-weight:900; letter-spacing:.17em;
}
.extras-workspace .extras-hero-copy h1 {
    margin:0 0 8px; font-family:"Noto Serif Display",Georgia,serif; font-size:42px;
    font-stretch:62.5%; font-weight:700; line-height:1; letter-spacing:-.025em;
}
.extras-workspace .extras-hero-copy span { color:rgba(255,255,255,.76); font-size:14px; line-height:1.55; }
.extras-hero-status {
    position:relative; z-index:1; min-width:280px; padding:18px 20px;
    border:1px solid rgba(255,255,255,.16); border-radius:15px;
    background:rgba(255,255,255,.08); box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.extras-workspace .extras-hero-status small {
    display:block; margin-bottom:6px; color:#67cdb7; font-size:10px; font-weight:900; letter-spacing:.13em;
}
.extras-workspace .extras-hero-status strong { display:block; color:#fff; font-size:14px; line-height:1.35; }

.extras-workspace .extras-transaction-card,
.extras-workspace .extras-list-card {
    border:1px solid #dfe6e3; border-radius:20px; background:#fff;
    box-shadow:0 12px 30px rgba(24,48,40,.06);
}
.extras-workspace .extras-transaction-card { padding:25px 28px 27px; }
.extras-card-head {
    display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:22px;
}
.extras-section-eyebrow {
    display:block; margin-bottom:5px; color:#008b6d !important; font-size:10px !important;
    font-weight:900 !important; letter-spacing:.16em;
}
.extras-card-head h2 { margin:0 0 5px; color:#172a23; font-size:23px; line-height:1.2; }
.extras-card-head p { margin:0; color:#73817c; font-size:13px; line-height:1.45; }
.extras-stage-badge,
.extras-record-count {
    flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
    min-height:34px; padding:0 13px; border:1px solid #cfe2db; border-radius:999px;
    background:#eff7f4; color:#17664f !important; font-size:11px !important; font-weight:900 !important;
}

.extras-workspace .extras-form { display:grid; grid-template-columns:1fr; gap:18px; }
.extras-workspace .extras-fields {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:0;
}
.extras-workspace .extras-form label { display:grid; gap:7px; min-width:0; margin:0; }
.extras-workspace .extras-form label > span {
    color:#3b4d46; font-size:11px; font-weight:900; letter-spacing:.025em;
}
.extras-workspace .extras-form input,
.extras-workspace .extras-form select,
.extras-workspace .extras-form textarea {
    width:100%; min-width:0; border:1px solid #d3ddd9; border-radius:10px;
    background:#fbfcfc; color:#1e3029; font-size:13px; outline:0;
    transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
.extras-workspace .extras-form input,
.extras-workspace .extras-form select { height:44px; padding:0 12px; }
.extras-workspace .extras-form textarea { min-height:92px; padding:12px; resize:vertical; line-height:1.5; }
.extras-workspace .extras-form input:focus,
.extras-workspace .extras-form select:focus,
.extras-workspace .extras-form textarea:focus {
    border-color:#51b79f; background:#fff; box-shadow:0 0 0 3px rgba(81,183,159,.12);
}
.extras-workspace .extras-form select:disabled {
    border-color:#e0e5e3; background:#f2f4f3; color:#9aa5a1; cursor:not-allowed;
}
.extras-workspace .extras-notes { grid-column:1 / -1; }
.extras-form-footer {
    grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:22px;
    padding-top:18px; border-top:1px solid #e7ecea;
}
.extras-form-footer p { margin:0; color:#78857f; font-size:12px; line-height:1.45; }
.extras-workspace .extras-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; }
.extras-workspace .extras-actions button {
    flex:0 0 auto; min-width:118px; min-height:42px; padding:0 17px;
    border-radius:10px; font-size:12px; font-weight:900; cursor:pointer;
    transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease;
}
.extras-workspace .extras-actions button:not(:disabled):hover { transform:translateY(-1px); }
.extras-workspace .extras-actions .save {
    border:1px solid #c9d6d1; background:#fff; color:#27493d;
}
.extras-workspace .extras-actions .save:hover { border-color:#72aa98; background:#f4faf8; }
.extras-workspace .extras-actions .submit {
    border:1px solid #013927; background:#013927; color:#fff; box-shadow:0 8px 18px rgba(1,57,39,.16);
}
.extras-workspace .extras-actions .submit:hover { background:#02513a; }
.extras-workspace .extras-actions .pdf {
    border:1px solid #dce2df; background:#eef1f0; color:#9aa39f; box-shadow:none; cursor:not-allowed;
}

.extras-retention-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.extras-retention-card {
    position:relative; min-width:0; min-height:126px; padding:20px 22px;
    border:1px solid #dfe7e4; border-radius:16px; background:#fff;
    box-shadow:0 9px 24px rgba(24,48,40,.045);
}
.extras-retention-card::before {
    content:""; position:absolute; top:20px; bottom:20px; left:0; width:4px;
    border-radius:0 4px 4px 0; background:#67cdb7;
}
.extras-retention-card span { display:block; margin-bottom:12px; color:#52635c; font-size:11px; font-weight:900; }
.extras-retention-card strong { display:block; margin-bottom:6px; color:#172c24; font-size:25px; line-height:1; }
.extras-retention-card small { color:#8a9691; font-size:11px; }
.extras-retention-card.is-remaining { border-color:#013927; background:#013927; }
.extras-retention-card.is-remaining::before { background:#fff; }
.extras-retention-card.is-remaining span,
.extras-retention-card.is-remaining strong { color:#fff; }
.extras-retention-card.is-remaining small { color:rgba(255,255,255,.7); }

.extras-workspace .extras-list-card { overflow:hidden; }
.extras-workspace .extras-list-head { margin:0; padding:23px 26px 19px; align-items:center; }
.extras-table-wrap { width:100%; overflow-x:auto; border-top:1px solid #e3e9e6; }
.extras-workspace .extras-ledger-table {
    width:100%; min-width:1250px; margin:0; border-collapse:separate; border-spacing:0;
}
.extras-workspace .extras-ledger-table th {
    padding:12px 13px; border:0; border-bottom:1px solid #dce5e1;
    background:#edf5f1; color:#41564d; font-size:10px; font-style:normal;
    font-weight:900; letter-spacing:.055em; text-align:left; text-transform:uppercase; white-space:nowrap;
}
.extras-workspace .extras-ledger-table td {
    padding:14px 13px; border:0; border-bottom:1px solid #edf1ef;
    color:#2a3a34; font-size:12px; line-height:1.4; vertical-align:middle;
}
.extras-workspace .extras-ledger-table tbody tr { transition:background-color .15s ease; }
.extras-workspace .extras-ledger-table tbody tr:hover { background:#f8fbfa; }
.extras-workspace .extras-ledger-table tbody tr:last-child td { border-bottom:0; }
.extras-workspace .extras-ledger-table td:nth-child(5),
.extras-workspace .extras-ledger-table td:nth-child(6) { text-align:left; white-space:normal; }
.extras-workspace .extras-ledger-table td:nth-child(7) { min-width:120px; }
.extras-workspace .extras-ledger-table .num { text-align:right; white-space:nowrap; }
.extras-workspace .extras-ledger-table .actions { text-align:right; }
.extras-transaction-no { color:#007f64; font-weight:900; }
.extras-type-label { color:#455a51; font-weight:700; }
.extras-status {
    display:inline-flex; align-items:center; min-height:26px; padding:0 9px;
    border-radius:999px; font-size:10px; font-weight:900; line-height:1.2; white-space:nowrap;
}
.extras-status.is-approved { background:#e2f3eb; color:#176443; }
.extras-status.is-pending { background:#fff2d8; color:#835b0c; }
.extras-status.is-returned { background:#fde8e8; color:#9a3434; }
.extras-status.is-draft { background:#edf0f2; color:#56636b; }
.extras-workspace .extras-ledger-table td small { display:block; margin-top:5px; color:#89948f; font-size:10px; }
.extras-open-button {
    display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:0 12px;
    border:1px solid #bdd4cb; border-radius:8px; background:#fff; color:#17664f;
    font-size:11px; font-weight:900; white-space:nowrap;
}
.extras-open-button:hover { border-color:#17664f; background:#f0f8f5; color:#0e513d; }
.extras-empty { padding:48px 20px !important; text-align:center !important; }
.extras-empty strong { display:block; margin-bottom:5px; color:#263a32; font-size:15px; }
.extras-empty span { color:#84908b; font-size:12px; }

@media(max-width:1100px) {
    .extras-workspace .extras-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .extras-form-footer { align-items:flex-start; flex-direction:column; }
    .extras-workspace .extras-actions { width:100%; justify-content:flex-start; }
}
@media(max-width:760px) {
    .extras-workspace { padding-top:18px; }
    .extras-workspace .extras-hero { display:block; min-height:0; padding:25px 22px; }
    .extras-workspace .extras-hero-copy h1 { font-size:36px; }
    .extras-hero-status { min-width:0; margin-top:20px; }
    .extras-workspace .extras-transaction-card { padding:21px 18px; }
    .extras-card-head { align-items:flex-start; flex-direction:column; gap:12px; }
    .extras-workspace .extras-fields,
    .extras-retention-grid { grid-template-columns:1fr; }
    .extras-workspace .extras-actions { display:grid; grid-template-columns:1fr; }
    .extras-workspace .extras-actions button { width:100%; }
    .extras-workspace .extras-list-head { padding:20px 18px 17px; }
}

/* =========================================================
   EKSTRA DETAYI - Kartlı onay geçmişi
   ========================================================= */
.extra-detail-workspace {
    width:100%; max-width:1180px; margin:0 auto; padding:28px 0 42px;
    display:grid; gap:18px;
}
.extra-detail-hero {
    display:flex; align-items:center; justify-content:space-between; gap:24px;
    min-height:156px; padding:27px 30px; border-radius:20px;
    background:#013927; color:#fff; box-shadow:0 16px 38px rgba(1,57,39,.15);
}
.extra-detail-hero-copy { min-width:0; }
.extra-detail-eyebrow {
    display:block; margin-bottom:8px; color:#67cdb7; font-size:10px;
    font-weight:900; letter-spacing:.16em; overflow-wrap:anywhere;
}
.extra-detail-hero h1 {
    margin:0 0 11px; font-family:"Noto Serif Display",Georgia,serif;
    font-size:36px; font-stretch:62.5%; font-weight:700; line-height:1; letter-spacing:-.02em;
}
.extra-detail-hero-copy p { display:flex; align-items:center; gap:10px; margin:0; color:rgba(255,255,255,.7); font-size:12px; }
.extra-detail-status {
    display:inline-flex; align-items:center; min-height:27px; padding:0 10px;
    border:1px solid rgba(255,255,255,.2); border-radius:999px;
    background:rgba(255,255,255,.1); color:#fff;
}
.extra-detail-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; }
.extra-detail-button {
    display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 15px;
    border-radius:9px; font-size:11px; font-weight:900; white-space:nowrap; cursor:pointer;
    transition:transform .15s ease,background-color .15s ease,border-color .15s ease;
}
.extra-detail-button:hover { transform:translateY(-1px); }
.extra-detail-button.is-primary { border:1px solid #67cdb7; background:#67cdb7; color:#013927; }
.extra-detail-button.is-primary:hover { border-color:#7edbc7; background:#7edbc7; color:#013927; }
.extra-detail-button.is-secondary { border:1px solid rgba(255,255,255,.35); background:transparent; color:#fff; }
.extra-detail-button.is-secondary:hover { border-color:#fff; background:rgba(255,255,255,.08); color:#fff; }

.extra-detail-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.extra-detail-summary article {
    min-width:0; min-height:108px; padding:18px 19px; border:1px solid #dfe6e3;
    border-radius:15px; background:#fff; box-shadow:0 8px 22px rgba(24,48,40,.045);
}
.extra-detail-summary article > span {
    display:block; margin-bottom:12px; color:#74827c; font-size:10px;
    font-weight:900; letter-spacing:.07em; text-transform:uppercase;
}
.extra-detail-summary article strong { display:block; color:#20332b; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.extra-detail-summary article.is-amount { border-color:#013927; background:#013927; }
.extra-detail-summary article.is-amount > span,
.extra-detail-summary article.is-amount strong { color:#fff; }
.extra-detail-summary article.is-amount strong { font-size:23px; }
.extra-detail-summary article.is-amount small { display:block; margin-top:5px; color:rgba(255,255,255,.65); font-size:10px; }

.extra-detail-card {
    overflow:hidden; border:1px solid #dfe6e3; border-radius:18px;
    background:#fff; box-shadow:0 8px 24px rgba(20,39,56,.05);
}
.extra-detail-card-head { padding:21px 24px 17px; border-bottom:1px solid #e5ebe8; background:#fbfcfc; }
.extra-detail-card-head span {
    display:block; margin-bottom:5px; color:#008b6d; font-size:10px;
    font-weight:900; letter-spacing:.15em;
}
.extra-detail-card-head h2 { margin:0 0 5px; color:#1d3028; font-size:21px; }
.extra-detail-card-head p { margin:0; color:#75827d; font-size:12px; }
.extra-detail-info-grid { display:grid; grid-template-columns:220px 1fr; gap:12px; padding:20px 24px 23px; }
.extra-detail-info-grid > div {
    min-width:0; padding:14px 15px; border-radius:10px; background:#f5f8f7;
}
.extra-detail-info-grid > div > span {
    display:block; margin-bottom:5px; color:#7a8882; font-size:9px;
    font-weight:900; letter-spacing:.07em; text-transform:uppercase;
}
.extra-detail-info-grid > div > strong { display:block; color:#263930; font-size:13px; }
.extra-detail-info-grid .extra-detail-description { grid-column:1 / -1; border-left:3px solid #67cdb7; background:#f0f8f5; }
.extra-detail-description p { margin:0; color:#34473f; font-size:13px; line-height:1.55; white-space:pre-wrap; }
.extra-detail-action-panel {
    display:flex; align-items:center; gap:10px; padding:17px 24px;
    border-top:1px solid #e5ebe8; background:#fbfcfc;
}
.extra-detail-action-panel form { margin:0; }
.extra-detail-action-panel .extra-detail-button.is-primary { border-color:#013927; background:#013927; color:#fff; }
.extra-detail-action-panel .extra-detail-button.is-secondary { border-color:#c8d6d0; background:#fff; color:#315247; }
.extra-detail-return-form { display:flex; align-items:center; gap:8px; flex:1; }
.extra-detail-return-form input {
    flex:1; min-width:220px; height:40px; padding:0 11px;
    border:1px solid #d4ded9; border-radius:9px; background:#fff; color:#263a31; font-size:12px;
}
.extra-detail-return-form input:focus { border-color:#67cdb7; outline:0; box-shadow:0 0 0 3px rgba(103,205,183,.12); }

.extra-detail-workspace .approval-history-card { border-color:#dfe6e3; }
.extra-detail-workspace .approval-history-card-head { background:#fff; }
.extra-detail-workspace .approval-history-eyebrow { color:#008b6d; }
.extra-detail-workspace .approval-history-revision-head { background:#f0f6f3; }
.extra-detail-workspace .approval-history-revision-head strong { background:#008b6d; }
.extra-detail-workspace .approval-history-status-flow span:last-child {
    border-color:#b9ded3; background:#edf8f4; color:#145f46;
}

@media(max-width:850px) {
    .extra-detail-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .extra-detail-info-grid { grid-template-columns:1fr; }
    .extra-detail-info-grid .extra-detail-description { grid-column:auto; }
    .extra-detail-action-panel { align-items:flex-start; flex-direction:column; }
    .extra-detail-return-form { width:100%; }
}
@media(max-width:620px) {
    .extra-detail-workspace { padding-top:18px; }
    .extra-detail-hero { align-items:flex-start; flex-direction:column; padding:23px 20px; }
    .extra-detail-hero h1 { font-size:31px; }
    .extra-detail-actions { width:100%; justify-content:flex-start; }
    .extra-detail-summary { grid-template-columns:1fr; }
    .extra-detail-card-head { padding:19px 17px 15px; }
    .extra-detail-info-grid { padding:16px; }
    .extra-detail-action-panel { padding:15px 16px; }
    .extra-detail-return-form { align-items:stretch; flex-direction:column; }
    .extra-detail-return-form input { width:100%; min-width:0; }
}

/* Taseron detay - 3x3 cari hesap KPI paneli */
.contractor-detail-heading {
    justify-content: flex-end;
    margin-bottom: 12px;
}

.contractor-kpi-hero {
    width: 100%;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
    background: #013927;
    box-shadow: 0 20px 42px rgba(1, 57, 39, .18);
}

.contractor-kpi-identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 24px 8px 10px;
    border-right: 1px solid rgba(255, 255, 255, .42);
    color: #fff;
}

.contractor-kpi-identity > span {
    margin-bottom: 8px;
    color: #67cdb7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.contractor-kpi-identity h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.05;
}

.contractor-kpi-identity p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.35;
}

.contractor-kpi-strip {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
    padding: 14px;
    overflow: visible;
    border-radius: 20px;
    background: #ffffff;
}

.contractor-kpi-card {
    min-width: 0;
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid #013927;
    border-radius: 18px;
    background: #013927;
    color: #fff;
    box-shadow: 0 8px 22px rgba(1, 57, 39, .14);
}

.contractor-kpi-card span {
    min-height: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.contractor-kpi-card b {
    color: #fff;
    font-size: 26px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .contractor-kpi-hero {
        width: calc(100vw - 30px);
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 19px;
    }

    .contractor-kpi-identity {
        padding: 4px 4px 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .42);
    }

    .contractor-kpi-identity p {
        display: none;
    }

    .contractor-kpi-strip {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        overflow-x: auto;
    }
}

/* Tanimlar - kullanici ve sayfa erisim yetkileri */
#users .form-check-label {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #cfd4d7;
    border-radius: 8px;
    background: #ffffff;
}

#users .form-check-input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    accent-color: #013927;
}

#users .permission-panel {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid #dbe1e6;
    border-radius: 12px;
    background: #f7f9f8;
}

#users .permission-panel-header h3 {
    margin: 0;
    color: #1f2f3e;
    font-size: 20px;
}

#users .permission-panel-header p {
    max-width: 520px;
    margin: 8px 0 0;
    color: #687681;
    line-height: 1.4;
}

#users .permission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
}

#users .permission-option {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border: 1px solid #dbe1e6;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

#users .permission-option span {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    color: #1f2f3e;
    line-height: 1.3;
}

#users .permission-option input[type="checkbox"] {
    grid-column: 2;
    grid-row: 1;
    width: 18px;
    height: 18px;
    justify-self: end;
    margin: 0;
    padding: 0;
    accent-color: #013927;
}

#users .permission-option.is-disabled {
    cursor: not-allowed;
    opacity: .58;
}

#users .permission-admin-note {
    margin: 12px 0 0;
    color: #687681;
    font-size: 13px;
    font-weight: 700;
}

#users .user-list-button {
    grid-column: 1 / -1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #cfd8df;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2f3e;
    font-weight: 900;
    text-decoration: none;
    transition: .18s ease;
}

#users .user-list-button:hover {
    border-color: #013927;
    background: #f1f6f4;
    color: #013927;
}

@media (max-width: 620px) {
    #users .permission-panel {
        padding: 14px;
    }
}
/* ==========================================================
   Giriş ekranı - 24.08.2026 referans tasarımı
   Görsel yolu: wwwroot/images/login/login.png
   ========================================================== */
.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #fff;
    color: #1d2430;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.login-page-main {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    display: block;
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(440px, 520px);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

.login-showcase {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    padding: 48px;
    display: grid;
    place-items: center;
    background: #fff;
}

.login-showcase::before {
    content: "";
    display: block;
    width: min(560px, calc(100vh - 120px), calc(100% - 80px));
    aspect-ratio: 1 / 1;
    border-radius: 30px;
    background-color: #5d8fe7;
    background-image: url("../images/login/login.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 160% 100%;
    box-shadow: 0 24px 54px rgba(49, 91, 172, .17);
}

.login-panel {
    min-width: 0;
    min-height: 100vh;
    padding: 0 32px 0 33px;
    display: block;
    background: #fff;
}

.login-panel::before {
    content: none;
}

.login-panel-inner {
    width: 100%;
    max-width: 415px;
    margin: 0 auto;
    padding-top: clamp(110px, 22.25vh, 178px);
}

.login-panel h1 {
    margin: 0;
    color: #0873d1;
    font-size: clamp(31px, 2.82vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.45px;
}

.login-form {
    display: block;
    margin-top: clamp(72px, 12.8vh, 103px);
}

.login-form-validation:empty,
.login-field-error:empty {
    display: none;
}

.login-form-validation:not(:empty) {
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #f0b8b8;
    border-radius: 10px;
    background: #fff0f0;
    color: #b42318;
    font-size: 13px;
    line-height: 1.45;
}

.login-form-validation ul {
    margin: 0;
    padding-left: 18px;
}

.login-field {
    margin: 0;
}

.login-field + .login-field {
    margin-top: 38px;
}

.login-field label {
    display: block;
    margin: 0 0 12px;
    color: #ff6d21;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}

.login-field input:not([type="hidden"]) {
    display: block;
    width: 100%;
    height: 61px;
    padding: 0 18px;
    border: 1px solid #d1d1d1;
    border-radius: 15px;
    outline: 0;
    background: #fff;
    color: #202735;
    font: inherit;
    font-size: 17px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-field input:not([type="hidden"]):hover {
    border-color: #b9c5d5;
}

.login-field input:not([type="hidden"]):focus,
.login-field input:not([type="hidden"]):focus-visible {
    border-color: #5c8ee8;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(92, 142, 232, .14);
}

.login-field-error {
    display: block;
    margin-top: 6px;
    color: #c83232;
    font-size: 12px;
    font-weight: 600;
}

.login-submit {
    width: 100%;
    height: 61px;
    min-height: 61px;
    margin: 42px 0 0;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #4e80e5 0%, #94b5ee 100%);
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 61px;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.login-submit:hover {
    border: 0;
    background: linear-gradient(90deg, #4478df 0%, #87acec 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(78, 128, 229, .24);
    filter: saturate(1.04);
}

.login-submit:focus,
.login-submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(78, 128, 229, .2);
}

.login-submit:active {
    transform: translateY(1px);
}

@media (min-width: 1281px) {
    .login-panel-inner {
        max-width: min(415px, calc(100vw - 65px));
    }
}

@media (max-width: 920px) {
    .login-page {
        overflow: auto;
        background: #fff;
    }

    .login-shell {
        grid-template-columns: minmax(260px, .9fr) minmax(390px, 1.1fr);
    }

    .login-showcase {
        padding: 28px;
    }

    .login-showcase::before {
        width: min(440px, calc(100vh - 80px), calc(100% - 30px));
        border-radius: 24px;
    }

    .login-panel {
        padding-right: 26px;
        padding-left: 26px;
    }
}

@media (max-width: 720px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 40px 24px;
        display: flex;
        align-items: center;
        background: #fff;
    }

    .login-panel-inner {
        max-width: 415px;
        padding-top: 0;
    }

    .login-form {
        margin-top: 72px;
    }
}

@media (max-width: 430px) {
    .login-panel {
        padding: 34px 20px;
    }

    .login-panel h1 {
        font-size: 32px;
    }

    .login-form {
        margin-top: 58px;
    }

    .login-field label {
        font-size: 21px;
    }

    .login-field input:not([type="hidden"]),
    .login-submit {
        height: 57px;
        min-height: 57px;
    }

    .login-submit {
        margin-top: 36px;
        font-size: 23px;
        line-height: 57px;
    }
}

/* ==========================================================
   GÜÇAL ERP HAKEDİŞ - özgün giriş ekranı / 24.08.2026
   ========================================================== */
.login-page {
    --hp-forest: #013927;
    --hp-forest-2: #0c4b39;
    --hp-moss: #727959;
    --hp-sage: #abb194;
    --hp-sand: #c2a685;
    --hp-cream: #efeada;
    --hp-ink: #1f2924;
    --hp-muted: #68736d;
    --hp-line: rgba(1, 57, 39, .14);
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--hp-cream);
    color: var(--hp-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.hp-login-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 32px clamp(28px, 5vw, 88px) 24px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.hp-login-page::before {
    content: "";
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(rgba(1, 57, 39, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(1, 57, 39, .045) 1px, transparent 1px),
        radial-gradient(circle at 76% 12%, rgba(194, 166, 133, .38), transparent 26%),
        linear-gradient(135deg, #f4f0e5 0%, var(--hp-cream) 54%, #e5e3d4 100%);
    background-size: 52px 52px, 52px 52px, auto, auto;
}

.hp-login-page::after {
    content: "";
    position: absolute;
    z-index: -2;
    width: min(58vw, 900px);
    aspect-ratio: 1;
    left: -18vw;
    bottom: -54%;
    border: 1px solid rgba(1, 57, 39, .09);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(1, 57, 39, .025),
        0 0 0 140px rgba(1, 57, 39, .018);
}

.hp-login-brand {
    width: min(1520px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.hp-brand-mark {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    background: var(--hp-forest);
    color: var(--hp-cream);
    font-family: "Noto Serif Display", Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(1, 57, 39, .16);
}

.hp-brand-copy {
    display: grid;
    gap: 2px;
}

.hp-brand-copy strong {
    color: #df0e21;
    font-family: "Noto Serif Display", Georgia, serif;
    font-stretch: condensed;
    font-size: 50px;
    font-weight: 700;
    line-height: .91;
    letter-spacing: -.045em;
}

.hp-brand-copy small {
    color: #df0e21;
    font-family: "Noto Serif Display", Georgia, serif;
    font-stretch: condensed;
    font-size: 30px;
    font-weight: 700;
    line-height: .91;
    letter-spacing: -.045em;
}

.hp-login-stage {
    width: min(1420px, 100%);
    margin: auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: minmax(520px, 1.1fr) minmax(390px, 480px);
    gap: clamp(56px, 7vw, 120px);
    align-items: center;
}

.hp-login-story {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(360px, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.hp-story-copy {
    position: relative;
    z-index: 2;
}

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--hp-moss);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}

.hp-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--hp-sand);
}

.hp-story-copy h1 {
    margin: 0;
    color: var(--hp-forest);
    font-family: "Noto Serif Display", Georgia, serif;
    font-size: clamp(51px, 4.7vw, 82px);
    font-stretch: condensed;
    font-weight: 700;
    line-height: .91;
    letter-spacing: -.045em;
}

.hp-story-copy h1 em {
    color: var(--hp-moss);
    font-style: normal;
}

.hp-story-copy p {
    max-width: 510px;
    margin: 26px 0 0;
    color: #57635c;
    font-size: 15px;
    line-height: 1.75;
}

.hp-certificate {
    position: relative;
    min-width: 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 4px 34px 4px 34px;
    background: rgba(255, 255, 255, .76);
    box-shadow:
        0 32px 70px rgba(1, 57, 39, .13),
        inset 0 0 0 1px rgba(1, 57, 39, .05);
    backdrop-filter: blur(18px);
    transform: rotate(-1.4deg);
}

.hp-certificate::before,
.hp-certificate::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 16px -14px -16px 14px;
    border: 1px solid rgba(1, 57, 39, .12);
    border-radius: 4px 30px 4px 30px;
    background: rgba(171, 177, 148, .32);
}

.hp-certificate::after {
    inset: 30px -26px -28px 28px;
    background: rgba(194, 166, 133, .22);
}

.hp-certificate-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--hp-line);
}

.hp-certificate-head > div {
    display: grid;
    gap: 5px;
}

.hp-certificate-head span,
.hp-certificate-metrics span {
    color: var(--hp-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.hp-certificate-head strong {
    color: var(--hp-forest);
    font-family: "Noto Serif Display", Georgia, serif;
    font-size: 25px;
    line-height: 1;
}

.hp-period-badge {
    padding: 8px 10px;
    border: 1px solid rgba(194, 166, 133, .54);
    border-radius: 999px;
    background: rgba(239, 234, 218, .76);
    color: #876249 !important;
}

.hp-certificate-metrics {
    padding: 22px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--hp-line);
}

.hp-certificate-metrics > div {
    display: grid;
    gap: 6px;
}

.hp-certificate-metrics strong {
    color: var(--hp-forest);
    font-size: 15px;
}

.hp-flow {
    padding: 24px 0 18px;
    display: grid;
    grid-template-columns: 1fr 18px 1fr 18px 1fr;
    gap: 5px;
    align-items: center;
}

.hp-flow > i {
    height: 1px;
    background: var(--hp-sage);
}

.hp-flow-step {
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hp-flow-step > span {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(1, 57, 39, .2);
    border-radius: 50%;
    color: var(--hp-moss);
    font-size: 9px;
    font-weight: 900;
}

.hp-flow-step.is-complete > span {
    border-color: var(--hp-forest);
    background: var(--hp-forest);
    color: #fff;
}

.hp-flow-step.is-current > span {
    border-color: var(--hp-sand);
    background: var(--hp-sand);
    color: #fff;
}

.hp-flow-step div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.hp-flow-step strong {
    overflow: hidden;
    color: var(--hp-forest);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-flow-step small {
    overflow: hidden;
    color: var(--hp-muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-certificate-sign {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--hp-moss);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.hp-sign-seal {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hp-sand);
    border-radius: 50%;
    color: var(--hp-sand);
    font-size: 16px;
}

.hp-login-card {
    position: relative;
    width: 100%;
    padding: clamp(34px, 4vw, 54px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 32px 8px 32px 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 34px 80px rgba(1, 57, 39, .16);
    backdrop-filter: blur(22px);
}

.hp-card-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 118px;
    height: 8px;
    border-radius: 0 8px 0 999px;
    background: linear-gradient(90deg, var(--hp-sand), var(--hp-forest));
}

.hp-card-head > span {
    color: var(--hp-sand);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
}

.hp-card-head h2 {
    margin: 13px 0 8px;
    color: var(--hp-forest);
    font-family: "Noto Serif Display", Georgia, serif;
    font-size: clamp(38px, 3.4vw, 50px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.025em;
}

.hp-card-head p {
    margin: 0;
    color: var(--hp-muted);
    font-size: 14px;
}

.hp-login-form {
    margin-top: 34px;
    display: grid;
    gap: 20px;
}

.hp-form-validation:empty,
.hp-field-error:empty {
    display: none;
}

.hp-form-validation:not(:empty) {
    padding: 11px 14px;
    border: 1px solid #d9a7a2;
    border-radius: 10px;
    background: #fff3f1;
    color: #9a3d32;
    font-size: 12px;
}

.hp-form-validation ul {
    margin: 0;
    padding-left: 18px;
}

.hp-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--hp-forest);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.hp-input-wrap {
    position: relative;
}

.hp-input-wrap input {
    width: 100%;
    height: 58px;
    padding: 0 84px 0 48px;
    border: 1px solid rgba(1, 57, 39, .16);
    border-radius: 16px 4px 16px 4px;
    outline: 0;
    background: rgba(239, 234, 218, .38);
    color: var(--hp-ink);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hp-input-wrap input::placeholder {
    color: #949c96;
}

.hp-input-wrap input:hover {
    border-color: rgba(1, 57, 39, .3);
}

.hp-input-wrap input:focus,
.hp-input-wrap input:focus-visible {
    border-color: var(--hp-moss);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(114, 121, 89, .13);
}

.hp-input-icon {
    position: absolute;
    z-index: 2;
    left: 18px;
    top: 50%;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
}

.hp-user-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-moss);
}

.hp-user-icon::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: 0;
    width: 13px;
    height: 7px;
    border-radius: 8px 8px 3px 3px;
    background: var(--hp-moss);
}

.hp-lock-icon {
    top: calc(50% + 2px);
    height: 12px;
    border-radius: 3px;
    background: var(--hp-moss);
}

.hp-lock-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -7px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--hp-moss);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.hp-password-toggle {
    position: absolute;
    z-index: 3;
    right: 12px;
    top: 50%;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hp-moss);
    font-size: 11px;
    font-weight: 900;
    transform: translateY(-50%);
    cursor: pointer;
}

.hp-password-toggle:hover {
    background: rgba(171, 177, 148, .16);
    color: var(--hp-forest);
}

.hp-field-error {
    display: block;
    margin-top: 6px;
    color: #a4473c;
    font-size: 11px;
    font-weight: 700;
}

.hp-remember {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 9px;
    color: var(--hp-muted);
    cursor: pointer;
}

.hp-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.hp-remember > span {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(1, 57, 39, .25);
    border-radius: 6px 2px 6px 2px;
    background: #fff;
}

.hp-remember input:checked + span {
    border-color: var(--hp-forest);
    background: var(--hp-forest);
}

.hp-remember input:checked + span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hp-remember input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(114, 121, 89, .14);
}

.hp-remember small {
    font-size: 12px;
}

.hp-login-submit {
    width: 100%;
    min-height: 60px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 16px 4px 16px 4px;
    background: linear-gradient(135deg, var(--hp-forest), var(--hp-forest-2));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .025em;
    box-shadow: 0 16px 30px rgba(1, 57, 39, .2);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hp-login-submit i {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
}

.hp-login-submit:hover {
    background: linear-gradient(135deg, #064c37, #146047);
    box-shadow: 0 19px 34px rgba(1, 57, 39, .25);
    transform: translateY(-1px);
}

.hp-login-submit:focus,
.hp-login-submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(114, 121, 89, .2), 0 16px 30px rgba(1, 57, 39, .2);
}

.hp-login-submit:active {
    transform: translateY(0);
}

.hp-card-foot {
    margin-top: 26px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--hp-line);
    color: #7c857f;
    font-size: 10px;
    letter-spacing: .035em;
}

.hp-security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-sage);
    box-shadow: 0 0 0 4px rgba(171, 177, 148, .16);
}

.hp-page-foot {
    width: min(1520px, 100%);
    margin: 0 auto;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(1, 57, 39, .11);
    color: rgba(1, 57, 39, .58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 1280px) {
    .hp-login-stage {
        grid-template-columns: minmax(0, 1fr) 430px;
        gap: 50px;
    }

    .hp-login-story {
        grid-template-columns: 1fr;
    }

    .hp-story-copy p {
        max-width: 620px;
    }

    .hp-certificate {
        max-width: 560px;
    }
}

@media (max-width: 980px) {
    .hp-login-page {
        padding: 24px;
    }

    .hp-login-stage {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 48px 0;
    }

    .hp-login-story {
        grid-template-columns: minmax(270px, .85fr) minmax(330px, 1fr);
    }

    .hp-login-card {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .hp-login-story {
        grid-template-columns: 1fr;
    }

    .hp-story-copy h1 {
        font-size: clamp(48px, 13vw, 68px);
    }

    .hp-certificate {
        margin-right: 16px;
        padding: 22px;
    }

    .hp-flow-step div {
        display: none;
    }

    .hp-flow {
        grid-template-columns: 29px 1fr 29px 1fr 29px;
    }

    .hp-page-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 460px) {
    .hp-login-page {
        padding: 18px 16px;
    }

    .hp-brand-mark {
        width: 40px;
        height: 40px;
    }

    .hp-login-stage {
        padding: 40px 0;
    }

    .hp-eyebrow {
        font-size: 9px;
    }

    .hp-story-copy p {
        font-size: 14px;
    }

    .hp-certificate {
        margin-right: 10px;
        padding: 18px;
        border-radius: 4px 24px 4px 24px;
    }

    .hp-certificate-head strong {
        font-size: 21px;
    }

    .hp-certificate-metrics strong {
        font-size: 12px;
    }

    .hp-login-card {
        padding: 30px 22px;
        border-radius: 26px 6px 26px 6px;
    }

    .hp-card-head h2 {
        font-size: 39px;
    }
}

/* Login marka tipografisi: ana hikaye basligi ile birebir karakter ayarlari */
.hp-brand-copy strong,
.hp-brand-copy small {
    font-family: "Noto Serif Display", Georgia, serif;
    font-stretch: condensed;
    font-weight: 700;
    line-height: .91;
    letter-spacing: -.045em;
    font-style: normal;
}
.hp-brand-copy strong { font-size: 50px; }
.hp-brand-copy small { font-size: 30px; }


/* Login marka yazisi - daha ferah tipografi */
.hp-brand-copy {
    gap: 8px;
}

.hp-brand-copy strong {
    font-family: "Noto Serif Display", Georgia, serif;
    font-stretch: condensed;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #df0e21;
}

.hp-brand-copy small {
    font-family: "Noto Serif Display", Georgia, serif;
    font-stretch: condensed;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: #df0e21;
}


/* Hakediş çalışma tabloları: tüm iş gruplarında kolon/hücre çizgilerini aynı eksende tut */
.progress-work-block .progress-entry-table {
    width: 100%;
    min-width: 1320px;
    table-layout: fixed;
}

.progress-work-block .progress-entry-table th:nth-child(1),
.progress-work-block .progress-entry-table td:nth-child(1) { width: 34%; }
.progress-work-block .progress-entry-table th:nth-child(2),
.progress-work-block .progress-entry-table td:nth-child(2) { width: 11%; }
.progress-work-block .progress-entry-table th:nth-child(3),
.progress-work-block .progress-entry-table td:nth-child(3) { width: 11%; }
.progress-work-block .progress-entry-table th:nth-child(4),
.progress-work-block .progress-entry-table td:nth-child(4) { width: 11%; }
.progress-work-block .progress-entry-table th:nth-child(5),
.progress-work-block .progress-entry-table td:nth-child(5) { width: 9%; min-width: 0; }
.progress-work-block .progress-entry-table th:nth-child(6),
.progress-work-block .progress-entry-table td:nth-child(6) { width: 8%; }
.progress-work-block .progress-entry-table th:nth-child(7),
.progress-work-block .progress-entry-table td:nth-child(7) { width: 8%; }
.progress-work-block .progress-entry-table th:nth-child(8),
.progress-work-block .progress-entry-table td:nth-child(8) { width: 8%; }

/* Üst menü: giriş yapan kullanıcı adı */
.topbar .topbar-user-name {
    color: #df0e21;
}

/* Dashboard - 9 KPI kartı grup zemin renkleri (DÜZELTİLDİ) */
.dashboard-command-kpis > .dashboard-command-kpi:nth-child(-n+3) {
    background: #4f674f;
}

.dashboard-command-kpis > .dashboard-command-kpi:nth-child(n+4):nth-child(-n+6) {
    background: #4f674f;
}

.dashboard-command-kpis > .dashboard-command-kpi:nth-child(n+7):nth-child(-n+9) {
    background: #4f674f;
}

/* System Logs: isolated module styles */
.system-logs-page{max-width:1480px;margin:0 auto;padding:1.5rem}.system-logs-hero{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.75rem;border:1px solid #dce8eb;border-radius:18px;background:linear-gradient(135deg,#fff,#edf8fa);box-shadow:0 12px 30px rgba(14,54,63,.07)}.system-logs-hero h1{margin:.2rem 0;color:#173b44}.system-logs-hero p{margin:0;color:#5f7479}.system-logs-eyebrow{font-size:.72rem;letter-spacing:.14em;font-weight:800;color:#0097b2}.system-logs-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem;margin:1rem 0}.system-logs-kpis article{padding:1rem;border:1px solid #dce8eb;border-radius:14px;background:#fff}.system-logs-kpis span{display:block;color:#64777c;font-size:.8rem}.system-logs-kpis strong{display:block;margin-top:.4rem;font-size:1.65rem;color:#173b44}.system-logs-filter{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;padding:1rem;border:1px solid #dce8eb;border-radius:14px;background:#fff}.system-logs-filter label{display:grid;gap:.3rem;font-size:.75rem;font-weight:700;color:#52676d}.system-logs-filter input,.system-logs-filter select{min-width:0;padding:.65rem;border:1px solid #cbdadd;border-radius:8px;background:#fff}.system-logs-filter-actions{display:flex;align-items:end;gap:.5rem}.system-logs-filter-actions button,.system-logs-filter-actions a{padding:.65rem 1rem;border:0;border-radius:8px;text-decoration:none}.system-logs-filter-actions button{background:#0097b2;color:#fff}.system-logs-filter-actions a{background:#edf3f4;color:#294a52}.system-logs-tabs{display:flex;gap:.4rem;margin-top:1rem;border-bottom:1px solid #dce8eb}.system-logs-tabs a{padding:.8rem 1rem;color:#516b71;text-decoration:none;border-bottom:3px solid transparent}.system-logs-tabs a.active{color:#007d94;border-color:#0097b2;font-weight:700}.system-logs-table-wrap{overflow-x:auto;margin-top:1rem;border:1px solid #dce8eb;border-radius:14px;background:#fff}.system-logs-table{width:100%;border-collapse:collapse}.system-logs-table th,.system-logs-table td{padding:.8rem;border-bottom:1px solid #edf2f3;text-align:left;vertical-align:middle;white-space:nowrap}.system-logs-table th{font-size:.75rem;color:#5d7378;background:#f7fafb}.system-logs-table td{font-size:.83rem;color:#29464d}.system-logs-table td small{display:block;color:#819095}.system-logs-table a{color:#007f96;font-weight:700}.system-logs-badge{display:inline-flex;padding:.25rem .55rem;border-radius:999px;background:#e8f1f3;color:#375a62;font-size:.72rem}.system-logs-badge.success{background:#dcf5e7;color:#157347}.system-logs-badge.danger{background:#fde7e9;color:#a32734}.system-logs-pager{display:flex;justify-content:space-between;padding:.8rem 1rem;color:#60757a}.system-logs-pager div{display:flex;gap:.75rem}.system-logs-detail{margin-top:1rem;padding:1rem;border:1px solid #dce8eb;border-radius:14px;background:#fff}.system-logs-detail div{display:grid;grid-template-columns:220px 1fr;border-bottom:1px solid #edf2f3}.system-logs-detail dt,.system-logs-detail dd{padding:.7rem;margin:0}.system-logs-detail pre{margin:0;white-space:pre-wrap;word-break:break-word;font:inherit}
@media(max-width:1100px){.system-logs-kpis{grid-template-columns:repeat(3,1fr)}.system-logs-filter{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.system-logs-page{padding:.75rem}.system-logs-kpis{grid-template-columns:repeat(2,1fr)}.system-logs-filter{grid-template-columns:1fr}.system-logs-detail div{grid-template-columns:1fr}}
