/* Lastik Oteli - Ana stiller */
:root {
    --primary: #1a5f4a;
    --primary-light: #2d8f6f;
    --secondary: #c9a227;
    --bg: #f4f6f8;
    --card-bg: #fff;
    --text: #333;
    --border: #dee2e6;
    --danger: #dc3545;
    --success: #28a745;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }

/* Sol menü (sidebar) düzeni – panel ile uyumlu */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
}
.sidebar .header-brand {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.sidebar .main-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}
.sidebar .nav-section-title {
    display: block;
    padding: 0.5rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
}
.sidebar .main-nav .nav-item {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.sidebar .main-nav .nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar .main-nav .nav-item.active { background: rgba(255,255,255,0.18); color: #fff; border-left-color: #fff; font-weight: 500; }
.sidebar .main-nav .nav-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.9; }
.sidebar .main-nav .nav-item.active .nav-icon { opacity: 1; }
.sidebar .main-nav .nav-label { flex: 1; }
/* Eski tek link yapısı (nav-item yoksa) */
.sidebar .main-nav > a:not(.nav-item) {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-left: 3px solid transparent;
}
.sidebar .main-nav > a:not(.nav-item):hover { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar .main-nav > a:not(.nav-item).active { background: rgba(255,255,255,0.18); color: #fff; border-left-color: #fff; }
.sidebar .header-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.06);
}
.sidebar .header-user .btn-sm {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.sidebar .header-user .btn-sm:hover { background: rgba(255,255,255,0.3); }

.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
/* Tüm sayfalarda, sidebar dışındaki alanı tam doldur (genel) */
.main-content { flex: 1; max-width: none; width: 100%; margin: 0; padding: 1.5rem; }
/* Cari ve müşteri detay sayfalarında yan boşlukları biraz aç */
body.page-cari .main-content,
body.page-customer-detail .main-content { padding-left: 1.5rem; padding-right: 1.5rem; }
body.page-notum .main-content { padding-left: 1.5rem; padding-right: 1.5rem; }
/* Notum sayfasında paneller tam geniş olsun */
body.page-notum .panel { max-width: none; width: 100%; }
.main-footer { text-align: center; padding: 1rem; color: #666; font-size: 0.9rem; border-top: 1px solid var(--border); }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, #0d3d32 100%); }
.login-box { background: var(--card-bg); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); width: 100%; max-width: 380px; }
.login-box h1 { margin: 0 0 0.25rem; color: var(--primary); }
.login-box .subtitle { color: #666; margin-bottom: 1.5rem; }
.login-hint { font-size: 0.85rem; color: #888; margin-top: 1rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
    width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem;
}
textarea { min-height: 80px; resize: vertical; }
.btn { display: inline-block; padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.35rem 0.6rem; font-size: 0.875rem; }
.btn-block { width: 100%; text-align: center; }
.account-ekstre-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.account-ekstre-actions .btn, .account-ekstre-actions form { margin: 0; }
.account-ekstre-actions .btn-secondary { border: 1px solid #dee2e6; }
.account-ekstre-actions .btn-danger { border: 1px solid transparent; }
.customer-detail-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 18px rgba(15,23,42,0.05);
}
.customer-detail-actions form {
    margin: 0;
}
.password-send-form {
    position: relative;
    display: inline-block;
}
.password-send-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 0.35rem);
    z-index: 1200;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(2,6,23,.10);
    padding: .45rem;
    min-width: 360px;
    max-width: min(92vw, 460px);
}
.password-send-option {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0 0 .35rem 0;
}
.password-send-option:last-child {
    margin-bottom: 0;
}

/* Müşteri detay üst panel: sol bilgi + sağ not alanı */
.customer-detail-header {
    display: grid;
    /* Üst panel her zaman tam genişliği doldursun */
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    align-items: start;
}
@media (max-width: 900px) {
    .customer-detail-header { grid-template-columns: 1fr; }
}
.customer-detail-left {
    display: block;
}
.customer-info-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 16px;
    border: 1px solid #dbe3ee;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.customer-info-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
    justify-content: space-between;
}
.customer-avatar-small {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(145deg, #e5e7eb, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4b5563;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.customer-info-name-block {
    min-width: 0;
}
.customer-info-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(248,250,252,0.9);
    color: #4b5563;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}
.customer-info-edit svg {
    width: 16px;
    height: 16px;
}
.customer-info-edit:hover {
    background: #e5f3ff;
    box-shadow: 0 4px 12px rgba(15,23,42,0.18);
    transform: translateY(-1px);
    color: #1d4ed8;
}
.customer-info-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.customer-info-code {
    font-size: 0.85rem;
}
.customer-detail-right { min-width: 0; }
.customer-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.25rem 0;
}
.customer-detail-row .lbl {
    font-weight: 700;
    color: #111827;
    font-size: 0.9rem;
}
.customer-detail-row .lbl .lbl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 0.25rem;
    border-radius: 999px;
    background: rgba(148,163,184,0.22);
    color: #334155;
    flex: 0 0 auto;
    vertical-align: middle;
}
.customer-detail-row .lbl .lbl-icon svg {
    width: 13px;
    height: 13px;
    display: block;
}
.customer-detail-row .val {
    color: #111827;
    word-break: break-word;
    font-size: 0.95rem;
}
.customer-detail-note {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 1rem 1.05rem;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
    position: relative;
    width: 100%;
}
.customer-detail-note::before {
    content: none;
}
.customer-detail-note::after {
    content: none;
}
.customer-detail-note .note-title {
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.customer-detail-note .note-sub {
    margin-top: 0.35rem;
    font-size: 0.92rem;
}
.customer-detail-note .note-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}
.customer-note-form .note-actions {
    margin-top: 0.5rem;
}
.customer-notes-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.customer-note-item {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(254,252,232,0.75);
    border: 1px dashed rgba(234,179,8,0.6);
}
.customer-note-meta {
    font-size: 0.8rem;
}
.customer-note-content {
    margin-top: 0.25rem;
    font-size: 0.92rem;
}
.note-item-actions {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.customer-note-form { margin: 0; }
.note-edit { margin-top: 0.5rem; }
.note-edit-actions {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}
.customer-reminder-form {
    margin-top: 0.75rem;
}
.reminder-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.reminder-inline input[type="text"],
.reminder-inline input[type="datetime-local"] {
    flex: 1 1 160px;
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
}
.alert { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }

/* Tables */
.page-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; background: var(--card-bg); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
/* Dropdown menüler tablo içinde kırpılmasın (tires.php vb.) */
.table-wrap.table-wrap--allow-overflow {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f8f9fa; font-weight: 600; }
tr:hover { background: #f8f9fa; }
.actions a, .actions button { margin-right: 0.5rem; font-size: 0.9rem; }
.actions .btn-link { background: none; border: none; color: var(--primary); cursor: pointer; text-decoration: underline; padding: 0; }

/* Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 0 auto 1.75rem;
    max-width: 1000px;
}
.card {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(245,248,250,0.96));
    padding: 1.5rem 1.4rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    border: 1px solid rgba(15,118,110,0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(45,143,111,0.12), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.12);
    border-color: rgba(45,143,111,0.25);
}
.card:hover::before {
    opacity: 1;
}
.card h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}
.card .big {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.card-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}
.card-sub {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
}
.card a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.card a:hover {
    text-decoration: underline;
}
.card-accent {
    border-color: rgba(201,162,39,0.45);
}
.card-accent .big {
    color: var(--secondary);
}

/* Dashboard card renk varyasyonları */
.dashboard-cards .card:nth-child(1) {
    background: radial-gradient(circle at top left, rgba(26,95,74,0.12), rgba(255,255,255,0.98));
}
.dashboard-cards .card:nth-child(2) {
    background: radial-gradient(circle at top left, rgba(37,99,235,0.12), rgba(255,255,255,0.98));
}
.dashboard-cards .card:nth-child(3) {
    background: radial-gradient(circle at top left, rgba(147,51,234,0.12), rgba(255,255,255,0.98));
}
.dashboard-cards .card:nth-child(5) {
    background: radial-gradient(circle at top left, rgba(234,88,12,0.12), rgba(255,255,255,0.98));
}

/* ========== Ana sayfa dashboard (yeni tasarım) ========== */
.dashboard-welcome {
    margin-bottom: 2rem;
}
.dashboard-welcome__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}
.dashboard-welcome__sub {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Müşteri detay kartı */
.customer-layout {
    max-width: 1100px;
    margin: 0 auto 1.75rem;
}
.customer-card {
    background: radial-gradient(circle at top left, rgba(148,163,184,0.10), rgba(255,255,255,0.99));
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    border: 1px solid rgba(148,163,184,0.40);
    padding: 1.1rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1.6fr);
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 880px) {
    .customer-card {
        grid-template-columns: 1fr;
    }
}
.customer-main {
    display: flex;
    gap: 0.85rem;
}
.customer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(145deg, #e5e7eb, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}
.customer-avatar svg {
    width: 26px;
    height: 26px;
}
.customer-main-info {
    min-width: 0;
}
.customer-name {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.customer-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.25rem 1.25rem;
    font-size: 0.95rem;
}
.customer-meta-label {
    font-weight: 600;
    color: #4b5563;
}
.customer-meta-value {
    color: #111827;
}
.customer-plates {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: #4b5563;
}
.customer-balance {
    margin-top: 0.6rem;
    font-size: 0.95rem;
}
.customer-balance strong {
    font-size: 1.02rem;
}

.customer-note {
    position: relative;
    background: #fefce8;
    border-radius: 16px;
    padding: 1rem 1.1rem 1rem 1.2rem;
    border: 1px solid #fbbf24;
    color: #78350f;
    font-size: 0.95rem;
}
.customer-note::before {
    content: "";
    position: absolute;
    left: 32px;
    top: -14px;
    border-width: 0 10px 14px 10px;
    border-style: solid;
    border-color: transparent transparent #fefce8 transparent;
}
.customer-note::after {
    content: "";
    position: absolute;
    left: 32px;
    top: -16px;
    border-width: 0 12px 16px 12px;
    border-style: solid;
    border-color: transparent transparent #fbbf24 transparent;
    z-index: -1;
}
.customer-note-title {
    font-weight: 700;
    margin: 0 0 0.35rem;
}
.customer-note-text {
    margin: 0;
}
.customer-note-empty {
    opacity: 0.75;
    font-style: italic;
}
.customer-note-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}
.customer-note-actions a {
    font-size: 0.85rem;
}

.customer-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.95rem;
    margin-bottom: 1.2rem;
}
.customer-stat {
    border-radius: 14px;
    padding: 0.86rem 0.95rem;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    border: 1px solid #dbe3ee;
    box-shadow: 0 10px 22px rgba(15,23,42,0.07);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.customer-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15,23,42,0.11);
}
.customer-stat__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #334155;
}
.customer-stat span:first-child {
    opacity: 1;
}
.customer-stat-amount {
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.customer-stat-meta{
    font-size: .78rem;
    color: #64748b;
    line-height: 1.2;
}
.customer-stat--balance { background: linear-gradient(180deg, #fff7ed, #ffedd5); border-color: #fed7aa; }
.customer-stat--balance.customer-stat--balance-debit {
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border-color: #cbd5e1;
}
.customer-stat--balance.customer-stat--balance-credit {
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border-color: #cbd5e1;
}
.customer-stat--sets { background: linear-gradient(180deg, #f8fafc, #eef2f7); border-color: #cbd5e1; }
.customer-stat--active { background: linear-gradient(180deg, #f8fafc, #eef2f7); border-color: #cbd5e1; }
.customer-stat--link {
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}
.customer-stat--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15,23,42,0.13);
    filter: brightness(1.02);
}
.customer-stat--link:visited {
    color: #0f172a;
}

body.page-customer-detail .customer-detail-actions .btn {
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(15,23,42,0.08);
    background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
    border-color: transparent;
    color: #fff;
}
body.page-customer-detail .customer-detail-actions .btn-primary {
    background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
    border-color: transparent;
    color: #fff;
}
body.page-customer-detail .customer-detail-actions .btn-secondary {
    background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
    border-color: transparent;
    color: #fff;
}
body.page-customer-detail .customer-detail-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #0b5f58 0%, #1e40af 100%);
    border-color: transparent;
    color: #fff;
}
body.page-customer-detail .customer-detail-section {
    margin-top: 1rem;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 22px rgba(15,23,42,0.05);
    padding: 0.9rem 1rem 1rem;
}
body.page-customer-detail .customer-section-title {
    margin: 0 0 0.7rem;
    font-size: 1.02rem;
    color: #0f172a;
}
body.page-customer-detail .customer-detail-section .table-wrap {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    box-shadow: none;
    background: #fff;
    overflow: auto;
}
body.page-customer-detail .customer-detail-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}
body.page-customer-detail .customer-detail-section table thead th {
    background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
    color: #fff;
    border-bottom: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: .01em;
    padding: .66rem .74rem;
    white-space: nowrap;
}
body.page-customer-detail .customer-th-label{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .22rem .56rem;
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.34);
    background: rgba(255,255,255,.10);
    color: #f8fafc;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .03em;
}
body.page-customer-detail .customer-detail-section table tbody td {
    border-top: 1px solid #edf2f7;
    border-bottom: 0;
    padding: .62rem .74rem;
    vertical-align: middle;
}
body.page-customer-detail .customer-detail-section table tbody tr:nth-child(even) {
    background: #fbfdff;
}
body.page-customer-detail .customer-detail-section table tbody tr:hover {
    background: #eef6ff;
}
body.page-customer-detail .customer-row-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .24rem .56rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: .78rem;
    background: #fff;
}
body.page-customer-detail .customer-row-link:hover{
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}
body.page-customer-detail .customer-pill{
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .24rem .56rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
body.page-customer-detail .customer-pill--plate{
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    letter-spacing: .01em;
}
body.page-customer-detail .customer-pill--storage{
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}
body.page-customer-detail .customer-pill--year{
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.customer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.customer-actions form {
    margin: 0;
}
.dashboard-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}
.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.dashboard-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dashboard-card__icon .nav-icon,
.dashboard-card__icon .nav-icon-placeholder {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}
.dashboard-card__icon .nav-icon-placeholder { font-size: 1.25rem; }
.dashboard-card__body { flex: 1; min-width: 0; }
.dashboard-card__title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0,0,0,0.6);
    margin: 0 0 0.35rem;
}
.dashboard-card__count {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.dashboard-card__sub {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.5);
    margin: 0.4rem 0 0.5rem;
}
.dashboard-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    opacity: 0.9;
}
.dashboard-card:hover .dashboard-card__link { text-decoration: underline; }

/* Renk varyasyonları */
.dashboard-card--teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
}
.dashboard-card--teal .dashboard-card__icon { background: rgba(255,255,255,0.25); color: #fff; }
.dashboard-card--teal .dashboard-card__title { color: rgba(255,255,255,0.85); }
.dashboard-card--teal .dashboard-card__sub { color: rgba(255,255,255,0.75); }
.dashboard-card--teal .dashboard-card__link { color: #fff; }

.dashboard-card--blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}
.dashboard-card--blue .dashboard-card__icon { background: rgba(255,255,255,0.25); color: #fff; }
.dashboard-card--blue .dashboard-card__title { color: rgba(255,255,255,0.85); }
.dashboard-card--blue .dashboard-card__sub { color: rgba(255,255,255,0.75); }
.dashboard-card--blue .dashboard-card__link { color: #fff; }

.dashboard-card--violet {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
}
.dashboard-card--violet .dashboard-card__icon { background: rgba(255,255,255,0.25); color: #fff; }
.dashboard-card--violet .dashboard-card__title { color: rgba(255,255,255,0.85); }
.dashboard-card--violet .dashboard-card__sub { color: rgba(255,255,255,0.75); }
.dashboard-card--violet .dashboard-card__link { color: #fff; }

.dashboard-card--amber {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
}
.dashboard-card--amber .dashboard-card__icon { background: rgba(255,255,255,0.25); color: #fff; }
.dashboard-card--amber .dashboard-card__title { color: rgba(255,255,255,0.85); }
.dashboard-card--amber .dashboard-card__sub { color: rgba(255,255,255,0.75); }
.dashboard-card--amber .dashboard-card__link { color: #fff; }

.dashboard-card--orange {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #fff;
}
.dashboard-card--orange .dashboard-card__icon { background: rgba(255,255,255,0.25); color: #fff; }
.dashboard-card--orange .dashboard-card__title { color: rgba(255,255,255,0.85); }
.dashboard-card--orange .dashboard-card__sub { color: rgba(255,255,255,0.75); }
.dashboard-card--orange .dashboard-card__link { color: #fff; }

.dashboard-card--slate {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: #fff;
}
.dashboard-card--slate .dashboard-card__icon { background: rgba(255,255,255,0.25); color: #fff; }
.dashboard-card--slate .dashboard-card__title { color: rgba(255,255,255,0.85); }
.dashboard-card--slate .dashboard-card__sub { color: rgba(255,255,255,0.75); }
.dashboard-card--slate .dashboard-card__link { color: #fff; }

/* Hızlı erişim – Tanımlamalar sayfasındaki gibi kare/dikdörtgen kutular, her biri farklı renk + simge */
.dashboard-quick { margin-bottom: 2rem; }
.dashboard-quick__heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--text);
}
.dashboard-quick__desc {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: 0.95rem;
}
.dashboard-quick__grid { display: flex; flex-direction: column; gap: 1.5rem; }
.dashboard-quick__group { }
.dashboard-quick__group-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.dashboard-quick__cards { margin: 0; }
.tanimlamalar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.tanim-box {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border, #e5e7eb);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s;
}
.tanim-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.tanim-box-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: color 0.15s;
}
.tanim-box-icon .nav-icon,
.tanim-box-icon .nav-icon-placeholder {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tanim-box-icon svg {
    width: 24px;
    height: 24px;
}
.tanim-box-icon .nav-icon-placeholder { font-size: 1rem; }
.tanim-box-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
    color: var(--text, #1f2937);
}
.tanim-box-desc {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
    line-height: 1.4;
}
/* Her kutu farklı renk */
.tanim-box--teal .tanim-box-icon { background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(20,184,166,0.08)); color: #0d9488; }
.tanim-box--teal:hover { border-color: #0d9488; }
.tanim-box--teal:hover .tanim-box-icon { color: #0d9488; }

.tanim-box--blue .tanim-box-icon { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.08)); color: #2563eb; }
.tanim-box--blue:hover { border-color: #2563eb; }
.tanim-box--blue:hover .tanim-box-icon { color: #2563eb; }

.tanim-box--violet .tanim-box-icon { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.08)); color: #7c3aed; }
.tanim-box--violet:hover { border-color: #7c3aed; }
.tanim-box--violet:hover .tanim-box-icon { color: #7c3aed; }

.tanim-box--amber .tanim-box-icon { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.08)); color: #d97706; }
.tanim-box--amber:hover { border-color: #d97706; }
.tanim-box--amber:hover .tanim-box-icon { color: #d97706; }

.tanim-box--orange .tanim-box-icon { background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(249,115,22,0.08)); color: #ea580c; }
.tanim-box--orange:hover { border-color: #ea580c; }
.tanim-box--orange:hover .tanim-box-icon { color: #ea580c; }

.tanim-box--rose .tanim-box-icon { background: linear-gradient(135deg, rgba(244,63,94,0.2), rgba(244,63,94,0.08)); color: #e11d48; }
.tanim-box--rose:hover { border-color: #e11d48; }
.tanim-box--rose:hover .tanim-box-icon { color: #e11d48; }

.tanim-box--slate .tanim-box-icon { background: linear-gradient(135deg, rgba(100,116,139,0.2), rgba(100,116,139,0.08)); color: #475569; }
.tanim-box--slate:hover { border-color: #475569; }
.tanim-box--slate:hover .tanim-box-icon { color: #475569; }

.tanim-box--emerald .tanim-box-icon { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.08)); color: #059669; }
.tanim-box--emerald:hover { border-color: #059669; }
.tanim-box--emerald:hover .tanim-box-icon { color: #059669; }

@media (max-width: 640px) {
    .dashboard-stats { grid-template-columns: 1fr; }
    .tanimlamalar-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .tanim-box { padding: 1rem; }
    .tanim-box-icon { width: 42px; height: 42px; margin-bottom: 0.75rem; }
    .tanim-box-icon svg { width: 22px; height: 22px; }
    .tanim-box-title { font-size: 0.88rem; }
    .tanim-box-desc { font-size: 0.75rem; }
}
@media (max-width: 500px) {
    .tanimlamalar-grid { grid-template-columns: 1fr; }
}

/* Modal / Form panel */
.panel { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 600px; margin-bottom: 1.5rem; }
.panel.panel-tire-edit { max-width: none; width: 100%; }
.panel.panel-customer-edit,
.panel.panel-customer-detail { max-width: none; width: 100%; }
.panel.panel-cari-full { max-width: none; width: 100%; }
.panel.panel-expenses { max-width: none; width: 100%; }
/* Masraflar sayfası: tam genişlik, daralmayı önle */
body.page-expenses .main-wrap { min-width: 1px; }
body.page-expenses .main-content { max-width: none; width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; }
body.page-expenses .panel.panel-expenses { max-width: 100%; }
body.page-expenses .panel-expenses .table-wrap { width: 100%; overflow-x: visible; }
body.page-expenses .panel-expenses table { width: 100%; table-layout: auto; }
/* Lastik sorgulama: tam genişlik kart grid */
body.page-lastik-sorgu .main-wrap { min-width: 0; flex: 1; }
body.page-lastik-sorgu .main-content { max-width: none !important; width: 100%; box-sizing: border-box; }
body.page-lastik-sorgu .page-toolbar { max-width: none; width: 100%; }
body.page-lastik-sorgu .panel.panel-lastik-sorgu-full {
    max-width: none !important;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
/* Sepet (lastik-sepet): ödeme / özet tam genişlik */
body.page-lastik-sepet .main-wrap { min-width: 0; flex: 1; }
body.page-lastik-sepet .main-content { max-width: none !important; width: 100%; box-sizing: border-box; }
body.page-lastik-sepet .page-toolbar { max-width: none; width: 100%; }
body.page-lastik-sepet .panel.panel-ls-sepet-full {
    max-width: none !important;
    width: 100%;
    box-sizing: border-box;
}
/* Tekliflerim: tam genişlik (dar 600px panel sınırı kalksın) */
body.page-tekliflerim .main-wrap { min-width: 0; flex: 1; }
body.page-tekliflerim .main-content { max-width: none !important; width: 100%; box-sizing: border-box; }
body.page-tekliflerim .page-toolbar { max-width: none; width: 100%; }
body.page-tekliflerim .panel.panel-tekliflerim-full {
    max-width: none !important;
    width: 100%;
    box-sizing: border-box;
}
body.page-tekliflerim .tekliflerim-toolbar__lead {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-top: 0.25rem;
}
body.page-tekliflerim .quote-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    margin-bottom: 0.85rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
body.page-tekliflerim .quote-card__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem;
    flex-wrap: wrap;
}
body.page-tekliflerim .quote-card__title {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
body.page-tekliflerim .quote-card__code { font-weight: 600; }
body.page-tekliflerim .quote-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}
body.page-tekliflerim .quote-card__btn {
    font-size: 0.82rem;
    padding: 0.4rem 0.65rem;
}
body.page-tekliflerim .quote-card__btn--primary {
    border-color: #0f766e;
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 700;
}
body.page-tekliflerim .quote-card__detail {
    margin-top: 0.65rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}
body.page-tekliflerim .quote-card__valid {
    margin-top: 0.5rem;
    font-size: 0.86rem;
    color: #334155;
}

/* Tekliflerim: tablet/telefon — tablo başlığı ve ek sütunlar kapalı (mevcut kart düzeni korunur) */
@media (max-width: 1023px) {
    body.page-tekliflerim .tkfl-quote-list__header {
        display: none !important;
    }
    body.page-tekliflerim .quote-card__sub--desktop {
        display: none !important;
    }
    body.page-tekliflerim .quote-card__cell--date,
    body.page-tekliflerim .quote-card__cell--valid {
        display: none !important;
    }
    body.page-tekliflerim .tkfl-btn__ic {
        display: none !important;
    }
    body.page-tekliflerim .quote-card__row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.65rem;
        flex-wrap: wrap;
    }
    body.page-tekliflerim .quote-card__cell--info {
        flex: 1 1 auto;
        min-width: min(100%, 12rem);
    }
    body.page-tekliflerim .quote-card__cell--actions {
        flex: 1 1 100%;
        min-width: 0;
    }
    @media (min-width: 640px) {
        body.page-tekliflerim .quote-card__cell--actions {
            flex: 0 1 auto;
            margin-left: auto;
            width: auto;
        }
    }
}

/* Tekliflerim: masaüstü — tablo görünümü + ikonlu işlem butonları */
@media (min-width: 1024px) {
    body.page-tekliflerim .tkfl-quote-list {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    }
    body.page-tekliflerim .tkfl-quote-list__header {
        display: grid;
        grid-template-columns: minmax(200px, 1.45fr) 7.5rem 7.5rem minmax(300px, 1.15fr);
        gap: 0.65rem 1rem;
        align-items: center;
        padding: 0.7rem 1rem 0.65rem;
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1px solid #e2e8f0;
        border-bottom: 2px solid #cbd5e1;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
        color: #64748b;
    }
    body.page-tekliflerim .tkfl-quote-list__h--actions {
        text-align: right;
        padding-right: 0.15rem;
    }
    body.page-tekliflerim .tkfl-quote-list .quote-card {
        margin-bottom: 0;
        border-radius: 0;
        border: 1px solid #e2e8f0;
        border-top: none;
        box-shadow: none;
        padding: 0.8rem 1rem;
        background: #fff;
    }
    body.page-tekliflerim .tkfl-quote-list > .quote-card:nth-child(even) {
        background: #fafbfc;
    }
    body.page-tekliflerim .tkfl-quote-list .quote-card:last-of-type {
        border-radius: 0 0 12px 12px;
    }
    body.page-tekliflerim .quote-card__row {
        display: grid;
        grid-template-columns: minmax(200px, 1.45fr) 7.5rem 7.5rem minmax(300px, 1.15fr);
        gap: 0.65rem 1rem;
        align-items: center;
        flex-wrap: unset;
    }
    body.page-tekliflerim .quote-card__sub--mobile {
        display: none !important;
    }
    body.page-tekliflerim .quote-card__cell--date,
    body.page-tekliflerim .quote-card__cell--valid {
        font-size: 0.875rem;
        color: #475569;
        line-height: 1.35;
    }
    body.page-tekliflerim .quote-card__cell--actions {
        min-width: 0;
    }
    body.page-tekliflerim .tkfl-action-toolbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.4rem;
        align-items: center;
    }
    body.page-tekliflerim .tkfl-act-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.48rem 0.72rem;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: 9px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #334155;
        line-height: 1.2;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }
    body.page-tekliflerim .tkfl-act-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #0f172a;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
    }
    body.page-tekliflerim .tkfl-act-btn--pdf:hover {
        border-color: #fecaca;
        color: #b91c1c;
        background: #fef2f2;
    }
    body.page-tekliflerim .tkfl-act-btn--word:hover {
        border-color: #93c5fd;
        color: #1d4ed8;
        background: #eff6ff;
    }
    body.page-tekliflerim .tkfl-act-btn--excel:hover {
        border-color: #86efac;
        color: #166534;
        background: #f0fdf4;
    }
    body.page-tekliflerim .tkfl-act-btn--danger:hover {
        border-color: #fecaca;
        color: #b91c1c;
        background: #fef2f2;
    }
    body.page-tekliflerim .tkfl-act-btn.quote-card__btn--primary,
    body.page-tekliflerim .tkfl-act-btn--share {
        border-color: #99f6e4;
        background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
        color: #0f766e;
        font-weight: 700;
    }
    body.page-tekliflerim .tkfl-act-btn.quote-card__btn--primary:hover,
    body.page-tekliflerim .tkfl-act-btn--share:hover {
        border-color: #5eead4;
        background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
        color: #065f46;
    }
    body.page-tekliflerim .tkfl-btn__ic {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    body.page-tekliflerim .tkfl-btn__svg {
        display: block;
    }
}

@media (max-width: 639px) and (hover: none) {
    body.page-tekliflerim .page-toolbar h1 { font-size: 1.35rem; }
    body.page-tekliflerim .quote-card {
        padding: 0.9rem 0.85rem;
        border-radius: 16px;
    }
    body.page-tekliflerim .quote-card__row {
        flex-direction: column;
        align-items: stretch;
    }
    body.page-tekliflerim .quote-card__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.25rem;
    }
    body.page-tekliflerim .quote-card__btn {
        width: 100%;
        min-height: 46px;
        justify-content: center;
        font-size: 0.85rem;
    }
    body.page-tekliflerim .quote-card__btn--primary { grid-column: 1 / -1; }
    body.page-tekliflerim .quote-items-table {
        min-width: 0 !important;
        display: block;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    body.page-tekliflerim .quote-items-table thead { display: none; }
    body.page-tekliflerim .quote-items-table tbody { display: block; }
    body.page-tekliflerim .quote-items-table__row {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        margin-bottom: 0.65rem;
        padding: 0.5rem 0.75rem 0.75rem;
        background: #f8fafc;
    }
    body.page-tekliflerim .quote-items-table__row:last-child { margin-bottom: 0; }
    body.page-tekliflerim .quote-items-table tbody td {
        display: block;
        width: 100% !important;
        max-width: none !important;
        border: none !important;
        padding: 0.45rem 0 !important;
        text-align: left !important;
    }
    body.page-tekliflerim .quote-items-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 0.15rem;
    }
    body.page-tekliflerim .tkfl-modal { padding: 0.35rem !important; align-items: flex-end; }
    body.page-tekliflerim .tkfl-modal--share {
        align-items: center;
        padding: 0.5rem !important;
    }
    body.page-tekliflerim .tkfl-modal__panel--wa {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: min(88vh, 100dvh - 1rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.page-tekliflerim .tkfl-modal__panel--share {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(92vh, 100dvh - 0.5rem);
        overflow-y: auto;
        border-radius: 14px !important;
        -webkit-overflow-scrolling: touch;
    }
    body.page-tekliflerim .tkfl-modal__panel--share .btn { min-height: 44px; }
    body.page-tekliflerim #share-email {
        min-width: 0 !important;
        width: 100%;
    }
    body.page-tekliflerim #share-hours {
        width: 100% !important;
        max-width: none;
    }
}
/* BizimHesap müşteri listesi: dar 600px panel sınırını kaldır */
body.page-bizimhesap-customers .app-layout { align-items: stretch; }
body.page-bizimhesap-customers .main-wrap {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
}
body.page-bizimhesap-customers .main-content {
    max-width: none !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}
body.page-bizimhesap-customers .panel { max-width: none !important; width: 100% !important; box-sizing: border-box; }
body.page-bizimhesap-customers .table-wrap { width: 100% !important; max-width: none !important; overflow-x: auto; box-sizing: border-box; }
body.page-bizimhesap-customers .page-toolbar { max-width: none !important; width: 100%; }
.panel h2 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.pagination { margin-top: 1rem; }
.pagination ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.pagination a, .padding span { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--text); }
.pagination a:hover { background: #f0f0f0; }
.pagination .active a, .pagination li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.muted { color: #666; font-size: 0.95rem; }

.list-unstyled { list-style: none; padding: 0; margin: 0; }

/* Checkbox group (permissions) */
.permissions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.permissions-grid label { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; cursor: pointer; }

/* Vehicle photo */
.vehicle-photo { max-width: 120px; max-height: 80px; object-fit: cover; border-radius: 4px; }
.img-upload-wrap { margin-top: 0.5rem; }

/* Badge */
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }
.badge-winter { background: #cce5ff; color: #004085; }
.badge-summer { background: #fff3cd; color: #856404; }
.badge-all { background: #d4edda; color: #155724; }
.badge-bizimhesap { margin-left: 0.35rem; background: #e0f2fe; color: #0369a1; font-weight: 600; }

.opacity-60 { opacity: 0.6; }

/* Global loading overlay (form kayıt bekleme) */
.global-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 100000;
    padding: 1.25rem;
}
.global-loading-overlay.is-visible { display: flex !important; }
.global-loading-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.global-loading-overlay__icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    animation: global-tire-spin 0.95s linear infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18));
    background: transparent !important;
}
.global-loading-overlay__text {
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    font-size: 1.15rem;
    text-shadow: 0 2px 14px rgba(255,255,255,0.9);
}
@keyframes global-tire-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Lastik saklama form sekmeleri: renkli dikdörtgen butonlar */
.tire-form-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1.25rem 0;
    padding: 0;
    border: none;
}
.tire-form-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 0.98rem;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}
.tire-form-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}
.tire-form-tab.active {
    border-color: rgba(15, 23, 42, 0.18);
    filter: saturate(1.05);
}
.tire-form-tab[data-tone="teal"] { background: linear-gradient(135deg, rgba(13,148,136,0.18), rgba(13,148,136,0.06)); color: #065f46; }
.tire-form-tab[data-tone="blue"] { background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(37,99,235,0.06)); color: #1d4ed8; }
.tire-form-tab[data-tone="amber"] { background: linear-gradient(135deg, rgba(217,119,6,0.18), rgba(217,119,6,0.06)); color: #92400e; }
.tire-form-tab[data-tone="violet"] { background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(124,58,237,0.06)); color: #5b21b6; }

/* Tires list action buttons layout */
.tire-row-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

/* Tablo aksiyon hücresinde satır kırılmasın */
td.actions { white-space: nowrap; }

/* Lastik saklama formu: daha tertipli kart düzeni */
.tire-form-layout { max-width: 1100px; margin: 0 auto; }
.tire-form-intro { margin: 0 0 1rem 0; }
.form-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin: 0 0 1rem 0;
}
.form-card__header {
    padding: 0.85rem 1.05rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(248,250,252,0.92), rgba(255,255,255,1));
}
.form-card__title { margin: 0; font-size: 1.02rem; font-weight: 900; letter-spacing: -0.02em; color: #0f172a; }
.form-card__subtitle { margin: 0.25rem 0 0 0; font-size: 0.92rem; color: #475569; }
.form-card__body { padding: 1rem 1.05rem; }
.form-card--accent-teal .form-card__header { background: linear-gradient(135deg, rgba(13,148,136,0.16), rgba(255,255,255,1)); }
.form-card--accent-blue .form-card__header { background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(255,255,255,1)); }
.form-card--accent-amber .form-card__header { background: linear-gradient(135deg, rgba(217,119,6,0.14), rgba(255,255,255,1)); }

.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 980px) { .form-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .form-grid-3 { grid-template-columns: 1fr; } }

.form-help { color: #64748b; font-size: 0.92rem; margin: 0.4rem 0 0 0; }
.form-divider { height: 1px; background: rgba(15, 23, 42, 0.08); margin: 1rem 0; }

.tire-copy-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.8rem;
}
.tire-copy-bar label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.tire-copy-bar select { padding: 0.35rem 0.55rem; }

.tire-block {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.tire-block__header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tire-block__title { margin: 0; font-size: 0.98rem; font-weight: 900; letter-spacing: -0.02em; color: #0f172a; }
.tire-block__body { padding: 0.9rem 1rem; }

.tire-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 50;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Depo/Raf satırı daha düzgün hizalansın */
.raf-inline {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: nowrap;
}
@media (max-width: 700px) { .raf-inline { flex-wrap: wrap; } }
.raf-inline select { min-width: 220px; }

/* --------------------------------------------------------------------------
   Mobil / dar ekran: yan menü + içerik yan yana kalınca iç alan ~100px’e düşer.
   Sol/sağ menü düzeninde dikey stack; paneller tam genişlik; tablolar yatay kayar.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .app-layout.layout-menu-left,
    .app-layout.layout-menu-right {
        flex-direction: column !important;
    }
    .app-layout.layout-menu-left .sidebar,
    .app-layout.layout-menu-right .sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }
    .app-layout.layout-menu-left .main-wrap,
    .app-layout.layout-menu-right .main-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 auto !important;
    }
    .app-layout.layout-menu-top .main-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .main-content {
        max-width: none !important;
        width: 100% !important;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
        box-sizing: border-box !important;
    }
    .main-content .panel {
        max-width: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-toolbar {
        width: 100% !important;
        max-width: none !important;
    }
    .table-wrap,
    .lastik-sorgu-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cari-action-chip-wrap {
        min-width: 0 !important;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-left: max(0.65rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0.65rem, env(safe-area-inset-right, 0px)) !important;
    }
    .main-content .panel {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Admin /admin/logs.php — sayfa yatay taşmasın; tablolar sarmalayıcıda kayar */
body.page-logs .app-layout {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
body.page-logs .main-wrap {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
body.page-logs .main-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
body.page-logs .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    border-radius: 14px;
    margin-bottom: 1rem;
}
body.page-logs .logs-hero,
body.page-logs .logs-filter {
    max-width: 100%;
    box-sizing: border-box;
}
