* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sidebar-width: 260px;
    --body-bg: #eef1f6;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-soft: #6b7280;
    --border: #e5e7eb;

    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --green: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.10);
}

body {
    font-family: Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
}

/* =========================
   LOGIN
   ========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2f7, #dde6f2);
}

.login-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 24px;
}

.login-card {
    background: #fff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.login-brand h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-brand p {
    font-size: 14px;
    color: var(--text-soft);
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-login:hover {
    opacity: 0.95;
}

.login-demo {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* =========================
   APP LAYOUT
   ========================= */

.app-shell {
    min-height: 100vh;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 98px 24px 24px;
}

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

.page-header h1 {
    font-size: 38px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.page-header p {
    color: var(--text-soft);
    font-size: 15px;
}

/* =========================
   TOPBAR
   ========================= */

.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 74px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 18px;
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.topbar-subtitle {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 3px;
}

.topbar-date {
    color: var(--text-soft);
    font-size: 14px;
    margin-right: 4px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 14px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-role {
    font-size: 12px;
    color: var(--text-soft);
}

.user-name {
    font-size: 14px;
    color: var(--text-main);
}

.logout-btn {
    text-decoration: none;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   SIDEBAR
   ========================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #111827 0%, #172033 100%);
    color: #fff;
    padding: 22px 18px;
    z-index: 1100;
    box-shadow: 8px 0 24px rgba(2, 6, 23, 0.18);
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 8px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.brand-text span {
    font-size: 13px;
    color: #cbd5e1;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0 10px;
    margin-bottom: 10px;
}

.sidebar-section-spaced {
    margin-top: 18px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 18px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #e5e7eb;
    padding: 14px 16px;
    border-radius: 14px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: #60a5fa;
}

.nav-item-logout:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fff;
}

.nav-icon {
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.95;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* =========================
   PANELS / CARDS
   ========================= */

.panel-card {
    background: var(--card-bg);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.8);
    overflow: hidden;
}

.panel-card-header {
    padding: 22px 22px 16px;
    border-bottom: 1px solid #eef2f7;
}

.panel-card-header h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.panel-card-header p {
    font-size: 14px;
    color: var(--text-soft);
}

.panel-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* =========================
   STATS / DASHBOARD
   ========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    min-height: 150px;
    border-radius: 22px;
    color: #fff;
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
}

.stat-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.stat-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stat-orange {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.stat-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.side-summary {
    padding-bottom: 10px;
}

.mini-stats {
    padding: 12px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-stat {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-stat span {
    color: var(--text-soft);
    font-size: 14px;
}

.mini-stat strong {
    font-size: 18px;
}

/* =========================
   TABLES
   ========================= */

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

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

.modern-table thead th {
    text-align: left;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    padding: 16px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.modern-table tbody td {
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: #fafcff;
}

.empty-cell {
    text-align: center;
    color: var(--text-soft);
    padding: 28px !important;
}

.cell-strong {
    font-weight: 700;
    color: #111827;
}

.cell-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-soft);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================
   STATUS
   ========================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-passive {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   ALERTS
   ========================= */

.alert,
.alert-box {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.alert-danger,
.alert-error-box {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success-box {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* =========================
   FORMS
   ========================= */

.form-panel {
    padding-bottom: 6px;
}

.modern-form {
    padding: 22px;
}

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

.form-group,
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-group label,
.form-field label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.form-group input,
.form-group select,
.form-field input,
.form-field select {
    height: 48px;
    padding: 0 14px;
}

.form-group textarea,
.form-field textarea {
    min-height: 110px;
    padding: 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.form-field input[type="file"] {
    width: 100%;
    height: auto;
    padding: 12px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
}

.form-field small {
    color: var(--text-soft);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.compact-form {
    padding-top: 18px;
}

.table-input {
    width: 100%;
    min-width: 160px;
    height: 42px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.table-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary-solid {
    background: #111827;
    color: #fff;
}

.btn-primary-solid:hover {
    opacity: 0.94;
}

.btn-light-blue {
    background: #e0ecff;
    color: #1d4ed8;
}

.btn-light-blue:hover {
    background: #d3e4ff;
}

.btn-light-gray {
    background: #f3f4f6;
    color: #374151;
}

.btn-light-gray:hover {
    background: #e5e7eb;
}

.btn-edit {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.btn-edit:hover {
    background: #dbeafe;
}

.btn-delete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-delete:hover {
    background: #fee2e2;
}

/* =========================
   SEARCH / FILTER
   ========================= */

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

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    width: 320px;
    max-width: 100%;
    height: 44px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.search-input:focus,
.report-mail-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

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

.report-mail-input {
    min-width: 280px;
    height: 44px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

/* =========================
   BULK / RAPOR
   ========================= */

.bulk-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid #eef2f7;
    flex-wrap: wrap;
}

.bulk-date-field {
    min-width: 220px;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.report-stats-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    margin-top: 22px;
    margin-bottom: 22px;
}

.report-stats-grid-4 {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

/* =========================
   PERSON SUMMARY
   ========================= */

.person-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.person-summary-card {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 18px;
}

.person-summary-card-wide {
    grid-column: 1 / -1;
}

.person-summary-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.person-summary-value {
    font-size: 16px;
    color: #111827;
    line-height: 1.5;
}

/* =========================
   IMAGE LIGHTBOX
   ========================= */

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

/* =========================
   DOCUMENT BLOCKS
   ========================= */

.document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.document-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: 0.2s ease;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
}

.document-card-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.document-card-head h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #111827;
}

.document-card-head p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.document-preview-wrap {
    width: 100%;
    height: 240px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #eef2f7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.document-preview-image:hover {
    transform: scale(1.02);
}

.document-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    padding: 20px;
    text-align: center;
}

.job-rate-body-lite {
    padding: 16px;
}

.doc-delete-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #991b1b;
    font-weight: 600;
}

.doc-delete-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* =========================
   FINAL PREMIUM JOB RATE
   ========================= */

.job-rate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 20px;
}

.job-rate-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: all 0.25s ease;
}

.job-rate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.job-rate-card-inner {
    padding: 24px;
}

.job-rate-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dbeafe;
}

.job-rate-title {
    flex: 1;
    min-width: 0;
}

.job-rate-title h4 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #163d8f;
}

.job-rate-title p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
}

.job-rate-switch-wrap {
    min-width: 170px;
    display: flex;
    justify-content: flex-end;
}

.job-rate-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.job-rate-toggle input[type="checkbox"] {
    display: none;
}

.toggle-ui {
    position: relative;
    width: 58px;
    height: 32px;
    border-radius: 999px;
    background: #dbe3ee;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.toggle-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    transition: all 0.25s ease;
}

.toggle-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    min-width: 96px;
}

.toggle-copy strong {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.toggle-copy span {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.job-rate-toggle input[type="checkbox"]:checked + .toggle-ui {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.18), 0 10px 20px rgba(37, 99, 235, 0.22);
}

.job-rate-toggle input[type="checkbox"]:checked + .toggle-ui::after {
    left: 30px;
}

.job-rate-card.active {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.12);
}

.job-rate-card.active .job-rate-title h4 {
    color: #1d4ed8;
}

.job-rate-card.active .toggle-copy span {
    color: #2563eb;
}

.job-rate-meta {
    margin-top: 18px;
    margin-bottom: 16px;
}

.job-rate-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.job-rate-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #334155;
}

.job-rate-input {
    width: 100%;
    height: 58px;
    border: 2px solid #bfdbfe;
    border-radius: 20px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.22s ease;
}

.job-rate-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
}

.job-rate-card:not(.active) .job-rate-input {
    border-color: #dbe3ee;
    background: #f8fafc;
}

.job-rate-card:not(.active) .job-rate-badge {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

/* =========================
   POPUP MODAL
   ========================= */

.global-popup-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
}

.global-popup-modal.open {
    display: block;
}

.global-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.global-popup-dialog {
    position: relative;
    z-index: 2;
    width: min(920px, calc(100vw - 32px));
    margin: 50px auto 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.global-popup-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.global-popup-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.global-popup-header p {
    font-size: 14px;
    color: var(--text-soft);
}

.global-popup-badge {
    min-width: 90px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.global-popup-toolbar {
    padding: 18px 24px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.global-popup-body {
    padding: 20px 24px;
    max-height: 58vh;
    overflow: auto;
}

.global-popup-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
}

.empty-state-box {
    padding: 18px;
    border: 1px dashed #dbe2ea;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .report-stats-grid {
        grid-template-columns: 1fr;
    }

    .report-stats-grid-4 {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .person-summary-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 1100px) {
    .job-rate-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        transition: 0.25s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .topbar {
        left: 0;
        padding: 0 16px;
    }

    .topbar-date,
    .user-meta {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 92px 16px 16px;
    }

    .stats-grid,
    .report-stats-grid,
    .report-stats-grid-4,
    .form-grid,
    .person-summary-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .panel-card-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-input,
    .report-mail-input {
        width: 100%;
        min-width: 100%;
    }

    .btn,
    .btn-primary-solid,
    .btn-light-blue,
    .btn-light-gray {
        width: 100%;
    }

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

    .btn-edit,
    .btn-delete {
        width: 100%;
        text-align: center;
    }

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

    .form-actions .btn,
    .form-actions button {
        width: 100%;
    }

    .bulk-topbar {
        align-items: stretch;
    }

    .bulk-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-actions .btn {
        width: 100%;
    }

    .job-rate-card-inner {
        padding: 18px;
    }

    .job-rate-top {
        flex-direction: column;
        align-items: stretch;
    }

    .job-rate-switch-wrap {
        min-width: 0;
        justify-content: flex-start;
    }

    .job-rate-title h4 {
        font-size: 18px;
    }

    .job-rate-input {
        height: 54px;
        font-size: 17px;
    }

    .document-preview-wrap {
        height: 220px;
    }

    .global-popup-dialog {
        width: calc(100vw - 20px);
        margin-top: 24px;
    }

    .global-popup-header,
    .global-popup-body,
    .global-popup-toolbar,
    .global-popup-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .global-popup-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================
   SIDEBAR ACCORDION / SUBMENU
   ========================================= */

.nav-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-accordion-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.nav-accordion.active .nav-accordion-toggle {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

.nav-accordion-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-accordion-arrow {
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.nav-accordion.active .nav-accordion-arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-accordion.active .nav-submenu {
    display: flex;
}

.nav-subitem {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-subitem:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-subitem.active {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

/* =========================================
   DASHBOARD STAFF CARDS
   ========================================= */

.staff-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 18px;
    padding: 22px;
}

.staff-dashboard-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf8;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.22s ease;
}

.staff-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.staff-dashboard-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.staff-dashboard-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.staff-dashboard-title h4 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
    color: #111827;
}

.staff-dashboard-title p {
    font-size: 13px;
    color: #64748b;
}

.staff-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.staff-mini-box {
    background: #f8fafc;
    border: 1px solid #e7eef7;
    border-radius: 16px;
    padding: 14px;
}

.staff-mini-box span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.staff-mini-box strong {
    font-size: 18px;
    color: #111827;
}

.staff-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   SETTINGS JOB CARDS
   ========================================= */

.settings-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 20px;
}

.settings-job-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.22s ease;
}

.settings-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.settings-job-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid #e5edf8;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.settings-job-head h4 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 6px;
}

.settings-job-head p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.settings-job-body {
    padding: 18px;
}

/* popup ayarlarında eski toggle ile uyum */
.settings-job-head .job-rate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    background: #eef6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.settings-job-head .job-rate-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
    display: inline-block;
}

.settings-job-head .job-rate-toggle span {
    line-height: 1;
}

/* =========================================
   FILTER ROWS
   ========================================= */

.filter-top-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-date-field {
    min-width: 240px;
    flex: 1;
}

/* =========================================
   TRACKING TABS + CARDS
   ========================================= */

.tracking-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tracking-tab {
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tracking-tab:hover {
    background: #eef6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tracking-tab.active {
    background: #e0ecff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tracking-tab-panel {
    display: none;
}

.tracking-tab-panel.active {
    display: block;
}

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

.tracking-person-card {
    border-radius: 22px;
    overflow: hidden;
}

.tracking-person-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.tracking-person-head h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #111827;
}

.tracking-person-head p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.tracking-person-body {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
}

.tracking-note-field {
    grid-column: 1 / -1;
}

.tracking-person-footer {
    padding: 0 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tracking-total-box {
    background: #f8fafc;
    border: 1px solid #e7eef7;
    border-radius: 16px;
    padding: 12px 14px;
    min-width: 120px;
}

.tracking-total-box span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.tracking-total-box strong {
    font-size: 18px;
    color: #111827;
}

/* =========================================
   BORDRO FILTER
   ========================================= */

.bordro-filter-form {
    padding: 0 22px 22px;
}

.bordro-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.bordro-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   POPUP TAKIP WORKFLOW
   ========================================= */

.popup-workflow-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 22px 22px;
}

.popup-workflow-step {
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-workflow-step:hover {
    background: #eef6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.popup-workflow-step.active {
    background: #e0ecff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.popup-step-panel {
    display: none;
}

.popup-step-panel.active {
    display: block;
}

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

.popup-person-card {
    background: #fff;
    border: 1px solid #e5edf8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.popup-person-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #eef2f7;
    background: #fbfdff;
}

.popup-person-head h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.popup-person-head p {
    font-size: 13px;
    color: #64748b;
}

.popup-person-body {
    padding: 16px;
    display: grid;
    gap: 14px;
}

.popup-replacement-box {
    margin-top: 4px;
}

.popup-step-actions {
    justify-content: space-between;
}

/* =========================================
   RESPONSIVE EXTENSIONS
   ========================================= */

@media (max-width: 1200px) {
    .staff-dashboard-grid,
    .tracking-card-grid,
    .popup-person-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .settings-job-grid,
    .bordro-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-top-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tracking-person-body {
        grid-template-columns: 1fr;
    }

    .tracking-person-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tracking-total-box {
        width: 100%;
    }

    .staff-dashboard-actions,
    .bordro-filter-actions,
    .popup-step-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-job-head,
    .tracking-person-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================
   SIDEBAR ACCORDION - REAL HTML FIX
   ========================================= */

.sidebar-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item-button {
    width: 100%;
    border: none;
    cursor: pointer;
    background: transparent;
    text-align: left;
}

.nav-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-arrow {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.sidebar-accordion.open .accordion-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
    margin-left: 16px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-accordion.open .sidebar-submenu {
    display: flex;
}

.submenu-item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.submenu-item.active {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.nav-item-button.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

/* =========================================
   POPUP AYARLARI - REAL HTML FIX
   ========================================= */

.settings-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 20px;
}

.settings-job-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.22s ease;
}

.settings-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.settings-job-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid #e5edf8;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.settings-job-head h4 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 6px;
}

.settings-job-head p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.settings-job-body {
    padding: 18px;
}

/* popup ayarları içindeki gerçek toggle yapısı */
.settings-job-head .job-rate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    background: #eef6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.settings-job-head .job-rate-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
    display: inline-block;
}

.settings-job-head .job-rate-toggle span {
    line-height: 1;
}

/* =========================================
   DASHBOARD PERSONEL KARTLARI
   ========================================= */

.staff-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 18px;
    padding: 22px;
}

.staff-dashboard-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf8;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.22s ease;
}

.staff-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.staff-dashboard-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.staff-dashboard-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.staff-dashboard-title h4 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
    color: #111827;
}

.staff-dashboard-title p {
    font-size: 13px;
    color: #64748b;
}

.staff-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.staff-mini-box {
    background: #f8fafc;
    border: 1px solid #e7eef7;
    border-radius: 16px;
    padding: 14px;
}

.staff-mini-box span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.staff-mini-box strong {
    font-size: 18px;
    color: #111827;
}

.staff-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   PERSONEL TAKIP
   ========================================= */

.filter-top-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-date-field {
    min-width: 240px;
    flex: 1;
}

.tracking-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tracking-tab {
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tracking-tab:hover {
    background: #eef6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tracking-tab.active {
    background: #e0ecff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tracking-tab-panel {
    display: none;
}

.tracking-tab-panel.active {
    display: block;
}

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

.tracking-person-card {
    border-radius: 22px;
    overflow: hidden;
}

.tracking-person-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.tracking-person-head h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #111827;
}

.tracking-person-head p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.tracking-person-body {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
}

.tracking-note-field {
    grid-column: 1 / -1;
}

.tracking-person-footer {
    padding: 0 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tracking-total-box {
    background: #f8fafc;
    border: 1px solid #e7eef7;
    border-radius: 16px;
    padding: 12px 14px;
    min-width: 120px;
}

.tracking-total-box span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.tracking-total-box strong {
    font-size: 18px;
    color: #111827;
}

/* =========================================
   BORDRO
   ========================================= */

.bordro-filter-card {
    overflow: hidden;
}

.bordro-filter-top {
    padding: 22px 22px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.bordro-filter-top h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.bordro-filter-top p {
    font-size: 14px;
    color: #64748b;
}

.bordro-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bordro-filter-form {
    padding: 0 22px 22px;
}

.bordro-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.bordro-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   POPUP TAKIP
   ========================================= */

.popup-workflow-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 22px 22px;
}

.popup-workflow-step {
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-workflow-step:hover {
    background: #eef6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.popup-workflow-step.active {
    background: #e0ecff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.popup-step-panel {
    display: none;
}

.popup-step-panel.active {
    display: block;
}

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

.popup-person-card {
    background: #fff;
    border: 1px solid #e5edf8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.popup-person-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #eef2f7;
    background: #fbfdff;
}

.popup-person-head h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.popup-person-head p {
    font-size: 13px;
    color: #64748b;
}

.popup-person-body {
    padding: 16px;
    display: grid;
    gap: 14px;
}

.popup-step-actions {
    justify-content: space-between;
}

/* =========================================
   RESPONSIVE FIX
   ========================================= */

@media (max-width: 1200px) {
    .staff-dashboard-grid,
    .tracking-card-grid,
    .popup-person-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .settings-job-grid,
    .bordro-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-top-row,
    .bordro-filter-top {
        flex-direction: column;
        align-items: stretch;
    }

    .tracking-person-body {
        grid-template-columns: 1fr;
    }

    .tracking-person-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-dashboard-actions,
    .bordro-filter-actions,
    .bordro-quick-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-job-head,
    .tracking-person-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-submenu {
        margin-left: 10px;
    }
}
/* =========================================
   PERSONEL DETAY - KISA OZET FIX
   ========================================= */

.detail-summary-grid {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
}

.detail-summary-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf8;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.detail-summary-box span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.detail-summary-box strong {
    font-size: 22px;
    color: #111827;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .detail-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   GUNLUK TAKIP SAYFASI BOSLUK FIX
   ========================================= */

.main-content > .dashboard-grid:first-of-type {
    margin-bottom: 20px;
}
/* =========================================
   TAKIP SAYFASI OZEL GRID
   ========================================= */

.takip-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* =========================================
   RAPOR SAYFASI OZEL DUZEN
   ========================================= */

.rapor-filter-panel {
    margin-bottom: 22px;
}

.rapor-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

/* rapor filtre butonları */
.rapor-filter-panel .form-actions {
    justify-content: flex-start;
}

/* responsive */
@media (max-width: 1200px) {
    .rapor-stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .takip-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rapor-stats-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   TAKIP SAYFASI OZEL GRID
   ========================================= */

.takip-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* =========================================
   RAPOR SAYFASI OZEL DUZEN
   ========================================= */

.rapor-filter-panel {
    margin-bottom: 22px;
}

.rapor-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.rapor-filter-panel .form-actions {
    justify-content: flex-start;
}

@media (max-width: 1200px) {
    .rapor-stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .takip-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rapor-stats-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   RESPONSIVE TEMEL AYARLAR
   ========================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container,
.container-fluid,
.main-content,
.content-wrapper,
.page-content {
    width: 100%;
    max-width: 100%;
}

/* Kart ve kutular taşmasın */
.card,
.stat-card,
.info-card,
.box,
.panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Grid / row yapıları */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.row > [class*="col-"],
.row > .col {
    padding-left: 10px;
    padding-right: 10px;
}

/* Genel kolon mantığı */
.col {
    flex: 1 1 0;
    min-width: 0;
}

/* Form alanları */
input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
}

.form-group,
.mb-3,
.field-group {
    margin-bottom: 15px;
}

/* Butonlar */
.btn,
button,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* Tablo mobil sarmalayıcı */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* Uzun içerikler taşmasın */
.card-body,
.table-responsive,
.form-section,
.modal-content {
    max-width: 100%;
    overflow-x: auto;
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }

    .main-content,
    .content-wrapper,
    .page-content {
        padding: 15px;
    }

    .dashboard-cards,
    .stats-grid,
    .card-grid,
    .grid-4,
    .grid-3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* =========================
   MOBİL
   ========================= */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .main-content,
    .content-wrapper,
    .page-content,
    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Yan yana bloklar alta düşsün */
    .row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }

    .row > [class*="col-"],
    .row > .col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 15px;
    }

    /* Kart dizilimleri tek kolon */
    .dashboard-cards,
    .stats-grid,
    .card-grid,
    .grid-4,
    .grid-3,
    .grid-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .card,
    .stat-card,
    .info-card,
    .box,
    .panel {
        margin-bottom: 12px;
        border-radius: 12px;
    }

    /* Üst alanlar */
    .page-header,
    .header-top,
    .top-bar,
    .section-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .page-header .actions,
    .header-top .actions,
    .top-bar .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn,
    button,
    a.btn {
        width: 100%;
    }

    /* Form satırları */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Tablo yazıları küçülsün */
    table th,
    table td {
        white-space: nowrap;
        font-size: 13px;
        padding: 10px 8px;
    }

    /* Modal */
    .modal-dialog,
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 10px auto;
    }

    /* Sidebar varsa */
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-wrapper,
    .layout,
    .app-layout {
        display: block;
    }
}

/* =========================
   ÇOK KÜÇÜK EKRANLAR
   ========================= */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }

    .card,
    .stat-card,
    .info-card,
    .box,
    .panel {
        padding: 12px;
    }

    .btn,
    button,
    a.btn {
        min-height: 42px;
        font-size: 14px;
    }

    table th,
    table td {
        font-size: 12px;
        padding: 8px 6px;
    }
}

/* =========================
   RESPONSIVE OVERRIDES - FINAL
   ========================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

.main-content > * {
    max-width: 100%;
}

.topbar,
.main-content,
.panel-card,
.table-wrap,
.modern-table,
.modern-form,
.form-grid,
.page-header,
.panel-card-header-row,
.header-actions,
.search-form,
.form-actions,
.table-actions,
.mini-stats,
.stats-grid,
.dashboard-grid,
.person-summary-grid,
.report-stats-grid-4,
.report-stats-grid,
.takip-top-grid,
.dashboard-analytics-grid,
.staff-dashboard-grid,
.tracking-card-grid,
.document-grid,
.job-rate-grid,
.bulk-person-grid,
.settings-job-grid,
.popup-person-grid {
    max-width: 100%;
}

.table-wrap,
.auto-table-wrap,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    min-width: 720px;
}

.modern-table th,
.modern-table td {
    word-break: normal;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

.menu-btn {
    display: none;
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1090;
}

@media (max-width: 992px) {
    .stats-grid,
    .report-stats-grid-4,
    .person-summary-grid,
    .dashboard-analytics-grid,
    .tracking-card-grid,
    .staff-dashboard-grid,
    .document-grid,
    .job-rate-grid,
    .settings-job-grid,
    .bulk-person-grid {
        grid-template-columns: 1fr 1fr;
    }

    .takip-top-grid,
    .dashboard-grid,
    .report-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar {
        left: 0 !important;
        right: 0;
        height: auto;
        min-height: 74px;
        padding: 14px 16px;
        gap: 12px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .topbar-right {
        gap: 10px;
    }

    .topbar-date,
    .user-meta,
    .logout-btn {
        display: none;
    }

    .sidebar {
        left: 0 !important;
        width: min(86vw, 320px) !important;
        max-width: 320px;
        height: 100vh !important;
        position: fixed !important;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 18px 0 42px rgba(2, 6, 23, 0.28);
        z-index: 1105;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    body.sidebar-open .mobile-sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 106px 14px 18px !important;
    }

    .page-header,
    .panel-card-header-row,
    .header-actions,
    .search-form,
    .form-actions,
    .table-actions,
    .filter-top-row,
    .bordro-filter-top,
    .report-actions-wrap,
    .popup-bulk-actions,
    .bulk-topbar,
    .bulk-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .btn,
    .btn-primary-solid,
    .btn-light-blue,
    .btn-light-gray,
    .btn-edit,
    .btn-delete,
    .logout-btn,
    .search-form button,
    .form-actions button,
    .form-actions .btn,
    .header-actions .btn,
    .table-actions .btn,
    .table-actions a {
        width: 100%;
    }

    .form-grid,
    .stats-grid,
    .report-stats-grid,
    .report-stats-grid-4,
    .person-summary-grid,
    .takip-top-grid,
    .dashboard-grid,
    .dashboard-analytics-grid,
    .staff-dashboard-grid,
    .tracking-card-grid,
    .document-grid,
    .job-rate-grid,
    .settings-job-grid,
    .bulk-person-grid,
    .popup-person-grid {
        grid-template-columns: 1fr !important;
    }

    .panel-card,
    .stat-card,
    .staff-dashboard-card,
    .job-rate-card,
    .document-card,
    .bulk-person-card,
    .tracking-person-card,
    .person-summary-card,
    .detail-summary-box {
        border-radius: 18px;
    }

    .panel-card-header,
    .panel-card-body,
    .mini-stats,
    .mini-stat,
    .staff-mini-box,
    .tracking-total-box,
    .total-box {
        padding-left: 16px;
        padding-right: 16px;
    }

    .modern-table {
        min-width: 640px;
    }

    .global-popup-dialog,
    .image-lightbox-img {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 640px) {
    .page-header h1 {
        font-size: 28px;
    }

    .topbar-title {
        font-size: 18px;
    }

    .user-chip {
        padding: 6px 10px;
    }

    .modern-table {
        min-width: 100%;
    }

    .modern-table,
    .modern-table thead,
    .modern-table tbody,
    .modern-table tr,
    .modern-table th,
    .modern-table td {
        display: block;
        width: 100%;
    }

    .modern-table thead {
        display: none;
    }

    .modern-table tbody tr {
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 0;
    }

    .modern-table tbody td {
        border: none;
        border-bottom: 1px dashed #e5e7eb;
        padding: 10px 16px 10px 132px;
        position: relative;
        min-height: 44px;
        white-space: normal !important;
        text-align: left;
    }

    .modern-table tbody td:last-child {
        border-bottom: none;
    }

    .modern-table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        top: 10px;
        width: 100px;
        max-width: 100px;
        font-size: 12px;
        font-weight: 700;
        color: #64748b;
        line-height: 1.4;
    }

    .empty-cell {
        padding-left: 16px !important;
    }

    .empty-cell::before {
        content: '' !important;
    }

    .stat-value {
        font-size: 34px;
    }

    .mini-stat,
    .person-summary-card,
    .detail-summary-box,
    .staff-mini-box,
    .tracking-total-box,
    .total-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .global-popup-header,
    .global-popup-toolbar,
    .global-popup-footer,
    .global-popup-person-head,
    .global-popup-person-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .global-popup-person-controls .popup-radio-option,
    .global-popup-toolbar .btn,
    .global-popup-footer .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .main-content {
        padding-top: 112px !important;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .panel-card-header,
    .modern-table tbody td,
    .mini-stats,
    .mini-stat,
    .staff-mini-box,
    .tracking-total-box,
    .total-box {
        padding-left: 14px;
        padding-right: 14px;
    }

    .modern-table tbody td {
        padding-left: 118px;
    }

    .modern-table tbody td::before {
        width: 86px;
        max-width: 86px;
    }
}

/* =====================================================
   FINAL WIDTH FIX - SAĞ TARAF KESİLME / TAŞMA DÜZELTME
   ===================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    margin: 0;
    padding: 0;
}

.app-shell,
.app-layout,
.layout,
.wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.main-content {
    margin-left: var(--sidebar-width) !important;
    width: calc(100vw - var(--sidebar-width)) !important;
    max-width: calc(100vw - var(--sidebar-width)) !important;
    min-width: 0 !important;
    padding: 98px 18px 24px !important;
    overflow-x: hidden !important;
}

.topbar {
    left: var(--sidebar-width) !important;
    width: calc(100vw - var(--sidebar-width)) !important;
    max-width: calc(100vw - var(--sidebar-width)) !important;
    right: auto !important;
    box-sizing: border-box;
}

.main-content > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.panel-card,
.panel-card-header,
.panel-card-header-row,
.page-header,
.table-wrap,
.modern-form,
.stats-grid,
.dashboard-grid,
.person-summary-grid,
.document-grid,
.job-rate-grid,
.report-stats-grid,
.report-stats-grid-4 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.person-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.dashboard-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.stat-card,
.person-summary-card,
.document-card,
.job-rate-card,
.panel-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    width: 100%;
    min-width: 700px;
}

img,
svg,
canvas,
iframe {
    max-width: 100%;
}

/* 1400 ve altı */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .person-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* 1200 ve altı */
@media (max-width: 1200px) {
    .main-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .person-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* tablet */
@media (max-width: 992px) {
    .main-content {
        margin-left: 220px !important;
        width: calc(100vw - 220px) !important;
        max-width: calc(100vw - 220px) !important;
        padding: 90px 14px 20px !important;
    }

    .topbar {
        left: 220px !important;
        width: calc(100vw - 220px) !important;
        max-width: calc(100vw - 220px) !important;
    }

    .stats-grid,
    .person-summary-grid {
        grid-template-columns: 1fr !important;
    }
}

/* mobil */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 96px 12px 18px !important;
    }

    .topbar {
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        right: 0 !important;
    }

    .stats-grid,
    .person-summary-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =========================
   POPUP PERSONEL LİSTESİ FIX
   ========================= */

.global-popup-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.global-popup-modal.open {
    display: block;
}

.global-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.global-popup-dialog {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.global-popup-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.global-popup-header h3 {
    font-size: 20px;
    margin: 0 0 6px;
}

.global-popup-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.global-popup-badge {
    min-width: 80px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.global-popup-toolbar {
    padding: 16px 24px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.global-popup-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.global-popup-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
}

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

.popup-person-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
    padding: 16px;
}

.popup-person-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.popup-person-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.popup-person-meta {
    min-width: 0;
}

.popup-person-name {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 4px;
}

.popup-person-role {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.popup-status-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.popup-status-option {
    flex: 1;
    min-width: 140px;
}

.popup-status-option input[type="radio"] {
    display: none;
}

.popup-status-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.popup-status-option input[type="radio"]:checked + label {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.popup-status-option.status-off input[type="radio"]:checked + label {
    border-color: #dc2626;
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

@media (max-width: 768px) {
    .global-popup-dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .global-popup-header,
    .global-popup-body,
    .global-popup-footer,
    .global-popup-toolbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .popup-person-grid {
        grid-template-columns: 1fr;
    }

    .popup-status-options {
        flex-direction: column;
    }
}
/* =========================================
   POPUP AYARLARI SAYFASI FIX
   ========================================= */

.settings-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

.settings-job-card {
    width: 100%;
    min-width: 0;
}

.settings-job-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.settings-job-head > div {
    min-width: 0;
}

.settings-job-head h4,
.settings-job-head p {
    word-break: break-word;
}

.settings-job-head .job-rate-toggle {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .settings-job-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =====================================================
   GLOBAL PERSONEL POPUP FIX
   ===================================================== */

.global-popup-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
}

.global-popup-modal.open {
    display: block;
}

.global-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.global-popup-dialog {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    margin: 18px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.global-popup-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.global-popup-header h3 {
    font-size: 22px;
    margin: 0 0 6px;
}

.global-popup-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.global-popup-badge {
    min-width: 86px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.global-popup-toolbar {
    padding: 16px 24px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.global-popup-body {
    padding: 20px 24px;
    max-height: 58vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.global-popup-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
}

/* PERSONEL GRID */
#globalPopupBody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.global-popup-person-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    min-width: 0;
}

.global-popup-person-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.global-popup-person-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.global-popup-person-meta {
    min-width: 0;
}

.global-popup-person-meta h4 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.2;
    color: #111827;
    font-weight: 800;
    word-break: break-word;
}

.global-popup-person-meta p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    word-break: break-word;
}

/* RADIO ALANLARI */
.global-popup-person-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.popup-radio-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.popup-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.popup-radio-option span {
    height: 46px;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s ease;
}

.popup-radio-option input[type="radio"]:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.popup-radio-option input[type="radio"][value="Calismadi"]:checked + span {
    border-color: #dc2626;
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* YERİNE GELEN */
.global-popup-replacement {
    margin-top: 4px;
}

.global-popup-replacement label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.global-popup-replacement select {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.global-popup-replacement select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* BOŞ DURUM */
#globalPopupBody .empty-state-box {
    grid-column: 1 / -1;
}

/* MOBİL */
@media (max-width: 768px) {
    .global-popup-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 18px;
    }

    .global-popup-header,
    .global-popup-toolbar,
    .global-popup-body,
    .global-popup-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    #globalPopupBody {
        grid-template-columns: 1fr;
    }

    .global-popup-person-controls {
        grid-template-columns: 1fr;
    }

    .global-popup-footer .btn,
    .global-popup-toolbar .btn {
        width: 100%;
    }
}
/* =====================================================
   VEHICLE ALERT POPUP FIX
   ===================================================== */

.vehicle-alert-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 4000;
}

.vehicle-alert-modal.open {
    display: block;
}

.vehicle-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.vehicle-alert-dialog {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 32px));
    margin: 48px auto 0;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.vehicle-alert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #fee2e2;
    background: linear-gradient(180deg, #fff5f5 0%, #fffafa 100%);
}

.vehicle-alert-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.24);
}

.vehicle-alert-header h3 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.1;
    color: #991b1b;
    font-weight: 800;
}

.vehicle-alert-header p {
    margin: 0;
    font-size: 14px;
    color: #7f1d1d;
    line-height: 1.5;
}

.vehicle-alert-body {
    padding: 26px;
    background: #ffffff;
}

.vehicle-alert-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    background: #111827;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.vehicle-alert-name {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
    line-height: 1.25;
    word-break: break-word;
}

.vehicle-alert-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    margin-bottom: 20px;
}

.vehicle-alert-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.vehicle-alert-meta strong {
    font-size: 18px;
    font-weight: 900;
    color: #dc2626;
}

.vehicle-alert-message {
    border-radius: 24px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    padding: 28px 24px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.22);
    text-transform: uppercase;
}

.vehicle-alert-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 26px 26px;
    background: #ffffff;
}

.vehicle-alert-footer .btn {
    min-width: 160px;
    height: 46px;
    font-size: 14px;
    font-weight: 700;
}

body.vehicle-alert-open {
    overflow: hidden;
}

/* küçük masaüstü */
@media (max-width: 992px) {
    .vehicle-alert-dialog {
        width: min(680px, calc(100vw - 24px));
        margin-top: 26px;
    }

    .vehicle-alert-header h3 {
        font-size: 24px;
    }

    .vehicle-alert-plate {
        font-size: 24px;
    }

    .vehicle-alert-name {
        font-size: 22px;
    }

    .vehicle-alert-message {
        font-size: 28px;
        padding: 24px 20px;
    }
}

/* tablet / mobil */
@media (max-width: 768px) {
    .vehicle-alert-dialog {
        width: calc(100vw - 16px);
        margin: 8px auto 0;
        border-radius: 20px;
    }

    .vehicle-alert-header {
        padding: 16px 16px 14px;
        align-items: flex-start;
    }

    .vehicle-alert-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 16px;
        font-size: 24px;
    }

    .vehicle-alert-header h3 {
        font-size: 22px;
    }

    .vehicle-alert-header p {
        font-size: 13px;
    }

    .vehicle-alert-body {
        padding: 16px;
    }

    .vehicle-alert-plate {
        width: 100%;
        justify-content: center;
        font-size: 22px;
        margin-bottom: 14px;
    }

    .vehicle-alert-name {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .vehicle-alert-meta {
        padding: 14px;
        margin-bottom: 16px;
    }

    .vehicle-alert-meta strong {
        font-size: 16px;
    }

    .vehicle-alert-message {
        font-size: 24px;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .vehicle-alert-footer {
        padding: 0 16px 16px;
        flex-direction: column;
    }

    .vehicle-alert-footer .btn {
        width: 100%;
        min-width: 0;
    }
}

/* çok küçük ekran */
@media (max-width: 480px) {
    .vehicle-alert-header {
        gap: 12px;
    }

    .vehicle-alert-header h3 {
        font-size: 20px;
    }

    .vehicle-alert-plate {
        font-size: 20px;
        min-height: 48px;
    }

    .vehicle-alert-name {
        font-size: 18px;
    }

    .vehicle-alert-message {
        font-size: 20px;
        line-height: 1.25;
    }
}
/* =====================================================
   FULL FINAL POPUP SYSTEM CSS
   GLOBAL PERSONEL POPUP + VEHICLE ALERT POPUP
   ===================================================== */

/* ===============================
   GLOBAL PERSONEL POPUP
   =============================== */

.global-popup-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
}

.global-popup-modal.open {
    display: block;
}

.global-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.global-popup-dialog {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    margin: 18px auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
}

.global-popup-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.global-popup-header h3 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #111827;
    font-weight: 800;
}

.global-popup-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.global-popup-badge {
    min-width: 90px;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.global-popup-toolbar {
    padding: 16px 24px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.global-popup-body {
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 58vh;
}

.global-popup-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
}

/* PERSONEL GRID */
#globalPopupBody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.global-popup-person-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 16px;
    min-width: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.global-popup-person-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.global-popup-person-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.global-popup-person-meta {
    min-width: 0;
}

.global-popup-person-meta h4 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.2;
    color: #111827;
    font-weight: 800;
    word-break: break-word;
}

.global-popup-person-meta p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* RADIO */
.global-popup-person-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.popup-radio-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.popup-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.popup-radio-option span {
    height: 46px;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s ease;
}

.popup-radio-option input[type="radio"]:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.popup-radio-option input[type="radio"][value="Calismadi"]:checked + span {
    border-color: #dc2626;
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* REPLACEMENT */
.global-popup-replacement {
    margin-top: 4px;
}

.global-popup-replacement label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.global-popup-replacement select {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.global-popup-replacement select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* EMPTY */
#globalPopupBody .empty-state-box {
    grid-column: 1 / -1;
}

/* ===============================
   VEHICLE ALERT POPUP
   =============================== */

.vehicle-alert-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 4000;
}

.vehicle-alert-modal.open {
    display: block;
}

.vehicle-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.vehicle-alert-dialog {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 32px));
    margin: 48px auto 0;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.vehicle-alert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #fee2e2;
    background: linear-gradient(180deg, #fff5f5 0%, #fffafa 100%);
}

.vehicle-alert-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.24);
}

.vehicle-alert-header h3 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.1;
    color: #991b1b;
    font-weight: 800;
}

.vehicle-alert-header p {
    margin: 0;
    font-size: 14px;
    color: #7f1d1d;
}

.vehicle-alert-body {
    padding: 26px;
}

.vehicle-alert-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.vehicle-alert-name {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
}

.vehicle-alert-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    margin-bottom: 20px;
}

.vehicle-alert-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.vehicle-alert-meta strong {
    font-size: 18px;
    font-weight: 900;
    color: #dc2626;
}

.vehicle-alert-message {
    border-radius: 24px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    padding: 28px 24px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.22);
    text-transform: uppercase;
}

.vehicle-alert-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 26px 26px;
}

.vehicle-alert-footer .btn {
    min-width: 160px;
}

body.vehicle-alert-open {
    overflow: hidden;
}

/* ===============================
   MOBILE
   =============================== */

@media (max-width: 768px) {
    .global-popup-dialog,
    .vehicle-alert-dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
        border-radius: 18px;
    }

    .global-popup-header,
    .global-popup-toolbar,
    .global-popup-body,
    .global-popup-footer,
    .vehicle-alert-header,
    .vehicle-alert-body,
    .vehicle-alert-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    #globalPopupBody {
        grid-template-columns: 1fr;
    }

    .global-popup-person-controls {
        grid-template-columns: 1fr;
    }

    .vehicle-alert-footer {
        flex-direction: column;
    }

    .vehicle-alert-footer .btn,
    .global-popup-toolbar .btn,
    .global-popup-footer .btn {
        width: 100%;
    }

    .vehicle-alert-message {
        font-size: 22px;
        padding: 20px 16px;
    }

    .vehicle-alert-plate {
        width: 100%;
        justify-content: center;
        font-size: 22px;
    }

    .vehicle-alert-name {
        font-size: 20px;
    }
}
/* =========================================
   NESTED SUBMENU TOGGLE FIX
   ========================================= */

.submenu-toggle {
    width: 100%;
    border: none;
    background: transparent !important;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.submenu-toggle:hover {
    background: rgba(59,130,246,0.08) !important;
}

.submenu-toggle.active {
    background: rgba(59,130,246,0.12) !important;
    color: #ffffff;
}

.sidebar-accordion.nested .submenu-item {
    background: transparent !important;
    box-shadow: none !important;
}

/* nested submenu iç çizgiler */
.nested-submenu {
    margin-left: 18px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

/* ok işareti */
.submenu-toggle .accordion-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
    color: rgba(255,255,255,0.75);
}

.sidebar-accordion.open > .submenu-toggle .accordion-arrow {
    transform: rotate(180deg);
}
/* =========================================
   DASHBOARD VEHICLE ALERTS FIX
   ========================================= */

.vehicle-inline-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 10px 0;
}

.vehicle-inline-alert-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(15,23,42,0.04);
    transition: all 0.25s ease;
}

.vehicle-inline-alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15,23,42,0.08);
}

.vehicle-inline-alert-card strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.vehicle-inline-alert-card span {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.vehicle-inline-alert-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #dc2626;
    font-weight: 700;
    background: #fef2f2;
    border-radius: 12px;
    padding: 10px 12px;
}
/* =====================================================
   FIRM A / KULLANICI AYARLARI PREMIUM UI
   ===================================================== */

.settings-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.settings-job-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf7;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
}

.settings-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.settings-job-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.settings-job-head h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.settings-job-head p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.settings-job-body {
    padding: 18px 20px 20px;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
}

.detail-summary-box {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 18px;
}

.detail-summary-box span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.detail-summary-box strong {
    display: block;
    font-size: 17px;
    color: #111827;
    line-height: 1.4;
}

.form-field input[type="password"] {
    width: 100%;
}

.form-field input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.job-rate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    font-weight: 700;
    color: #374151;
}

.job-rate-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-passive {
    background: #fee2e2;
    color: #991b1b;
}

/* Firma Bilgileri kart düzeltme */
.panel-card .modern-form > .form-grid {
    width: 100%;
}

/* Mobil uyum */
@media (max-width: 992px) {
    .settings-job-grid,
    .detail-summary-grid {
        grid-template-columns: 1fr;
    }
}
.brand-logo-image-wrap {
    background: rgba(255,255,255,0.96);
    padding: 4px;
    overflow: hidden;
}

.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}
/* =========================================
   DASHBOARD VEHICLE TIMELINE PANEL
   ========================================= */

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

.vehicle-timeline-column {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf7;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.vehicle-timeline-head {
    padding: 18px 18px 16px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vehicle-timeline-head h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.vehicle-timeline-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.vehicle-timeline-head.sigorta {
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf5 100%);
}
.vehicle-timeline-head.sigorta span {
    background: #ffedd5;
    color: #c2410c;
}

.vehicle-timeline-head.muayene {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}
.vehicle-timeline-head.muayene span {
    background: #dbeafe;
    color: #1d4ed8;
}

.vehicle-timeline-head.bakim {
    background: linear-gradient(180deg, #ecfdf5 0%, #f5fffb 100%);
}
.vehicle-timeline-head.bakim span {
    background: #d1fae5;
    color: #047857;
}

.vehicle-timeline-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vehicle-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    padding: 14px;
}

.vehicle-timeline-line {
    width: 10px;
    min-width: 10px;
    align-self: stretch;
    border-radius: 999px;
    background: #cbd5e1;
}

.vehicle-timeline-item.warning .vehicle-timeline-line {
    background: #f59e0b;
}

.vehicle-timeline-item.today .vehicle-timeline-line {
    background: #3b82f6;
}

.vehicle-timeline-item.danger .vehicle-timeline-line {
    background: #ef4444;
}

.vehicle-timeline-content {
    flex: 1;
    min-width: 0;
}

.vehicle-timeline-content strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.vehicle-timeline-content span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.vehicle-timeline-content p {
    margin: 0;
    font-size: 13px;
    color: #334155;
    font-weight: 700;
}

.vehicle-timeline-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.vehicle-timeline-badge.warning {
    background: #fef3c7;
    color: #b45309;
}

.vehicle-timeline-badge.today {
    background: #dbeafe;
    color: #1d4ed8;
}

.vehicle-timeline-badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 1200px) {
    .vehicle-timeline-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vehicle-timeline-item {
        flex-direction: column;
    }

    .vehicle-timeline-badge {
        align-self: flex-start;
    }
}
/* =========================================
   VEHICLE TIMELINE COLOR LEVELS
   ========================================= */

.vehicle-timeline-item.safe .vehicle-timeline-line {
    background: #22c55e;
}

.vehicle-timeline-item.upcoming .vehicle-timeline-line {
    background: #3b82f6;
}

.vehicle-timeline-item.warning .vehicle-timeline-line {
    background: #facc15;
}

.vehicle-timeline-item.critical .vehicle-timeline-line {
    background: #f97316;
}

.vehicle-timeline-item.today .vehicle-timeline-line {
    background: #ef4444;
}

.vehicle-timeline-item.expired .vehicle-timeline-line {
    background: #991b1b;
}

.vehicle-timeline-badge.safe {
    background: #dcfce7;
    color: #166534;
}

.vehicle-timeline-badge.upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.vehicle-timeline-badge.warning {
    background: #fef9c3;
    color: #a16207;
}

.vehicle-timeline-badge.critical {
    background: #ffedd5;
    color: #c2410c;
}

.vehicle-timeline-badge.today {
    background: #fee2e2;
    color: #b91c1c;
}

.vehicle-timeline-badge.expired {
    background: #7f1d1d;
    color: #ffffff;
}
/* =========================================
   VEHICLE TIMELINE PANEL
   ========================================= */

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

.vehicle-timeline-column {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf7;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.vehicle-timeline-head {
    padding: 18px 18px 16px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vehicle-timeline-head h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.vehicle-timeline-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.vehicle-timeline-head.sigorta {
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf5 100%);
}
.vehicle-timeline-head.sigorta span {
    background: #ffedd5;
    color: #c2410c;
}

.vehicle-timeline-head.muayene {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}
.vehicle-timeline-head.muayene span {
    background: #dbeafe;
    color: #1d4ed8;
}

.vehicle-timeline-head.bakim {
    background: linear-gradient(180deg, #ecfdf5 0%, #f5fffb 100%);
}
.vehicle-timeline-head.bakim span {
    background: #d1fae5;
    color: #047857;
}

.vehicle-timeline-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vehicle-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    padding: 14px;
}

.vehicle-timeline-line {
    width: 10px;
    min-width: 10px;
    align-self: stretch;
    border-radius: 999px;
    background: #cbd5e1;
}

.vehicle-timeline-item.safe .vehicle-timeline-line {
    background: #22c55e;
}

.vehicle-timeline-item.upcoming .vehicle-timeline-line {
    background: #3b82f6;
}

.vehicle-timeline-item.warning .vehicle-timeline-line {
    background: #facc15;
}

.vehicle-timeline-item.critical .vehicle-timeline-line {
    background: #f97316;
}

.vehicle-timeline-item.today .vehicle-timeline-line {
    background: #ef4444;
}

.vehicle-timeline-item.expired .vehicle-timeline-line {
    background: #991b1b;
}

.vehicle-timeline-content {
    flex: 1;
    min-width: 0;
}

.vehicle-timeline-content strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.vehicle-timeline-content span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.vehicle-timeline-content p {
    margin: 0;
    font-size: 13px;
    color: #334155;
    font-weight: 700;
}

.vehicle-timeline-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.vehicle-timeline-badge.safe {
    background: #dcfce7;
    color: #166534;
}

.vehicle-timeline-badge.upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.vehicle-timeline-badge.warning {
    background: #fef9c3;
    color: #a16207;
}

.vehicle-timeline-badge.critical {
    background: #ffedd5;
    color: #c2410c;
}

.vehicle-timeline-badge.today {
    background: #fee2e2;
    color: #b91c1c;
}

.vehicle-timeline-badge.expired {
    background: #7f1d1d;
    color: #ffffff;
}

/* dashboard kritik araç kartları */
.vehicle-inline-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 10px 0;
}

.vehicle-inline-alert-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(15,23,42,0.04);
    transition: all 0.25s ease;
}

.vehicle-inline-alert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.vehicle-inline-alert-card strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.vehicle-inline-title {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.vehicle-inline-alert-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 12px;
}

.vehicle-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.vehicle-inline-badge.warning {
    background: #fef9c3;
    color: #a16207;
}

.vehicle-inline-badge.critical {
    background: #ffedd5;
    color: #c2410c;
}

.vehicle-inline-badge.today {
    background: #fee2e2;
    color: #b91c1c;
}

.vehicle-inline-badge.expired {
    background: #7f1d1d;
    color: #ffffff;
}

.vehicle-alert-warning p {
    background: #fef9c3;
    color: #a16207;
}

.vehicle-alert-critical p {
    background: #ffedd5;
    color: #c2410c;
}

.vehicle-alert-today p {
    background: #fee2e2;
    color: #b91c1c;
}

.vehicle-alert-expired p {
    background: #7f1d1d;
    color: #ffffff;
}

@media (max-width: 1200px) {
    .vehicle-timeline-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vehicle-timeline-item {
        flex-direction: column;
    }

    .vehicle-timeline-badge {
        align-self: flex-start;
    }
}