:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --border: #e2e8f0;
    --success: #16a34a;
    --warning: #d97706;
    --soft-accent: #eef4ff;
}

body {
    background: linear-gradient(145deg, #eff4ff 0%, var(--bg) 45%, #f8fafc 100%);
    color: var(--text);
}

.top-nav {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.welcome-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 12px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modern-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.modern-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.modern-card .card-body {
    padding: 1.25rem;
}

.table-modern thead th {
    background: #f8fafc;
    color: #1e293b;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    white-space: nowrap;
}

.table-modern td {
    vertical-align: middle;
}

.table-modern tr:hover td {
    background-color: #f8fbff;
}

.badge-status {
    background: var(--primary-soft);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-warning {
    color: #fff;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #dbe3ee;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.6rem;
}

.stat-item strong {
    color: var(--primary);
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.admin-body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.admin-sidebar {
    width: 272px;
    background: linear-gradient(165deg, #0a1222 0%, #0f172a 42%, #111827 100%);
    padding: 1.25rem 0.75rem 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 1020;
    box-shadow: 4px 0 28px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(148, 163, 184, 0.08);
}

.sidebar-brand {
    color: #fff;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.5rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sidebar-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.sidebar-brand-title,
.admin-mobile-menu .offcanvas-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.2px;
    line-height: 1.2;
    color: #fff;
}

.sidebar-brand-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

.sidebar-section {
    margin-bottom: 0.65rem;
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.35rem 0.75rem 0.3rem;
}

.sidebar-section-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-footer {
    flex-shrink: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 11px;
    padding: 0.55rem 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.15px;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-link .nav-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-link-text {
    line-height: 1.25;
}

.sidebar-link:hover {
    background: rgba(148, 163, 184, 0.14);
    color: #fff;
}

.sidebar-link:hover .nav-icon {
    opacity: 1;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0.14));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28);
}

.sidebar-link.active .nav-icon {
    opacity: 1;
    color: #93c5fd;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #60a5fa;
}

.sidebar-link-logout {
    color: #fca5a5;
}

.sidebar-link-logout:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fff;
}

.admin-content {
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
    min-width: 0;
    margin-left: 272px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.admin-topbar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-topbar-titles {
    min-width: 0;
}

.admin-topbar-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-topbar .page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: var(--primary);
}

.btn-menu-toggle:hover {
    background: var(--primary-soft);
    border-color: #bfdbfe;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

.admin-user-pill:hover {
    border-color: #bfdbfe;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
    color: inherit;
}

.admin-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.admin-user-meta {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    max-width: 160px;
}

.admin-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.admin-user-role {
    font-size: 0.72rem;
    color: var(--muted);
}

.admin-user-chevron {
    color: var(--muted);
    margin-right: 0.15rem;
}

.admin-flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-flash {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    border-radius: 12px;
    border: none;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    margin-bottom: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.admin-flash-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.admin-flash-text {
    font-weight: 500;
}

.welcome-chip.dark {
    color: #0f172a;
    background: #edf2ff;
    border-color: #cbd5e1;
}

.admin-mobile-menu {
    background: linear-gradient(165deg, #0a1222 0%, #0f172a 100%);
    color: #fff;
    width: min(300px, 88vw);
}

.admin-mobile-menu .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1rem 0.85rem;
}

.admin-mobile-menu .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.admin-mobile-menu .offcanvas-body {
    padding: 0.75rem 0.85rem 1.25rem;
}

.admin-mobile-menu .sidebar-link {
    color: #cbd5e1;
}

.admin-mobile-menu .sidebar-section-label {
    color: #64748b;
}

/* Admin mobil alt navigasyon */
.admin-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
    padding: 4px 6px calc(env(safe-area-inset-bottom, 0px) + 4px);
}

.abn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    min-width: 0;
    color: var(--muted);
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: 12px;
    transition: color 0.15s ease, background 0.15s ease;
    cursor: pointer;
    font-family: inherit;
}

.abn-item:hover,
.abn-item:focus-visible {
    color: var(--primary);
    background: var(--primary-soft);
    outline: none;
}

.abn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.abn-label {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.abn-item.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.abn-item.active .abn-icon {
    color: #1d4ed8;
}

.abn-item-menu {
    position: relative;
    margin-top: -10px;
    padding-top: 10px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.abn-item-menu .abn-label {
    color: #fff;
    font-weight: 700;
}

.abn-item-menu .abn-icon-menu {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.abn-item-menu:hover,
.abn-item-menu:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.abn-item-menu.active {
    color: #fff;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.5);
}

.mobile-job-card {
    background: var(--soft-accent);
    border: 1px solid #dbe7ff;
    border-radius: 14px;
    padding: 0.85rem;
}

.mobile-job-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.mobile-job-meta {
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.photo-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
}

.photo-preview-link {
    display: inline-block;
}

.photo-lightbox-dialog {
    max-width: 760px;
}

.photo-lightbox-content {
    border-radius: 14px;
}

.photo-lightbox-image {
    max-height: 78vh;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

html, body {
    overflow-x: hidden;
}

main.container,
main.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.modal-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .admin-shell {
        display: block;
    }

    .admin-body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    .admin-content {
        padding: 1rem;
        margin-left: 0;
    }

    .admin-topbar {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .admin-topbar .page-title {
        font-size: 1.15rem;
    }

    .page-title {
        font-size: 1.15rem;
        margin-bottom: 0;
    }

    .modern-card .card-header,
    .modern-card .card-body {
        padding: 0.9rem;
    }

    .table-responsive {
        border-radius: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .stat-item {
        padding: 0.65rem 0.75rem;
    }

    .abn-icon svg {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
        flex-shrink: 0;
    }

    .abn-item-menu .abn-icon-menu svg {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
    }
}

@media (max-width: 576px) {
    .admin-content {
        padding: 0.75rem 0.6rem;
    }

    main.container,
    main.container-fluid {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .top-nav .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .welcome-chip {
        padding: 4px 10px;
        font-size: 0.85rem;
    }

    .modern-card {
        border-radius: 12px;
    }

    .modern-card .card-header,
    .modern-card .card-body {
        padding: 0.75rem 0.85rem;
    }

    .modern-card .card-header {
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .btn {
        border-radius: 9px;
    }

    .btn-sm {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
        min-height: 38px;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }

    .alert {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .stat-item {
        padding: 0.55rem 0.7rem;
        font-size: 0.9rem;
    }

    .badge-status {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .photo-thumb {
        width: 48px;
        height: 48px;
    }

    .mobile-job-card {
        padding: 0.7rem;
        border-radius: 12px;
    }

    .ppf-row .border {
        padding: 0.6rem !important;
    }
}

.btn,
.btn-sm,
.btn-icon {
    min-height: fit-content;
}

input[type="datetime-local"].form-control,
input[type="date"].form-control,
input[type="time"].form-control {
    min-height: 44px;
}

/* Personel mobil alt navigasyon */
.personnel-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px) 4px;
}
.pbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
    min-width: 0;
}
.pbn-item:hover {
    color: #0d6efd;
    background: #f4f8ff;
}
.pbn-item .pbn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.pbn-item .pbn-label {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.pbn-item.active {
    color: #0d6efd;
    background: #eaf2ff;
}
body:has(.personnel-bottom-nav) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
/* —— Araç Teslim Fişi (kağıt form düzeni) —— */
.delivery-receipt-paper-wrap {
    max-width: 960px;
    margin: 0 auto 2rem;
}

.dr-vehicle-mode-bar {
    padding: 14px 16px;
    background: #f8fafc;
}

.delivery-receipt-paper .dr-search-input {
    border-radius: 0;
    border: 1px solid var(--dr-border, #1a1a1a);
    box-shadow: none;
}

.delivery-receipt-paper .dr-vehicle-results {
    border-radius: 0;
    border: 1px solid var(--dr-border, #1a1a1a);
    margin-top: 8px;
}

.delivery-receipt-paper .dr-mode-tab {
    border-radius: 0;
    border: 1px solid var(--dr-border, #1a1a1a);
}

.delivery-receipt-paper .dr-mode-tab.active {
    border-color: var(--dr-border, #1a1a1a);
    box-shadow: inset 0 0 0 2px #fff;
}

.dr-vehicle-mode-label {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155;
}

.dr-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.dr-mode-tab {
    border: 2px solid #cbd5e1;
    background: #fff;
    border-radius: 12px;
    padding: 14px 12px;
    font-weight: 700;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.dr-mode-tab.active {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #fff;
}

.dr-search-input {
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid #94a3b8;
}

.dr-vehicle-results {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.dr-vehicle-pick {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    padding: 14px 12px;
    font-size: 15px;
    cursor: pointer;
}

.dr-vehicle-pick:hover,
.dr-vehicle-pick:focus {
    background: #eff6ff;
    outline: none;
}

.dr-vehicle-pick:last-child {
    border-bottom: none;
}

.delivery-receipt-paper .dr-selected-vehicle .alert {
    border-radius: 0;
    border: var(--dr-line);
}

@media (min-width: 992px) {
    .admin-content:has(.delivery-receipt-paper-wrap) {
        max-width: 100%;
    }
}

.delivery-receipt-paper {
    --dr-navy: #121619;
    --dr-gold: #b5945b;
    --dr-panel: #f4f5f7;
    --dr-border: #d8dee8;
    --dr-line: 1px solid var(--dr-border);
    background: #fff;
    border: 2px solid var(--dr-gold);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    font-size: 13px;
    color: #111;
    overflow: hidden;
}
/* Bölümler arası ayırıcı çizgi yok — her blok kendi padding/stilinde */
.delivery-receipt-paper > .dr-vehicle-mode-bar {
    border-bottom: var(--dr-line);
}

.delivery-receipt-paper > .dr-info-section,
.delivery-receipt-paper > .dr-services-section,
.delivery-receipt-paper > .dr-notes-section,
.delivery-receipt-paper > .dr-pay-section,
.delivery-receipt-paper > .dr-photo-section {
    padding: 20px;
    background: #fff;
    border-bottom: none !important;
}

.delivery-receipt-paper .dr-section-title {
    background: #0b111b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.25;
    padding: 12px 16px;
    border-bottom: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-receipt-paper .dr-section-title svg {
    width: 18px;
    height: 18px;
    color: #c5a059;
    flex-shrink: 0;
}

.delivery-receipt-paper .dr-section-title--light {
    background: #eceff3;
    color: #111822;
}

.delivery-receipt-paper .dr-section-hint {
    margin: 0;
    padding: 10px 16px 0;
    font-size: 11px;
    color: #64748b;
}

.delivery-receipt-paper .dr-section-table {
    background: #fff;
}

.delivery-receipt-paper .dr-section-table th,
.delivery-receipt-paper .dr-section-table td,
.delivery-receipt-paper .dr-info-table th,
.delivery-receipt-paper .dr-info-table td {
    border: none;
    position: relative;
    background: #fff;
    padding: 9px 12px;
    vertical-align: middle;
    font-size: 11px;
    color: #111822;
}

.delivery-receipt-paper .dr-section-table th,
.delivery-receipt-paper .dr-info-table th {
    width: 40%;
    font-weight: 700;
    text-align: left;
}

.delivery-receipt-paper .dr-section-table td,
.delivery-receipt-paper .dr-info-table td {
    font-weight: 500;
}

.delivery-receipt-paper .dr-section-table th::after,
.delivery-receipt-paper .dr-info-table th::after {
    content: "";
    position: absolute;
    top: 22%;
    right: 0;
    bottom: 22%;
    width: 1px;
    background: #d8dde3;
}

.delivery-receipt-paper .dr-section-table tr:not(:last-child) th::before,
.delivery-receipt-paper .dr-section-table tr:not(:last-child) td::before,
.delivery-receipt-paper .dr-info-table tr:not(:last-child) th::before,
.delivery-receipt-paper .dr-info-table tr:not(:last-child) td::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background: #d8dde3;
}

.delivery-receipt-paper .dr-section-table .dr-cell-input,
.delivery-receipt-paper .dr-info-table .dr-cell-input,
.delivery-receipt-paper .dr-section-table .dr-input,
.delivery-receipt-paper .dr-info-table .dr-input {
    border: none;
    border-bottom: none;
    box-shadow: none;
    font-weight: 500;
    background: transparent;
}

.delivery-receipt-paper > .dr-actions {
    border-top: var(--dr-line);
}

.delivery-receipt-paper > .dr-footer-brand,
.delivery-receipt-paper .dr-print-bottom > .dr-footer-brand {
    border-bottom: none;
}

.delivery-receipt-paper .dr-personnel-pick {
    border-radius: 0;
    border: none !important;
    background: transparent;
    padding: 0 !important;
    max-height: 72px;
}

.delivery-receipt-paper .form-control,
.delivery-receipt-paper .form-control-lg,
.delivery-receipt-paper .form-control-sm {
    border-radius: 0;
    border: var(--dr-line);
    box-shadow: none;
}

.delivery-receipt-paper .form-control:focus {
    border-color: var(--dr-gold);
    box-shadow: none;
}

.dr-field-inline {
    margin-bottom: 8px;
}

.dr-field-inline label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.dr-input,
.dr-cell-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--dr-border, #1a1a1a);
    background: transparent;
    padding: 4px 2px;
    font-size: 13px;
    border-radius: 0;
}

.dr-input:focus,
.dr-cell-input:focus {
    outline: none;
    border-bottom-color: #2563eb;
    background: #f8fbff;
}

.delivery-receipt-paper .dr-services-table .dr-cell-input,
.delivery-receipt-paper .dr-services-table .dr-input {
    border: none;
    border-bottom: none;
    box-shadow: none;
}

.delivery-receipt-paper .dr-services-table .dr-cell-input:focus,
.delivery-receipt-paper .dr-services-table .dr-input:focus {
    background: #fffbeb;
    outline: 1px dashed #94a3b8;
    outline-offset: -1px;
}

.dr-cell-input[readonly] {
    background: #f9fafb;
}

.dr-km-input {
    background: #faf6eb !important;
    font-weight: 600;
}

.dr-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.delivery-receipt-paper .dr-grid-2 > .dr-block:not(:last-child) {
    border-right: var(--dr-line);
}

.dr-grid-2.dr-info-section,
.dr-services-section {
    padding: 20px;
    background: #fff;
}

.delivery-receipt-paper .dr-info-section > .dr-block:not(:last-child) {
    border-right: none;
}

.delivery-receipt-paper .dr-info-section > .dr-block:first-child .dr-block-title {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.delivery-receipt-paper .dr-info-section .dr-block-title {
    background: #0b111b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.25;
    padding: 12px 16px;
    border-bottom: none;
    gap: 10px;
}

.delivery-receipt-paper .dr-info-section .dr-block-title svg {
    width: 18px;
    height: 18px;
    color: #c5a059;
    stroke-width: 2;
}

.delivery-receipt-paper .dr-info-section .dr-info-table {
    background: #fff;
}

.delivery-receipt-paper .dr-info-section .dr-info-table th,
.delivery-receipt-paper .dr-info-section .dr-info-table td {
    border: none;
    position: relative;
    background: #fff;
    padding: 9px 12px;
    vertical-align: middle;
    font-size: 11px;
    color: #111822;
}

.delivery-receipt-paper .dr-info-section .dr-info-table th {
    width: 40%;
    font-weight: 700;
    text-align: left;
}

.delivery-receipt-paper .dr-info-section .dr-info-table td {
    font-weight: 500;
}

.delivery-receipt-paper .dr-info-section .dr-info-table th::after {
    content: "";
    position: absolute;
    top: 22%;
    right: 0;
    bottom: 22%;
    width: 1px;
    background: #d8dde3;
}

.delivery-receipt-paper .dr-info-section .dr-info-table tr:not(:last-child) th::before,
.delivery-receipt-paper .dr-info-section .dr-info-table tr:not(:last-child) td::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background: #d8dde3;
}

.delivery-receipt-paper .dr-info-section .dr-row-km th,
.delivery-receipt-paper .dr-info-section .dr-row-km td {
    background: #fff !important;
}

.delivery-receipt-paper .dr-info-section .dr-info-spacer th,
.delivery-receipt-paper .dr-info-section .dr-info-spacer td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.delivery-receipt-paper .dr-info-section .dr-info-spacer th::after,
.delivery-receipt-paper .dr-info-section .dr-info-spacer td::before {
    display: none;
}

.delivery-receipt-paper .dr-info-section .dr-cell-input {
    font-weight: 500;
    color: #111822;
}

.delivery-receipt-paper .dr-info-section .dr-check-label {
    font-weight: 500;
    color: #111822;
}

.dr-services-section {
    padding: 20px;
    background: #fff;
}

.delivery-receipt-paper .dr-services-section .dr-services-table {
    background: #fff;
}

.delivery-receipt-paper .dr-services-section .dr-services-table thead th {
    background: #0b111b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.25;
    padding: 12px 16px;
    border: none;
    border-bottom: none;
    text-transform: uppercase;
    text-align: left;
    vertical-align: middle;
}

.delivery-receipt-paper .dr-services-section .dr-services-table thead th:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.delivery-receipt-paper .dr-services-section .dr-svc-head-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.delivery-receipt-paper .dr-services-section .dr-svc-head-inner svg {
    width: 18px;
    height: 18px;
    color: #c5a059;
    flex-shrink: 0;
}

.delivery-receipt-paper .dr-services-section .dr-services-table tbody td {
    border: none;
    position: relative;
    background: #fff;
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 11px;
    color: #111822;
}

.delivery-receipt-paper .dr-services-section .dr-services-table tbody td:first-child {
    width: 42%;
}

.delivery-receipt-paper .dr-services-section .dr-services-table tbody td::after {
    content: "";
    position: absolute;
    top: 22%;
    right: 0;
    bottom: 22%;
    width: 1px;
    background: #d8dde3;
}

.delivery-receipt-paper .dr-services-section .dr-services-table tbody td:last-child::after {
    display: none;
}

.delivery-receipt-paper .dr-services-section .dr-services-table tbody tr:not(:last-child) td::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background: #d8dde3;
}

.delivery-receipt-paper .dr-services-section .dr-svc-op-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
}

.delivery-receipt-paper .dr-services-section .dr-svc-icon-wrap {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #0b111b;
}

.delivery-receipt-paper .dr-services-section .dr-svc-icon-wrap .dr-svc-icon,
.delivery-receipt-paper .dr-services-section .dr-svc-icon-wrap .dr-svc-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.delivery-receipt-paper .dr-services-section .dr-svc-op-divider {
    width: 1px;
    height: 56%;
    min-height: 16px;
    background: #d8dde3;
    flex-shrink: 0;
}

.delivery-receipt-paper .dr-services-section .dr-op-label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111822;
    border-bottom: 2px solid #c5a059;
    display: inline-block;
    padding-bottom: 1px;
    line-height: 1.2;
    background: transparent;
}

.delivery-receipt-paper .dr-services-section .dr-svc-note .dr-input {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #111822;
}

.delivery-receipt-paper .dr-services-section .dr-services-table tfoot td {
    border: none;
    padding: 14px 0 0;
    background: #fff;
}

.delivery-receipt-paper .dr-services-section .dr-services-add-row {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.delivery-receipt-paper .dr-services-section .dr-add-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c5a059;
    background: #0b111b;
    border: 1.5px solid #c5a059;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.delivery-receipt-paper .dr-services-section .dr-add-service-btn:hover {
    background: #121a26;
    color: #dcc07a;
}

.delivery-receipt-paper .dr-services-section .dr-add-service-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    font-size: 14px;
    line-height: 1;
}

.delivery-receipt-paper .dr-services-section .dr-services-add-hint {
    font-size: 11px;
    color: #64748b;
}

.delivery-receipt-paper .dr-notes-section .dr-textarea {
    width: 100%;
    border: none;
    min-height: 110px;
    padding: 16px 20px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
    resize: vertical;
    background: #fff;
    color: #111822;
}

.delivery-receipt-paper .dr-notes-section.dr-notes-filled .dr-textarea {
    background: #fff;
}

.delivery-receipt-paper .dr-pay-section .dr-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.delivery-receipt-paper .dr-pay-section .dr-pay-grid > .dr-block:not(:last-child) {
    border-right: none;
}

.delivery-receipt-paper .dr-pay-section .dr-sig-cell {
    min-height: 48px;
    vertical-align: bottom;
    font-weight: 500;
}

.delivery-receipt-paper .dr-photo-section-body {
    padding: 16px 20px 20px;
    background: #fff;
}

.delivery-receipt-paper .dr-photo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111822;
    background: #eceff3;
    border: 1.5px solid #c5a059;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.delivery-receipt-paper .dr-photo-upload-btn:hover {
    background: #e2e6eb;
    border-color: #b5945b;
}

.delivery-receipt-paper .dr-photo-upload-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    font-size: 14px;
    line-height: 1;
}

.delivery-receipt-paper .dr-photo-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.delivery-receipt-paper .dr-photo-upload-hint {
    display: inline-block;
    margin-left: 12px;
    font-size: 11px;
    color: #64748b;
}

.delivery-receipt-paper .dr-photo-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.delivery-receipt-paper .dr-photo-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.delivery-receipt-paper .dr-photo-section .dr-photo-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 1px solid #d8dde3;
}

/* Teslim fişi ikonları — taşmayı engelle */
.delivery-receipt-paper .dr-block-title svg,
.delivery-receipt-paper .dr-section-title svg,
.delivery-receipt-paper .dr-svc-head-inner svg,
.delivery-receipt-paper .dr-svc-icon svg {
    flex: 0 0 auto;
    max-width: 20px;
    max-height: 20px;
}

@media (max-width: 991px) {
    .delivery-receipt-paper > .dr-info-section,
    .delivery-receipt-paper > .dr-services-section,
    .delivery-receipt-paper > .dr-notes-section,
    .delivery-receipt-paper > .dr-pay-section,
    .delivery-receipt-paper > .dr-photo-section,
    .dr-grid-2.dr-info-section,
    .dr-services-section {
        padding: 16px;
    }

    .delivery-receipt-paper .dr-section-title,
    .delivery-receipt-paper .dr-info-section .dr-block-title {
        font-size: 11px;
        padding: 10px 14px;
        gap: 8px;
    }

    .delivery-receipt-paper .dr-section-title svg,
    .delivery-receipt-paper .dr-info-section .dr-block-title svg,
    .delivery-receipt-paper .dr-services-section .dr-svc-head-inner svg {
        width: 16px;
        height: 16px;
        max-width: 16px;
        max-height: 16px;
    }

    .delivery-receipt-paper .dr-services-section .dr-svc-icon-wrap {
        width: 16px;
        height: 16px;
    }

    .delivery-receipt-paper .dr-services-section .dr-svc-icon-wrap .dr-svc-icon,
    .delivery-receipt-paper .dr-services-section .dr-svc-icon-wrap .dr-svc-icon svg {
        width: 16px;
        height: 16px;
        max-width: 16px;
        max-height: 16px;
    }

    .delivery-receipt-paper .dr-services-section .dr-services-table thead th {
        font-size: 11px;
        padding: 10px 14px;
    }

    .delivery-receipt-paper .dr-services-section .dr-add-service-btn-icon,
    .delivery-receipt-paper .dr-photo-upload-btn-icon {
        width: 16px;
        height: 16px;
        font-size: 13px;
    }

    .delivery-receipt-paper .dr-photo-section .dr-photo-thumb {
        width: 72px;
        height: 72px;
    }
}

.delivery-receipt-paper .dr-services-section .dr-services-table tbody tr.dr-service-row td,
.delivery-receipt-paper .dr-services-section .dr-services-table tbody tr.dr-service-row .dr-op-label,
.delivery-receipt-paper .dr-services-section .dr-services-table tr.dr-service-filled td,
.delivery-receipt-paper .dr-services-section .dr-services-table tr.dr-service-filled .dr-op-label {
    background: #fff;
}

.dr-block {
    padding: 0;
}

.dr-block-full {
    border-right: none;
}

.dr-block-title {
    background: var(--dr-navy);
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 7px 10px;
    border-bottom: var(--dr-line);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dr-block-title svg {
    width: 14px;
    height: 14px;
    color: var(--dr-gold);
    flex-shrink: 0;
}

.dr-table {
    width: 100%;
    border-collapse: collapse;
}

.delivery-receipt-paper .dr-block .dr-table:not(.dr-info-table):not(.dr-section-table) th,
.delivery-receipt-paper .dr-block .dr-table:not(.dr-info-table):not(.dr-section-table) td {
    border: 0;
    border-right: var(--dr-line);
    border-bottom: var(--dr-line);
    padding: 7px 10px;
    vertical-align: middle;
}

.delivery-receipt-paper .dr-block .dr-table:not(.dr-info-table):not(.dr-section-table) tr > :last-child {
    border-right: 0;
}

.delivery-receipt-paper .dr-block .dr-table:not(.dr-info-table):not(.dr-section-table) tr:last-child > th,
.delivery-receipt-paper .dr-block .dr-table:not(.dr-info-table):not(.dr-section-table) tr:last-child > td {
    border-bottom: 0;
}

.dr-table th,
.dr-table td {
    padding: 7px 10px;
    vertical-align: middle;
}

.dr-table th {
    width: 38%;
    background: var(--dr-panel);
    font-weight: 600;
    font-size: 12px;
    color: #334155;
}

@media (max-width: 991px) {
    .dr-grid-2 {
        grid-template-columns: 1fr;
    }
}

.dr-row-km th,
.dr-row-km td {
    background: #faf6eb !important;
}

.dr-services-block {
    margin: 0;
}

.dr-services-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

.delivery-receipt-paper .dr-services-table th,
.delivery-receipt-paper .dr-services-table td {
    border: 0;
    border-right: var(--dr-line);
    border-bottom: var(--dr-line);
    padding: 8px 10px;
    vertical-align: middle;
}

.delivery-receipt-paper .dr-services-table tr > :last-child {
    border-right: 0;
}

.delivery-receipt-paper .dr-services-table thead th {
    background: var(--dr-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.delivery-receipt-paper .dr-services-table tfoot td {
    border: 0;
    border-top: var(--dr-line);
    padding: 0;
    background: #f8fafc;
}

.dr-col-op {
    width: 42%;
}

.dr-op-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--dr-gold);
    display: inline-block;
    padding-bottom: 1px;
}

/* YAPILAN İŞLEMLER: boşken beyaz, doldurulunca satıra özel renk */
.delivery-receipt-paper .dr-services-table tbody tr.dr-service-row td,
.delivery-receipt-paper .dr-services-table tbody tr.dr-service-row .dr-op-label {
    background: #fff;
}

.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-cam td,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-cam .dr-op-label,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-ppf td,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-ppf .dr-op-label,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-renkli td,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-renkli .dr-op-label,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-on3 td,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-on3 .dr-op-label,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-seramik td,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-seramik .dr-op-label,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-pasta td,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-pasta .dr-op-label,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-gocuk td,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-svc-gocuk .dr-op-label,
.delivery-receipt-paper .dr-services-table tr.dr-service-filled.dr-custom-service-row td {
    background: #fff;
}

.dr-custom-service-row td {
    background: #fff;
}

.dr-custom-service-note-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dr-custom-service-note-wrap .dr-input {
    flex: 1;
    min-width: 0;
}

.dr-remove-custom-row {
    flex-shrink: 0;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    line-height: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: #b91c1c;
    background: #fff;
    border: var(--dr-line);
    border-radius: 0;
    cursor: pointer;
}

.dr-remove-custom-row:hover {
    background: #fef2f2;
}

.dr-services-add-row {
    padding: 10px 12px;
    border: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dr-add-service-btn {
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    color: #1d4ed8;
    background: #fff;
    border: var(--dr-line);
    border-radius: 0;
    cursor: pointer;
}

.dr-add-service-btn:hover {
    background: #eff6ff;
}

.dr-services-add-hint {
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 767px) {
    .delivery-receipt-paper .dr-services-section .dr-add-service-btn,
    .delivery-receipt-paper .dr-photo-section .dr-photo-upload-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .delivery-receipt-paper .dr-services-section .dr-services-add-hint,
    .delivery-receipt-paper .dr-photo-section .dr-photo-upload-hint {
        width: 100%;
        margin-left: 0;
    }
}

.dr-textarea {
    width: 100%;
    border: none;
    min-height: 90px;
    padding: 10px 12px;
    font-size: 13px;
    resize: vertical;
    background: #fff;
    transition: background-color 0.15s ease;
}

.dr-notes-print {
    min-height: 70px;
    padding: 10px 12px;
}

.dr-sig-cell {
    min-height: 32px;
    vertical-align: bottom;
}

.dr-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--dr-navy);
    color: #fff;
    text-align: center;
}

.dr-footer-brand-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--dr-gold);
}

.dr-footer-tagline {
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
}

.dr-photo-block {
    padding: 10px 12px 12px;
}

.dr-photo-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 1px solid var(--dr-border, #1a1a1a);
    border-radius: 0;
}

.dr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
}

.dr-deliver-wrap {
    margin-top: 1.25rem;
}

.delivery-receipt-paper.dr-deliver-panel {
    border: var(--dr-line, 1px solid #1a1a1a);
    box-shadow: none;
    overflow: hidden;
}

.dr-deliver-panel {
    border: 2px solid #16a34a;
    border-radius: 0;
    overflow: hidden;
}

.dr-title-deliver {
    background: #dcfce7 !important;
    color: #14532d;
    letter-spacing: 0.04em;
    border-bottom: var(--dr-line, 1px solid #1a1a1a);
}

.dr-deliver-body {
    padding: 0;
    background: #fff;
}

.dr-deliver-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 0;
    border-bottom: var(--dr-line, 1px solid #1a1a1a);
}

.dr-deliver-sum-item {
    background: #fff;
    border: none;
    border-right: var(--dr-line, 1px solid #1a1a1a);
    padding: 12px 14px;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.dr-deliver-sum-item:last-child {
    border-right: none;
}

.dr-deliver-sum-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.dr-deliver-sum-value {
    font-size: 1.15rem;
    line-height: 1.2;
    color: #0f172a;
}

.dr-deliver-sum-total .dr-deliver-sum-value {
    color: #15803d;
    font-size: 1.25rem;
}

.dr-deliver-sum-remaining .dr-deliver-sum-value {
    color: #b45309;
}

.dr-deliver-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    background: #fff;
    border: none;
    border-bottom: var(--dr-line, 1px solid #1a1a1a);
}

.dr-deliver-field {
    padding: 14px 16px;
    border-right: var(--dr-line, 1px solid #1a1a1a);
}

.dr-deliver-field:nth-child(2) {
    border-right: none;
}

.dr-deliver-field-full {
    grid-column: 1 / -1;
    border-right: none;
    border-top: var(--dr-line, 1px solid #1a1a1a);
}

.dr-deliver-input {
    border-color: #cbd5e1;
}

.dr-deliver-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.15);
}

.dr-deliver-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dr-deliver-pay-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.dr-deliver-pay-option:has(input:checked) {
    border-color: #16a34a;
    background: #dcfce7;
    color: #14532d;
}

.dr-deliver-pay-option input {
    margin: 0;
}

.dr-deliver-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 0;
    padding: 14px 16px;
    border-top: none;
    background: #f8fafc;
}

.dr-deliver-hint {
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 767px) {
    .dr-deliver-summary {
        grid-template-columns: 1fr;
    }

    .dr-deliver-sum-item {
        border-right: none;
        border-bottom: var(--dr-line, 1px solid #1a1a1a);
    }

    .dr-deliver-sum-item:last-child {
        border-bottom: none;
    }

    .dr-deliver-fields {
        grid-template-columns: 1fr;
    }

    .dr-deliver-field {
        border-right: none;
        border-bottom: var(--dr-line, 1px solid #1a1a1a);
    }

    .dr-deliver-field:last-child {
        border-bottom: none;
    }

    .dr-deliver-field-full {
        border-top: none;
    }

    .dr-deliver-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dr-deliver-actions .btn {
        width: 100%;
    }
}

.dr-personnel-pick {
    max-height: 100px;
    overflow-y: auto;
}

.dr-print-val {
    display: block;
    border-bottom: var(--dr-line, 1px solid #1a1a1a);
    padding: 4px 0;
    min-height: 22px;
}

.dr-pay-row .dr-block {
    padding: 0;
}

/* —— Teslim fişi yazdır / PDF: tek A4, sayfayı doldur —— */
.delivery-receipt-paper.dr-print {
    --dr-print-h: 287mm;
    font-size: 11px;
    line-height: 1.3;
}

.delivery-receipt-paper.dr-print .dr-print-sheet {
    display: flex;
    flex-direction: column;
    min-height: var(--dr-print-h);
    height: var(--dr-print-h);
    box-sizing: border-box;
}

.delivery-receipt-paper.dr-print .dr-print-grow {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.delivery-receipt-paper.dr-print .dr-print-services {
    flex: 1.35 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.delivery-receipt-paper.dr-print .dr-print-services-table {
    flex: 1;
    height: 100%;
}

.delivery-receipt-paper.dr-print .dr-print-services-table tbody {
    height: 100%;
}

.delivery-receipt-paper.dr-print .dr-print-service-row {
    height: 1%;
}

.delivery-receipt-paper.dr-print .dr-print-service-row td {
    height: 100%;
    vertical-align: middle;
}

.delivery-receipt-paper.dr-print .dr-print-notes {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 52mm;
}

.delivery-receipt-paper.dr-print .dr-print-notes .dr-notes-print {
    flex: 1 1 auto;
    min-height: 42mm;
    max-height: none;
    overflow: hidden;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.35;
}

.delivery-receipt-paper.dr-print .dr-print-bottom {
    flex-shrink: 0;
    margin-top: auto;
}

.delivery-receipt-paper.dr-print .dr-logo {
    width: 48px;
    height: 48px;
}

.delivery-receipt-paper.dr-print .dr-brand-name {
    font-size: 13px;
}

.delivery-receipt-paper.dr-print .dr-brand-contact {
    font-size: 10px;
    line-height: 1.35;
}

.delivery-receipt-paper.dr-print .dr-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.delivery-receipt-paper.dr-print .dr-field-inline {
    margin-bottom: 6px;
}

.delivery-receipt-paper.dr-print .dr-field-inline label {
    font-size: 9px;
}

.delivery-receipt-paper.dr-print .dr-print-val {
    min-height: 20px;
    font-size: 11px;
    padding: 2px 0 4px;
}

.delivery-receipt-paper.dr-print .dr-block-title {
    padding: 5px 10px;
    font-size: 10px;
}

.delivery-receipt-paper.dr-print .dr-print-info-table tr,
.delivery-receipt-paper.dr-print .dr-print-pay-table tr {
    min-height: 9mm;
}

.delivery-receipt-paper.dr-print .dr-block .dr-table th,
.delivery-receipt-paper.dr-print .dr-block .dr-table td,
.delivery-receipt-paper.dr-print .dr-services-table th,
.delivery-receipt-paper.dr-print .dr-services-table td {
    padding: 6px 8px;
    font-size: 11px;
}

.delivery-receipt-paper.dr-print .dr-services-table thead th {
    font-size: 10px;
    padding: 7px 8px;
}

.delivery-receipt-paper.dr-print .dr-sig-cell,
.delivery-receipt-paper.dr-print .dr-sig-empty {
    min-height: 12mm;
    height: 12mm;
}

.delivery-receipt-paper.dr-print .dr-footer-brand {
    padding: 8px 12px;
    font-size: 10px;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 5mm;
    }

    html.dr-print-page,
    html.dr-print-page body {
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print {
        display: none !important;
    }

    .delivery-receipt-paper.dr-print {
        width: 100% !important;
        max-width: none !important;
        height: 287mm !important;
        min-height: 287mm !important;
        max-height: 287mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-width: 2px !important;
        page-break-inside: avoid;
        break-inside: avoid-page;
        overflow: hidden;
    }

    .delivery-receipt-paper.dr-print .dr-print-sheet {
        height: 100% !important;
        min-height: 100% !important;
    }

    .dr-print .dr-row-green td,
    .dr-print .dr-row-green .dr-op-label,
    .dr-print .dr-row-blue td,
    .dr-print .dr-row-blue .dr-op-label,
    .dr-print .dr-row-km th,
    .dr-print .dr-row-km td,
    .dr-print .dr-custom-service-print td {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

html.dr-print-page body {
    padding: 10px;
    background: #cbd5e1;
}

html.dr-print-page .delivery-receipt-paper.dr-print {
    max-width: 210mm;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.15);
}

@media (max-width: 768px) {
    .dr-grid-2 {
        grid-template-columns: 1fr;
    }

    .delivery-receipt-paper .dr-grid-2 > .dr-block:not(:last-child) {
        border-right: 0;
        border-bottom: var(--dr-line);
    }

    .delivery-receipt-paper .dr-grid-2 > .dr-block:last-child {
        border-bottom: 0;
    }
}

@media (min-width: 992px) {
    .personnel-bottom-nav,
    .admin-bottom-nav {
        display: none !important;
    }
    body:has(.personnel-bottom-nav),
    .admin-body {
        padding-bottom: 0;
    }
}

/* —— Randevu takvimi —— */
.appointment-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.appointment-page-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.appointment-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.appointment-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.appointment-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.appointment-calendar-shell {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.appointment-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.appointment-calendar-toolbar .hint {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
}

.appointment-calendar-inner {
    padding: 0.75rem 1rem 1.25rem;
    min-height: 680px;
    position: relative;
}

.appointment-calendar-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 5;
    font-size: 0.9rem;
    color: var(--muted);
}

.appointment-calendar-inner .fc {
    --fc-border-color: #e8edf4;
    --fc-today-bg-color: rgba(37, 99, 235, 0.06);
    --fc-neutral-bg-color: #f8fafc;
    --fc-page-bg-color: #fff;
    font-family: inherit;
}

.appointment-calendar-inner .fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1rem !important;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.appointment-calendar-inner .fc .fc-toolbar-title {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--text);
}

.appointment-calendar-inner .fc .fc-button-group {
    gap: 5px;
}

.appointment-calendar-inner .fc .fc-button {
    border-radius: 10px !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    box-shadow: none !important;
    border: 1px solid #dbe3ee !important;
    background: #fff !important;
    color: #334155 !important;
}

.appointment-calendar-inner .fc .fc-button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.appointment-calendar-inner .fc .fc-button-primary:not(:disabled).fc-button-active,
.appointment-calendar-inner .fc .fc-button-primary:not(:disabled):active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.appointment-calendar-inner .fc .fc-col-header-cell-cushion,
.appointment-calendar-inner .fc .fc-daygrid-day-number,
.appointment-calendar-inner .fc .fc-timegrid-slot-label-cushion {
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
}

.appointment-calendar-inner .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 8px;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
}

.appointment-calendar-inner .fc-event {
    border: none !important;
    border-radius: 8px !important;
    padding: 2px 6px !important;
    font-size: 0.76rem !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    color: #fff !important;
}

.appointment-calendar-inner .fc-event.appt-cal-scheduled {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

.appointment-calendar-inner .fc-event.appt-cal-confirmed {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.appointment-calendar-inner .fc-event.appt-cal-completed {
    background-color: #64748b !important;
    border-color: #64748b !important;
}

.appointment-calendar-inner .fc-event.appt-cal-no_show {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.appointment-calendar-inner .fc-event.appt-cal-cancelled {
    background-color: #94a3b8 !important;
    border-color: #94a3b8 !important;
    opacity: 0.75;
}

.appointment-calendar-inner .fc-event .fc-event-main {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff !important;
}

.appointment-calendar-inner .fc-daygrid-event-dot {
    border-color: currentColor !important;
}

.appointment-calendar-inner .fc-timegrid-event {
    border-radius: 10px !important;
}

.appointment-calendar-inner .fc .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
}

#appointmentModal .modal-dialog.appointment-modal-dialog {
    max-height: calc(100dvh - 1rem);
    display: flex;
    flex-direction: column;
}

#appointmentModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    max-height: calc(100dvh - 1rem);
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#appointmentModal .appointment-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#appointmentModal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
}

#appointmentModal .modal-header {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
    border-radius: 16px 16px 0 0;
}

#appointmentModal .modal-footer {
    border-top: 1px solid var(--border);
    background: #fff;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

@media (max-width: 575.98px) {
    #appointmentModal .modal-dialog.appointment-modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        max-height: 100dvh;
    }

    #appointmentModal .modal-content {
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }

    #appointmentModal .modal-header {
        border-radius: 0;
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    #appointmentModal .modal-body {
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .appointment-calendar-inner {
        min-height: 520px;
        padding: 0.5rem 0.35rem 1rem;
    }

    .appointment-calendar-inner .fc .fc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-calendar-inner .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Dashboard & Reports */
.dash-kpi { border: none; border-radius: 14px; overflow: hidden; transition: transform .15s; }
.dash-kpi:hover { transform: translateY(-2px); }
.dash-kpi .card-body { padding: 1.25rem; position: relative; }
.dash-kpi .kpi-label { font-size: .85rem; color: rgba(255,255,255,0.85); margin-bottom: .25rem; }
.dash-kpi .kpi-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.dash-kpi .kpi-value-sm { font-size: 1.35rem; line-height: 1.2; }
.dash-kpi .kpi-sub { font-size: .8rem; color: rgba(255,255,255,0.8); margin-top: .35rem; }
.dash-kpi .kpi-icon { position: absolute; right: 16px; top: 14px; font-size: 2.4rem; opacity: .25; }
.kpi-blue { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); color: #fff; }
.kpi-green { background: linear-gradient(135deg, #198754 0%, #146c43 100%); color: #fff; }
.kpi-orange { background: linear-gradient(135deg, #fd7e14 0%, #d96512 100%); color: #fff; }
.kpi-red { background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%); color: #fff; }
.kpi-purple { background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%); color: #fff; }
.kpi-teal { background: linear-gradient(135deg, #20c997 0%, #1ba37a 100%); color: #fff; }

.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill-inside { background: #d1e7dd; color: #0f5132; }
.pill-inside .dot { background: #198754; animation: dash-pulse 1.5s infinite; }
.pill-outside { background: #e2e3e5; color: #41464b; }
.pill-outside .dot { background: #6c757d; }
.pill-absent { background: #f8d7da; color: #842029; }
.pill-absent .dot { background: #dc3545; }
@keyframes dash-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.mini-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; background: #f8f9fa; margin-bottom: 8px; }
.mini-stat .label { font-size: .85rem; color: #6c757d; }
.mini-stat .value { font-weight: 700; font-size: 1.05rem; }

.job-row { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-row:last-child { border-bottom: none; }
.job-row .plate { font-weight: 700; font-size: .95rem; }
.job-row .meta { font-size: .8rem; color: #6c757d; }

.quick-action {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 14px 8px; border-radius: 12px; border: 1px solid #e9ecef; background: #fff;
    text-decoration: none; color: #212529; transition: all .15s; text-align: center; min-height: 84px;
}
.quick-action:hover { border-color: #0d6efd; background: #f0f7ff; color: #0d6efd; transform: translateY(-2px); }
.quick-action .qa-icon { font-size: 1.6rem; margin-bottom: 4px; line-height: 1; }
.quick-action .qa-label { font-size: .82rem; font-weight: 600; line-height: 1.15; }

.chart-wrap { position: relative; width: 100%; }
.chart-wrap-lg { height: 280px; }
.chart-wrap-bar { height: 260px; min-height: 260px; }
.personnel-mini-list { max-height: 320px; overflow-y: auto; }
.chart-wrap-donut { height: 220px; max-width: 280px; margin: 0 auto; }
.chart-wrap-donut-sm { height: 180px; max-width: 220px; margin: 0 auto; }

.report-stat-card {
    background: #fff; border: 1px solid #e9ecef; border-radius: 12px; padding: 1rem 1.1rem; height: 100%;
}
.report-stat-card .label { font-size: .78rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .35rem; }
.report-stat-card .value { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }

.report-tabs { border-bottom-color: #dee2e6; }
.report-tabs .nav-link { font-size: .9rem; font-weight: 600; color: #495057; white-space: nowrap; }
.report-tabs .nav-link.active { color: #0d6efd; }

.report-filter-card .report-preset-btns .btn { font-size: .78rem; }

.dr-card-pay-cell { display: flex; flex-direction: column; gap: 8px; }
.dr-card-pay-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 8px;
    align-items: center;
}
.dr-card-amount-input,
.dr-card-installment-input { max-width: 100%; width: 100%; }

@media (max-width: 575px) {
    .dr-card-pay-row { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .dash-kpi .kpi-value { font-size: 1.5rem; }
    .dash-kpi .kpi-value-sm { font-size: 1.05rem; }
    .dash-kpi .kpi-icon { font-size: 1.8rem; right: 10px; top: 10px; }
    .quick-action { min-height: 72px; padding: 10px 6px; }
    .chart-wrap-lg { height: 220px; }
    .report-stat-card .value { font-size: 1rem; }
}
