
/* Reservations Table Styles */
#kt_reservations_table th[class*="min-w-"] { min-width: 0 !important; }

#kt_reservations_table { table-layout: fixed; width: 100%; }
#kt_reservations_table th, 
#kt_reservations_table td {
  white-space: nowrap;
  overflow: hidden; 
  text-overflow: ellipsis;
  vertical-align: middle;
  padding-right: .75rem;
}

#kt_reservations_table th:nth-child(1), #kt_reservations_table td:nth-child(1) { width: 18ch; }
#kt_reservations_table th:nth-child(2), #kt_reservations_table td:nth-child(2) { width: 24ch; }
#kt_reservations_table th:nth-child(3), #kt_reservations_table td:nth-child(3) { width: 12ch; }
#kt_reservations_table th:nth-child(4), #kt_reservations_table td:nth-child(4) { width: 16ch; }
#kt_reservations_table th:nth-child(5), #kt_reservations_table td:nth-child(5) { width: 16ch; }
#kt_reservations_table th:nth-child(6), #kt_reservations_table td:nth-child(6) { width: 4ch;  text-align: center; }
#kt_reservations_table th:nth-child(7), #kt_reservations_table td:nth-child(7) { width: 12ch; text-align: center; }
#kt_reservations_table th:nth-child(8), #kt_reservations_table td:nth-child(8) { width: 8ch; text-align: center; }
#kt_reservations_table th:nth-child(9), #kt_reservations_table td:nth-child(9) { width: 12ch; }
#kt_reservations_table th:nth-child(10), #kt_reservations_table td:nth-child(10) { width: 10ch; text-align: right; }
#kt_reservations_table th:nth-child(11), #kt_reservations_table td:nth-child(11) { width: 10ch; text-align: right; }
#kt_reservations_table th:nth-child(12), #kt_reservations_table td:nth-child(12) { width: 7ch;  text-align: right; }
#kt_reservations_table th:nth-child(13), #kt_reservations_table td:nth-child(13) {
  width: 12ch;
  text-align: right;
}

#kt_reservations_table td:nth-child(13) {
  overflow: visible;
}

/* CRM design system: scoped to the admin shell to avoid affecting public pages. */
.admin-shell {
    --admin-primary: #315b7d; --admin-success: #16845b; --admin-warning: #b7791f;
    --admin-danger: #b42318; --admin-info: #2878a5; --admin-ink: #172033;
    --admin-muted: #667085; --admin-border: #e4eaf0; --admin-surface: #fff;
    --admin-surface-muted: #f7f9fc; background: var(--admin-surface-muted);
}
.header-fixed.toolbar-fixed .wrapper { padding-top: 42px !important; }
.admin-shell { --kt-toolbar-height: 55px; --kt-toolbar-height-tablet-and-mobile: 55px; }
.admin-shell .aside-menu .menu-section { color: #8fa3b8 !important; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.admin-shell .aside-menu .menu-link { border-radius: .55rem; margin: .12rem .65rem; padding-inline: .8rem; }
.admin-shell .aside-menu .menu-link:hover { background: rgba(255,255,255,.06); }
.admin-shell .aside-menu .menu-link.active { background: rgba(0,158,247,.18); box-shadow: inset 3px 0 0 #009ef7; }
.admin-shell .aside-menu .menu-icon { flex: 0 0 2rem; }
.admin-shell .aside-menu .menu-title { line-height: 1.25; }
.admin-shell .aside-scroll { height: calc(100vh - 70px); }
.admin-shell .admin-toolbar-search { min-width: min(100%, 18rem); }
.admin-shell .admin-kpi { height: 100%; padding: 1.25rem; text-decoration: none; }
.admin-shell .admin-kpi-value { color: var(--admin-ink); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.admin-shell .admin-kpi-icon { align-items: center; background: #eef4fa; border-radius: .75rem; color: var(--admin-primary); display: inline-flex; height: 2.75rem; justify-content: center; width: 2.75rem; }
.admin-shell .admin-avatar { align-items: center; background: #eaf0f6; border-radius: 50%; color: var(--admin-primary); display: inline-flex; flex: 0 0 42px; font-weight: 800; height: 42px; justify-content: center; object-fit: cover; width: 42px; }
.admin-shell .admin-action-menu .dropdown-toggle::after { display: none; }
.admin-shell .admin-list-card { padding: 1rem; }
.admin-shell .admin-list-card__meta { color: var(--admin-muted); display: flex; flex-wrap: wrap; font-size: .82rem; gap: .35rem .85rem; }
.admin-shell .admin-list-card__top { align-items: flex-start; display: flex; gap: .75rem; justify-content: space-between; }
.admin-shell .admin-modal-warning { background: #fff7e8; border: 1px solid #f5d08a; border-radius: .7rem; color: #7a4b00; padding: .85rem; }
.admin-page-toolbar { padding: 1.5rem 0 1rem; }
.admin-page-eyebrow { color: var(--admin-muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-page-title { color: var(--admin-ink); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 750; }
.admin-role-badge, .admin-status-badge, .admin-payment-badge, .admin-role-label { align-items: center; border-radius: 999px; display: inline-flex; font-size: .75rem; font-weight: 700; gap: .35rem; padding: .4rem .7rem; }
.admin-role-badge, .admin-role-label { background: #eef4fa; color: var(--admin-primary); }
.admin-status-badge.is-active, .admin-payment-badge.is-paid { background: #eaf8f1; color: var(--admin-success); }
.admin-status-badge.is-pending, .admin-payment-badge.is-pending { background: #fff7e8; color: var(--admin-warning); }
.admin-status-badge.is-inactive, .admin-payment-badge.is-failed { background: #fff0ef; color: var(--admin-danger); }
.admin-card { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: 1rem; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.admin-filter-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; }
.admin-table { margin-bottom: 0; }
.admin-table thead th { color: var(--admin-muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.admin-table tbody td { color: #344054; vertical-align: middle; }
.admin-empty-state, .admin-error-state, .admin-loading-state { color: var(--admin-muted); padding: 3rem 1.5rem; text-align: center; }
.admin-danger-action { color: var(--admin-danger) !important; }
.admin-mobile-list { display: none; }
.admin-auth-shell { background: #f4f7fb; }
.admin-auth-brand { background: linear-gradient(145deg,#172f46,#315b7d); min-height: 100vh; }
.admin-auth-card { background: #fff; border: 1px solid #e4eaf0; border-radius: 1.25rem; padding: clamp(1.5rem,4vw,3rem); }
@media (max-width: 767.98px) {
    .admin-page-toolbar { padding-inline: .5rem; }
    .admin-table-responsive .admin-table { min-width: 760px; }
    .admin-filter-toolbar > * { flex: 1 1 100%; margin-left: 0 !important; width: 100% !important; }
    .admin-desktop-table { display: none; }
    .admin-mobile-list { display: grid; gap: .75rem; }
}
@media (max-width: 991.98px) {
    .admin-shell .admin-page-toolbar .container-xxl { align-items: flex-start !important; }
    .admin-shell .aside-scroll { height: calc(100vh - 70px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .admin-shell *, .admin-auth-shell * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

.admin-shell :focus-visible { outline: 3px solid rgba(49,91,125,.45); outline-offset: 2px; }
.admin-shell .menu-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .menu-link.active { background: rgba(255,255,255,.09); color: #fff; }
.admin-shell button, .admin-shell .btn, .admin-shell .menu-link { min-height: 40px; }

@media (max-width: 767.98px) {
    .admin-card-table, .admin-card-table tbody, .admin-card-table tr, .admin-card-table td { display: block; width: 100%; }
    .admin-card-table thead { display: none; }
    .admin-card-table tr { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: .85rem; margin-bottom: .8rem; padding: .85rem; }
    .admin-card-table td { align-items: center; border: 0 !important; display: flex; gap: 1rem; justify-content: space-between; min-height: 42px; padding: .45rem 0 !important; text-align: right !important; white-space: normal !important; }
    .admin-card-table td::before { color: var(--admin-muted); content: "Bilgi"; flex: 0 0 38%; font-size: .72rem; font-weight: 700; text-align: left; text-transform: uppercase; }
    .admin-card-table td:first-child { border-bottom: 1px solid var(--admin-border) !important; justify-content: flex-start; padding-bottom: .8rem !important; }
    .admin-card-table td:first-child::before { display: none; }
    .admin-user-table td:nth-child(2)::before { content: "E-posta"; }
    .admin-user-table td:nth-child(3)::before { content: "Telefon"; }
    .admin-user-table td:nth-child(4)::before { content: "Durum"; }
    .admin-user-table td:nth-child(5)::before { content: "Rol"; }
    .admin-user-table td:nth-child(6)::before { content: "İşlemler"; }
    .admin-product-table td:nth-child(2)::before { content: "Fiyat"; }
    .admin-product-table td:nth-child(3)::before { content: "Depozito"; }
    .admin-product-table td:nth-child(4)::before { content: "Marka"; }
    .admin-product-table td:nth-child(5)::before { content: "Onay"; }
    .admin-product-table td:nth-child(6)::before { content: "İşlemler"; }
}
