:root {
    --ink: #17211e;
    --muted: #66736e;
    --line: #dce4e0;
    --surface: #ffffff;
    --canvas: #f4f7f5;
    --green-900: #123e34;
    --green-800: #164e3f;
    --green-700: #1e6650;
    --green-100: #dff1e9;
    --green-50: #eef8f3;
    --amber: #c97815;
    --red: #b73333;
    --shadow: 0 10px 30px rgba(27, 58, 48, .07);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    color: #fff;
    background: var(--green-900);
    box-shadow: 0 4px 18px rgba(10, 40, 31, .18);
}

.topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.brand:hover { color: #fff; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: #bcd5cc; font-size: .76rem; }

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green-900);
    background: #d3ecdf;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .88rem;
}

.user-menu a { color: #e3f1ec; }
.user-menu form { margin: 0; }

.link-button {
    border: 0;
    padding: 0;
    color: #bcd5cc;
    background: none;
    font: inherit;
    cursor: pointer;
}

.page { min-height: calc(100vh - 72px); padding: 28px 0 56px; }

.page-header {
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-header.compact { align-items: center; }
.page-header h1 { margin: 4px 0 4px; font-size: clamp(1.8rem, 4vw, 2.45rem); letter-spacing: -.045em; }
.page-header p { margin: 0; }
.page-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.eyebrow {
    color: var(--green-700);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.muted { color: var(--muted); }

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.button {
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green-700); }
.button-primary:hover { color: #fff; background: var(--green-800); }
.button-secondary { color: var(--green-900); border-color: #bcd8ce; background: var(--green-50); }
.button-secondary:hover { background: var(--green-100); }
.button-ghost { color: #53615c; border-color: var(--line); background: #fff; }
.button-print { color: #fff; border-color: #3855a6; background: #3855a6; }
.button-print:hover { color: #fff; background: #2d468d; }
.button-large { min-height: 52px; padding: 13px 22px; font-size: 1rem; }
.button-small { min-height: 34px; padding: 6px 10px; font-size: .78rem; }
.button-block { width: 100%; }
.button-disabled { pointer-events: none; opacity: .45; }

.icon-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    color: var(--green-800);
    background: #fff;
    font: 800 1rem/1 system-ui, sans-serif;
    cursor: pointer;
}

.icon-button:hover { color: var(--green-900); border-color: #afc9bf; background: var(--green-50); }
.icon-button-danger { color: var(--red); }

.alert {
    margin: -12px 0 24px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-size: .92rem;
}

.alert-success { color: #15513f; border-color: #a9d6c6; background: #e7f6f0; }
.alert-error { color: #842424; border-color: #e6b9b9; background: #fff0f0; }

.print-ready {
    margin: -12px 0 24px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-color: #b6c4ea;
    background: #f3f6ff;
}

.print-ready strong, .print-ready span { display: block; }
.print-ready span { margin-top: 2px; color: var(--muted); font-size: .8rem; }

.stat-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 16px;
}

.stat-card {
    min-height: 174px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card > span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.stat-card > strong { display: block; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; line-height: 1.05; }
.stat-card strong small { font-size: .9rem; letter-spacing: 0; font-weight: 650; }
.stat-card > small { color: var(--muted); }

.stat-featured {
    color: #fff;
    border-color: var(--green-800);
    background: linear-gradient(140deg, var(--green-900), var(--green-700));
}

.stat-featured > span,
.stat-featured > small { color: #cce2da; }

.stat-card-button {
    width: 100%;
    border: 1px solid var(--green-800);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.stat-card-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(21, 78, 62, .18); }
.dashboard-total-card { min-height: 190px; }

.app-menu-grid {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.app-menu-item {
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
}

.app-menu-item:hover, .app-menu-item.active { color: var(--green-900); border-color: #b7d7ca; background: var(--green-50); }
.app-menu-icon { font-size: 1.65rem; line-height: 1; }

.stat-split {
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.18);
    display: flex;
    gap: 24px;
    color: #dcece6;
    font-size: .8rem;
}

.stat-split b { margin-left: 6px; color: #fff; }
.section-block { margin-top: 38px; }

.section-title {
    margin-bottom: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-title h2 { margin: 0; font-size: 1.25rem; }
.section-title p { margin: 3px 0 0; font-size: .85rem; }
.section-title > a { font-size: .88rem; font-weight: 700; }

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid #e7ece9;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #67736f;
    background: #f8faf9;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfc; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; justify-content: flex-end; gap: 7px; }
.actions form { margin: 0; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: var(--green-50); }
.table-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.error-text { max-width: 250px; color: var(--red); }

.status {
    padding: 5px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-sent { color: #176148; background: #def3e9; }
.status-failed { color: #9a3030; background: #fde6e6; }
.status-disabled { color: #5f6563; background: #e9edeb; }
.status-notsent { color: #8a5a18; background: #fff0d5; }

.empty-state {
    min-height: 240px;
    padding: 36px;
    border: 1px dashed #b9cbc4;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    color: var(--muted);
    background: rgba(255,255,255,.55);
}

.empty-state strong { color: var(--ink); font-size: 1.05rem; }
.empty-state .button { margin-top: 8px; }

input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd6d1;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(30, 102, 80, .12);
}

label {
    margin-bottom: 6px;
    display: block;
    font-size: .84rem;
    font-weight: 750;
}

.form-card { max-width: 760px; padding: 26px; }
.form-stack { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-span-2 { grid-column: span 2; }
.form-actions { padding-top: 8px; display: flex; justify-content: flex-end; gap: 10px; }
.help { margin-top: 5px; display: block; color: var(--muted); font-size: .76rem; }
.validation { color: var(--red); font-size: .78rem; }
.validation:empty { display: none; }

.check-row {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}

.check-row input { width: 18px; min-height: 18px; accent-color: var(--green-700); }

.search-bar {
    margin-bottom: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
}

.producer-search-bar { grid-template-columns: 1fr auto auto auto; }
.voice-button.is-listening { color: #fff; border-color: var(--red); background: var(--red); }
.voice-status { min-height: 24px; margin: -10px 0 12px; color: var(--muted); font-size: .8rem; }

.date-navigator {
    margin-bottom: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr minmax(180px, 260px) 1fr;
    align-items: end;
    gap: 12px;
}

.date-navigator > :first-child { justify-self: start; }
.date-navigator > :last-child { justify-self: end; }
.date-filter-form label { text-align: center; }

.collection-form { max-width: 820px; display: grid; gap: 14px; }

.collection-step {
    padding: 22px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--green-800);
    background: var(--green-100);
    font-weight: 850;
}

.step-content { min-width: 0; }
#producerSearch { margin-bottom: 8px; background: #f9fbfa; }
.producer-select { min-height: 180px; padding: 5px; }
.producer-select option { padding: 10px; border-radius: 6px; }
.producer-select option:checked { color: #fff; background: var(--green-700); }

.milk-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.choice-card {
    min-height: 94px;
    margin: 0;
    padding: 14px;
    border: 1px solid #cbd6d1;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.choice-card:has(input:checked) {
    border-color: var(--green-700);
    background: var(--green-50);
    box-shadow: 0 0 0 2px rgba(30, 102, 80, .1);
}

.choice-card input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 3px; color: var(--muted); font-weight: 500; }

.choice-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green-700);
    font-size: 1.05rem;
    font-weight: 850;
}

.input-suffix { position: relative; }
.input-suffix input { padding-right: 62px; }
.input-suffix span { position: absolute; top: 12px; right: 13px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.liters-input { font-size: 1.25rem; font-weight: 750; }

.sms-preview {
    padding: 16px;
    border: 1px solid #b9dace;
    border-radius: 13px;
    display: flex;
    gap: 12px;
    color: var(--green-900);
    background: var(--green-50);
}

.sms-preview p { margin: 2px 0 0; color: #557269; font-size: .82rem; }
.sms-icon {
    width: 40px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green-700);
    font-size: .67rem;
    font-weight: 850;
}

.filter-grid {
    margin-bottom: 20px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1fr auto;
    align-items: end;
    gap: 12px;
}

.filter-grid-simple { grid-template-columns: 1fr 1fr 1.5fr auto; }

.report-stats .stat-card { min-height: 145px; }
.report-stats .stat-card > strong { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.monthly-report-total { max-width: 580px; }
.monthly-report-total .stat-card { min-height: 160px; }
.monthly-daily-table tfoot td { border-top: 2px solid var(--green-700); background: var(--green-50); }

.producer-row { cursor: pointer; }
.producer-name-button {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--green-800);
    background: transparent;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.app-dialog {
    width: min(560px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 28px 80px rgba(10, 30, 24, .28);
}

.app-dialog-wide { width: min(900px, calc(100% - 24px)); }
.app-dialog::backdrop { background: rgba(8, 29, 23, .62); backdrop-filter: blur(3px); }
.dialog-card { max-height: calc(100vh - 32px); padding: 24px; overflow-y: auto; background: #fff; }

.dialog-header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dialog-header h2 { margin: 3px 0; }
.dialog-header p { margin: 0; color: var(--muted); }
.dialog-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #53615c;
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.dialog-empty { min-height: 150px; }
.dialog-toolbar { margin: -8px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.month-history { display: grid; gap: 10px; }
.month-details { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.month-details summary {
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--green-900);
    background: #fff;
    font-weight: 750;
    cursor: pointer;
}

.month-details[open] summary { border-bottom: 1px solid var(--line); background: var(--green-50); }
.month-details .table-wrap { border: 0; border-radius: 0; box-shadow: none; }
.compact-empty { min-height: 170px; }
.receipt-edit-producer { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.receipt-edit-producer strong, .receipt-edit-producer span { display: block; }
.receipt-edit-producer span { color: var(--muted); }

.login-shell {
    min-height: calc(100vh - 230px);
    display: grid;
    place-items: center;
}

.login-card { width: min(440px, 100%); padding: 34px; }
.login-card h1 { margin: 6px 0; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 24px; }

.footer {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    font-size: .78rem;
}

@media (max-width: 900px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-featured { grid-column: span 2; }
    .filter-grid, .filter-grid-simple { grid-template-columns: 1fr 1fr; }
    .filter-grid .button { grid-column: span 2; }
    .report-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 22px, 1180px); }
    .topbar-inner { min-height: 62px; }
    .brand small { display: none; }
    .user-menu > a { display: none; }
    .page { padding-top: 18px; padding-bottom: 34px; }
    .page-header { align-items: stretch; flex-direction: column; gap: 14px; }
    .page-header .button { width: 100%; }
    .page-header-actions { display: grid; grid-template-columns: 1fr; }
    .app-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .app-menu-item { min-height: 94px; padding: 14px; }
    .dashboard-total-card { min-height: 170px; }

    .stat-grid { grid-template-columns: 1fr; }
    .stat-featured { grid-column: auto; }
    .stat-card { min-height: 150px; padding: 20px; }
    .stat-card > strong { font-size: 2.25rem; }

    .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    table, thead, tbody, tr, th, td { display: block; }
    thead { display: none; }
    tbody { display: grid; gap: 10px; }
    tr {
        padding: 10px 14px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(27, 58, 48, .05);
    }

    td {
        min-height: 38px;
        padding: 8px 0;
        border-bottom: 1px solid #edf1ef;
        display: grid;
        grid-template-columns: minmax(88px, 34%) 1fr;
        align-items: center;
        gap: 10px;
        text-align: right;
    }

    td::before {
        content: attr(data-label);
        color: var(--muted);
        text-align: left;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    td:last-child { border-bottom: 0; }
    td.actions { display: flex; justify-content: flex-end; }
    td.actions::before { display: none; }
    .table-subtitle { text-align: right; }
    tfoot { display: block; margin-top: 10px; }
    tfoot tr { display: grid; grid-template-columns: 1fr; }
    tfoot td { display: flex; justify-content: space-between; }
    tfoot td[colspan] { display: block; text-align: left; }
    .form-grid, .milk-type-grid, .filter-grid, .filter-grid-simple { grid-template-columns: 1fr; }
    .field-span-2, .filter-grid .button { grid-column: auto; }
    .form-card, .login-card { padding: 20px; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    .search-bar { grid-template-columns: 1fr auto; }
    .search-bar .button-ghost { grid-column: span 2; }
    .producer-search-bar { grid-template-columns: 1fr auto; }
    .producer-search-bar .voice-button { grid-column: span 2; }
    .producer-search-bar .button-ghost { grid-column: span 2; }
    .date-navigator { grid-template-columns: 1fr 1fr; }
    .date-filter-form { grid-column: span 2; grid-row: 1; }
    .date-navigator > :first-child,
    .date-navigator > :last-child { width: 100%; justify-self: stretch; }
    .print-ready { align-items: stretch; flex-direction: column; }
    .print-ready .button { width: 100%; }
    .dialog-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
    .dialog-toolbar .button { width: 100%; }
    .collection-step { padding: 16px; grid-template-columns: 30px 1fr; gap: 10px; }
    .step-number { width: 30px; height: 30px; }
    .dialog-card { padding: 18px; }
    .footer { display: none; }
}

/* Mobil uygulama görünümü */
.topbar-leading { display: flex; align-items: center; gap: 11px; }
.app-title { color: #fff; font-size: 1.05rem; font-weight: 850; }
.app-title:hover { color: #fff; }
.topbar-back {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.09);
    font-size: 1.35rem;
    font-weight: 850;
}
.topbar-back:hover { color: #fff; background: rgba(255,255,255,.16); }

.app-menu-vertical { grid-template-columns: 1fr; }
.app-menu-vertical .app-menu-item {
    min-height: 68px;
    padding: 13px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}
.app-menu-vertical .app-menu-icon { width: 34px; text-align: center; font-size: 1.35rem; }
.app-menu-vertical .menu-arrow { margin-left: auto; color: var(--muted); font-size: 1.55rem; }
.dashboard-total-card { min-height: 128px; margin-bottom: 14px; padding: 18px 20px; }
.dashboard-total-card > strong { font-size: clamp(2rem, 8vw, 2.65rem); }
.dashboard-date-bottom { grid-template-columns: 56px minmax(150px, 240px) 56px; justify-content: center; align-items: center; }
.dashboard-date-bottom > :first-child,
.dashboard-date-bottom > :last-child { width: 56px; justify-self: stretch; }
.dashboard-date-bottom .date-filter-form { width: 100%; }

.inline-page-header { align-items: center; }
.inline-page-header h1 { margin: 0; }
.producer-search-inline {
    margin-bottom: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 52px;
    gap: 8px;
}
.producer-search-inline .voice-button { min-width: 52px; padding: 0; font-size: 1.15rem; }
.milk-action-button { min-height: 44px; min-width: 96px; padding-inline: 20px; }

.compact-dialog-header { margin-bottom: 14px; align-items: center; }
.compact-dialog-header h2 { margin: 0; font-size: 1.15rem; }
.compact-record-list { display: grid; gap: 8px; }
.compact-record-card {
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    background: #fff;
}
.compact-record-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.compact-record-values { display: grid; gap: 1px; text-align: right; white-space: nowrap; }
.compact-record-values span { color: var(--muted); font-size: .76rem; }
.compact-record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.compact-record-actions form { margin: 0; }
.compact-print-button { min-width: 112px; min-height: 38px; padding: 7px 12px; }
.history-record-list { padding: 8px; background: #f8faf9; }
.history-record-card { grid-template-columns: 1fr auto auto; min-height: 66px; }
.month-summary-actions { display: flex; align-items: center; gap: 9px; }
.month-print-button { min-height: 36px; padding: 6px 11px; font-size: .78rem; }

.report-month-navigator { grid-template-columns: 56px minmax(160px, 260px) 56px; justify-content: center; align-items: center; }
.report-month-navigator > :first-child,
.report-month-navigator > :last-child { width: 56px; justify-self: stretch; }
.report-type-nav {
    margin: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.report-type-nav .button { width: 100%; }
.report-export-grid {
    margin: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.report-export-grid .button { width: 100%; }

.login-page-main { min-height: 100vh; }
.mobile-login-page {
    min-height: 100vh;
    min-height: 100svh;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
             max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 15% 0, rgba(255,255,255,.16), transparent 260px),
        radial-gradient(circle at 92% 18%, rgba(81,161,130,.42), transparent 320px),
        linear-gradient(160deg, #092c24 0%, #164e3f 48%, #1e6650 100%);
}
.mobile-login-shell { width: min(100%, 430px); display: grid; gap: 16px; }
.login-brand-panel {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.66);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--green-900);
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 54px rgba(0,0,0,.18);
    font-size: 1.55rem;
}
.milk-logo {
    width: 50px;
    height: 50px;
    border-radius: 60% 40% 60% 40%;
    color: transparent;
    background: linear-gradient(135deg, #1e6650, #8bc8af);
    transform: rotate(45deg);
    box-shadow: 0 8px 18px rgba(30,102,80,.24);
}
.mobile-login-page .login-card {
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 28px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
}
.login-form { gap: 15px; }
.login-field label { margin-bottom: 7px; color: #25342f; font-size: .8rem; }
.login-input-wrap { position: relative; }
.login-input-wrap > span { position: absolute; z-index: 1; left: 15px; top: 50%; transform: translateY(-50%); }
.login-input-wrap input { min-height: 54px; padding-left: 46px; border-radius: 17px; font-size: 1rem; }
.login-validation:empty { display: none; }
.login-validation {
    padding: 11px 13px;
    border: 1px solid #e6b9b9;
    border-radius: 14px;
    color: #842424;
    background: #fff0f0;
    font-size: .84rem;
}
.login-validation ul { margin: 0; padding-left: 18px; }
.login-remember { color: #344b43; font-size: .9rem; }
.login-submit { border-radius: 17px; box-shadow: 0 14px 28px rgba(22,78,63,.24); }
.install-app-button {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: linear-gradient(180deg, #2fa66f, #208556);
    box-shadow: 0 18px 38px rgba(0,0,0,.24), 0 0 0 5px rgba(82,190,135,.16);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}
.install-app-button > :first-child { font-size: 1.35rem; }

@media (max-width: 680px) {
    .app-menu-grid.app-menu-vertical { grid-template-columns: 1fr; }
    .app-menu-vertical .app-menu-item { min-height: 64px; }
    .dashboard-total-card { min-height: 116px; }
    .date-navigator.dashboard-date-bottom,
    .date-navigator.report-month-navigator {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        align-items: center;
    }
    .dashboard-date-bottom .date-filter-form,
    .report-month-navigator .date-filter-form { grid-column: auto; grid-row: auto; }
    .dashboard-date-bottom > :first-child,
    .dashboard-date-bottom > :last-child,
    .report-month-navigator > :first-child,
    .report-month-navigator > :last-child { width: 52px; }
    .inline-page-header { flex-direction: row; align-items: center; gap: 10px; }
    .inline-page-header .button { width: auto; margin-left: auto; white-space: nowrap; }
    .producer-search-inline { grid-template-columns: 1fr 50px; }
    .producer-actions { align-items: center; }
    .milk-action-button { flex: 1; min-height: 46px; }
    .compact-record-card { grid-template-columns: 1fr auto; min-height: 72px; }
    .compact-record-actions { grid-column: 1 / -1; justify-content: space-between; padding-top: 4px; }
    .compact-print-button { flex: 1; }
    .history-record-card { grid-template-columns: 1fr auto; }
    .month-details summary { align-items: flex-start; }
    .month-summary-actions { flex-direction: column; align-items: flex-end; }
    .report-export-grid { gap: 6px; }
    .report-export-grid .button { min-width: 0; padding-inline: 7px; font-size: .8rem; }

    .monthly-daily-table { overflow-x: auto; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
    .monthly-daily-table table { display: table; }
    .monthly-daily-table thead { display: table-header-group; }
    .monthly-daily-table tbody { display: table-row-group; }
    .monthly-daily-table tfoot { display: table-footer-group; margin: 0; }
    .monthly-daily-table tr { padding: 0; border: 0; border-radius: 0; display: table-row; box-shadow: none; }
    .monthly-daily-table th,
    .monthly-daily-table td {
        min-height: 0;
        padding: 12px 10px;
        border-radius: 0;
        display: table-cell;
        text-align: left;
    }
    .monthly-daily-table th.numeric,
    .monthly-daily-table td.numeric { text-align: right; }
    .monthly-daily-table td::before { display: none; }
    .monthly-daily-table tfoot td { border-top: 2px solid var(--green-700); }

    .mobile-login-page { padding: 10px; }
    .mobile-login-shell { gap: 12px; }
    .login-brand-panel { padding: 16px; border-radius: 24px; }
    .mobile-login-page .login-card { padding: 19px; border-radius: 24px; }
}

/* Kompakt üretici ve modal düzeni */
.button-danger { color: #fff; border-color: #a82b2b; background: var(--red); }
.button-danger:hover { color: #fff; background: #962626; }
[data-producer-row].is-filtered-out,
[data-producer-row][hidden] { display: none !important; }
.app-menu-vertical .app-menu-item { min-height: 94px; padding: 18px 20px; }

.month-details summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px auto;
    align-items: center;
    gap: 9px;
}
.month-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-print-icon { width: 36px; height: 36px; font-size: .9rem; }
.month-total-value { min-width: 82px; text-align: right; white-space: nowrap; }
.history-day-list { padding: 6px; display: grid; gap: 5px; background: #f8faf9; }
.history-day-row {
    min-height: 48px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    background: #fff;
}
.history-day-liters { font-weight: 800; white-space: nowrap; }
.history-edit-button { width: 34px; height: 34px; }
.edit-modal-actions {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
}
.edit-modal-actions form { margin: 0; }
.edit-modal-actions-right { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.edit-modal-actions .button { min-height: 40px; padding: 8px 12px; white-space: nowrap; }
.compact-edit-form { gap: 13px; }

.report-producer-list { gap: 5px; }
.report-producer-row {
    min-height: 48px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    background: #fff;
}
.report-producer-row > span { color: var(--muted); font-size: .78rem; white-space: nowrap; }

@media (max-width: 680px) {
    .app-menu-vertical .app-menu-item { min-height: 88px; padding: 17px 18px; }
    .producer-table tbody { gap: 6px; }
    .producer-table tbody tr {
        min-height: 76px;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "name today month"
            "phone actions actions";
        align-items: center;
        column-gap: 9px;
        row-gap: 3px;
    }
    .producer-table td {
        min-height: 0;
        padding: 0;
        border: 0;
        display: block;
        text-align: left;
    }
    .producer-table td::before { display: none !important; }
    .producer-table td:nth-child(1) { grid-area: name; min-width: 0; }
    .producer-table td:nth-child(2) { grid-area: phone; color: var(--muted); font-size: .75rem; }
    .producer-table .producer-today { grid-area: today; text-align: right; font-size: .78rem; white-space: nowrap; }
    .producer-table .producer-month { grid-area: month; text-align: right; font-size: .78rem; white-space: nowrap; }
    .producer-table .producer-actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 6px; }
    .producer-name-button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .producer-table .milk-action-button { min-height: 36px; min-width: 84px; padding: 6px 14px; font-size: .8rem; }
    .producer-table .icon-button { width: 36px; height: 36px; }
    .month-details summary { align-items: center; }
    .month-summary-actions { flex-direction: row; align-items: center; }
    .history-day-row { min-height: 46px; padding-block: 5px; }
    .edit-modal-actions { gap: 7px; }
    .edit-modal-actions .button { min-height: 38px; padding-inline: 10px; font-size: .78rem; }
    .report-producer-row { min-height: 46px; padding: 6px 8px; gap: 8px; }
    .report-producer-row > strong:not(:first-child),
    .report-producer-row > span { font-size: .76rem; }
}
