/* HTML hidden özniteliği, modal ve bekleme katmanlarında her zaman önceliklidir. */
[hidden] { display: none !important; }

:root {
    --navy-950: #071426;
    --navy-900: #0b1f38;
    --navy-800: #123457;
    --blue-600: #1565c0;
    --blue-500: #1f7ae0;
    --blue-100: #eaf3ff;
    --surface: #ffffff;
    --surface-soft: #f5f7fa;
    --surface-muted: #edf1f5;
    --border: #d8e0e8;
    --text: #1b2838;
    --text-soft: #657386;
    --success: #1f8b5b;
    --danger: #c0392b;
    --shadow: 0 10px 28px rgba(10, 31, 56, 0.08);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--surface-soft);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-header {
    min-height: 70px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
    color: #fff;
}

.brand-block { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    color: var(--navy-900);
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 5px 16px rgba(0,0,0,.18);
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .8px; }
.brand-subtitle { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.68); }

.header-context { position: relative; display: flex; align-items: center; gap: 10px; }
.company-pill {
    min-height: 44px;
    padding: 7px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    background: rgba(255,255,255,.07);
}
.context-label, .user-button small { color: rgba(255,255,255,.62); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.company-pill strong { margin-top: 2px; font-size: 13px; }
.user-button {
    min-height: 44px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
}
.user-button:hover { background: rgba(255,255,255,.13); }
.user-button > span:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-500); font-weight: 800; }
.chevron { opacity: .7; }
.user-menu {
    position: absolute;
    top: 52px;
    right: 0;
    z-index: 20;
    width: 180px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}
.user-menu button { width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.user-menu button:hover { background: var(--surface-muted); }
.user-menu .danger { color: var(--danger); }

.ribbon-tabs {
    min-height: 37px;
    padding: 0 18px;
    display: flex;
    align-items: end;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.ribbon-tab {
    height: 36px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #566477;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .25px;
}
.ribbon-tab:hover { color: var(--blue-600); background: #f6f9fc; }
.ribbon-tab.active { color: var(--blue-600); border-bottom-color: var(--blue-600); background: var(--blue-100); }

.ribbon {
    min-height: 90px;
    padding: 7px 20px 4px;
    display: flex;
    gap: 9px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(16, 42, 67, .04);
}
.ribbon-group {
    min-width: 130px;
    padding: 2px 10px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}
.ribbon-group:last-child { border-right: 0; }
.ribbon-actions { display: flex; align-items: stretch; gap: 3px; flex: 1; }
.ribbon-action {
    min-width: 98px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
}
.ribbon-action:hover { background: var(--blue-100); border-color: #cfe3fb; }
.ribbon-action-text { display: flex; flex-direction: column; }
.ribbon-action strong { font-size: 12px; }
.ribbon-action small { margin-top: 2px; color: var(--text-soft); font-size: 10px; }
.ribbon-group-title { padding-top: 2px; color: #8a96a5; font-size: 9px; text-align: center; text-transform: uppercase; letter-spacing: .7px; }

.icon, .stat-icon {
    --icon-bg: #eaf3ff;
    --icon-fg: #1565c0;
    position: relative;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--icon-bg);
    color: var(--icon-fg);
    font-size: 15px;
    font-weight: 900;
}
.icon::before, .stat-icon::before { content: "•"; }
.icon-home::before { content: "⌂"; }
.icon-pdf::before { content: "PDF"; font-size: 9px; }
.icon-xml::before { content: "XML"; font-size: 8px; }
.icon-edit::before { content: "✎"; }
.icon-archive::before { content: "▣"; }
.icon-truck::before { content: "▰"; }
.icon-clock::before { content: "◷"; }
.icon-check::before { content: "✓"; }
.icon-building::before { content: "▦"; }
.icon-globe::before { content: "◎"; }
.icon-barcode::before { content: "▥"; }
.icon-tag::before { content: "◇"; }
.icon-printer::before { content: "▤"; }
.icon-layout::before { content: "▦"; }
.icon-invoice::before { content: "▤"; }
.icon-warning::before { content: "!"; }
.icon-library::before { content: "▥"; }

.workspace {
    min-height: calc(100vh - 232px);
    padding: 24px;
}
.page-heading {
    max-width: 1440px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-heading.compact { margin-bottom: 14px; }
.eyebrow { color: var(--blue-600); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(23px, 3vw, 32px); line-height: 1.15; }
h2 { margin-bottom: 5px; font-size: 18px; }
.page-heading p, .construction-panel p { margin-bottom: 0; color: var(--text-soft); }
.date-box { min-width: 170px; padding: 11px 15px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(10,31,56,.04); }
.date-box span { display: block; color: var(--text-soft); font-size: 10px; text-transform: uppercase; }
.date-box strong { display: block; margin-top: 3px; }

.dashboard-grid {
    max-width: 1440px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.stat-card {
    min-height: 116px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10,31,56,.045);
}
.stat-icon { width: 44px; height: 44px; border-radius: 11px; }
.stat-card div:last-child { min-width: 0; display: flex; flex-direction: column; }
.stat-card span { color: var(--text-soft); font-size: 12px; }
.stat-card strong { margin: 3px 0; font-size: 25px; }
.stat-card small { overflow: hidden; color: #8a96a5; text-overflow: ellipsis; white-space: nowrap; }

.content-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
}
.panel {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10,31,56,.045);
}
.panel-header { padding: 18px 18px 10px; }
.quick-actions { padding: 0 12px 12px; display: grid; gap: 7px; }
.quick-action {
    padding: 11px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 10px;
}
.quick-action:hover { background: var(--blue-100); border-color: #d3e5fa; }
.quick-action div { display: flex; flex-direction: column; }
.quick-action small { margin-top: 2px; color: var(--text-soft); }
.arrow { color: var(--blue-600); font-size: 20px; }
.empty-state { min-height: 220px; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-soft); text-align: center; }
.empty-state .icon { width: 48px; height: 48px; margin-bottom: 12px; }
.empty-state strong { color: var(--text); }
.empty-state p { max-width: 320px; margin: 6px 0 0; }

.construction-panel {
    max-width: 1440px;
    min-height: 270px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}
.construction-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 27px;
    font-weight: 900;
}

.status-bar {
    min-height: 28px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    background: #fff;
    color: #7e8998;
    font-size: 10px;
}

@media (max-width: 1050px) {
    .company-pill { display: none; }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ribbon { overflow-x: auto; }
    .ribbon-tabs { overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 760px) {
    .app-header { padding: 9px 12px; }
    .brand-subtitle, .user-button small, .user-button strong, .chevron { display: none; }
    .brand-name { font-size: 15px; }
    .ribbon-tabs { padding: 0 8px; }
    .ribbon-tab { padding: 0 10px; font-size: 10px; }
    .ribbon { min-height: 80px; padding-left: 8px; }
    .ribbon-action { min-width: 78px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .ribbon-action small { display: none; }
    .workspace { padding: 16px 12px; }
    .page-heading { align-items: flex-start; gap: 12px; }
    .date-box { display: none; }
    .dashboard-grid, .content-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 96px; }
    .construction-panel { padding: 22px; flex-direction: column; text-align: center; }
}

/* PROMAR WEB V0.2 - PDF MODÜLÜ */
button { border: 0; }
button:disabled { opacity: .48; cursor: not-allowed !important; }
.ribbon-action.selected { background: var(--blue-100); border-color: #c8def7; }

.button {
    min-height: 38px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2px;
    cursor: pointer;
    white-space: nowrap;
}
.button.compact { min-height: 32px; padding: 0 11px; font-size: 10px; }
.button.primary { background: #1565c0; }
.button.primary:hover { background: #0d55a8; }
.button.success { background: #198754; }
.button.success:hover { background: #116c41; }
.button.purple { background: #7251b5; }
.button.purple:hover { background: #5c3d9c; }
.button.secondary { background: #64748b; }
.button.secondary:hover { background: #526174; }
.button.danger { background: #c0392b; }
.button.danger:hover { background: #a72f23; }

.pdf-workspace { padding: 16px 18px 18px; }
.pdf-heading { max-width: none; margin-bottom: 12px; }
.pdf-heading h1 { font-size: 25px; }
.version-chip {
    min-width: 124px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    text-align: right;
}
.version-chip span { display: block; color: var(--text-soft); font-size: 9px; font-weight: 800; }
.version-chip strong { display: block; margin-top: 2px; color: var(--blue-600); font-size: 13px; }

.reader-card { max-width: none; margin-bottom: 12px; padding: 12px; }
.reader-main-row { display: flex; }
.upload-zone, .selected-file {
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed #9db8d4;
    border-radius: 10px;
    background: #f8fbff;
}
.upload-zone { cursor: pointer; transition: .15s ease; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--blue-500); background: #eef6ff; }
.upload-icon, .file-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #dbeafe;
    color: #1457a5;
    font-size: 11px;
    font-weight: 950;
}
.upload-copy, .selected-file > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.upload-copy strong, .selected-file strong { font-size: 13px; }
.upload-copy small, .selected-file small { margin-top: 3px; color: var(--text-soft); font-size: 10px; }
.icon-button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #edf2f7;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}
.icon-button:hover { background: #dfe8f1; }

.reader-controls {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) minmax(240px, .9fr) minmax(210px, .8fr) auto;
    gap: 10px;
    align-items: end;
}
.field-group { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.field-group > span { color: #556579; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.field-group input, .field-group select, select, input[type="text"], input[type="number"] {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    outline: none;
}
.field-group input:focus, .field-group select:focus, select:focus, input:focus { border-color: #5b9bd5; box-shadow: 0 0 0 3px rgba(31,122,224,.11); }
.check-control {
    min-height: 36px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.check-control input { width: 17px; height: 17px; accent-color: var(--blue-600); }
.check-control span { display: flex; flex-direction: column; }
.check-control strong { font-size: 10px; }
.check-control small { margin-top: 2px; color: var(--text-soft); font-size: 9px; }
.reader-buttons { display: flex; gap: 6px; justify-content: flex-end; }
.reader-buttons .button { min-height: 36px; padding-left: 11px; padding-right: 11px; font-size: 9px; }

.reader-status-row { margin-top: 10px; display: flex; gap: 7px; }
.status-pill {
    min-height: 30px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    color: #5c6c7d;
    font-size: 9px;
}
.status-pill.grow { flex: 1; }
.status-pill strong { color: var(--text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.status-pill.ready { background: #eefbf5; border-color: #bfe7d3; }
.status-pill.ready .status-dot { background: #1f9d66; }
.status-pill.warning { background: #fff9eb; border-color: #f0d796; }
.status-pill.warning .status-dot { background: #d99b16; }
.status-pill.error { background: #fff0ee; border-color: #efb9b2; }
.status-pill.error .status-dot { background: #c0392b; }

.pdf-editor-layout {
    min-height: 590px;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 12px;
}
.pdf-toolbox { padding: 11px; display: flex; flex-direction: column; gap: 10px; }
.toolbox-section { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.toolbox-section:last-child { border-bottom: 0; }
.section-caption { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.section-caption > span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--navy-800);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}
.section-caption > div { display: flex; flex-direction: column; }
.section-caption strong { font-size: 11px; }
.section-caption small { margin-top: 1px; color: var(--text-soft); font-size: 8px; }
.tool-grid { display: grid; gap: 5px; }
.tool-grid.two { grid-template-columns: repeat(2, 1fr); }
.tool-button {
    min-height: 34px;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}
.tool-button:hover { background: #f1f5f9; border-color: #94a3b8; }
.tool-button.role { background: #f6f2ff; border-color: #d9ccf5; color: #6342a2; }
.tool-button.role.active { background: #7251b5; border-color: #7251b5; color: #fff; }
.tool-button.blue { background: #eff6ff; border-color: #bfdbfe; color: #1d5fae; }
.tool-button.danger { background: #fff4f2; border-color: #f1c4bd; color: #ad3428; }
.tool-button.light { background: #f8fafc; }
.tool-button.wide { width: 100%; margin-top: 5px; }
.transfer-section { margin-top: auto; }
.transfer-button { width: 100%; min-height: 46px; }

.pdf-table-panel { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.table-panel-header {
    min-height: 61px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}
.table-panel-header h2 { margin-bottom: 0; font-size: 15px; }
.quality-chips { display: flex; gap: 6px; }
.quality-chip {
    min-width: 58px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #c9e5d7;
    border-radius: 7px;
    background: #f0fbf6;
}
.quality-chip.warning { border-color: #ead59b; background: #fff9eb; }
.quality-chip small { color: var(--text-soft); font-size: 8px; }
.quality-chip strong { margin-top: 1px; font-size: 13px; }
.table-toolbar {
    min-height: 31px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    color: #64748b;
    font-size: 9px;
}
.pdf-table-wrap { position: relative; min-height: 470px; flex: 1; overflow: auto; background: #fff; }
.table-empty { min-height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-soft); text-align: center; }
.table-empty p { max-width: 360px; margin: 5px 0 0; }
.empty-pdf-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf3ff;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 950;
}
.pdf-data-table, .data-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.pdf-data-table th, .pdf-data-table td, .data-table th, .data-table td { border-right: 1px solid #dfe5ec; border-bottom: 1px solid #dfe5ec; }
.pdf-data-table th, .data-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    min-width: 140px;
    height: 40px;
    padding: 6px 8px;
    background: #e8eef5;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}
.pdf-data-table th:first-child, .data-table th:first-child { min-width: 46px; left: 0; z-index: 4; text-align: center; }
.pdf-data-table th.selected-column { background: #dbeafe; color: #1457a5; box-shadow: inset 0 -3px 0 #1f7ae0; }
.pdf-data-table th.mapped { background: #ede9fe; color: #5b3a99; }
.pdf-data-table th .column-role { display: block; margin-top: 2px; font-size: 8px; }
.pdf-data-table td { min-width: 140px; padding: 0; background: #fff; }
.pdf-data-table tbody tr:nth-child(even) td { background: #f8fafc; }
.pdf-data-table tbody tr.selected-row td { background: #eef6ff; }
.pdf-data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 46px;
    padding: 0 6px;
    text-align: center;
    background: #f1f5f9 !important;
}
.pdf-data-table td.selected-cell { outline: 2px solid #1f7ae0; outline-offset: -2px; }
.cell-input {
    width: 100%;
    min-width: 140px;
    height: 34px;
    padding: 5px 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 10px;
    outline: none;
}
.cell-input:focus { background: #fffef2; box-shadow: inset 0 0 0 2px #e2ad2b; }
.row-check { width: 15px; height: 15px; accent-color: var(--blue-600); }

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(5, 15, 28, .62);
    backdrop-filter: blur(2px);
}
.modal-card {
    width: min(720px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
    overflow: hidden;
}
.modal-card.medium { width: min(760px, 96vw); }
.modal-card.extra-large { width: min(1380px, 98vw); }
.modal-card > header, .modal-card > footer { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8fafc; }
.modal-card > header { border-bottom: 1px solid var(--border); }
.modal-card > footer { border-top: 1px solid var(--border); }
.modal-card > header h2 { margin: 1px 0 0; font-size: 16px; }
.modal-card > footer > div { display: flex; gap: 7px; }
.modal-close { width: 34px; height: 34px; border-radius: 8px; background: #e9eef4; color: #475569; font-size: 22px; cursor: pointer; }
.modal-body { padding: 14px; overflow: auto; }
.template-list { display: grid; gap: 8px; }
.template-item { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.template-item:hover { border-color: #9ac3ee; background: #f8fbff; }
.template-item div { display: flex; flex-direction: column; }
.template-item small { margin-top: 3px; color: var(--text-soft); }
.teach-toolbar { padding: 10px 14px; display: flex; align-items: end; gap: 8px; border-bottom: 1px solid var(--border); }
.teach-toolbar .field-group:first-child { width: 260px; }
.page-field { width: 90px; }
.teach-mode-buttons { margin-left: auto; display: flex; gap: 6px; }
.teach-body { padding: 10px 14px; background: #e6ebf0; }
.teach-help { margin-bottom: 8px; padding: 7px 10px; border: 1px solid #c7d2df; border-radius: 8px; background: #fff; color: #526174; font-size: 10px; }
.template-canvas-shell { position: relative; min-height: 500px; display: flex; align-items: flex-start; justify-content: center; overflow: auto; border: 1px solid #9aa8b7; border-radius: 8px; background: #596675; }
#templateCanvas { display: block; max-width: 100%; cursor: crosshair; background: #fff; }
.canvas-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.transfer-report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.transfer-report-card { padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #f8fafc; text-align: center; }
.transfer-report-card span { display: block; color: var(--text-soft); font-size: 9px; }
.transfer-report-card strong { display: block; margin-top: 3px; font-size: 23px; }
.skipped-list { margin-top: 12px; display: grid; gap: 5px; }
.skipped-row { padding: 7px 9px; border-left: 3px solid #d99b16; background: #fff9eb; font-size: 10px; }

.busy-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5,15,28,.55); }
.busy-card { min-width: 270px; padding: 25px; display: flex; flex-direction: column; align-items: center; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.busy-card strong { margin-top: 12px; }
.busy-card span { margin-top: 4px; color: var(--text-soft); font-size: 11px; }
.spinner { width: 34px; height: 34px; border: 4px solid #dbe7f3; border-top-color: var(--blue-600); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-stack { position: fixed; right: 18px; bottom: 42px; z-index: 300; display: grid; gap: 8px; }
.toast { min-width: 290px; max-width: 440px; padding: 11px 13px; border: 1px solid #cbd5e1; border-left-width: 4px; border-radius: 9px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.16); font-size: 11px; }
.toast.success { border-left-color: #198754; }
.toast.warning { border-left-color: #d99b16; }
.toast.error { border-left-color: #c0392b; }

.draft-summary-grid { max-width: 1440px; margin: 0 auto 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.summary-chip { padding: 12px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.summary-chip span { color: var(--text-soft); font-size: 9px; text-transform: uppercase; }
.summary-chip strong { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-panel { max-width: 1440px; margin: 0 auto; }
.panel-header.inline { display: flex; align-items: center; justify-content: space-between; }
.badge { padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.badge.success { background: #e9f8f0; color: #147347; }
.table-scroll { overflow: auto; }
.data-table th, .data-table td { min-width: 120px; padding: 8px; font-size: 10px; }
.data-table th { cursor: default; }
.info-banner { max-width: 1440px; margin: 12px auto 0; padding: 12px 14px; border: 1px solid #b9d6f2; border-radius: 9px; background: #eef7ff; color: #34516e; }

@media (max-width: 1280px) {
    .reader-controls { grid-template-columns: 1fr 1fr; }
    .reader-buttons { grid-column: 1 / -1; }
    .supplier-field { min-width: 0; }
}
@media (max-width: 920px) {
    .pdf-editor-layout { grid-template-columns: 1fr; }
    .pdf-toolbox { display: grid; grid-template-columns: repeat(3, 1fr); }
    .transfer-section { margin-top: 0; }
    .reader-status-row { flex-wrap: wrap; }
    .status-pill.grow { flex-basis: 100%; }
    .teach-toolbar { flex-wrap: wrap; }
    .teach-mode-buttons { width: 100%; margin-left: 0; }
    .draft-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .pdf-workspace { padding: 10px 8px; }
    .pdf-heading p, .version-chip { display: none; }
    .reader-controls { grid-template-columns: 1fr; }
    .reader-buttons { flex-direction: column; }
    .reader-buttons .button { width: 100%; }
    .pdf-toolbox { grid-template-columns: 1fr; }
    .upload-zone { align-items: flex-start; flex-wrap: wrap; }
    .upload-zone .button { margin-left: 55px; }
    .quality-chips { display: none; }
    .table-toolbar { align-items: flex-start; flex-direction: column; }
    .modal-backdrop { padding: 6px; }
    .teach-toolbar .field-group:first-child { width: 100%; }
    .teach-mode-buttons { overflow-x: auto; }
    .draft-summary-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PROMAR WEB V0.2.2 - KOMPAKT / PROFESYONEL ARAYUZ
   Islevsel kodlara dokunmadan ekran olcegi ve okunabilirlik yenilendi.
   ================================================================ */
:root {
    --navy-950: #081525;
    --navy-900: #0d2239;
    --navy-800: #153955;
    --blue-600: #1769b0;
    --blue-500: #237cc1;
    --blue-100: #eaf3fb;
    --surface-soft: #eef2f6;
    --surface-muted: #e8edf2;
    --border: #cbd5df;
    --text: #172536;
    --text-soft: #59687a;
    --shadow: 0 2px 8px rgba(12, 35, 58, .08);
}

body {
    background: #edf1f5;
    font-size: 13px;
    line-height: 1.35;
}

/* Ust baslik */
.app-header {
    min-height: 52px;
    height: 52px;
    padding: 5px 16px;
    background: linear-gradient(110deg, #081525 0%, #123b59 100%);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-block { gap: 9px; }
.brand-mark {
    width: 33px;
    height: 33px;
    border-radius: 7px;
    font-size: 18px;
    box-shadow: 0 2px 7px rgba(0,0,0,.18);
}
.brand-name { font-size: 15px; letter-spacing: .55px; }
.brand-subtitle { margin-top: 0; font-size: 9px; }
.header-context { gap: 7px; }
.company-pill, .user-button {
    min-height: 36px;
    height: 36px;
    border-radius: 7px;
}
.company-pill { padding: 4px 10px; }
.company-pill strong { margin-top: 0; font-size: 11px; }
.context-label, .user-button small { font-size: 8px; }
.user-button { padding: 3px 7px; gap: 7px; }
.user-button strong { font-size: 11px; }
.avatar { width: 27px; height: 27px; border-radius: 6px; font-size: 11px; }
.user-menu { top: 42px; border-radius: 8px; }

/* Klasik seri menu - daha kompakt */
.ribbon-tabs {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    align-items: stretch;
}
.ribbon-tab {
    height: 32px;
    padding: 0 13px;
    border-bottom-width: 2px;
    font-size: 10px;
    letter-spacing: .15px;
}
.ribbon {
    min-height: 62px;
    height: 62px;
    padding: 4px 14px 3px;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(16,42,67,.04);
}
.ribbon-group {
    min-width: 104px;
    padding: 0 7px;
}
.ribbon-actions { gap: 2px; }
.ribbon-action {
    min-width: 82px;
    padding: 4px 6px;
    gap: 6px;
    border-radius: 6px;
}
.ribbon-action strong { font-size: 10px; }
.ribbon-action small { margin-top: 0; font-size: 8px; }
.ribbon-group-title { padding-top: 0; font-size: 7px; line-height: 10px; }
.icon, .stat-icon {
    width: 27px;
    height: 27px;
    border-radius: 6px;
    font-size: 13px;
}

/* Ana calisma alani */
.workspace {
    min-height: calc(100vh - 170px);
    padding: 10px 12px;
}
.status-bar {
    min-height: 24px;
    height: 24px;
    padding: 0 12px;
    font-size: 9px;
}
.panel {
    border-color: var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.page-heading {
    margin-bottom: 8px;
    min-height: 40px;
}
.page-heading .eyebrow { font-size: 8px; letter-spacing: .9px; }
.page-heading h1 {
    margin-bottom: 2px;
    font-size: 20px;
    line-height: 1.1;
}
.page-heading p {
    max-width: 900px;
    margin-bottom: 0;
    overflow: hidden;
    color: #647386;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.version-chip {
    min-width: 102px;
    padding: 5px 8px;
    border-radius: 7px;
    box-shadow: none;
}
.version-chip span { font-size: 7px; }
.version-chip strong { margin-top: 0; font-size: 11px; }

/* PDF ust islem karti */
.pdf-workspace { padding: 9px 11px 10px; }
.pdf-heading { margin-bottom: 7px; }
.pdf-heading h1 { font-size: 20px; }
.reader-card {
    margin-bottom: 8px;
    padding: 8px;
    border-top: 2px solid var(--blue-600);
}
.upload-zone, .selected-file {
    min-height: 48px;
    padding: 6px 9px;
    gap: 9px;
    border-radius: 7px;
    background: #f7fafc;
}
.upload-icon, .file-mark {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 9px;
}
.upload-copy strong, .selected-file strong { font-size: 11px; }
.upload-copy small, .selected-file small { margin-top: 1px; font-size: 8px; }
.icon-button { width: 29px; height: 29px; border-radius: 6px; font-size: 15px; }
.button {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 6px;
    font-size: 9px;
    letter-spacing: .1px;
}
.button.compact { min-height: 28px; padding: 0 9px; font-size: 8px; }
.reader-controls {
    margin-top: 7px;
    grid-template-columns: minmax(155px,.7fr) minmax(230px,1fr) minmax(180px,.75fr) auto;
    gap: 7px;
}
.field-group { gap: 2px; }
.field-group > span { font-size: 8px; letter-spacing: .35px; }
.field-group input, .field-group select, select, input[type="text"], input[type="number"] {
    min-height: 31px;
    height: 31px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 10px;
}
.check-control {
    min-height: 31px;
    height: 31px;
    padding: 4px 8px;
    gap: 7px;
    border-radius: 6px;
}
.check-control input { width: 14px; height: 14px; }
.check-control strong { font-size: 9px; }
.check-control small { display: none; }
.reader-buttons { gap: 5px; }
.reader-buttons .button {
    min-height: 31px;
    height: 31px;
    padding: 0 9px;
    font-size: 8px;
}
.reader-status-row { margin-top: 6px; gap: 5px; }
.status-pill {
    min-height: 25px;
    height: 25px;
    padding: 3px 7px;
    gap: 4px;
    border-radius: 6px;
    font-size: 8px;
}
.status-dot { width: 6px; height: 6px; }

/* PDF tablo ve arac kutusu */
.pdf-editor-layout {
    min-height: 430px;
    height: calc(100vh - 324px);
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 8px;
}
.pdf-toolbox {
    padding: 8px;
    gap: 6px;
    background: #fbfcfd;
}
.toolbox-section {
    padding-bottom: 7px;
}
.section-caption {
    margin-bottom: 5px;
    gap: 6px;
}
.section-caption > span {
    width: 21px;
    height: 21px;
    border-radius: 5px;
    font-size: 9px;
}
.section-caption strong { font-size: 10px; }
.section-caption small { font-size: 7px; }
.pdf-toolbox .toolbox-section:first-child .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-grid { gap: 4px; }
.tool-grid.two { gap: 4px; }
.tool-button {
    min-height: 29px;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 8px;
}
.tool-button.wide { margin-top: 4px; }
.transfer-button { min-height: 38px; }

.pdf-table-panel { border-radius: 8px; }
.table-panel-header {
    min-height: 48px;
    height: 48px;
    padding: 6px 10px;
    background: #fbfcfd;
}
.table-panel-header h2 { font-size: 13px; }
.quality-chips { gap: 4px; }
.quality-chip {
    min-width: 50px;
    padding: 3px 6px;
    border-radius: 5px;
}
.quality-chip small { font-size: 7px; }
.quality-chip strong { margin-top: 0; font-size: 11px; }
.table-toolbar {
    min-height: 27px;
    height: 27px;
    padding: 3px 8px;
    font-size: 8px;
}
.pdf-table-wrap {
    min-height: 350px;
    background: #fff;
}
.table-empty { min-height: 350px; font-size: 11px; }
.table-empty p { margin-top: 3px; font-size: 9px; }
.empty-pdf-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 11px;
    font-size: 10px;
}
.pdf-data-table th, .data-table th {
    min-width: 125px;
    height: 34px;
    padding: 4px 6px;
    background: #e6ecf2;
    font-size: 9px;
}
.pdf-data-table th:first-child, .data-table th:first-child,
.pdf-data-table td:first-child {
    min-width: 40px;
}
.pdf-data-table td { min-width: 125px; }
.cell-input {
    min-width: 125px;
    height: 30px;
    padding: 3px 6px;
    font-size: 9px;
}
.row-check { width: 13px; height: 13px; }

/* Pencereler ve bildirimler */
.modal-backdrop { padding: 12px; background: rgba(7, 20, 36, .66); }
.modal-card {
    border-radius: 9px;
    box-shadow: 0 18px 45px rgba(0,0,0,.24);
}
.modal-card > header, .modal-card > footer { padding: 8px 11px; }
.modal-card > header h2 { font-size: 14px; }
.modal-close { width: 29px; height: 29px; border-radius: 6px; font-size: 18px; }
.modal-body { padding: 10px; }
.busy-card {
    min-width: 235px;
    padding: 19px;
    border-radius: 9px;
}
.busy-card strong { margin-top: 9px; font-size: 12px; }
.busy-card span { margin-top: 2px; font-size: 9px; }
.spinner { width: 29px; height: 29px; border-width: 3px; }
.toast-stack { right: 12px; bottom: 32px; gap: 5px; }
.toast {
    min-width: 260px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 9px;
}

@media (max-width: 1280px) {
    .reader-controls { grid-template-columns: 1fr 1fr; }
    .reader-buttons { grid-column: 1 / -1; }
    .pdf-editor-layout { height: auto; min-height: 500px; }
}

@media (max-width: 920px) {
    .app-header { height: 48px; min-height: 48px; }
    .ribbon { height: 58px; min-height: 58px; }
    .workspace { min-height: calc(100vh - 162px); }
    .pdf-editor-layout { grid-template-columns: 1fr; }
    .pdf-toolbox { grid-template-columns: repeat(3, 1fr); }
    .pdf-toolbox .toolbox-section:first-child .tool-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
    .brand-subtitle { display: none; }
    .app-header { padding: 5px 9px; }
    .ribbon-tabs { padding: 0 5px; }
    .ribbon-tab { padding: 0 8px; }
    .ribbon { padding-left: 6px; }
    .workspace, .pdf-workspace { padding: 7px 6px; }
    .page-heading { min-height: 34px; }
    .page-heading h1 { font-size: 17px; }
    .reader-card { padding: 6px; }
    .pdf-editor-layout { min-height: 470px; }
    .pdf-toolbox { grid-template-columns: 1fr; }
}

/* ============================================================
   PROMAR WEB V0.3.0 - XML FATURA MODULU
   ============================================================ */
.xml-workspace {
    min-height: calc(100vh - 232px);
    padding: 16px 20px 22px;
}
.xml-heading {
    max-width: none;
    margin-bottom: 12px;
}
.xml-heading h1 {
    margin-bottom: 4px;
    font-size: 25px;
}
.xml-heading p {
    max-width: 950px;
    font-size: 12px;
}
.xml-import-card,
.xml-toolbar,
.xml-master-detail,
.xml-stat-grid {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}
.xml-import-card {
    margin-bottom: 10px;
    padding: 12px 14px 9px;
    border: 1px solid #cbd8e6;
    box-shadow: 0 5px 15px rgba(10, 31, 56, .045);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.xml-import-card.dragging {
    border-color: var(--blue-500);
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(31, 122, 224, .12);
}
.xml-import-main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.xml-import-icon,
.empty-xml-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, #0d5daa, #153a63);
    font-weight: 900;
    letter-spacing: .4px;
    box-shadow: 0 5px 14px rgba(15, 75, 130, .18);
}
.xml-import-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    font-size: 11px;
}
.empty-xml-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 8px;
    border-radius: 12px;
    font-size: 10px;
}
.xml-import-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.xml-import-copy strong {
    font-size: 14px;
}
.xml-import-copy small,
.xml-limit-note {
    color: var(--text-soft);
    font-size: 11px;
}
.xml-import-actions {
    display: flex;
    gap: 7px;
}
.xml-import-status {
    margin-top: 9px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
}
.xml-toolbar {
    margin-bottom: 10px;
    padding: 9px 11px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}
.xml-search-group {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: end;
    gap: 8px;
}
.xml-toolbar .field-group > span {
    margin-bottom: 4px;
    font-size: 9px;
}
.xml-toolbar input,
.xml-toolbar select {
    height: 34px;
}
.xml-toolbar .status-filter {
    flex: 0 0 155px;
}
.xml-toolbar-actions {
    display: flex;
    gap: 6px;
}
.xml-stat-grid {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.xml-stat {
    min-height: 60px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border);
    border-left: 4px solid #7a899c;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(10, 31, 56, .035);
}
.xml-stat.success { border-left-color: var(--success); }
.xml-stat.warning { border-left-color: #c98713; }
.xml-stat.info { border-left-color: var(--blue-500); }
.xml-stat span {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.xml-stat strong {
    margin-top: 3px;
    font-size: 21px;
}
.xml-master-detail {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(390px, 34%) minmax(0, 66%);
    gap: 10px;
}
.xml-invoice-panel,
.xml-detail-panel {
    min-width: 0;
    overflow: hidden;
}
.compact-header {
    min-height: 54px;
    padding: 10px 12px;
}
.compact-header h2 {
    margin: 1px 0 0;
    font-size: 15px;
}
.xml-invoice-table-wrap {
    position: relative;
    height: calc(100vh - 495px);
    min-height: 480px;
    overflow: auto;
    border-top: 1px solid var(--border);
}
.xml-invoice-table,
.xml-row-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.xml-invoice-table {
    min-width: 750px;
    font-size: 11px;
}
.xml-invoice-table thead th,
.xml-row-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    color: #3f4f61;
    background: #edf2f7;
    border-bottom: 1px solid #cfd8e3;
    font-size: 9px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .35px;
    white-space: nowrap;
}
.xml-invoice-table th,
.xml-invoice-table td {
    padding: 7px 8px;
    border-right: 1px solid #edf1f5;
    border-bottom: 1px solid #e6ebf0;
}
.xml-invoice-table tbody tr {
    cursor: pointer;
    background: #fff;
}
.xml-invoice-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.xml-invoice-table tbody tr:hover {
    background: #edf6ff;
}
.xml-invoice-table tbody tr.selected {
    background: #dfeeff;
    box-shadow: inset 4px 0 0 var(--blue-500);
}
.xml-invoice-table td strong,
.xml-invoice-table td small {
    display: block;
}
.xml-invoice-table td small {
    max-width: 230px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.number-cell {
    text-align: right;
    white-space: nowrap;
}
.xml-status-badge,
.row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .25px;
    white-space: nowrap;
}
.xml-status-badge.waiting,
.row-status.new {
    color: #8a5700;
    background: #fff0c7;
    border: 1px solid #f0d38a;
}
.xml-status-badge.transferred,
.row-status.matched {
    color: #12603e;
    background: #dff3e9;
    border: 1px solid #b4ddca;
}
.compact-empty {
    min-height: 430px;
}
.xml-detail-panel {
    min-height: 560px;
}
.xml-detail-empty {
    min-height: 555px;
    padding: 40px;
    display: grid;
    place-content: center;
    text-align: center;
}
.xml-detail-empty p {
    max-width: 440px;
    margin: 4px auto 0;
    color: var(--text-soft);
    font-size: 12px;
}
.xml-detail-header {
    min-height: 66px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.xml-detail-header h2 {
    margin: 1px 0 2px;
    font-size: 17px;
}
.xml-detail-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 11px;
}
.xml-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}
.xml-meta-grid {
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    border-bottom: 1px solid var(--border);
    background: #f7f9fb;
}
.xml-meta-grid article {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #dde5ed;
    border-radius: 7px;
    background: #fff;
}
.xml-meta-grid span {
    display: block;
    color: var(--text-soft);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.xml-meta-grid strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xml-match-strip {
    min-height: 39px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.match-chip {
    padding: 5px 8px;
    border: 1px solid #d8e0e8;
    border-radius: 999px;
    color: #47566a;
    background: #f2f5f8;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}
.match-chip.success { color: #12603e; background: #e4f5ec; border-color: #b9e0cd; }
.match-chip.warning { color: #815400; background: #fff3d6; border-color: #edd69b; }
.match-chip.danger { color: #8e2f24; background: #ffe8e4; border-color: #edc0b9; }
.xml-row-toolbar {
    min-height: 34px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    background: #fbfcfd;
    font-size: 10px;
}
.text-button {
    padding: 3px 5px;
    border: 0;
    color: var(--blue-600);
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.text-button:hover { text-decoration: underline; }
.xml-row-table-wrap {
    height: calc(100vh - 632px);
    min-height: 360px;
    overflow: auto;
}
.xml-row-table {
    min-width: 1700px;
    font-size: 10px;
}
.xml-row-table th,
.xml-row-table td {
    padding: 4px 5px;
    border-right: 1px solid #e6ebf0;
    border-bottom: 1px solid #e2e8ef;
    vertical-align: middle;
}
.xml-row-table tbody tr.ok-row { background: #f7fcf9; }
.xml-row-table tbody tr.warning-row { background: #fffaf0; }
.xml-row-table tbody tr:hover { background: #edf6ff; }
.xml-row-table .row-no {
    width: 38px;
    color: var(--text-soft);
    font-weight: 800;
    text-align: center;
}
.xml-row-table .product-name-cell { min-width: 260px; }
.xml-cell-input {
    width: 100%;
    min-width: 82px;
    height: 28px;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--text);
    background: transparent;
    font-size: 10px;
}
.xml-cell-input:hover { border-color: #c9d6e3; background: #fff; }
.xml-cell-input:focus {
    border-color: var(--blue-500);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(31, 122, 224, .12);
}
.readonly-number {
    min-width: 75px;
    color: #2e4963;
    background: #eef3f7;
    font-weight: 800;
    text-align: right;
}
.issue-text {
    display: block;
    max-width: 180px;
    overflow: hidden;
    color: #9b5c00;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.report-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-grid article {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f7f9fb;
}
.report-grid article.success { background: #eaf7f0; border-color: #b9dfcc; }
.report-grid article.info { background: #edf6ff; border-color: #bfd8f3; }
.report-grid article.danger { background: #fff0ed; border-color: #efc9c2; }
.report-grid span,
.report-grid strong { display: block; }
.report-grid span { color: var(--text-soft); font-size: 10px; text-transform: uppercase; }
.report-grid strong { margin-top: 4px; font-size: 24px; }
.report-error-list {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
}
.report-error-list > strong {
    display: block;
    padding: 9px 11px;
    background: #f1f4f7;
}
.report-error-list > div {
    padding: 8px 11px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
}
.report-error-list span { color: var(--danger); text-align: right; }
.success-banner { margin-top: 12px; border-color: #b9dfcc; background: #eaf7f0; }
.unmatched-list {
    display: grid;
    gap: 7px;
}
.unmatched-list article {
    padding: 9px 11px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #ead8b0;
    border-radius: 8px;
    background: #fffaf0;
}
.unmatched-list strong,
.unmatched-list small { display: block; }
.unmatched-list small { margin-top: 3px; color: var(--text-soft); }
.unmatched-list > article > span { color: #946000; font-size: 10px; font-weight: 800; text-align: right; }
.xml-preview-modal { max-width: 1320px; }
.xml-preview-body { background: #e9eef3; }
.invoice-paper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    color: #172638;
    background: #fff;
    box-shadow: 0 7px 28px rgba(10,31,56,.12);
}
.invoice-paper-head {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    gap: 20px;
}
.invoice-paper-head > div:last-child { text-align: right; }
.invoice-paper-head span { color: #6b7889; font-size: 9px; font-weight: 900; letter-spacing: .6px; }
.invoice-paper-head h3 { margin: 5px 0; font-size: 15px; }
.invoice-paper-head p { margin: 2px 0; color: #596779; font-size: 10px; }
.invoice-paper-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #173b61;
}
.invoice-paper-title strong { font-size: 20px; letter-spacing: 1px; }
.invoice-paper-meta {
    margin-top: 20px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid #ccd7e2;
    background: #f5f8fb;
    font-size: 10px;
}
.invoice-paper-table-wrap { margin-top: 12px; overflow: auto; }
.invoice-paper table { width: 100%; border-collapse: collapse; font-size: 9px; }
.invoice-paper th,
.invoice-paper td { padding: 6px; border: 1px solid #cdd6df; }
.invoice-paper th { background: #edf2f7; text-align: left; }
.invoice-paper-total {
    width: 350px;
    margin: 14px 0 0 auto;
    display: grid;
    gap: 4px;
}
.invoice-paper-total span {
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d7dfe7;
    font-size: 10px;
}
.invoice-paper-total .grand { color: #fff; background: #173b61; font-size: 12px; }

@media (max-width: 1350px) {
    .xml-master-detail { grid-template-columns: minmax(340px, 38%) minmax(0, 62%); }
    .xml-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    .xml-master-detail { grid-template-columns: 1fr; }
    .xml-invoice-table-wrap { height: 390px; min-height: 390px; }
    .xml-row-table-wrap { height: 430px; min-height: 430px; }
    .xml-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .xml-workspace { padding: 10px; }
    .xml-import-main,
    .xml-toolbar,
    .xml-detail-header { align-items: stretch; flex-direction: column; }
    .xml-import-actions,
    .xml-toolbar-actions,
    .xml-detail-actions { width: 100%; }
    .xml-import-actions .button,
    .xml-detail-actions .button { flex: 1; }
    .xml-search-group { flex-direction: column; align-items: stretch; }
    .xml-toolbar .status-filter { flex: auto; }
    .xml-stat-grid { grid-template-columns: 1fr 1fr; }
    .xml-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .invoice-paper-head { grid-template-columns: 1fr; }
    .invoice-paper-head > div:last-child { text-align: left; }
    .invoice-paper-title { min-height: 80px; }
    .invoice-paper-meta { grid-template-columns: 1fr 1fr; }
}
.draft-source-actions { display: flex; gap: 7px; }
@media (max-width: 700px) { .draft-source-actions { width: 100%; } .draft-source-actions .button { flex: 1; } }

/* ================================================================
   FATURA DÜZENLEME - V0.4.0
   Kompakt, yüksek veri yoğunluklu ve klasik PROMAR çalışma görünümü
   ================================================================ */
.invoice-editor-workspace {
    min-height: calc(100vh - 197px);
    padding: 8px 10px 10px;
    background: #eef2f6;
}
.invoice-editor-shell {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    display: grid;
    gap: 7px;
}
.invoice-editor-heading {
    min-height: 65px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 39, 64, .05);
}
.invoice-editor-title { min-width: 0; }
.invoice-editor-title .eyebrow,
.editor-modal .eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #1b6bb8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .85px;
}
.invoice-editor-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.invoice-editor-title h1 {
    margin: 0;
    color: #152c45;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -.25px;
}
.invoice-editor-title p {
    margin: 3px 0 0;
    color: #68788a;
    font-size: 10.5px;
}
.source-badge,
.draft-badge {
    min-height: 20px;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .45px;
    white-space: nowrap;
}
.source-badge { color: #145da1; background: #e8f3ff; border: 1px solid #c8e1f8; }
.draft-badge { color: #536274; background: #f2f5f8; border: 1px solid #d8e0e8; }
.editor-source-meta {
    width: min(390px, 34vw);
    min-width: 230px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    border-left: 3px solid #1e74c6;
    border-radius: 5px;
    background: #f5f8fb;
}
.editor-source-meta span {
    color: #7b8897;
    font-size: 8.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.editor-source-meta strong {
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    color: #233b54;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.editor-source-meta small { margin-top: 1px; color: #7b8897; font-size: 9px; }

.editor-command-panel {
    padding: 7px 9px;
    display: grid;
    grid-template-columns: minmax(500px, .72fr) minmax(650px, 1.28fr);
    align-items: end;
    gap: 10px;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 39, 64, .045);
}
.editor-form-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1.45fr) minmax(150px, .85fr) minmax(140px, .72fr);
    gap: 7px;
}
.editor-field {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.editor-field > span,
.general-discount-card label > span {
    color: #68788a;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
}
.editor-field input,
.search-modal-tools input,
.general-discount-card input {
    width: 100%;
    height: 31px;
    padding: 5px 8px;
    border: 1px solid #cdd7e1;
    border-radius: 5px;
    outline: 0;
    background: #fff;
    color: #1b2b3c;
    font-size: 11px;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.editor-field input:focus,
.search-modal-tools input:focus,
.general-discount-card input:focus {
    border-color: #2a7bc2;
    box-shadow: 0 0 0 2px rgba(42, 123, 194, .12);
}
.editor-main-actions {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.editor-action-separator { width: 1px; height: 28px; margin: 0 2px; flex: 0 0 auto; background: #d7dfe7; }
.editor-btn,
.mini-btn {
    border: 1px solid transparent;
    outline: 0;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.editor-btn:active,
.mini-btn:active { transform: translateY(1px); }
.editor-btn {
    min-height: 32px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 5px;
    font-size: 9.5px;
    letter-spacing: .1px;
}
.editor-btn > span {
    min-width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    background: rgba(255,255,255,.16);
    font-size: 8px;
}
.editor-btn.primary { color: #fff; background: #1767ad; border-color: #125b9c; }
.editor-btn.primary:hover { background: #125b9c; box-shadow: 0 3px 10px rgba(18, 91, 156, .22); }
.editor-btn.excel { color: #fff; background: #217346; border-color: #1b633c; }
.editor-btn.excel:hover { background: #1b633c; }
.editor-btn.tria { color: #fff; background: #6b4ba1; border-color: #5c3f8e; }
.editor-btn.tria:hover { background: #5c3f8e; }
.editor-btn.neutral { color: #33495f; background: #f1f4f7; border-color: #cfd8e2; }
.editor-btn.neutral:hover { background: #e6ebf0; }
.editor-btn.smart { color: #fff; background: #16806b; border-color: #126f5d; }
.editor-btn.smart:hover { background: #126f5d; }
.editor-btn.smart-outline { color: #116f5e; background: #edf9f6; border-color: #9fd0c6; }
.editor-btn.smart-outline:hover { background: #dcf2ed; }

.editor-summary-strip {
    min-height: 52px;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) minmax(180px, .9fr) repeat(3, minmax(150px, 1fr));
    gap: 5px;
}
.editor-summary-strip > article {
    min-width: 0;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #d4dde6;
    border-radius: 6px;
    background: #fff;
}
.editor-summary-strip > article span {
    color: #728093;
    font-size: 8.5px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.editor-summary-strip > article strong {
    margin-top: 2px;
    overflow: hidden;
    color: #233a52;
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.editor-summary-strip > article.discount { border-left: 3px solid #d89a1d; background: #fffaf0; }
.editor-summary-strip > article.discount strong { color: #9b6811; }
.editor-summary-strip > article.net { border-left: 3px solid #1b8a5a; background: #f2fbf7; }
.editor-summary-strip > article.net strong { color: #126c45; font-size: 15px; }
.editor-summary-strip > article.status-summary { border-left: 3px solid #4c647d; }
.editor-summary-strip > article.status-summary strong { color: #506176; font-size: 10.5px; }
.editor-summary-strip > article.status-summary b:first-child { color: #198553; }
.editor-summary-strip > article.status-summary b:last-child { color: #bf6b17; }
.general-discount-card label { display: grid; gap: 3px; }
.general-discount-card input { height: 26px; color: #a25f10; font-weight: 900; }

.editor-table-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #cfd8e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 39, 64, .055);
}
.editor-table-toolbar {
    min-height: 41px;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #dce3ea;
    background: #f6f8fa;
}
.table-actions-left,
.table-actions-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.table-actions-right { justify-content: flex-end; }
.mini-btn {
    min-height: 27px;
    padding: 4px 7px;
    border-radius: 4px;
    color: #344a60;
    background: #fff;
    border-color: #cbd6e0;
    font-size: 9px;
}
.mini-btn:hover { color: #175f9e; background: #eef6fd; border-color: #9cc6e8; }
.mini-btn.danger { color: #a53535; }
.mini-btn.danger:hover { background: #fff0f0; border-color: #e4aaaa; }
.mini-btn.success { color: #136d4a; background: #f1faf6; border-color: #a9d5c2; }
.mini-btn.success:hover { background: #e1f5eb; }
.mini-btn.report { color: #5a438c; background: #f7f3fd; border-color: #cbbce5; }
.mini-btn.report:hover { background: #eee7fa; }
.compact-check {
    min-height: 27px;
    padding: 3px 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
    color: #5d6c7c;
    font-size: 9px;
    white-space: nowrap;
}
.compact-check input { width: 13px; height: 13px; margin: 0; accent-color: #1767ad; }
.table-search {
    width: clamp(180px, 18vw, 290px);
    height: 28px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ccd6e0;
    border-radius: 4px;
    background: #fff;
}
.table-search span { color: #798798; font-size: 13px; }
.table-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #263a4e; background: transparent; font-size: 9.5px; }
.editor-table-wrap {
    min-height: 395px;
    height: calc(100vh - 453px);
    max-height: 690px;
    overflow: auto;
    background: #fff;
    scrollbar-color: #aab7c4 #edf1f5;
    scrollbar-width: thin;
}
.editor-table {
    width: max(100%, 1550px);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #22364b;
    font-size: 9.5px;
}
.editor-table thead { position: sticky; top: 0; z-index: 6; }
.editor-table th {
    height: 31px;
    padding: 4px 5px;
    border-right: 1px solid #cbd5df;
    border-bottom: 1px solid #aebdcb;
    background: linear-gradient(#edf2f6, #dfe7ee);
    color: #40546a;
    font-size: 8.2px;
    font-weight: 900;
    letter-spacing: .25px;
    text-align: center;
    white-space: nowrap;
}
.editor-table th:last-child { border-right: 0; }
.editor-table td {
    height: 31px;
    padding: 0;
    border-right: 1px solid #e0e6ec;
    border-bottom: 1px solid #e2e8ee;
    background: #fff;
    vertical-align: middle;
}
.editor-table tbody tr:nth-child(even) td { background: #f9fbfc; }
.editor-table tbody tr:hover td { background: #edf6fd; }
.editor-table tbody tr.row-missing td:first-child { box-shadow: inset 3px 0 #e2912c; }
.editor-table tbody tr.row-increase td:first-child { box-shadow: inset 3px 0 #c85050; }
.editor-table tbody tr.row-decrease td:first-child { box-shadow: inset 3px 0 #2c9562; }
.editor-table tbody tr.row-manual td:first-child { box-shadow: inset 3px 0 #6b55a0; }
.editor-table tbody tr.row-ready td:first-child { box-shadow: inset 3px 0 #4b86b4; }
.editor-table tbody tr.row-missing .status-cell span { color: #9a5a11; background: #fff0d9; border-color: #e8c48e; }
.editor-table tbody tr.row-increase .status-cell span { color: #a33d3d; background: #fff0f0; border-color: #e4b5b5; }
.editor-table tbody tr.row-decrease .status-cell span { color: #15714a; background: #eaf8f1; border-color: #acd7c3; }
.editor-table tbody tr.row-manual .status-cell span { color: #5d418e; background: #f2edfb; border-color: #cbbce4; }
.editor-table tbody tr.row-ready .status-cell span { color: #27618f; background: #edf6fd; border-color: #bdd7eb; }
.editor-table .select-col { width: 32px; text-align: center; }
.editor-table .row-no-col { width: 35px; text-align: center; color: #718092; font-weight: 800; }
.editor-table .barcode-col { width: 128px; }
.editor-table .code-col { width: 105px; }
.editor-table .name-col { width: 260px; }
.editor-table th:nth-child(6) { width: 72px; }
.editor-table th:nth-child(7) { width: 67px; }
.editor-table th:nth-child(8) { width: 78px; }
.editor-table th:nth-child(9) { width: 87px; }
.editor-table th:nth-child(10) { width: 70px; }
.editor-table th:nth-child(11) { width: 88px; }
.editor-table th:nth-child(12),
.editor-table th:nth-child(13),
.editor-table th:nth-child(14) { width: 68px; }
.editor-table th:nth-child(15) { width: 82px; }
.editor-table th:nth-child(16) { width: 116px; }
.editor-table input[type="checkbox"] { width: 13px; height: 13px; margin: 0; accent-color: #1767ad; }
.cell-input {
    width: 100%;
    height: 30px;
    padding: 3px 5px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #23384e;
    font-size: 9.5px;
    text-align: left;
}
.cell-input:hover { background: rgba(34, 121, 194, .045); }
.cell-input:focus {
    position: relative;
    z-index: 2;
    background: #fff;
    box-shadow: inset 0 0 0 2px #2b7fc2;
}
.cell-input.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.computed-cell {
    padding: 0 6px !important;
    color: #344b62;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.change-cell { text-align: center; font-weight: 850; }
.discount-total-cell { color: #9a6517; background: #fffaf0 !important; }
.status-cell { padding: 2px 4px !important; text-align: center; }
.status-cell span {
    min-height: 20px;
    padding: 2px 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd8e3;
    border-radius: 4px;
    font-size: 7.8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.status-cell small {
    max-width: 104px;
    margin: 2px auto 0;
    display: block;
    overflow: hidden;
    color: #758496;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.editor-table-footer {
    min-height: 28px;
    padding: 5px 8px;
    display: grid;
    grid-template-columns: 160px 1fr 170px;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #d9e1e8;
    color: #6a7888;
    background: #f5f7f9;
    font-size: 8.5px;
}
.editor-table-footer span:nth-child(2) { text-align: center; }
.editor-table-footer span:last-child { text-align: right; color: #17705a; font-weight: 800; }

.editor-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 800;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(6, 20, 36, .66);
    backdrop-filter: blur(2px);
}
.editor-modal {
    width: min(960px, 96vw);
    max-height: min(820px, 92vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #b9c7d4;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 20, 35, .34);
}
.editor-modal > header {
    min-height: 51px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d8e1e9;
    background: linear-gradient(#f9fbfc, #edf2f6);
}
.editor-modal > header h2 { margin: 1px 0 0; color: #19344f; font-size: 16px; }
.editor-modal > header > button {
    width: 29px;
    height: 29px;
    border: 1px solid #cbd6e0;
    border-radius: 5px;
    background: #fff;
    color: #536577;
    cursor: pointer;
    font-size: 17px;
}
.editor-modal > header > button:hover { color: #a33636; background: #fff1f1; border-color: #e4b5b5; }
.editor-modal > footer {
    min-height: 48px;
    padding: 8px 10px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    border-top: 1px solid #dce3ea;
    background: #f7f9fb;
}
.quality-modal { width: min(1080px, 96vw); }
.quality-overview {
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    border-bottom: 1px solid #dce3ea;
    background: #f7f9fb;
}
.quality-overview article {
    padding: 7px 8px;
    border: 1px solid #d7e0e8;
    border-radius: 5px;
    background: #fff;
}
.quality-overview span { display: block; color: #758395; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.quality-overview strong { margin-top: 2px; display: block; color: #273e56; font-size: 14px; }
.quality-overview article.ok { border-left: 3px solid #248b5d; }
.quality-overview article.warn { border-left: 3px solid #d28e1c; }
.quality-overview article.error { border-left: 3px solid #c64c4c; }
.quality-columns {
    min-height: 250px;
    max-height: 520px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: auto;
}
.quality-columns > article {
    min-width: 0;
    padding: 8px;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    background: #fafbfc;
}
.quality-columns h3 { margin: 0 0 7px; color: #364e66; font-size: 11px; }
.quality-item,
.quality-empty {
    margin-bottom: 4px;
    padding: 6px 7px;
    border-radius: 4px;
    font-size: 9px;
    line-height: 1.35;
}
.quality-item { color: #5c3d25; background: #fff4e8; border: 1px solid #ecd1ad; }
.quality-empty { color: #647488; background: #f1f4f7; border: 1px dashed #ccd6e0; text-align: center; }
.error-text { color: #aa3838 !important; background: #fff1f1 !important; border-color: #e4b4b4 !important; }
.search-modal { width: min(800px, 94vw); }
.search-modal-tools {
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 6px;
    border-bottom: 1px solid #e0e6ec;
}
.modal-note { margin: 0; padding: 6px 10px; color: #6a798a; background: #f7f9fb; font-size: 8.5px; }
.search-results {
    min-height: 220px;
    max-height: 520px;
    padding: 8px;
    display: grid;
    gap: 5px;
    overflow: auto;
}
.search-result-card {
    width: 100%;
    min-height: 58px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 8px;
    border: 1px solid #d4dde6;
    border-radius: 6px;
    background: #fff;
    color: #263b50;
    text-align: left;
    cursor: pointer;
}
.search-result-card:hover { border-color: #7fb3dd; background: #f1f8fd; box-shadow: 0 2px 8px rgba(26, 102, 165, .09); }
.search-source {
    grid-row: 1 / span 2;
    min-height: 25px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #1767ad;
    background: #e7f2fc;
    font-size: 8px;
    font-weight: 900;
}
.search-source.common { color: #755294; background: #f1eafb; }
.search-result-card strong { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-card small { color: #6c7a8b; font-size: 8.5px; }
.search-result-card em { grid-column: 3; grid-row: 1 / span 2; color: #53687d; font-size: 8.5px; font-style: normal; text-align: right; }
.records-modal { width: min(1120px, 97vw); }
.records-toolbar {
    padding: 6px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dce3ea;
    background: #f8fafb;
}
.records-table-wrap { min-height: 260px; max-height: 570px; overflow: auto; }
.records-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.records-table thead { position: sticky; top: 0; z-index: 2; }
.records-table th { padding: 7px; border-bottom: 1px solid #b8c7d5; background: #e7edf3; color: #41566b; font-size: 8px; text-align: left; }
.records-table td { padding: 6px 7px; border-bottom: 1px solid #e0e6ec; color: #34495f; }
.records-table tbody tr:nth-child(even) td { background: #f8fafb; }
.records-table tbody tr:hover td { background: #edf6fd; }
.records-table .deleted-record td { opacity: .65; background: #f4f4f4; text-decoration: line-through; }
.record-actions { display: flex; gap: 4px; white-space: nowrap; }
.record-actions button {
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid #b9cfdf;
    border-radius: 4px;
    color: #1a669f;
    background: #edf6fd;
    cursor: pointer;
    font-size: 8px;
    font-weight: 800;
}
.record-actions button.danger { color: #a53737; background: #fff1f1; border-color: #e4b5b5; }
.records-empty { padding: 28px !important; color: #738194 !important; text-align: center; }
.multiplier-modal { width: min(440px, 92vw); }
.multiplier-modal > .editor-field { padding: 14px 16px 7px; }
.multiplier-modal .modal-note { padding: 7px 16px 14px; background: transparent; }
.editor-busy {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: grid;
    place-items: center;
    background: rgba(7, 20, 36, .58);
    backdrop-filter: blur(2px);
}
.editor-busy > div {
    width: 270px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(5, 20, 35, .28);
}
.editor-busy strong { margin-top: 9px; color: #233a52; font-size: 12px; }
.editor-busy small { margin-top: 3px; color: #758395; font-size: 9px; text-align: center; }
.busy-spinner {
    width: 31px;
    height: 31px;
    border: 4px solid #dbe9f4;
    border-top-color: #1d70b7;
    border-radius: 50%;
    animation: editor-spin .75s linear infinite;
}
@keyframes editor-spin { to { transform: rotate(360deg); } }
.editor-empty { min-height: 260px; }

@media (max-width: 1480px) {
    .editor-command-panel { grid-template-columns: 1fr; align-items: stretch; }
    .editor-main-actions { justify-content: flex-start; }
    .editor-summary-strip { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
    .editor-table-wrap { height: calc(100vh - 500px); }
}
@media (max-width: 980px) {
    .invoice-editor-heading { align-items: stretch; flex-direction: column; gap: 7px; }
    .editor-source-meta { width: 100%; min-width: 0; }
    .editor-form-grid { grid-template-columns: 1fr 1fr; }
    .editor-form-grid .supplier-field { grid-column: 1 / -1; }
    .editor-summary-strip { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
    .editor-table-toolbar { align-items: stretch; flex-direction: column; }
    .table-actions-left, .table-actions-right { flex-wrap: wrap; justify-content: flex-start; }
    .table-search { width: min(100%, 330px); }
    .quality-columns { grid-template-columns: 1fr; }
    .quality-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .editor-table-footer { grid-template-columns: 1fr; }
    .editor-table-footer span { text-align: left !important; }
}
@media (max-width: 650px) {
    .invoice-editor-workspace { padding: 5px; }
    .invoice-editor-title-row { flex-wrap: wrap; }
    .editor-form-grid { grid-template-columns: 1fr; }
    .editor-form-grid .supplier-field { grid-column: auto; }
    .editor-main-actions { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
    .editor-action-separator { display: none; }
    .editor-btn { width: 100%; }
    .editor-summary-strip { grid-template-columns: 1fr 1fr; }
    .table-actions-left, .table-actions-right { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .table-search { grid-column: 1 / -1; width: 100%; }
    .compact-check { justify-content: center; }
    .editor-table-wrap { min-height: 420px; height: calc(100vh - 520px); }
    .quality-overview { grid-template-columns: 1fr 1fr; }
    .search-result-card { grid-template-columns: 48px minmax(0, 1fr); }
    .search-result-card em { grid-column: 2; grid-row: 3; text-align: left; }
    .editor-modal-backdrop { padding: 8px; }
}

/* =========================================================
   PROMAR WEB V0.5.0 - URUN KUTUPHANESI
   ========================================================= */
.library-workspace { padding: 12px 16px 18px; min-height: calc(100vh - 232px); }
.library-shell { max-width: 1880px; margin: 0 auto; }
.library-heading {
    min-height: 62px; margin-bottom: 10px; padding: 11px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(10,31,56,.04);
}
.library-heading h1 { margin: 2px 0 3px; font-size: 21px; }
.library-heading p { margin: 0; color: var(--text-soft); font-size: 12px; }
.library-live-state { min-width: 135px; display: flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #d8e6dd; border-radius: 8px; background: #f3faf6; }
.library-live-state .state-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31,139,91,.12); }
.library-live-state div { display: flex; flex-direction: column; }
.library-live-state small { color: var(--text-soft); font-size: 9px; text-transform: uppercase; }
.library-live-state strong { font-size: 12px; }

.library-stats { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 8px; margin-bottom: 9px; }
.library-stats article { min-height: 66px; padding: 9px 13px; border: 1px solid var(--border); border-left: 4px solid var(--blue-500); border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgba(10,31,56,.035); }
.library-stats article.success { border-left-color: var(--success); }
.library-stats article.warning { border-left-color: #e89b28; }
.library-stats article.danger { border-left-color: var(--danger); }
.library-stats span { color: var(--text-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }
.library-stats strong { display: block; margin: 1px 0 0; color: var(--navy-900); font-size: 22px; line-height: 1; }
.library-stats small { color: #8995a4; font-size: 9px; }

.library-command-bar, .barcode-command-bar {
    min-height: 56px; padding: 8px 10px; display: flex; align-items: end; gap: 8px; border: 1px solid var(--border); border-radius: 9px 9px 0 0; background: #fff;
}
.library-search-box { height: 36px; min-width: 300px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #cfd8e2; border-radius: 7px; background: #f9fbfd; }
.library-search-box:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(31,122,224,.1); background: #fff; }
.library-search-box span { color: var(--blue-600); font-size: 18px; }
.library-search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.library-filter { min-width: 158px; display: flex; flex-direction: column; gap: 3px; }
.library-filter span { color: var(--text-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.library-filter select { height: 36px; padding: 0 9px; border: 1px solid #cfd8e2; border-radius: 7px; background: #fff; font-size: 11px; font-weight: 700; }
.library-command-actions { margin-left: auto; display: flex; gap: 5px; }
.lib-btn { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .15px; cursor: pointer; white-space: nowrap; transition: transform .12s ease, filter .12s ease; }
.lib-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.lib-btn:active { transform: translateY(0); }
.lib-btn.primary { background: var(--blue-600); }
.lib-btn.success { background: var(--success); }
.lib-btn.warning { background: #df8923; }
.lib-btn.danger { background: var(--danger); }
.lib-btn.neutral { background: #647386; }
.lib-btn.transfer { background: #6f42c1; }
.lib-btn.subtle { border: 1px solid #ccd7e2; background: #f6f9fc; color: #31445b; }

.library-action-strip { min-height: 47px; padding: 6px 9px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-top: 0; background: #f8fafc; }
.action-divider { width: 1px; height: 26px; margin: 0 3px; background: var(--border); }
.selection-info { margin-left: auto; padding: 6px 9px; border: 1px solid #d5deea; border-radius: 6px; background: #fff; color: var(--text-soft); font-size: 10px; }
.selection-info b { color: var(--blue-600); }

.library-table-card { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 9px 9px; background: #fff; box-shadow: 0 5px 16px rgba(10,31,56,.045); overflow: hidden; }
.library-table-wrap { min-height: 320px; max-height: calc(100vh - 432px); overflow: auto; }
.library-table { width: 100%; min-width: 1500px; border-collapse: separate; border-spacing: 0; font-size: 10.5px; }
.library-table thead { position: sticky; top: 0; z-index: 4; }
.library-table th { height: 34px; padding: 7px 8px; border-right: 1px solid #d9e1e9; border-bottom: 1px solid #c6d1dc; background: #e9eef4; color: #23364d; font-size: 9.5px; font-weight: 900; text-align: left; white-space: nowrap; }
.library-table td { height: 35px; padding: 5px 8px; border-right: 1px solid #e5ebf0; border-bottom: 1px solid #e5ebf0; vertical-align: middle; white-space: nowrap; }
.library-table tbody tr:nth-child(even) { background: #f8fafc; }
.library-table tbody tr:hover { background: #eaf3ff; }
.library-table tbody tr.selected { outline: 2px solid rgba(31,122,224,.25); outline-offset: -2px; background: #e7f2ff; }
.library-table tr.incomplete-row td:last-child { background: #fff9ec; }
.library-table tr.critical-row { background: #fff3f1; }
.library-table .check-col { width: 34px; text-align: center; }
.library-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.library-table .mono { font-family: Consolas, monospace; }
.library-table .product-name-cell { min-width: 250px; max-width: 360px; white-space: normal; }
.product-name-cell strong { display: block; color: #182a41; }
.product-name-cell small { display: block; max-width: 320px; overflow: hidden; color: var(--text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.muted-value { color: #a1acb8; }
.stock-critical { color: var(--danger); font-weight: 900; }
.status-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 900; letter-spacing: .1px; }
.status-chip.ok { background: #e5f6ed; color: #176b48; }
.status-chip.warn { background: #fff1d8; color: #9b5c00; }
.status-chip.missing { background: #fdebea; color: #a7372c; }
.status-chip.neutral { background: #edf1f5; color: #4d5d70; }
.library-table-footer { min-height: 31px; padding: 6px 10px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); background: #f6f8fb; color: var(--text-soft); font-size: 9.5px; }
.empty-cell { padding: 28px !important; color: var(--text-soft); text-align: center !important; }
.empty-cell.error { color: var(--danger); }

.barcode-command-bar { align-items: center; border-radius: 9px 9px 0 0; }
.barcode-count { margin-left: auto; min-width: 100px; padding: 5px 11px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #efd8ad; border-radius: 7px; background: #fff8eb; }
.barcode-count span { color: #8a641e; font-size: 9px; text-transform: uppercase; }
.barcode-count strong { color: #b26900; font-size: 18px; }
.barcode-table { min-width: 1350px; }
.row-actions { display: flex; gap: 4px; }
.table-icon { padding: 5px 7px; border: 0; border-radius: 5px; background: #e9eef4; color: #32465c; font-size: 9px; font-weight: 800; cursor: pointer; }
.table-icon.success { background: #def2e7; color: #176b48; }
.table-icon.danger { background: #f9e3e1; color: #a7372c; }

.lib-modal-layer { position: fixed; inset: 0; z-index: 120; padding: 18px; display: grid; place-items: center; background: rgba(5,18,34,.64); backdrop-filter: blur(2px); }
.lib-modal { width: min(96vw, 1180px); max-height: 94vh; display: flex; flex-direction: column; border: 1px solid #cbd6e1; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(4,18,34,.3); overflow: hidden; }
.lib-modal.small-modal { width: min(96vw, 640px); }
.lib-modal.wide-modal { width: min(96vw, 1320px); }
.lib-modal.product-card-modal { width: min(98vw, 1480px); height: min(94vh, 900px); }
.lib-modal.barcode-modal { width: min(96vw, 760px); }
.lib-modal > header { min-height: 57px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: #f7f9fc; }
.lib-modal > header h2 { margin: 2px 0 0; font-size: 17px; }
.lib-modal > header > button { width: 32px; height: 32px; border: 0; border-radius: 7px; background: #e7edf3; color: #42566e; font-size: 20px; cursor: pointer; }
.lib-modal > footer { min-height: 54px; padding: 9px 13px; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--border); background: #f8fafc; }
.product-card-body { min-height: 0; flex: 1; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; }
.product-form { padding: 10px 12px; display: grid; grid-template-columns: 2fr repeat(6, minmax(120px, 1fr)); gap: 7px; border-bottom: 1px solid var(--border); background: #fff; }
.product-form label, .bulk-form label, .barcode-form label, .candidate-options label { display: flex; flex-direction: column; gap: 3px; }
.product-form label.wide { grid-column: span 2; }
.product-form label span, .bulk-form label span, .barcode-form label span { color: var(--text-soft); font-size: 8.5px; font-weight: 900; text-transform: uppercase; }
.product-form input, .product-form textarea, .bulk-form input, .barcode-form input, .candidate-options input, .candidate-options select, .alias-tools input, .alias-tools select, .transfer-table input {
    min-height: 31px; padding: 6px 8px; border: 1px solid #cad5df; border-radius: 6px; background: #fbfcfd; outline: 0; font-size: 10.5px;
}
.product-form input:focus, .product-form textarea:focus, .bulk-form input:focus, .barcode-form input:focus, .candidate-options input:focus, .alias-tools input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(31,122,224,.09); background: #fff; }
.product-form input[readonly] { background: #edf1f5; color: #566477; }
.product-tabs { min-height: 39px; padding: 4px 9px 0; display: flex; gap: 3px; border-bottom: 1px solid var(--border); background: #f4f7fa; }
.product-tabs button { padding: 8px 13px; border: 1px solid transparent; border-bottom: 0; border-radius: 7px 7px 0 0; background: transparent; color: #536479; font-size: 10px; font-weight: 900; cursor: pointer; }
.product-tabs button.active { border-color: var(--border); background: #fff; color: var(--blue-600); }
.product-tab-panel { min-height: 0; display: none; overflow: auto; }
.product-tab-panel.active { display: block; }
.product-mini-stats { padding: 7px 9px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.product-mini-stats article { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; }
.product-mini-stats span { color: var(--text-soft); font-size: 8px; text-transform: uppercase; }
.product-mini-stats strong { display: block; margin-top: 2px; font-size: 12px; }
.product-subtable { max-height: 430px; overflow: auto; }
.product-subtable.compact { max-height: 390px; }
.product-subtable table { width: 100%; min-width: 1050px; border-collapse: separate; border-spacing: 0; font-size: 9.5px; }
.product-subtable th { position: sticky; top: 0; z-index: 2; padding: 7px 8px; border-right: 1px solid #d5dee7; border-bottom: 1px solid #c7d1dc; background: #e9eef4; text-align: left; white-space: nowrap; }
.product-subtable td { padding: 6px 8px; border-right: 1px solid #e5ebf0; border-bottom: 1px solid #e5ebf0; }
.product-subtable tr:nth-child(even) td { background: #f8fafc; }
.product-subtable .num { text-align: right; }
.product-subtable .in { color: var(--success); font-weight: 800; }
.product-subtable .out { color: var(--danger); font-weight: 800; }
.price-up { color: #c76b00; font-weight: 900; }
.price-down { color: var(--success); font-weight: 900; }
.alias-tools { padding: 9px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--border); }
.alias-tools input { min-width: 330px; }
.price-current { min-height: 40px; padding: 8px 11px; display: flex; gap: 28px; align-items: center; border-bottom: 1px solid var(--border); background: #f8fafc; color: var(--text-soft); font-size: 10px; }
.price-current b { margin-left: 5px; color: var(--navy-900); font-size: 12px; }
.bulk-form { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bulk-form p { grid-column: 1 / -1; margin: 0 0 3px; color: var(--text-soft); font-size: 11px; }
.report-grid { padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-grid article { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.report-grid span { color: var(--text-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.report-grid strong { display: block; margin-top: 3px; color: var(--navy-900); font-size: 19px; }
.modal-help { margin: 0; padding: 9px 13px; border-bottom: 1px solid var(--border); background: #fff9ec; color: #73531d; font-size: 10px; }
.transfer-table { max-height: 520px; }
.transfer-table td:first-child strong, .transfer-table td:first-child small { display: block; }
.transfer-table td:first-child small { color: var(--text-soft); }
.transfer-table input { width: 130px; text-align: right; }

.barcode-product-info { padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.barcode-product-info span { padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; font-size: 10px; }
.barcode-product-info b { display: block; margin-bottom: 2px; color: var(--text-soft); font-size: 8px; text-transform: uppercase; }
.barcode-form { padding: 4px 12px 12px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.barcode-form label:first-child input { min-height: 46px; font-family: Consolas, monospace; font-size: 20px; font-weight: 900; text-align: center; }
.barcode-actions { padding: 10px 12px; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--border); background: #f8fafc; }
.candidate-panel { border-top: 1px solid var(--border); }
.candidate-options { padding: 9px 12px; display: flex; align-items: end; gap: 8px; background: #f6f8fb; }
.candidate-options label { min-width: 180px; color: var(--text-soft); font-size: 9px; font-weight: 800; }
.candidate-list { max-height: 310px; padding: 8px; overflow: auto; }
.candidate-item { width: 100%; padding: 8px; display: grid; grid-template-columns: 54px 1fr; gap: 9px; border: 1px solid var(--border); border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }
.candidate-item + .candidate-item { margin-top: 5px; }
.candidate-item:hover { border-color: var(--blue-500); background: var(--blue-100); }
.candidate-score { display: grid; place-items: center; border-radius: 6px; background: #e5f6ed; color: #176b48; font-size: 12px; font-weight: 900; }
.candidate-item strong, .candidate-item b, .candidate-item small { display: block; }
.candidate-item strong { color: var(--navy-900); font-family: Consolas, monospace; }
.candidate-item b { margin-top: 2px; font-size: 10px; }
.candidate-item small { margin-top: 2px; color: var(--text-soft); font-size: 9px; }
.candidate-loading { padding: 24px; color: var(--text-soft); text-align: center; }

.library-busy { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5,18,34,.58); }
.library-busy > div { min-width: 240px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 7px; border-radius: 12px; background: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.28); }
.library-busy strong { color: var(--navy-900); }
.library-busy small { color: var(--text-soft); }

@media (max-width: 1200px) {
    .library-stats { grid-template-columns: repeat(3, 1fr); }
    .library-command-bar { flex-wrap: wrap; align-items: center; }
    .library-search-box { min-width: 260px; }
    .library-command-actions { margin-left: 0; }
    .product-form { grid-template-columns: repeat(4, 1fr); }
    .product-mini-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .library-workspace { padding: 8px; }
    .library-heading { align-items: flex-start; flex-direction: column; }
    .library-stats { grid-template-columns: repeat(2, 1fr); }
    .library-search-box, .library-filter { width: 100%; min-width: 0; }
    .library-command-actions, .library-action-strip { width: 100%; flex-wrap: wrap; }
    .selection-info { margin-left: 0; }
    .product-form { grid-template-columns: 1fr 1fr; }
    .product-form label.wide { grid-column: 1 / -1; }
    .barcode-form, .barcode-product-info { grid-template-columns: 1fr; }
    .product-tabs { overflow-x: auto; }
    .product-mini-stats, .report-grid { grid-template-columns: 1fr 1fr; }
    .library-table-footer { flex-direction: column; }
}

/* ============================================================
   PROMAR WEB V0.5.1 - NET VE PROFESYONEL GORUNUM
   Tüm modüllerde okunabilirlik, çerçeve netliği ve tablo kontrastı.
   ============================================================ */
:root {
    --surface-soft: #f2f5f8;
    --surface-muted: #e9eef3;
    --border: #b9c6d2;
    --border-strong: #8fa0b1;
    --text: #132238;
    --text-soft: #536378;
    --shadow: 0 5px 15px rgba(10, 31, 56, .075);
}

html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: var(--text);
    background: #eef2f6;
    font-size: 14px;
    line-height: 1.35;
}

button,
input,
select,
textarea {
    color: var(--text);
}

strong,
b,
th,
button,
.ribbon-tab,
.ribbon-action strong {
    text-rendering: geometricPrecision;
}

/* Üst başlık ve klasik şerit */
.app-header {
    min-height: 58px;
    padding: 7px 18px;
    border-bottom: 1px solid #24486c;
    box-shadow: 0 3px 12px rgba(4, 18, 34, .18);
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 21px;
}
.brand-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .65px;
}
.brand-subtitle {
    color: rgba(255,255,255,.82);
    font-size: 11px;
    font-weight: 600;
}
.company-pill,
.user-button {
    min-height: 40px;
    border-color: rgba(255,255,255,.28);
}
.company-pill strong,
.user-button strong {
    font-size: 12.5px;
}
.context-label,
.user-button small {
    color: rgba(255,255,255,.78);
}
.ribbon-tabs {
    min-height: 38px;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}
.ribbon-tab {
    height: 37px;
    padding: 0 16px;
    color: #415269;
    font-size: 12.5px;
    font-weight: 900;
}
.ribbon-tab.active {
    color: #0d5ca9;
    background: #e5f1ff;
    border-bottom-color: #0d67bc;
}
.ribbon {
    min-height: 76px;
    padding: 6px 18px 4px;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 4px 12px rgba(10,31,56,.07);
}
.ribbon-group {
    min-width: 126px;
    border-right-color: #bcc8d3;
}
.ribbon-action {
    min-width: 102px;
    padding: 6px 9px;
    border-radius: 6px;
}
.ribbon-action:hover,
.ribbon-action.selected {
    border-color: #9fc3e7;
    background: #e8f3ff;
}
.ribbon-action strong {
    color: #1d3047;
    font-size: 12px;
    font-weight: 900;
}
.ribbon-action small {
    color: #5e6d7f;
    font-size: 10px;
    font-weight: 600;
}
.ribbon-group-title {
    color: #657487;
    font-size: 9px;
    font-weight: 800;
}
.icon,
.stat-icon {
    border: 1px solid #bdd6ef;
}

/* Genel başlık, kart ve alanlar */
.workspace {
    background: #eef2f6;
}
.page-heading h1,
.pdf-heading h1,
.xml-heading h1,
.library-heading h1 {
    color: #10233a;
    font-weight: 900;
    letter-spacing: -.2px;
}
.page-heading p,
.pdf-heading p,
.xml-heading p,
.library-heading p,
.construction-panel p {
    color: #526277;
    font-weight: 500;
}
.eyebrow {
    color: #0c63b4;
    font-size: 10.5px;
}
.panel,
.reader-card,
.xml-import-card,
.xml-toolbar,
.xml-master-detail > .panel,
.editor-table-card,
.library-table-card,
.library-command-bar,
.library-action-strip,
.modal-card {
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.panel,
.reader-card,
.xml-import-card,
.xml-toolbar,
.editor-table-card,
.library-table-card {
    border-radius: 8px;
}
.panel-header,
.table-panel-header,
.compact-header,
.modal-card > header {
    border-bottom-color: var(--border);
}
.panel-header h2,
.table-panel-header h2,
.compact-header h2,
.modal-card > header h2 {
    color: #172b43;
    font-weight: 900;
}

/* Form alanları */
.field-group > span,
.library-filter span,
.product-form label > span,
.modal-field > span,
.candidate-options label,
.editor-field > span {
    color: #43546a;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .35px;
}
.field-group input,
.field-group select,
select,
input[type="text"],
input[type="number"],
input[type="date"],
textarea,
.library-search-box,
.library-filter select,
.table-search,
.product-form input,
.product-form select,
.product-form textarea {
    border-color: #aebdca;
    background: #fff;
    color: #14263c;
    font-size: 11.5px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(10,31,56,.035) inset;
}
input::placeholder,
textarea::placeholder {
    color: #778698;
    opacity: 1;
    font-weight: 500;
}
.field-group input:focus,
.field-group select:focus,
select:focus,
input:focus,
textarea:focus,
.library-search-box:focus-within,
.table-search:focus-within {
    border-color: #2c78bb;
    box-shadow: 0 0 0 3px rgba(31,122,224,.14);
    outline: none;
}
.check-control,
.compact-check {
    border-color: #b7c4d0;
    color: #33475e;
}

/* Düğmeler */
.button,
.editor-btn,
.mini-btn,
.tool-button,
.library-action-btn,
.product-tabs button {
    font-weight: 900;
    letter-spacing: .12px;
}
.button {
    min-height: 36px;
    border-radius: 6px;
    font-size: 10.5px;
    box-shadow: 0 2px 5px rgba(10,31,56,.10);
}
.button.compact {
    min-height: 31px;
    font-size: 9.5px;
}
.button.secondary,
.editor-btn,
.mini-btn,
.tool-button,
.library-action-btn {
    border-color: #aebdca;
}
.button:focus-visible,
.editor-btn:focus-visible,
.mini-btn:focus-visible,
.tool-button:focus-visible,
.ribbon-action:focus-visible,
.ribbon-tab:focus-visible {
    outline: 3px solid rgba(31,122,224,.24);
    outline-offset: 1px;
}

/* Durum kutuları ve rozetler */
.status-pill,
.quality-chip,
.xml-status-badge,
.row-status,
.library-badge,
.status-badge,
.product-state {
    border-width: 1px;
    font-weight: 900;
}
.status-pill {
    color: #3f5065;
    border-color: #aebdca;
    background: #f7f9fb;
}
.status-pill strong {
    color: #13263d;
}

/* Tüm veri tablolarında daha net ızgara ve yazılar */
.pdf-data-table,
.data-table,
.xml-invoice-table,
.xml-row-table,
.editor-table,
.library-table,
.product-subtable table,
.transfer-table table {
    color: #172a41;
    font-variant-numeric: tabular-nums;
}
.pdf-data-table th,
.data-table th,
.xml-invoice-table thead th,
.xml-row-table thead th,
.editor-table th,
.library-table th,
.product-subtable th,
.transfer-table th {
    color: #20364e;
    background: linear-gradient(#edf2f6, #dce5ed);
    border-right-color: #b8c5d1;
    border-bottom-color: #92a4b5;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .2px;
    text-shadow: 0 1px 0 #fff;
}
.pdf-data-table td,
.data-table td,
.xml-invoice-table td,
.xml-row-table td,
.editor-table td,
.library-table td,
.product-subtable td,
.transfer-table td {
    color: #1a2d44;
    border-right-color: #ccd6df;
    border-bottom-color: #d2dbe3;
    font-size: 10.5px;
    font-weight: 550;
}
.pdf-data-table tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) td,
.xml-invoice-table tbody tr:nth-child(even) td,
.xml-row-table tbody tr:nth-child(even) td,
.editor-table tbody tr:nth-child(even) td,
.library-table tbody tr:nth-child(even) td,
.product-subtable tbody tr:nth-child(even) td {
    background: #f5f8fa;
}
.pdf-data-table tbody tr:hover td,
.data-table tbody tr:hover td,
.xml-invoice-table tbody tr:hover td,
.xml-row-table tbody tr:hover td,
.editor-table tbody tr:hover td,
.library-table tbody tr:hover td,
.product-subtable tbody tr:hover td {
    background: #e5f1fc;
}
.cell-input,
.editor-cell-input,
.editor-table input,
.editor-table select,
.xml-row-table input,
.library-table input,
.library-table select {
    color: #14273e;
    font-size: 10.5px;
    font-weight: 650;
}
.cell-input:focus,
.editor-cell-input:focus,
.editor-table input:focus,
.editor-table select:focus,
.xml-row-table input:focus,
.library-table input:focus,
.library-table select:focus {
    background: #fffbea;
    box-shadow: inset 0 0 0 2px #d19a24;
}

/* PDF modülü */
.pdf-toolbox {
    border-color: var(--border);
    background: #f8fafc;
}
.section-caption strong {
    color: #20364e;
    font-size: 10.5px;
}
.section-caption small {
    color: #5b6b7f;
    font-size: 8.5px;
}
.tool-button {
    color: #243a51;
    border-color: #aebdca;
    background: #fff;
    font-size: 9px;
}
.table-toolbar {
    color: #46586e;
    border-bottom: 1px solid var(--border);
    background: #f4f7fa;
    font-size: 9px;
}

/* XML modülü */
.xml-import-copy strong {
    color: #172b43;
    font-weight: 900;
}
.xml-import-copy small,
.xml-limit-note,
.xml-invoice-table td small {
    color: #56677b;
}
.xml-invoice-table {
    font-size: 10.5px;
}
.xml-invoice-table th,
.xml-invoice-table td,
.xml-row-table th,
.xml-row-table td {
    padding-top: 7px;
    padding-bottom: 7px;
}
.xml-invoice-table tbody tr.selected td {
    background: #d9ebfd;
}

/* Fatura düzenleme */
.editor-table {
    font-size: 10.5px;
}
.editor-table th {
    height: 34px;
    font-size: 9.3px;
}
.editor-table td {
    height: 34px;
}
.editor-table-wrap {
    scrollbar-color: #8f9eae #e4e9ee;
}
.editor-summary-strip > article {
    border-color: #afbdca;
}
.editor-summary-strip > article span {
    color: #4c5e73;
    font-size: 9px;
}
.editor-summary-strip > article strong {
    color: #172d45;
}

/* Ürün kütüphanesi */
.library-search-box {
    border-color: #aebdca;
    background: #fff;
}
.library-search-box input {
    color: #172a41;
    font-size: 11.5px;
    font-weight: 650;
}
.library-action-strip {
    border-top: 1px solid #c3ced8;
    background: #f3f6f9;
}
.library-table-card {
    border-top: 1px solid var(--border);
}
.library-table {
    font-size: 10.8px;
}
.library-table th {
    height: 36px;
    font-size: 10px;
}
.library-table td {
    height: 37px;
    font-size: 10.8px;
}
.library-table .product-name-cell {
    color: #10263f;
    font-weight: 700;
}
.library-table .mono {
    color: #183d62;
    font-size: 10.5px;
    font-weight: 700;
}
.library-table-footer {
    color: #4f6074;
    border-top-color: #aebdca;
    background: #eef2f5;
    font-size: 10px;
    font-weight: 650;
}
.product-tabs {
    border-bottom-color: #9facb9;
}
.product-tabs button {
    color: #40536a;
    font-size: 10.5px;
}
.product-tabs button.active {
    color: #0d60ae;
    border-color: #aebdca;
}
.product-subtable table {
    font-size: 10.5px;
}

/* Pencereler, uyarılar ve alt durum çubuğu */
.modal-backdrop {
    background: rgba(5, 18, 34, .72);
}
.modal-card {
    border: 1px solid #8fa0b1;
    box-shadow: 0 24px 70px rgba(0,0,0,.30);
}
.modal-body {
    color: #1a2d44;
}
.toast {
    border: 1px solid #9eacb9;
    color: #172a41;
    font-size: 10.5px;
    font-weight: 650;
    box-shadow: 0 12px 32px rgba(10,31,56,.20);
}
.status-bar {
    min-height: 29px;
    border-top-color: #9facb9;
    background: #f7f9fb;
    color: #44566b;
    font-size: 10px;
    font-weight: 650;
}

@media (max-width: 920px) {
    .ribbon-action strong { font-size: 11px; }
    .ribbon-action small { font-size: 9px; }
    .pdf-data-table td,
    .data-table td,
    .xml-invoice-table td,
    .xml-row-table td,
    .editor-table td,
    .library-table td { font-size: 10px; }
}

/* ========================================================================== */
/* PROMAR WEB V0.6.0 - MAL KABUL MERKEZI                                     */
/* ========================================================================== */
.mal-kabul-workspace {
    padding: 10px 12px 58px;
    background: #edf1f5;
}
.mk-shell {
    --mk-navy: #12314f;
    --mk-blue: #1768a9;
    --mk-green: #137a50;
    --mk-orange: #b75b14;
    --mk-red: #b4232c;
    --mk-purple: #68459b;
    --mk-border: #97a7b7;
    --mk-soft-border: #bec9d3;
    --mk-text: #172b42;
    --mk-muted: #53667b;
    color: var(--mk-text);
    max-width: 1880px;
    margin: 0 auto;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
}
.mk-shell button,
.mk-shell input,
.mk-shell select,
.mk-shell textarea { font-family: inherit; }
.mk-heading {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 14px;
    border: 1px solid #899cac;
    border-left: 5px solid var(--mk-blue);
    border-radius: 5px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f8 100%);
    box-shadow: 0 2px 7px rgba(17, 43, 68, .11);
}
.mk-heading h1,
.mk-command-card h2,
.mk-photo-card h2,
.mk-control-card h2,
.mk-table-card h2,
.mk-modal h2 {
    margin: 2px 0 0;
    color: #102a44;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.2px;
}
.mk-heading p {
    margin: 4px 0 0;
    max-width: 1050px;
    color: #465b70;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}
.mk-shell .eyebrow {
    display: block;
    color: #3c5b77;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}
.mk-live-state {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 190px;
    padding: 8px 11px;
    border: 1px solid #a2b2c1;
    border-radius: 4px;
    background: #fff;
}
.mk-live-state .state-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22a06b;
    box-shadow: 0 0 0 4px rgba(34, 160, 107, .14);
}
.mk-live-state small,
.mk-live-state strong { display: block; }
.mk-live-state small { color: #687b8e; font-size: 9px; font-weight: 700; }
.mk-live-state strong { color: #173552; font-size: 11px; }

.mk-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 7px;
    margin: 8px 0;
}
.mk-stats article {
    position: relative;
    padding: 7px 10px 7px 13px;
    min-height: 58px;
    border: 1px solid #9cabb9;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(20, 45, 70, .08);
    overflow: hidden;
}
.mk-stats article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #3d718f;
}
.mk-stats article.success::before { background: var(--mk-green); }
.mk-stats article.warning::before { background: #d48a18; }
.mk-stats article.danger::before { background: var(--mk-red); }
.mk-stats span,
.mk-stats strong,
.mk-stats small { display: block; }
.mk-stats span { color: #53677c; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.mk-stats strong { margin-top: 1px; color: #102d49; font-size: 17px; line-height: 1.1; font-weight: 850; }
.mk-stats small { margin-top: 2px; color: #738395; font-size: 8.5px; font-weight: 650; }

.mk-command-card,
.mk-photo-card,
.mk-control-card,
.mk-table-card,
.mk-bottom-bar {
    border: 1px solid #8fa0b0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(17, 43, 68, .10);
}
.mk-command-card { margin-bottom: 8px; }
.mk-command-row {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 7px 8px;
}
.mk-command-row + .mk-command-row {
    border-top: 1px solid #b4c0cb;
    background: #f2f5f7;
}
.mk-divider { width: 1px; align-self: stretch; margin: 0 3px; background: #aab7c3; }
.mk-btn {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: #e7edf2;
    color: #18334e;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(18, 43, 68, .10);
}
.mk-btn:hover { filter: brightness(.96); border-color: rgba(10, 34, 55, .28); }
.mk-btn:disabled { opacity: .5; cursor: not-allowed; }
.mk-btn.primary { background: #1768a9; color: #fff; border-color: #0e568e; }
.mk-btn.success { background: #147b51; color: #fff; border-color: #0f6843; }
.mk-btn.blue { background: #255d91; color: #fff; border-color: #184c7b; }
.mk-btn.blue-soft { background: #e5f0f9; color: #174d78; border-color: #8eb0cc; }
.mk-btn.purple { background: #69479a; color: #fff; border-color: #573a82; }
.mk-btn.orange { background: #b75b14; color: #fff; border-color: #98490d; }
.mk-btn.warning { background: #fff1ce; color: #704700; border-color: #cea84f; }
.mk-btn.danger { background: #b4232c; color: #fff; border-color: #941b23; }
.mk-btn.danger-soft { background: #fae7e8; color: #971d25; border-color: #d79ca0; }
.mk-btn.neutral { background: #52677b; color: #fff; border-color: #43586b; }
.mk-btn.subtle { background: #f7f9fb; color: #25445e; border-color: #9faeba; }
.mk-btn.transfer { background: #244f7b; color: #fff; border-color: #183f67; }
.mk-field { display: grid; gap: 3px; min-width: 130px; }
.mk-field span { color: #42586e; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.mk-field input,
.mk-list-tools input,
.mk-table-search input,
.mk-row-form input,
.mk-row-form select,
.mk-row-form textarea {
    min-height: 30px;
    padding: 5px 7px;
    border: 1px solid #8fa0af;
    border-radius: 3px;
    background: #fff;
    color: #102b45;
    font-size: 10.5px;
    font-weight: 650;
    outline: none;
}
.mk-field input:focus,
.mk-list-tools input:focus,
.mk-table-search input:focus,
.mk-row-form input:focus,
.mk-row-form select:focus,
.mk-row-form textarea:focus { border-color: #1b6ba8; box-shadow: 0 0 0 2px rgba(27, 107, 168, .13); }
.mk-field input[readonly] { background: #e9eef2; color: #4b5d70; }
.supplier-field { min-width: 250px; flex: 1; max-width: 420px; }
.source-field { min-width: 250px; flex: 1; }
.mk-record-actions { display: flex; gap: 4px; margin-left: auto; }

.mk-work-grid {
    display: grid;
    grid-template-columns: minmax(460px, 1.22fr) minmax(380px, .78fr);
    gap: 8px;
    margin-bottom: 8px;
}
.mk-photo-card,
.mk-control-card { min-height: 268px; }
.mk-photo-card > header,
.mk-control-card > header,
.mk-table-toolbar,
.mk-modal > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #9faeba;
    background: linear-gradient(180deg, #f9fbfc 0%, #e9eef2 100%);
}
.mk-photo-card > header > span,
.mk-control-card > header > strong {
    padding: 4px 7px;
    border: 1px solid #aab7c2;
    border-radius: 3px;
    background: #fff;
    color: #3a536b;
    font-size: 9.5px;
}
.mk-photo-empty {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 185px;
    padding: 20px;
    text-align: center;
    color: #51677c;
}
.mk-photo-empty strong { color: #173651; font-size: 13px; }
.mk-photo-empty p { max-width: 520px; margin: 5px 0 10px; font-size: 10px; font-weight: 600; }
.mk-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 6px;
    padding: 8px;
    min-height: 183px;
}
.mk-photo-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 165px;
    padding: 4px;
    border: 1px solid #99a9b8;
    border-radius: 3px;
    background: #eef2f5;
    cursor: pointer;
    overflow: hidden;
}
.mk-photo-item.selected { border: 2px solid #1768a9; box-shadow: 0 0 0 2px rgba(23, 104, 169, .14); }
.mk-photo-item img { width: 100%; height: 128px; object-fit: contain; background: #192531; border: 1px solid #6f7e8b; }
.mk-photo-item .mk-photo-number { position: absolute; top: 8px; left: 8px; z-index: 2; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #102d49; color: #fff; font-weight: 900; }
.mk-photo-item .mk-photo-name { padding: 5px 2px 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #244159; font-size: 9px; font-weight: 750; }
.mk-photo-item em { position: absolute; right: 5px; bottom: 22px; padding: 2px 4px; background: #127b50; color: #fff; font-size: 7px; font-style: normal; font-weight: 900; }
.mk-photo-card > footer { display: flex; justify-content: space-between; padding: 5px 8px; border-top: 1px solid #b1bdc8; background: #f1f4f6; color: #5c6d7f; font-size: 9px; }
.mk-link-button { padding: 0; border: 0; background: transparent; color: #135f9a; font-size: 9.5px; font-weight: 850; cursor: pointer; }

.mk-flow-list { list-style: none; margin: 0; padding: 7px 9px; }
.mk-flow-list li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 5px 6px;
    border-bottom: 1px solid #d1d9e0;
}
.mk-flow-list li:last-child { border-bottom: 0; }
.mk-flow-list li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #889aa9; border-radius: 50%; background: #e6ebef; color: #324e67; font-weight: 900; }
.mk-flow-list li strong,
.mk-flow-list li small { display: block; }
.mk-flow-list li strong { color: #183751; font-size: 10.5px; }
.mk-flow-list li small { color: #697b8d; font-size: 8.5px; font-weight: 600; }
.mk-flow-list li b { color: #6d7d8c; font-size: 8.5px; text-transform: uppercase; }
.mk-flow-list li.done > span { border-color: #137a50; background: #137a50; color: #fff; }
.mk-flow-list li.done b { color: #137a50; }
.mk-flow-list li.active { background: #eef6fb; }
.mk-control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 7px 9px; border-top: 1px solid #a9b6c1; background: #f2f5f7; }

.mk-table-card { margin-bottom: 8px; }
.mk-table-toolbar { align-items: flex-end; }
.mk-table-actions { display: flex; align-items: center; gap: 4px; }
.mk-table-search { display: flex; align-items: center; min-width: 260px; padding-left: 7px; border: 1px solid #8fa0af; border-radius: 3px; background: #fff; }
.mk-table-search span { color: #53687c; font-size: 16px; }
.mk-table-search input { width: 100%; border: 0; box-shadow: none !important; }
.mk-table-wrap { max-height: 430px; overflow: auto; border-bottom: 1px solid #8f9fad; }
.mk-table { width: 100%; min-width: 1600px; border-collapse: separate; border-spacing: 0; table-layout: auto; font-size: 10px; }
.mk-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 33px;
    padding: 5px 6px;
    border-right: 1px solid #8f9eab;
    border-bottom: 1px solid #738595;
    background: linear-gradient(180deg, #dfe6eb 0%, #c9d3dc 100%);
    color: #18334c;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    text-align: left;
}
.mk-table td {
    height: 34px;
    max-width: 250px;
    padding: 4px 6px;
    border-right: 1px solid #bcc7d0;
    border-bottom: 1px solid #c9d2da;
    background: #fff;
    color: #263d54;
    font-size: 9.8px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-table tr:nth-child(even) td { background: #f4f7f9; }
.mk-table tr:hover td { background: #e7f1f8; }
.mk-table tr.status-warning td { background-color: #fffaf0; }
.mk-table tr.status-error td { background-color: #fff1f2; }
.mk-table tr.status-ok td:first-child { box-shadow: inset 3px 0 #178158; }
.mk-table tr.status-warning td:first-child { box-shadow: inset 3px 0 #d18a17; }
.mk-table tr.status-error td:first-child { box-shadow: inset 3px 0 #b4232c; }
.mk-table .check-col { width: 32px; text-align: center; }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mk-table .mono { font-family: Consolas, monospace; color: #174c75; font-weight: 750; }
.mk-table .strong-cell { color: #102d49; font-weight: 800; }
.mk-status-badge { display: inline-block; min-width: 64px; padding: 3px 5px; border: 1px solid #9caab6; border-radius: 3px; background: #edf1f4; color: #40566a; font-size: 8px; font-weight: 900; text-align: center; }
.mk-status-badge.status-ok { border-color: #72a88f; background: #e6f4ed; color: #12623f; }
.mk-status-badge.status-warning { border-color: #d1af68; background: #fff4d7; color: #76500b; }
.mk-status-badge.status-error { border-color: #d69297; background: #fae5e7; color: #8d1e26; }
.mk-confidence { font-weight: 800; color: #36566f; }
.mk-confidence.low { color: #a13a22; }
.mk-empty-cell { height: 120px !important; text-align: center !important; color: #67798a !important; font-weight: 700 !important; }
.mk-table-footer { display: flex; justify-content: space-between; padding: 5px 8px; background: #eef2f5; color: #54687b; font-size: 9px; font-weight: 700; }

.mk-bottom-bar {
    position: sticky;
    bottom: 31px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-color: #718696;
    background: linear-gradient(180deg, #f8fafb 0%, #e3e9ee 100%);
    box-shadow: 0 -3px 12px rgba(16, 40, 63, .14);
}
.mk-bottom-summary,
.mk-bottom-actions { display: flex; align-items: center; gap: 5px; }
.mk-bottom-summary span { padding: 5px 8px; border: 1px solid #a1afbb; border-radius: 3px; background: #fff; color: #50657a; font-size: 9.5px; font-weight: 700; }
.mk-bottom-summary b,
.mk-bottom-summary strong { color: #123553; }

.mk-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(6, 19, 32, .72);
    backdrop-filter: blur(1px);
}
.mk-modal-layer[hidden] { display: none !important; }
.mk-modal {
    display: flex;
    flex-direction: column;
    width: min(760px, 96vw);
    max-height: 92vh;
    border: 1px solid #718291;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
    overflow: hidden;
}
.mk-modal.wide-modal { width: min(1120px, 97vw); }
.mk-modal.row-modal { width: min(820px, 96vw); }
.mk-modal.image-modal { width: min(1450px, 98vw); }
.mk-modal.wizard-modal { width: min(880px, 96vw); }
.mk-modal > header button { width: 28px; height: 28px; border: 1px solid #9aa9b5; border-radius: 3px; background: #fff; color: #31495f; font-size: 18px; cursor: pointer; }
.mk-modal > footer { display: flex; justify-content: flex-end; gap: 5px; padding: 7px 9px; border-top: 1px solid #a8b5c0; background: #edf1f4; }
.mk-row-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; overflow: auto; }
.mk-row-form label { display: grid; gap: 3px; color: #435a70; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.mk-row-form label.wide { grid-column: span 2; }
.mk-row-form textarea { resize: vertical; }
.mk-list-tools { display: flex; gap: 5px; padding: 8px; border-bottom: 1px solid #aebac5; background: #f5f7f9; }
.mk-list-tools input { flex: 1; }
.mk-record-list { padding: 8px; overflow: auto; }
.mk-record-card { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; gap: 14px; min-height: 66px; margin-bottom: 6px; padding: 8px; border: 1px solid #9eacb8; border-radius: 4px; background: #fff; }
.mk-record-card:hover { border-color: #4f7da2; background: #f3f8fb; }
.mk-record-main strong,
.mk-record-main small { display: block; }
.mk-record-main strong { margin: 3px 0; color: #143653; font-size: 12px; }
.mk-record-main small { color: #5c6e80; font-weight: 650; }
.mk-record-status { display: inline-block; padding: 2px 5px; border: 1px solid #9aaab7; border-radius: 3px; background: #edf1f4; color: #40586c; font-size: 8px; font-weight: 900; }
.mk-record-metrics { display: flex; gap: 5px; }
.mk-record-metrics span { padding: 4px 6px; border: 1px solid #b0bbc5; background: #f4f6f8; color: #475c70; font-size: 9px; font-weight: 750; }
.mk-record-buttons { display: flex; gap: 4px; }
.mk-list-loading { padding: 35px; color: #607285; text-align: center; font-weight: 700; }
.mk-list-loading.error { color: #9b252d; }
.mk-report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; background: #eef2f5; border-bottom: 1px solid #acb8c3; }
.mk-report-summary article { padding: 8px; border: 1px solid #9daeba; background: #fff; }
.mk-report-summary span,
.mk-report-summary strong { display: block; }
.mk-report-summary span { color: #586c80; font-size: 9px; font-weight: 800; }
.mk-report-summary strong { margin-top: 2px; color: #183752; font-size: 16px; }
.mk-report-summary article.danger { border-left: 4px solid #b4232c; }
.mk-report-summary article.warning { border-left: 4px solid #d18a17; }
.mk-report-summary article.success { border-left: 4px solid #167a50; }
.mk-report-list { padding: 9px; overflow: auto; }
.mk-report-item { display: grid; grid-template-columns: 115px 1fr; gap: 8px; margin-bottom: 5px; padding: 7px 8px; border: 1px solid #b0bdc8; background: #f8fafb; }
.mk-report-item.danger { border-left: 4px solid #b4232c; }
.mk-report-item.warning { border-left: 4px solid #d18a17; }
.mk-report-item strong { color: #1a3853; font-size: 9.5px; }
.mk-report-item span { color: #42586d; font-size: 10px; font-weight: 650; }
.mk-report-empty { padding: 30px; border: 1px solid #7fb098; background: #edf8f2; color: #12623f; text-align: center; font-weight: 800; }
.mk-raw-text { width: 100%; min-height: 520px; padding: 12px; border: 0; resize: none; background: #101d29; color: #d8e6f2; font: 11px/1.55 Consolas, monospace; }
.mk-image-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; border-bottom: 1px solid #a4b1bc; background: #edf1f4; }
.mk-canvas-wrap { display: grid; place-items: center; min-height: 420px; padding: 8px; overflow: auto; background: #101820; }
.mk-canvas-wrap canvas { display: block; max-width: 100%; border: 1px solid #72818e; background: #fff; touch-action: none; }
.modal-help { margin: 0; padding: 5px 9px; border-top: 1px solid #a6b3be; background: #f1f4f6; color: #596c7f; font-size: 9px; font-weight: 700; }
.mk-wizard-steps { padding: 10px; overflow: auto; }
.mk-wizard-steps article { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 9px 6px; border-bottom: 1px solid #c3ccd4; }
.mk-wizard-steps article > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #1768a9; color: #fff; font-size: 13px; font-weight: 900; }
.mk-wizard-steps strong { color: #153651; font-size: 12px; }
.mk-wizard-steps p { margin: 3px 0 7px; color: #52677b; font-size: 10px; font-weight: 650; }
.mk-inline-buttons { display: flex; gap: 4px; }

.mk-busy {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    background: rgba(7, 20, 33, .70);
}
.mk-busy[hidden] { display: none !important; }
.mk-busy > div { min-width: 330px; padding: 20px; border: 1px solid #7690a4; border-radius: 5px; background: #fff; color: #18354f; text-align: center; box-shadow: 0 22px 70px rgba(0, 0, 0, .34); }
.busy-spinner { display: block; width: 34px; height: 34px; margin: 0 auto 9px; border: 4px solid #cad5de; border-top-color: #1768a9; border-radius: 50%; animation: mk-spin .75s linear infinite; }
.mk-busy strong,
.mk-busy small { display: block; }
.mk-busy strong { font-size: 13px; }
.mk-busy small { margin-top: 4px; color: #607386; font-size: 9.5px; font-weight: 650; }
@keyframes mk-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
    .mk-stats { grid-template-columns: repeat(3, 1fr); }
    .mk-work-grid { grid-template-columns: 1fr; }
    .mk-command-row { flex-wrap: wrap; }
    .mk-record-actions { margin-left: 0; }
    .mk-photo-grid { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
}
@media (max-width: 760px) {
    .mal-kabul-workspace { padding: 6px 6px 72px; }
    .mk-heading { align-items: flex-start; }
    .mk-live-state { min-width: 130px; }
    .mk-stats { grid-template-columns: repeat(2, 1fr); }
    .mk-command-row { align-items: stretch; }
    .mk-command-row .mk-btn { flex: 1 1 140px; }
    .mk-field,
    .supplier-field,
    .source-field { min-width: 100%; max-width: none; }
    .mk-record-actions { width: 100%; flex-wrap: wrap; }
    .mk-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .mk-table-toolbar { align-items: flex-start; flex-direction: column; }
    .mk-table-actions { width: 100%; flex-wrap: wrap; }
    .mk-table-search { min-width: 100%; }
    .mk-bottom-bar { align-items: stretch; flex-direction: column; bottom: 28px; }
    .mk-bottom-summary,
    .mk-bottom-actions { flex-wrap: wrap; }
    .mk-bottom-actions .mk-btn { flex: 1; }
    .mk-row-form { grid-template-columns: 1fr 1fr; }
    .mk-row-form label.wide { grid-column: span 2; }
    .mk-record-card { grid-template-columns: 1fr; gap: 7px; }
    .mk-record-metrics { flex-wrap: wrap; }
    .mk-report-summary { grid-template-columns: 1fr 1fr; }
    .mk-report-item { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* PROMAR WEB V0.7.0 - ORTAK PROFESYONEL TASARIM SISTEMI                     */
/* ========================================================================== */
:root {
    --navy-950: #071827;
    --navy-900: #0a2944;
    --navy-800: #123d63;
    --blue-700: #0b5da8;
    --blue-600: #146fbe;
    --blue-500: #2785d0;
    --blue-100: #eaf4fe;
    --blue-50: #f4f9ff;
    --surface: #ffffff;
    --surface-soft: #f4f7fb;
    --surface-muted: #edf2f7;
    --surface-strong: #e4ebf2;
    --border: #d4dee8;
    --border-strong: #b8c6d4;
    --text: #17283b;
    --text-soft: #65758a;
    --success: #178357;
    --success-soft: #ecf8f2;
    --warning: #b87408;
    --warning-soft: #fff7e7;
    --danger: #bd3b42;
    --danger-soft: #fff0f1;
    --purple: #7051a6;
    --shadow-xs: 0 1px 2px rgba(9, 32, 55, .04);
    --shadow-sm: 0 5px 16px rgba(9, 32, 55, .06);
    --shadow-md: 0 14px 35px rgba(9, 32, 55, .13);
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 11px;
    --control-h: 34px;
}

html { background: var(--surface-soft); }
body {
    min-width: 320px;
    background:
        radial-gradient(circle at 100% 0, rgba(39, 133, 208, .055), transparent 26rem),
        var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
}
body.dialog-open { overflow: hidden; }
::selection { background: #cfe7fb; color: #0b3558; }
:focus-visible { outline: 2px solid #4c9ada; outline-offset: 2px; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }

/* Ana kabuk */
.app-header {
    min-height: 54px;
    padding: 6px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(112deg, #071827 0%, #0a2944 58%, #103b60 100%);
    box-shadow: 0 2px 10px rgba(4, 20, 35, .18);
}
.brand-block { gap: 10px; color: #fff; }
.brand-mark {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 9px;
    background: linear-gradient(145deg, #fff, #e7f3fc);
    color: #0b3151;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.brand-name { font-size: 17px; letter-spacing: .55px; }
.brand-subtitle { margin-top: 0; color: rgba(255,255,255,.72); font-size: 10px; }
.header-context { gap: 7px; }
.company-pill, .user-button {
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
}
.company-pill { padding: 5px 11px; }
.company-pill strong, .user-button strong { font-size: 11.5px; }
.context-label, .user-button small { color: rgba(255,255,255,.62); font-size: 8.5px; }
.user-button { padding: 4px 7px; }
.user-button:hover { background: rgba(255,255,255,.11); }
.avatar { width: 28px; height: 28px; border-radius: 7px; background: #2785d0; font-size: 11px; }
.user-menu { top: 45px; width: 190px; border-radius: 9px; box-shadow: var(--shadow-md); }
.user-menu button { min-height: 34px; padding: 7px 9px; }

.navigation-shell { position: relative; z-index: 50; background: #fff; }
.ribbon-tabs {
    min-height: 37px;
    padding: 0 10px 0 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: none;
}
.ribbon-tab-list { min-width: 0; display: flex; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
.ribbon-tab-list::-webkit-scrollbar { display: none; }
.ribbon-tab {
    height: 37px;
    padding: 0 14px;
    border-bottom-width: 2px;
    color: #4e6075;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
}
.ribbon-tab:hover { color: var(--blue-700); background: var(--blue-50); }
.ribbon-tab.active {
    color: var(--blue-700);
    border-bottom-color: var(--blue-600);
    background: linear-gradient(180deg, #fff, #eef7ff);
}
.ribbon-toggle {
    min-width: 58px;
    height: 27px;
    margin-left: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #d5e0ea;
    border-radius: 6px;
    background: #f8fafc;
    color: #63758a;
    cursor: pointer;
}
.ribbon-toggle:hover { border-color: #a8c7e2; background: #eef7ff; color: #176db5; }
.ribbon-toggle b { font-size: 7.5px; letter-spacing: .5px; }
.ribbon-toggle span { font-size: 11px; }
.ribbon {
    min-height: 66px;
    padding: 5px 14px 3px;
    gap: 5px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: 0 3px 10px rgba(10, 35, 58, .045);
    transition: opacity .15s ease;
}
.ribbon-group { min-width: 112px; padding: 0 8px; border-right-color: #e0e7ee; }
.ribbon-actions { gap: 2px; }
.ribbon-action {
    min-width: 90px;
    min-height: 48px;
    padding: 5px 7px;
    gap: 7px;
    border-radius: 7px;
}
.ribbon-action:hover, .ribbon-action.selected { border-color: #bad6ed; background: #eef7ff; }
.ribbon-action.selected { box-shadow: inset 0 -2px 0 #2c84ca; }
.ribbon-action strong { color: #21364d; font-size: 10.5px; }
.ribbon-action small { margin-top: 1px; color: #718196; font-size: 8.5px; }
.ribbon-group-title { padding-top: 1px; color: #8b99aa; font-size: 7.5px; letter-spacing: .6px; }
.icon, .stat-icon {
    width: 28px;
    height: 28px;
    border: 1px solid #cfe0ef;
    border-radius: 7px;
    background: #edf6fe;
    color: #156aaf;
}
body.ribbon-collapsed .ribbon { display: none; }

.workspace { min-height: calc(100vh - 185px); padding: 14px 16px 42px; background: transparent; }
body.ribbon-collapsed .workspace { min-height: calc(100vh - 119px); }
.status-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    min-height: 27px;
    padding: 0 13px;
    border-top: 1px solid #ccd7e2;
    background: rgba(255,255,255,.96);
    color: #68798c;
    box-shadow: 0 -2px 8px rgba(10, 34, 55, .05);
    backdrop-filter: blur(8px);
}
.status-state { display: inline-flex; align-items: center; gap: 6px; }
.status-state i { width: 7px; height: 7px; border-radius: 50%; background: #18865a; box-shadow: 0 0 0 3px #e4f5ed; }
.status-state i[data-state="warning"] { background: #c17b0a; box-shadow: 0 0 0 3px #fff0cf; }
.status-state i[data-state="error"] { background: #bf3d45; box-shadow: 0 0 0 3px #fde5e7; }
.status-state b { color: #465a70; font-weight: 700; }

/* Genel tipografi ve kartlar */
.page-heading, .pdf-heading, .xml-heading, .library-heading, .mk-heading, .invoice-editor-heading {
    max-width: 1880px;
}
.page-heading { margin-bottom: 11px; }
.page-heading h1, .pdf-heading h1, .xml-heading h1, .library-heading h1, .mk-heading h1, .invoice-editor-title h1 {
    margin-bottom: 3px;
    color: #132c45;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.2px;
}
.page-heading p, .pdf-heading p, .xml-heading p, .library-heading p, .mk-heading p, .invoice-editor-title p {
    margin-bottom: 0;
    color: #6b7b8e;
    font-size: 10.5px;
    line-height: 1.35;
}
.eyebrow { color: #176db5; font-size: 8.5px; font-weight: 900; letter-spacing: .85px; }
.panel, .reader-card, .xml-import-card, .xml-toolbar, .editor-command-panel, .editor-table-card,
.library-command-bar, .library-action-strip, .library-table-card, .mk-command-card, .mk-photo-card,
.mk-control-card, .mk-table-card, .invoice-editor-heading {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
}
.panel:hover, .stat-card:hover { border-color: #c5d4e1; }

/* Formlar */
input[type="text"], input[type="search"], input[type="number"], input[type="date"], input[type="email"], select, textarea,
.field-group input, .field-group select, .editor-field input, .general-discount-card input,
.library-filter select, .product-form input, .product-form select, .product-form textarea,
.mk-field input, .mk-row-form input, .mk-row-form select, .mk-row-form textarea {
    min-height: var(--control-h);
    border: 1px solid #cbd7e2;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #20364c;
    box-shadow: inset 0 1px 1px rgba(14, 39, 62, .025);
}
input::placeholder, textarea::placeholder { color: #98a5b4; }
input:focus, select:focus, textarea:focus,
.field-group input:focus, .field-group select:focus, .editor-field input:focus, .general-discount-card input:focus {
    border-color: #5b9ed3;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(41, 132, 202, .12);
}
.field-group > span, .editor-field > span, .general-discount-card label > span, .library-filter span,
.product-form label > span, .mk-field span, .mk-row-form label > span {
    color: #53667b;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: .35px;
}

/* Ortak düğme sistemi */
.button, .editor-btn, .mini-btn, .lib-btn, .mk-btn, .tool-button, .app-dialog-button {
    min-height: 32px;
    border-radius: 6px;
    font-weight: 750;
    letter-spacing: 0;
    box-shadow: none;
    transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .08s ease;
}
.button:hover, .editor-btn:hover, .mini-btn:hover, .lib-btn:hover, .mk-btn:hover, .tool-button:hover { box-shadow: 0 3px 9px rgba(13, 47, 77, .09); }
.button:active, .editor-btn:active, .mini-btn:active, .lib-btn:active, .mk-btn:active { transform: translateY(1px); }
.button.primary, .editor-btn.primary, .lib-btn.primary, .mk-btn.primary, .mk-btn.blue {
    border-color: #0f63aa; background: #176fba; color: #fff;
}
.button.success, .editor-btn.smart, .lib-btn.success, .mk-btn.success {
    border-color: #147349; background: #178357; color: #fff;
}
.button.danger, .lib-btn.danger, .mk-btn.danger {
    border-color: #a93239; background: #bd3b42; color: #fff;
}
.button.purple, .editor-btn.tria, .mk-btn.purple { border-color: #60458f; background: #7051a6; color: #fff; }
.button.secondary, .editor-btn.neutral, .lib-btn.neutral, .mk-btn.neutral, .mk-btn.subtle, .mini-btn {
    border-color: #c9d5e0; background: #fff; color: #3e5369;
}
.button.secondary:hover, .editor-btn.neutral:hover, .lib-btn.neutral:hover, .mk-btn.neutral:hover, .mk-btn.subtle:hover, .mini-btn:hover {
    border-color: #9fbdd6; background: #f1f7fc; color: #155f9d;
}
.mk-btn.warning, .lib-btn.warning, .mini-btn.report { border-color: #e2c27f; background: #fff7e6; color: #85570d; }
.mk-btn.orange { border-color: #c66b15; background: #d97616; color: #fff; }
.mk-btn.transfer, .lib-btn.transfer { border-color: #174f80; background: #1b5d93; color: #fff; }
.editor-btn.excel { border-color: #17643b; background: #217346; color: #fff; }
.editor-btn.smart-outline, .mini-btn.success { border-color: #9acdbc; background: #eff9f5; color: #126d4b; }
.mini-btn.danger, .mk-btn.danger-soft { border-color: #e1adb1; background: #fff2f3; color: #a63239; }

/* Ana sayfa */
.dashboard-grid { max-width: 1880px; margin-bottom: 11px; gap: 9px; }
.stat-card {
    min-height: 82px;
    padding: 11px 13px;
    gap: 11px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}
.stat-icon { width: 38px; height: 38px; border-radius: 9px; }
.stat-card span { font-size: 10px; }
.stat-card strong { margin: 1px 0; font-size: 20px; }
.stat-card small { font-size: 9px; }
.content-grid { max-width: 1880px; gap: 10px; }
.panel-header { padding: 13px 14px 8px; }
.panel-header h2 { font-size: 15px; }
.quick-actions { padding: 0 9px 9px; gap: 5px; }
.quick-action { padding: 9px; border-radius: 7px; }
.empty-state { min-height: 170px; }
.date-box { min-width: 145px; padding: 8px 11px; border-radius: 8px; box-shadow: var(--shadow-xs); }

/* İstatistik şeritleri */
.mk-stats, .library-stats, .editor-summary-strip, .draft-summary-grid { gap: 6px; }
.mk-stats article, .library-stats article, .editor-summary-strip > article, .summary-chip {
    min-height: 57px;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}
.mk-stats article, .library-stats article { border-left-color: #5e829f; }
.mk-stats article.success, .library-stats article.success { border-left-color: var(--success); background: #fbfefc; }
.mk-stats article.warning, .library-stats article.warning { border-left-color: #d08a15; background: #fffdf8; }
.mk-stats article.danger, .library-stats article.danger { border-left-color: var(--danger); background: #fffafb; }
.mk-stats span, .library-stats span, .editor-summary-strip > article span, .summary-chip span { font-size: 8px; }
.mk-stats strong, .library-stats strong { margin-top: 1px; font-size: 16px; }
.mk-stats small, .library-stats small { margin-top: 0; color: #8794a3; font-size: 8px; }

/* Bütün veri tabloları */
.pdf-table-wrap, .table-scroll, .xml-table-wrap, .xml-line-table-wrap, .editor-table-wrap,
.library-table-wrap, .mk-table-wrap, .records-table-wrap, .product-subtable {
    scrollbar-width: thin;
    scrollbar-color: #a9bac9 #edf2f6;
    scrollbar-gutter: stable;
}
.pdf-data-table, .data-table, .xml-invoice-table, .xml-line-table, .editor-table,
.library-table, .mk-table, .records-table, .product-subtable table {
    color: #23384e;
    font-variant-numeric: tabular-nums;
}
.pdf-data-table th, .data-table th, .xml-invoice-table th, .xml-line-table th,
.editor-table th, .library-table th, .mk-table th, .records-table th, .product-subtable th {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 31px;
    padding: 5px 7px;
    border-right: 1px solid #d1dbe5;
    border-bottom: 1px solid #aebdcb;
    background: linear-gradient(180deg, #f4f7fa, #e5ebf1);
    color: #3d5268;
    font-size: 8.3px;
    font-weight: 900;
    letter-spacing: .18px;
    white-space: nowrap;
}
.pdf-data-table td, .data-table td, .xml-invoice-table td, .xml-line-table td,
.editor-table td, .library-table td, .mk-table td, .records-table td, .product-subtable td {
    border-right: 1px solid #e0e7ee;
    border-bottom: 1px solid #e0e7ee;
    background: #fff;
}
.pdf-data-table tbody tr:nth-child(even) td, .data-table tbody tr:nth-child(even) td,
.xml-invoice-table tbody tr:nth-child(even) td, .xml-line-table tbody tr:nth-child(even) td,
.editor-table tbody tr:nth-child(even) td, .library-table tbody tr:nth-child(even) td,
.mk-table tbody tr:nth-child(even) td, .records-table tbody tr:nth-child(even) td,
.product-subtable tbody tr:nth-child(even) td { background: #f8fafc; }
.pdf-data-table tbody tr:hover td, .data-table tbody tr:hover td,
.xml-invoice-table tbody tr:hover td, .xml-line-table tbody tr:hover td,
.editor-table tbody tr:hover td, .library-table tbody tr:hover td,
.mk-table tbody tr:hover td, .records-table tbody tr:hover td,
.product-subtable tbody tr:hover td { background: #edf6fd; }
.editor-table input, .xml-line-table input {
    min-height: 27px;
    border-color: transparent;
    border-radius: 3px;
    background: transparent;
}
.editor-table input:hover, .xml-line-table input:hover { border-color: #cbd8e4; background: #fff; }
.editor-table input:focus, .xml-line-table input:focus { border-color: #5799ce; background: #fff; box-shadow: inset 0 0 0 1px #5799ce; }
.editor-table-footer, .library-table-footer, .mk-table-footer {
    min-height: 27px;
    border-top: 1px solid var(--border);
    background: #f6f8fa;
    color: #6b7c8f;
    font-size: 8.5px;
}

/* PDF */
.pdf-workspace, .xml-workspace, .library-workspace, .invoice-editor-workspace, .mal-kabul-workspace { padding: 10px 12px 42px; }
.pdf-heading, .xml-heading, .library-heading { margin-bottom: 8px; }
.reader-card, .xml-import-card { margin-bottom: 8px; padding: 9px; }
.upload-zone, .selected-file, .xml-drop-zone { min-height: 52px; border-radius: 7px; }
.reader-controls { margin-top: 8px; gap: 6px; }
.reader-buttons .button { min-height: 34px; }
.reader-status-row { margin-top: 7px; }
.status-pill { min-height: 28px; border-radius: 6px; }
.pdf-editor-layout { gap: 8px; }
.pdf-toolbox { padding: 9px; gap: 8px; }
.toolbox-section { padding-bottom: 8px; }
.pdf-table-wrap { min-height: 430px; }

/* XML */
.xml-shell { gap: 7px; }
.xml-toolbar, .xml-import-card { border-radius: 8px; }
.xml-master-detail { gap: 8px; }
.xml-list-panel, .xml-detail-panel { border-radius: 8px; }
.xml-list-panel > header, .xml-detail-panel > header { min-height: 48px; padding: 8px 10px; }
.xml-toolbar { padding: 7px 9px; }
.xml-detail-summary article { border-radius: 6px; }

/* Fatura düzenleme */
.invoice-editor-shell { gap: 6px; }
.invoice-editor-heading { min-height: 58px; padding: 8px 10px; }
.editor-source-meta { width: min(360px, 32vw); padding: 6px 9px; border-left-width: 3px; }
.editor-command-panel { padding: 6px 8px; grid-template-columns: minmax(470px, .72fr) minmax(600px, 1.28fr); gap: 8px; }
.editor-form-grid { gap: 6px; }
.editor-main-actions { gap: 4px; }
.editor-btn { min-height: 32px; padding: 5px 8px; font-size: 8.8px; }
.editor-summary-strip { min-height: 52px; }
.editor-summary-strip > article { padding: 6px 8px; }
.editor-summary-strip > article strong { font-size: 13px; }
.editor-summary-strip > article.net strong { font-size: 14px; }
.editor-table-card { border-radius: 8px; }
.editor-table-toolbar { min-height: 39px; padding: 5px 6px; background: #f7f9fb; }
.mini-btn { min-height: 28px; padding: 4px 7px; font-size: 8.6px; }
.table-search { height: 29px; }
.editor-table-wrap { min-height: 410px; height: calc(100vh - 417px); max-height: none; }
.editor-table td { height: 32px; }
.editor-table .status-badge { border-radius: 4px; }

/* Kütüphane */
.library-shell { max-width: 1920px; }
.library-heading { margin-bottom: 7px; }
.library-command-bar { min-height: 48px; padding: 6px 8px; gap: 6px; }
.library-action-strip { min-height: 42px; padding: 5px 8px; gap: 5px; }
.library-search-box { height: 34px; border-radius: 6px; }
.library-filter select { height: 34px; }
.lib-btn { min-height: 31px; padding: 5px 8px; }
.library-table-card { border-radius: 8px; }
.library-table td { height: 32px; padding: 5px 7px; }
.library-table tbody tr.selected td { background: #e8f4fd; }
.library-status { border-radius: 4px; }

/* Mal kabul */
.mk-shell { max-width: 1920px; gap: 7px; }
.mk-heading {
    min-height: 60px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-left: 4px solid #1672bb;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}
.mk-heading p { max-width: 1120px; }
.mk-live-state, .library-live-state { min-width: 168px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: #f8fafc; }
.state-dot { box-shadow: 0 0 0 3px #dff3e9; }
.mk-command-card { padding: 6px 8px; }
.mk-command-row { gap: 5px; }
.mk-command-row.primary-row { padding-bottom: 6px; }
.mk-command-row.secondary-row { padding-top: 6px; }
.mk-btn { min-height: 31px; padding: 5px 8px; font-size: 8.8px; }
.mk-field input { height: 32px; }
.mk-work-grid { gap: 8px; }
.mk-photo-card > header, .mk-control-card > header { min-height: 48px; padding: 7px 9px; background: #f8fafc; }
.mk-photo-card > header h2, .mk-control-card > header h2, .mk-table-toolbar h2 { font-size: 14px; }
.mk-photo-grid { gap: 6px; padding: 7px; }
.mk-photo-item { border-radius: 6px; }
.mk-flow-list li { min-height: 42px; padding: 5px 7px; }
.mk-flow-list li > span { width: 25px; height: 25px; }
.mk-control-actions { gap: 5px; padding: 6px; }
.mk-table-toolbar { min-height: 47px; padding: 7px 8px; }
.mk-table-actions { gap: 4px; }
.mk-table-search { height: 30px; border-radius: 6px; }
.mk-table-wrap { min-height: 260px; max-height: calc(100vh - 575px); }
.mk-table td { height: 33px; padding: 5px 7px; font-size: 8.9px; }
.mk-status-badge { min-width: 62px; padding: 3px 5px; border-radius: 4px; }
.mk-bottom-bar {
    bottom: 27px;
    padding: 6px 8px;
    border: 1px solid #b8c7d5;
    border-radius: 7px;
    background: rgba(250,252,254,.97);
    box-shadow: 0 -4px 16px rgba(14, 43, 68, .1);
    backdrop-filter: blur(8px);
}
.mk-bottom-summary span { border-color: #d1dbe4; border-radius: 5px; }

/* Modallar ve bekleme ekranları */
.modal-backdrop, .editor-modal-backdrop, .lib-modal-layer, .mk-modal-layer,
.busy-overlay, .editor-busy, .library-busy, .mk-busy {
    background: rgba(6, 22, 37, .62);
    backdrop-filter: blur(3px);
}
.modal-card, .editor-modal, .lib-modal, .mk-modal {
    border: 1px solid #b9c7d5;
    border-radius: 10px;
    box-shadow: 0 24px 72px rgba(4, 19, 33, .3);
}
.modal-card > header, .editor-modal > header, .lib-modal > header, .mk-modal > header {
    min-height: 50px;
    padding: 8px 11px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #f3f6f9);
}
.modal-card > footer, .editor-modal > footer, .lib-modal > footer, .mk-modal > footer {
    border-top: 1px solid var(--border);
    background: #f7f9fb;
}
.busy-card, .editor-busy > div, .library-busy > div, .mk-busy > div {
    min-width: 300px;
    padding: 21px;
    border: 1px solid #c5d2dd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(4, 18, 31, .28);
}
.busy-card::after, .editor-busy > div::after, .library-busy > div::after, .mk-busy > div::after {
    content: "";
    width: 180px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dce8f2 0%, #2e86c7 50%, #dce8f2 100%);
    background-size: 200% 100%;
    animation: promar-progress 1.1s linear infinite;
}
@keyframes promar-progress { to { background-position: -200% 0; } }

/* Bildirimler */
.toast-stack { right: 14px; bottom: 39px; z-index: 6000; gap: 7px; }
.toast {
    width: min(390px, calc(100vw - 28px));
    min-height: 48px;
    padding: 9px 9px 9px 10px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd8e3;
    border-left: 4px solid #2f80bd;
    border-radius: 8px;
    background: #fff;
    color: #273d53;
    box-shadow: 0 14px 35px rgba(7, 29, 48, .16);
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .18s ease, transform .18s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: #c98413; }
.toast.error, .toast.danger { border-left-color: var(--danger); }
.toast.info { border-left-color: #2f80bd; }
.toast-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #edf5fb; color: #1a6fae; font-weight: 900; }
.toast.success .toast-icon { background: #e8f6ef; color: var(--success); }
.toast.warning .toast-icon { background: #fff2d7; color: #a76506; }
.toast.error .toast-icon, .toast.danger .toast-icon { background: #fdebed; color: var(--danger); }
.toast-copy { font-size: 10.5px; font-weight: 650; line-height: 1.38; }
.toast-close { width: 24px; height: 24px; border: 0; border-radius: 5px; background: transparent; color: #7c8b9b; cursor: pointer; }
.toast-close:hover { background: #eef2f6; color: #344a60; }

/* PROMAR onay penceresi */
.app-dialog-layer {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(5, 20, 34, .66);
    backdrop-filter: blur(4px);
}
.app-dialog {
    width: min(460px, 96vw);
    overflow: hidden;
    border: 1px solid #b9c8d5;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 28px 85px rgba(3, 17, 30, .34);
    animation: promar-dialog-in .16s ease-out;
}
@keyframes promar-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.app-dialog > header { padding: 15px 16px 8px; display: flex; align-items: center; gap: 11px; }
.app-dialog-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #eaf4fd; color: #166cae; font-size: 16px; font-weight: 900; }
.app-dialog-icon[data-type="danger"] { background: #fdebed; color: var(--danger); }
.app-dialog header small { display: block; color: #78889a; font-size: 8px; font-weight: 900; letter-spacing: .75px; }
.app-dialog h2 { margin: 2px 0 0; color: #17314a; font-size: 16px; }
.app-dialog > p { margin: 0; padding: 6px 16px 18px 63px; color: #53667a; font-size: 11px; line-height: 1.5; white-space: pre-line; }
.app-dialog > footer { padding: 9px 12px; display: flex; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--border); background: #f7f9fb; }
.app-dialog-button { min-width: 92px; padding: 6px 12px; border: 1px solid #c5d2dd; cursor: pointer; }
.app-dialog-button.secondary { background: #fff; color: #475c70; }
.app-dialog-button.primary { border-color: #0f63aa; background: #176fba; color: #fff; }
.app-dialog-button.danger { border-color: #a93239; background: #bd3b42; color: #fff; }

/* Duyarlı görünüm */
@media (max-width: 1500px) {
    .editor-command-panel { grid-template-columns: 1fr; }
    .editor-main-actions { justify-content: flex-start; }
    .editor-table-wrap { height: calc(100vh - 455px); }
}
@media (max-width: 1180px) {
    .workspace, .pdf-workspace, .xml-workspace, .library-workspace, .invoice-editor-workspace, .mal-kabul-workspace { padding: 9px 9px 42px; }
    .ribbon-action small { display: none; }
    .ribbon { min-height: 58px; }
    .ribbon-action { min-height: 40px; min-width: 78px; }
    .ribbon-group-title { display: none; }
    .mk-table-wrap { max-height: none; }
}
@media (max-width: 760px) {
    .app-header { min-height: 50px; padding: 6px 9px; }
    .brand-mark { width: 33px; height: 33px; }
    .brand-copy .brand-subtitle, .company-pill, .user-button > span:nth-child(2), .chevron { display: none; }
    .ribbon-tabs { padding-left: 4px; }
    .ribbon-tab { padding: 0 9px; font-size: 9.5px; }
    .ribbon-toggle b { display: none; }
    .ribbon-toggle { min-width: 31px; }
    .ribbon { overflow-x: auto; padding-left: 5px; }
    .workspace { padding: 7px 6px 40px; }
    .page-heading, .pdf-heading, .xml-heading, .library-heading, .mk-heading, .invoice-editor-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .page-heading h1, .pdf-heading h1, .xml-heading h1, .library-heading h1, .mk-heading h1, .invoice-editor-title h1 { font-size: 17px; }
    .mk-live-state, .library-live-state, .editor-source-meta { width: 100%; min-width: 0; }
    .dashboard-grid, .mk-stats, .library-stats, .editor-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid { grid-template-columns: 1fr; }
    .toast-stack { right: 7px; bottom: 34px; }
    .app-dialog > p { padding-left: 16px; }
}

/* Tedarikçi Yönetim Merkezi */
.icon-supplier::before { content: "T"; }
.icon-ledger::before { content: "₺"; }
.icon-automation::before { content: "⚙"; }
.icon-merge::before { content: "⇄"; }

.supplier-workspace { padding: 10px 12px 42px; }
.supplier-shell { max-width: 1920px; margin: 0 auto; display: grid; gap: 8px; }
.supplier-heading {
    max-width: none;
    min-height: 67px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-left: 4px solid #1672bb;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-xs, 0 3px 10px rgba(10,31,56,.04));
}
.supplier-heading h1 { margin: 2px 0 3px; font-size: 18px; }
.supplier-heading p { font-size: 10.5px; }
.supplier-heading-actions { display: flex; align-items: center; gap: 6px; }

.supplier-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.supplier-summary-grid article {
    min-height: 58px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-left: 4px solid #5f7891;
    border-radius: 7px;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1px 8px;
}
.supplier-summary-grid article.success { border-left-color: var(--success); }
.supplier-summary-grid article.warning { border-left-color: #c58212; }
.supplier-summary-grid article.balance { border-left-color: #6f4bb7; }
.supplier-summary-grid span { color: #6d7d8e; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }
.supplier-summary-grid strong { grid-row: 1 / 3; grid-column: 2; font-size: 16px; color: #18334d; }
.supplier-summary-grid small { color: #8794a2; font-size: 8.8px; }

.supplier-command-bar { min-height: 45px; padding: 6px 8px; display: flex; align-items: center; gap: 7px; border-radius: 8px; }
.supplier-search-box { height: 33px; min-width: 280px; flex: 1 1 500px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #cbd6df; border-radius: 6px; background: #fff; }
.supplier-search-box.small { flex: 0 1 420px; min-width: 250px; }
.supplier-search-box span { color: #6f8192; font-size: 16px; }
.supplier-search-box input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #223a51; font-size: 10.5px; }
.supplier-status-filter { display: flex; align-items: center; gap: 6px; color: #6d7d8e; font-size: 9px; font-weight: 800; }
.supplier-status-filter select { height: 33px; min-width: 112px; padding: 0 8px; border: 1px solid #cbd6df; border-radius: 6px; background: #fff; color: #284057; font-size: 10px; }
.supplier-command-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.button.warning { border-color: #bd7b12; background: #c98619; color: #fff; }

.supplier-main-grid { min-height: calc(100vh - 382px); display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 8px; }
.supplier-list-panel, .supplier-detail-panel { min-height: 0; overflow: hidden; border-radius: 8px; }
.supplier-list-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.supplier-list-panel > header { min-height: 48px; padding: 7px 9px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: #f7f9fb; }
.supplier-list-panel h2 { margin: 1px 0 0; font-size: 14px; }
.supplier-list-count { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #e9f2fa; color: #176da9; font-size: 10px; font-weight: 900; }
.supplier-list { min-height: 0; overflow: auto; padding: 5px; background: #f5f7f9; }
.supplier-list-item { width: 100%; min-height: 69px; margin-bottom: 5px; padding: 7px; display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 7px; position: relative; border: 1px solid #d5dee6; border-left: 3px solid transparent; border-radius: 7px; background: #fff; color: #243b51; text-align: left; cursor: pointer; }
.supplier-list-item:hover { border-color: #a9c4d9; background: #f8fbfd; }
.supplier-list-item.selected { border-color: #7eb0d4; border-left-color: #1672bb; background: #edf6fd; box-shadow: 0 4px 12px rgba(18,89,139,.08); }
.supplier-list-item.passive { opacity: .64; }
.supplier-list-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; background: #e9f2fa; color: #176da9; font-weight: 900; }
.supplier-list-copy { min-width: 0; padding-right: 64px; display: grid; gap: 2px; }
.supplier-list-copy strong { overflow: hidden; font-size: 10.4px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-list-copy small { overflow: hidden; color: #758595; font-size: 8.8px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-list-copy > span { display: flex; gap: 9px; color: #66798a; font-size: 8.4px; }
.supplier-list-balance { position: absolute; top: 8px; right: 7px; max-width: 76px; overflow: hidden; color: #1b7e56; font-size: 8.5px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.supplier-list-balance.negative { color: #b03940; }
.supplier-empty { min-height: 180px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 5px; color: #667789; text-align: center; }
.supplier-empty strong { color: #2d455b; font-size: 12px; }
.supplier-empty span { font-size: 9.5px; }

.supplier-detail-panel { position: relative; background: #fff; }
.supplier-no-selection { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 7px; color: #6e7f90; text-align: center; }
.supplier-empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #eaf3fa; color: #176da9; font-size: 21px; font-weight: 900; }
.supplier-no-selection strong { color: #253f56; font-size: 15px; }
.supplier-no-selection p { max-width: 430px; font-size: 10.5px; }
.supplier-detail { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.supplier-detail-header { min-height: 67px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #fff, #f6f9fb); }
.supplier-identity { min-width: 0; display: flex; align-items: center; gap: 9px; }
.supplier-avatar { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #e9f3fb; color: #156da9; font-size: 16px; font-weight: 900; }
.supplier-title-line { display: flex; align-items: center; gap: 7px; }
.supplier-title-line h2 { max-width: 680px; margin: 0; overflow: hidden; color: #1b344b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-identity p { margin: 3px 0 0; color: #738393; font-size: 9.2px; }
.supplier-status-badge { padding: 3px 6px; border: 1px solid #acd7c3; border-radius: 4px; background: #e9f7f0; color: #19754e; font-size: 7.8px; font-weight: 900; }
.supplier-status-badge.passive { border-color: #d5dbe1; background: #f0f2f4; color: #71808e; }
.supplier-detail-meta { display: flex; gap: 6px; }
.supplier-detail-meta span { min-width: 115px; padding: 5px 8px; border: 1px solid #d8e0e7; border-radius: 6px; background: #fff; }
.supplier-detail-meta small { display: block; color: #7b8997; font-size: 7.7px; font-weight: 800; text-transform: uppercase; }
.supplier-detail-meta b { display: block; margin-top: 2px; overflow: hidden; color: #263f56; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }

.supplier-detail-tabs { min-height: 38px; padding: 4px 6px 0; display: flex; gap: 3px; overflow-x: auto; border-bottom: 1px solid var(--border); background: #f7f9fb; }
.supplier-detail-tabs button { min-height: 32px; padding: 5px 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #607286; font-size: 9px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.supplier-detail-tabs button:hover { color: #176da9; background: #edf4fa; }
.supplier-detail-tabs button.active { border-bottom-color: #176fba; background: #fff; color: #176da9; }
.supplier-tab-pane { min-height: 0; padding: 7px; display: none; overflow: auto; }
.supplier-tab-pane.active { display: block; }

.supplier-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.supplier-kpi-grid article { min-height: 54px; padding: 7px 8px; border: 1px solid #d7e0e8; border-left: 3px solid #5c7892; border-radius: 6px; background: #fff; }
.supplier-kpi-grid article.money { border-left-color: #176fba; }
.supplier-kpi-grid article.danger { border-left-color: #bd3b42; }
.supplier-kpi-grid article.warning { border-left-color: #c78619; }
.supplier-kpi-grid span { display: block; color: #758493; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.supplier-kpi-grid strong { display: block; margin-top: 5px; color: #1f3a52; font-size: 14px; }
.supplier-overview-grid { margin-top: 7px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7px; }
.supplier-subpanel { min-width: 0; border: 1px solid #d8e0e7; border-radius: 7px; overflow: hidden; background: #fff; }
.supplier-subpanel > header { min-height: 42px; padding: 6px 8px; border-bottom: 1px solid #dce3e9; background: #f7f9fb; }
.supplier-subpanel h3 { margin: 1px 0 0; color: #29435a; font-size: 12px; }

.supplier-tab-toolbar { min-height: 40px; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.supplier-tab-toolbar > div:not(.supplier-search-box) { display: flex; flex-direction: column; gap: 1px; }
.supplier-tab-toolbar strong { color: #294158; font-size: 11px; }
.supplier-table-wrap { min-width: 0; overflow: auto; border: 1px solid #d8e0e7; border-radius: 6px; background: #fff; }
.supplier-table-wrap.compact { max-height: calc(100vh - 543px); min-height: 230px; }
.supplier-table-wrap.tall { height: calc(100vh - 463px); min-height: 310px; }
.supplier-table-wrap.modal-table { max-height: 62vh; }
.supplier-table { width: 100%; border-collapse: separate; border-spacing: 0; color: #2b4155; font-size: 8.9px; }
.supplier-table.wide { min-width: 1120px; }
.supplier-table th { position: sticky; top: 0; z-index: 2; height: 31px; padding: 5px 7px; border-right: 1px solid #d5dde5; border-bottom: 1px solid #c9d4de; background: #eaf0f5; color: #314b62; font-size: 7.8px; font-weight: 900; text-align: left; text-transform: uppercase; white-space: nowrap; }
.supplier-table td { height: 31px; max-width: 330px; padding: 5px 7px; overflow: hidden; border-right: 1px solid #e0e6eb; border-bottom: 1px solid #e1e7ec; text-overflow: ellipsis; white-space: nowrap; }
.supplier-table tbody tr:nth-child(even) td { background: #f8fafb; }
.supplier-table tbody tr:hover td { background: #eaf4fb; }
.supplier-table td.strong { color: #1e3a52; font-weight: 800; }
.supplier-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.supplier-table-empty { height: 120px !important; color: #758594; text-align: center !important; }
.supplier-table-help { padding: 5px 3px 0; color: #80909f; font-size: 8.5px; }
.table-icon-button { width: 23px; height: 23px; border: 1px solid #cfd9e1; border-radius: 5px; background: #fff; color: #607184; cursor: pointer; }
.table-icon-button.danger { border-color: #efc9cc; background: #fff5f5; color: #b8333b; }
.supplier-operation-badge { display: inline-grid; min-width: 38px; place-items: center; padding: 3px 5px; border-radius: 4px; background: #edf2f6; color: #4a6378; font-size: 7.7px; font-weight: 900; }
.supplier-operation-badge.debt { background: #e9f7f0; color: #19754e; }
.supplier-operation-badge.credit { background: #fdecee; color: #ad3038; }

.supplier-account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.supplier-account-summary article { min-height: 48px; padding: 6px 9px; border: 1px solid #d8e0e7; border-left: 3px solid #5e7892; border-radius: 6px; background: #fff; }
.supplier-account-summary article:nth-child(1) { border-left-color: #1d8a5b; }
.supplier-account-summary article:nth-child(2) { border-left-color: #bd3b42; }
.supplier-account-summary article.balance { border-left-color: #6f4bb7; }
.supplier-account-summary span { display: block; color: #788795; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.supplier-account-summary strong { display: block; margin-top: 3px; color: #213b52; font-size: 13px; }
.supplier-account-form, .supplier-alias-form { min-height: 51px; margin-bottom: 6px; padding: 6px; display: flex; align-items: end; gap: 6px; border: 1px solid #d8e0e7; border-radius: 6px; background: #f7f9fb; }
.supplier-account-form label, .supplier-alias-form label, .supplier-automation-grid label, .supplier-form-grid label { display: grid; gap: 3px; }
.supplier-account-form label.grow, .supplier-alias-form label.grow { flex: 1 1 auto; }
.supplier-account-form label > span, .supplier-alias-form label > span, .supplier-automation-grid label > span, .supplier-form-grid label > span { color: #65778a; font-size: 7.8px; font-weight: 900; text-transform: uppercase; }
.supplier-account-form input, .supplier-alias-form input, .supplier-alias-form select, .supplier-automation-grid select, .supplier-form-grid input, .supplier-form-grid select, .supplier-form-grid textarea { min-height: 31px; padding: 5px 7px; border: 1px solid #cbd6df; border-radius: 5px; background: #fff; color: #263f56; font-size: 9.5px; outline: 0; }
.supplier-account-form input:focus, .supplier-alias-form input:focus, .supplier-alias-form select:focus, .supplier-automation-grid select:focus, .supplier-form-grid input:focus, .supplier-form-grid textarea:focus { border-color: #5d9dca; box-shadow: 0 0 0 2px #e3f1fb; }

.supplier-automation-card { max-width: 920px; margin: 6px auto; overflow: hidden; border: 1px solid #cfd9e2; border-radius: 8px; background: #fff; }
.supplier-automation-card > header { padding: 12px; border-bottom: 1px solid #dbe3e9; background: linear-gradient(180deg, #fff, #f6f9fb); }
.supplier-automation-card h3 { margin: 2px 0 0; color: #263f56; font-size: 14px; }
.supplier-automation-grid { padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.supplier-automation-grid label.wide { grid-column: 1 / -1; }
.supplier-automation-grid .check-line { min-height: 49px; padding: 7px 9px; display: flex; align-items: center; gap: 8px; border: 1px solid #d8e0e7; border-radius: 6px; background: #f8fafb; }
.supplier-automation-grid .check-line input { width: 16px; height: 16px; }
.supplier-automation-grid .check-line span { display: grid; gap: 2px; text-transform: none; }
.supplier-automation-grid .check-line b { color: #2b445a; font-size: 9.5px; }
.supplier-automation-grid .check-line small { color: #758594; font-size: 8.4px; }
.supplier-automation-card > footer { min-height: 48px; padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #dbe3e9; background: #f7f9fb; color: #738393; font-size: 9px; }
.supplier-automation-card > footer > div { display: flex; gap: 5px; }

.supplier-merge-warning { margin-bottom: 6px; padding: 7px 9px; border: 1px solid #efd397; border-left: 4px solid #c88718; border-radius: 6px; background: #fff8e7; color: #745821; font-size: 9px; line-height: 1.4; }
.supplier-merge-actions { display: flex; justify-content: flex-end; gap: 4px; }

.supplier-form-modal { width: min(920px, 96vw); }
.supplier-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.supplier-form-grid label.wide { grid-column: 1 / -1; }
.supplier-form-grid textarea { resize: vertical; }

@media (max-width: 1350px) {
    .supplier-main-grid { grid-template-columns: 285px minmax(0, 1fr); }
    .supplier-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .supplier-overview-grid { grid-template-columns: 1fr; }
    .supplier-table-wrap.compact { max-height: 260px; }
    .supplier-account-form { flex-wrap: wrap; }
}
@media (max-width: 980px) {
    .supplier-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .supplier-command-bar { flex-wrap: wrap; }
    .supplier-command-actions { width: 100%; margin-left: 0; }
    .supplier-main-grid { grid-template-columns: 1fr; }
    .supplier-list-panel { max-height: 290px; }
    .supplier-detail-panel { min-height: 600px; }
    .supplier-detail-header { align-items: flex-start; flex-direction: column; }
    .supplier-detail-meta { width: 100%; }
    .supplier-detail-meta span { flex: 1; }
}
@media (max-width: 650px) {
    .supplier-workspace { padding: 7px 6px 38px; }
    .supplier-summary-grid { grid-template-columns: 1fr; }
    .supplier-heading-actions, .supplier-command-actions { flex-wrap: wrap; }
    .supplier-search-box { min-width: 100%; }
    .supplier-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .supplier-account-summary { grid-template-columns: 1fr; }
    .supplier-alias-form { align-items: stretch; flex-direction: column; }
    .supplier-automation-grid, .supplier-form-grid { grid-template-columns: 1fr; }
    .supplier-automation-grid label.wide, .supplier-form-grid label.wide { grid-column: auto; }
}

/* PROMAR WEB V0.8.0 - TEDARIKCI YONETIM MERKEZI */

/* PROMAR WEB v0.9.1 - Firma bazlı giriş ve yönetim merkezi */
.icon-users::before { content: "👥"; font-size: 14px; }
.icon-user::before { content: "●"; font-size: 12px; }
.user-menu a { display: block; width: 100%; min-height: 34px; padding: 8px 10px; border-radius: 7px; color: var(--text); text-decoration: none; line-height: 18px; }
.user-menu a:hover { background: var(--surface-muted); }
.user-menu a.danger { color: var(--danger); }
.security-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #f3cf77; border-radius: 8px; background: #fff8df; color: #6f4c00; font-size: 12px; }
.security-banner a { color: #0b5cab; font-weight: 800; }

.login-body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 10% 10%, #1c537d 0, #0b2946 38%, #061a2c 100%); color: #10283f; }
.login-shell { width: min(1040px, 100%); min-height: 610px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.login-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; padding: 54px; overflow: hidden; color: #fff; background: linear-gradient(145deg,#0b2946 0%,#0b4974 68%,#0879a8 100%); }
.login-brand-panel::after { content: ""; position: absolute; width: 340px; height: 340px; right: -150px; bottom: -145px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-logo { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 17px; background: #fff; color: #0b4974; font-size: 36px; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.login-kicker { margin: 0 0 10px; color: #75d7ff; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.login-brand-panel h1 { max-width: 480px; margin: 0; font-size: clamp(30px,4vw,48px); line-height: 1.06; letter-spacing: -.035em; }
.login-brand-panel p:not(.login-kicker) { max-width: 520px; margin: 18px 0 0; color: #d5e9f7; font-size: 15px; line-height: 1.65; }
.login-security-list { display: grid; gap: 12px; position: relative; z-index: 1; }
.login-security-list span { display: flex; align-items: center; gap: 12px; color: #e9f6ff; font-size: 13px; }
.login-security-list b { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; background: rgba(255,255,255,.08); font-size: 10px; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 56px 50px 34px; }
.login-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-card-head small { color: #0b6d9e; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.login-card-head h2 { margin: 4px 0 0; color: #0c2b46; font-size: 25px; }
.login-lock { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #e8f4fb; color: #1683b6; }
.login-form { display: grid; gap: 17px; }
.login-form label,.management-form label { display: grid; gap: 7px; }
.login-form label > span,.management-form label > span { color: #38536b; font-size: 11px; font-weight: 800; }
.login-form input,.management-form input,.management-form select,.management-search,.password-reset-box input { width: 100%; min-height: 42px; border: 1px solid #cbd8e3; border-radius: 8px; background: #fff; padding: 9px 11px; color: #173149; font: inherit; outline: none; transition: border-color .16s,box-shadow .16s; }
.login-form input:focus,.management-form input:focus,.management-form select:focus,.management-search:focus,.password-reset-box input:focus { border-color: #2188b9; box-shadow: 0 0 0 3px rgba(33,136,185,.13); }
.login-form button,.management-primary { min-height: 42px; border: 0; border-radius: 8px; padding: 9px 16px; background: linear-gradient(135deg,#0d5d8c,#087bab); color: #fff; font-weight: 900; letter-spacing: .025em; cursor: pointer; box-shadow: 0 8px 18px rgba(12,93,140,.22); }
.login-form button:hover,.management-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.login-error { margin: -10px 0 18px; padding: 10px 12px; border: 1px solid #efb2b2; border-radius: 8px; background: #fff0f0; color: #9a2424; font-size: 12px; font-weight: 700; }
.login-help { margin: 20px 0 0; color: #6d8194; font-size: 11px; text-align: center; }
.login-card footer { margin-top: auto; padding-top: 35px; color: #8da0b1; font-size: 10px; text-align: center; }

.management-workspace { max-width: 1680px; }
.management-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 2px 2px 0; }
.management-header h1 { margin: 3px 0 4px; color: #102d47; font-size: 22px; letter-spacing: -.02em; }
.management-header p { margin: 0; color: #647b8e; font-size: 12px; }
.eyebrow { color: #1680ad; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.management-stats { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 10px; margin-bottom: 12px; }
.management-stats > div { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border: 1px solid #d8e2ea; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(18,48,73,.045); }
.management-stats small { color: #63798c; font-size: 10px; font-weight: 800; }
.management-stats b { color: #0e5f8e; font-size: 23px; }
.management-grid { display: grid; gap: 12px; }
.users-layout,.companies-layout { grid-template-columns: minmax(620px,1fr) minmax(310px,390px); align-items: start; }
.account-grid { grid-template-columns: minmax(320px,.8fr) minmax(420px,1.2fr); }
.management-card { overflow: hidden; border: 1px solid #d7e1e9; border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(19,48,72,.055); }
.management-card > header { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #e3eaf0; background: linear-gradient(#fff,#f8fafc); }
.management-card > header h2 { margin: 2px 0 0; color: #17344d; font-size: 15px; }
.management-search { width: 230px; min-height: 34px; padding: 6px 9px; font-size: 11px; }
.management-table-wrap { max-width: 100%; overflow: auto; }
.management-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.management-table th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; border-bottom: 1px solid #d8e2ea; background: #edf3f7; color: #526b7f; font-size: 9px; letter-spacing: .055em; text-align: left; white-space: nowrap; }
.management-table td { padding: 9px 10px; border-bottom: 1px solid #ebf0f4; color: #334e64; white-space: nowrap; }
.management-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.management-table tbody tr:hover td { background: #eef7fc; }
.management-table td b { color: #15354e; }
.empty-cell { height: 100px; color: #8293a1 !important; text-align: center; }
.role-chip,.status-chip { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; background: #e8f2f8; color: #245c79; font-size: 9px; font-weight: 800; }
.status-chip.active { background: #e5f7ed; color: #167346; }
.status-chip.passive { background: #f2f3f5; color: #7a858d; }
.table-action { min-height: 27px; border: 1px solid #bfcfdb; border-radius: 6px; background: #fff; color: #175f87; padding: 4px 8px; font-size: 9px; font-weight: 900; cursor: pointer; }
.table-action:hover { border-color: #2185b4; background: #eef8fd; }
.editor-card { position: sticky; top: 8px; }
.management-form { display: grid; gap: 12px; padding: 14px; }
.management-form select { appearance: auto; }
.management-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.management-actions .secondary { min-height: 38px; border: 1px solid #c8d5df; border-radius: 8px; background: #fff; color: #4a6478; padding: 8px 14px; font-weight: 800; cursor: pointer; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-hint { margin: -2px 0 0; color: #708596; font-size: 10px; line-height: 1.5; }
.section-separator { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: #197aa5; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.section-separator::after { content: ""; flex: 1; height: 1px; background: #dce7ee; }
.switch-row { grid-template-columns: 1fr auto !important; align-items: center; padding: 9px 10px; border: 1px solid #d9e3ea; border-radius: 8px; background: #f9fbfc; }
.switch-row input { width: 18px; min-height: 18px; box-shadow: none; }
.password-reset-box { margin: 0 14px 14px; padding: 12px; border: 1px solid #ead7a5; border-radius: 8px; background: #fffaf0; }
.password-reset-box b { color: #6b4c00; font-size: 11px; }
.password-reset-box p { margin: 4px 0 9px; color: #7c6d4b; font-size: 9px; line-height: 1.45; }
.password-reset-box > div { display: flex; gap: 7px; }
.password-reset-box button { border: 0; border-radius: 7px; background: #a96d00; color: #fff; padding: 7px 10px; font-size: 9px; font-weight: 900; cursor: pointer; }
.identity-badge { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid #d7e2ea; border-radius: 9px; background: #fff; }
.identity-badge > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #0e6d9d; color: #fff; font-weight: 900; }
.identity-badge div { display: grid; gap: 2px; }
.identity-badge small { color: #718596; font-size: 9px; }
.account-details { margin: 0; padding: 14px; display: grid; gap: 0; }
.account-details div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #edf1f4; }
.account-details div:last-child { border-bottom: 0; }
.account-details dt { color: #718596; font-size: 10px; font-weight: 800; }
.account-details dd { margin: 0; color: #193a55; font-size: 11px; font-weight: 800; }
.first-login-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #f0c45f; border-radius: 9px; background: #fff7dd; color: #6d4a00; }
.first-login-notice b { font-size: 11px; }
.first-login-notice span { font-size: 10px; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .login-brand-panel { padding: 34px; }
  .login-security-list { display: none; }
  .login-card { padding: 36px 30px 25px; }
  .users-layout,.companies-layout,.account-grid { grid-template-columns: 1fr; }
  .editor-card { position: static; }
}
@media (max-width: 640px) {
  .login-body { padding: 0; }
  .login-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .login-brand-panel { padding: 28px 24px; gap: 16px; }
  .login-brand-panel h1 { font-size: 29px; }
  .login-brand-panel p:not(.login-kicker) { display: none; }
  .login-card { padding: 30px 22px 22px; }
  .management-header { align-items: stretch; flex-direction: column; }
  .management-stats { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  .management-search { width: 150px; }
}

/* v0.12.0 - Firma bazlı WEB AI kontör görünümü */
.credit-pill {
    min-width: 92px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
}
.credit-pill > span:last-child { display: flex; flex-direction: column; line-height: 1.08; }
.credit-pill small { color: rgba(255,255,255,.62); font-size: 8.5px; text-transform: uppercase; letter-spacing: .45px; }
.credit-pill strong { margin-top: 2px; font-size: 12px; white-space: nowrap; }
.credit-dot { width: 8px; height: 8px; border-radius: 50%; background: #8ca0b0; box-shadow: 0 0 0 3px rgba(140,160,176,.12); }
.credit-pill.enabled .credit-dot { background: #42d69a; box-shadow: 0 0 0 3px rgba(66,214,154,.13); }
.credit-pill.error .credit-dot { background: #ff8878; box-shadow: 0 0 0 3px rgba(255,136,120,.13); }
.credit-config-box { display: grid; gap: 11px; padding: 12px; border: 1px solid #d8e4ec; border-radius: 9px; background: #f7fafc; }
.credit-config-box .section-separator { margin: 0 0 2px; }
.credit-test-row { display: flex; align-items: center; gap: 10px; }
.credit-test-result { flex: 1; color: #557086; font-size: 11px; font-weight: 700; }
.credit-test-result.success { color: #16835d; }
.credit-test-result.error { color: #c33d3d; }
.status-chip.credit-on { background: #e6f8f1; color: #137a55; }
.status-chip.credit-off { background: #eef2f5; color: #63788a; }
@media (max-width: 900px) { .credit-pill { display: none; } }


/* v0.12.0 - Bağımsız PROMAR WEB lisans ve kontör merkezi */
.license-action-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.license-action-row .secondary { min-height:34px; border:1px solid #c8d5df; border-radius:8px; background:#fff; color:#35556d; padding:7px 11px; font-size:10px; font-weight:900; cursor:pointer; }
.credit-balance-card { display:flex; align-items:center; justify-content:space-between; min-height:58px; padding:10px 13px; border:1px solid #cde1eb; border-radius:9px; background:linear-gradient(135deg,#eef8fc,#fff); }
.credit-balance-card small { color:#5b7487; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.credit-balance-card strong { color:#0877a7; font-size:24px; }
.management-table code { color:#285a73; font:700 10px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; }
.status-chip.warning { background:#fff4d9; color:#966510; border-color:#f0d48d; }

.database-mode-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:11px 14px;border:1px solid #d9e2ec;border-radius:8px;background:#f8fafc;font-size:12px;color:#52606d}.database-mode-banner strong{color:#102a43}.database-mode-banner.production{border-color:#a8e6cf;background:#effcf6;color:#176b4d}.database-mode-banner.development{border-color:#f7d794;background:#fffaf0;color:#8a5a00}@media(max-width:900px){.database-mode-banner{align-items:flex-start;flex-direction:column;gap:4px}}
