/* ==========================================================================
   Tedarikci Portal - Modern Design System
   ========================================================================== */

:root {
    --app-font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary-color: #0284c7;
    --success-color: #10b981;
    --success-light: #ecfdf5;
    --warning-color: #f59e0b;
    --warning-light: #fffbeb;
    --error-color: #ef4444;
    --error-light: #fef2f2;
    --info-color: #3b82f6;
    --info-light: #eff6ff;
    --bg-main: #f8fafc;
    --surface-card: #ffffff;
    --border-subtle: #e2e8f0;
    --border-focus: #93c5fd;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

body {
    font-family: var(--app-font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1:focus {
    outline: none;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Layout Elements */
.portal-layout {
    min-height: 100vh;
    background: var(--bg-main);
}

.portal-main {
    background: var(--bg-main);
}

.portal-appbar {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary) !important;
}

.portal-drawer {
    border-right: 1px solid var(--border-subtle) !important;
    background: #ffffff !important;
}

.drawer-footer {
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

/* Navigation Links */
.mud-nav-link {
    border-radius: var(--radius-md) !important;
    margin: 3px 8px !important;
    padding: 9px 12px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    color: #475569 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-nav-link:hover {
    background-color: #f1f5f9 !important;
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

.mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.mud-nav-link .mud-nav-link-icon {
    margin-right: 12px !important;
    color: inherit !important;
    transition: transform 0.2s ease;
}

.mud-nav-link:hover .mud-nav-link-icon {
    transform: scale(1.1);
}

/* Page Headers */
.page-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-subtitle {
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
    margin-top: 2px;
}

/* Modern Card / Surface */
.modern-card {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    box-shadow: var(--shadow-md) !important;
}

/* Dashboard Metric Cards */
.stat-card {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
    border-color: #cbd5e1 !important;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.stat-primary::after { background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%); }
.stat-card.stat-success::after { background: linear-gradient(180deg, #10b981 0%, #047857 100%); }
.stat-card.stat-info::after { background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%); }
.stat-card.stat-warning::after { background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%); }
.stat-card.stat-secondary::after { background: linear-gradient(180deg, #6366f1 0%, #4338ca 100%); }

.stat-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.stat-card:hover .stat-icon-badge {
    transform: scale(1.08) rotate(3deg);
}

.stat-icon-primary { background: #eff6ff; color: #2563eb; }
.stat-icon-success { background: #ecfdf5; color: #059669; }
.stat-icon-info { background: #f0f9ff; color: #0284c7; }
.stat-icon-warning { background: #fffbeb; color: #d97706; }
.stat-icon-secondary { background: #eef2ff; color: #4f46e5; }

.stat-value {
    font-weight: 800 !important;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Toolbar & Action Bars */
.toolbar-paper {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 14px !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 1rem;
}

/* Modern DataGrid */
.modern-datagrid {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
}

.modern-datagrid .mud-table-head {
    background-color: #f8fafc !important;
}

.modern-datagrid .mud-table-head .mud-table-cell {
    font-size: 0.775rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569 !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 12px 14px !important;
    white-space: nowrap;
}

.modern-datagrid .mud-table-body .mud-table-row {
    transition: background-color 0.15s ease;
}

.modern-datagrid .mud-table-body .mud-table-row:hover {
    background-color: #f1f5f9 !important;
    cursor: pointer;
}

.modern-datagrid .mud-table-body .mud-table-cell {
    font-size: 0.835rem !important;
    color: var(--text-primary);
    padding: 11px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.grid-alternating .mud-table-row:nth-child(even) {
    background-color: #fafbfd !important;
}

.grid-alternating .mud-table-row:nth-child(even):hover {
    background-color: #f1f5f9 !important;
}

/* DataGrid Input Helpers */
.grid-input {
    min-width: 100px;
    max-width: 160px;
}

.grid-input-date {
    min-width: 130px;
    max-width: 170px;
}

/* Modern DataGrid - Card Mode (mud-table-cardview & Mobile Breakpoints) */
.modern-datagrid.mud-table-cardview,
.modern-datagrid .mud-table-cardview {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.modern-datagrid.mud-table-cardview .mud-table-container,
.modern-datagrid .mud-table-cardview .mud-table-container {
    max-height: none !important;
    overflow: visible !important;
}

.modern-datagrid.mud-table-cardview .mud-table-head,
.modern-datagrid .mud-table-cardview .mud-table-head {
    display: none !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body,
.modern-datagrid .mud-table-cardview .mud-table-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 2px 0 !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-row:not(.mud-table-group-header):not(.mud-table-row-group-header),
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-row:not(.mud-table-group-header):not(.mud-table-row-group-header) {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-row:not(.mud-table-group-header):not(.mud-table-row-group-header):hover,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-row:not(.mud-table-group-header):not(.mud-table-row-group-header):hover {
    border-color: #cbd5e1 !important;
    box-shadow: var(--shadow-md) !important;
    background: #ffffff !important;
}

.grid-alternating.mud-table-cardview .mud-table-body .mud-table-row:nth-child(even),
.grid-alternating .mud-table-cardview .mud-table-body .mud-table-row:nth-child(even) {
    background-color: #ffffff !important;
}

/* Reset sticky styles inside cards */
.modern-datagrid.mud-table-cardview .mud-table-cell,
.modern-datagrid.mud-table-cardview .mud-table-cell-sticky-left,
.modern-datagrid.mud-table-cardview .mud-table-cell-sticky-right,
.modern-datagrid.mud-table-cardview .mud-table-cell-sticky-top,
.modern-datagrid .mud-table-cardview .mud-table-cell,
.modern-datagrid .mud-table-cardview .mud-table-cell-sticky-left,
.modern-datagrid .mud-table-cardview .mud-table-cell-sticky-right,
.modern-datagrid .mud-table-cardview .mud-table-cell-sticky-top {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
}

/* Card cells */
.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.85rem !important;
    gap: 12px !important;
    min-height: 42px !important;
    text-align: right !important;
    background: transparent !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell:last-child,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell:last-child {
    border-bottom: none !important;
}

/* Card labels from data-label */
.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell::before,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell::before {
    content: attr(data-label);
    font-size: 0.775rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: var(--text-secondary) !important;
    text-align: left !important;
    flex: 0 1 auto !important;
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 48% !important;
    line-height: 1.3 !important;
}

/* Action column cell styling */
.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell[data-label="İşlem"],
.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell:first-child:has(.seri-olustur-btn),
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell[data-label="İşlem"],
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell:first-child:has(.seri-olustur-btn) {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 8px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Form controls inside card cells */
.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell .mud-input-control,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell .mud-input-control {
    margin: 0 !important;
    width: 100% !important;
    max-width: 170px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell .mud-input-outlined,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell .mud-input-outlined {
    background-color: #ffffff !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-cell .mud-input-slot,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-cell .mud-input-slot {
    font-size: 0.825rem !important;
    padding: 4px 8px !important;
}

/* Group headers in card mode */
.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-group-header,
.modern-datagrid.mud-table-cardview .mud-table-body tr.mud-table-row-group-header,
.modern-datagrid.mud-table-cardview .mud-table-body tr.mud-table-row:has(.mud-table-cell-group),
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-group-header,
.modern-datagrid .mud-table-cardview .mud-table-body tr.mud-table-row-group-header,
.modern-datagrid .mud-table-cardview .mud-table-body tr.mud-table-row:has(.mud-table-cell-group) {
    display: block !important;
    background: #f1f5f9 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    margin: 14px 0 6px 0 !important;
    padding: 2px 4px !important;
    box-shadow: none !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-group-header .mud-table-cell,
.modern-datagrid.mud-table-cardview .mud-table-body tr.mud-table-row-group-header .mud-table-cell,
.modern-datagrid.mud-table-cardview .mud-table-body tr.mud-table-row:has(.mud-table-cell-group) .mud-table-cell,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-group-header .mud-table-cell,
.modern-datagrid .mud-table-cardview .mud-table-body tr.mud-table-row-group-header .mud-table-cell,
.modern-datagrid .mud-table-cardview .mud-table-body tr.mud-table-row:has(.mud-table-cell-group) .mud-table-cell {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 10px !important;
    text-align: left !important;
    min-height: auto !important;
}

.modern-datagrid.mud-table-cardview .mud-table-body .mud-table-group-header .mud-table-cell::before,
.modern-datagrid.mud-table-cardview .mud-table-body tr.mud-table-row-group-header .mud-table-cell::before,
.modern-datagrid.mud-table-cardview .mud-table-body tr.mud-table-row:has(.mud-table-cell-group) .mud-table-cell::before,
.modern-datagrid .mud-table-cardview .mud-table-body .mud-table-group-header .mud-table-cell::before,
.modern-datagrid .mud-table-cardview .mud-table-body tr.mud-table-row-group-header .mud-table-cell::before,
.modern-datagrid .mud-table-cardview .mud-table-body tr.mud-table-row:has(.mud-table-cell-group) .mud-table-cell::before {
    content: none !important;
    display: none !important;
}

/* Mobile Screen Fallbacks (< 600px) */
@media (max-width: 600px) {
    .modern-datagrid .mud-table-container {
        max-height: none !important;
    }

    .grid-input,
    .grid-input-date {
        min-width: 0 !important;
        width: 100% !important;
    }

    .sevkiyat-actions-stack {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .sevkiyat-action-btn {
        width: 100% !important;
    }
}

/* Badges and Chips */
.status-pill {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.02em;
}

.status-pill.pill-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.status-pill.pill-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.status-pill.pill-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.status-pill.pill-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.status-pill.pill-neutral {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.pill-success .status-dot { background-color: #10b981; }
.pill-warning .status-dot { background-color: #f59e0b; }
.pill-info .status-dot { background-color: #3b82f6; }
.pill-danger .status-dot { background-color: #ef4444; }
.pill-neutral .status-dot { background-color: #64748b; }

/* Login Experience */
.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #eff6ff 0%, #f8fafc 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.login-bg-decor {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.login-bg-decor-2 {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0) 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.brand-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.35);
    margin: 0 auto 8px auto;
    color: white;
}

.login-header {
    text-align: center;
}

.login-brand-mark {
    margin: 0 0 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: center;
}

.login-subtitle {
    margin-top: 0.65rem !important;
    color: #64748b !important;
}

.login-fallback-title {
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
}

.login-company-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0.25rem 0.5rem;
    max-width: 280px;
    background: transparent;
    border: none;
}

.login-company-logo {
    max-width: 240px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.login-change-company {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

.login-change-company:hover:not(:disabled) {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}

.login-api-alert {
    border-radius: 12px !important;
}

.appbar-company-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.appbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    padding: 6px 12px 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    max-width: min(320px, 42vw);
}

.appbar-user-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
}

.appbar-user-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.appbar-user-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appbar-user-cari {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appbar-page-header {
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-subtle);
    min-width: 0;
}

.appbar-page-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
    white-space: nowrap;
}

.appbar-page-info {
    color: #94a3b8;
    cursor: help;
    transition: color .15s ease;
}

.appbar-page-info:hover {
    color: #2563eb;
}

/* —— Company select —— */
.company-select-shell {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14, 116, 144, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(30, 64, 175, 0.25), transparent 50%),
        linear-gradient(165deg, #060b14 0%, #0b1220 45%, #111827 100%);
    color: #e2e8f0;
}

.company-select-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.55;
}

.company-select-glow-a {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: rgba(14, 165, 233, 0.22);
    animation: company-float 12s ease-in-out infinite;
}

.company-select-glow-b {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -60px;
    background: rgba(249, 168, 37, 0.12);
    animation: company-float 14s ease-in-out infinite reverse;
}

.company-select-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}

.company-select-content {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.company-select-hero {
    text-align: center;
    animation: company-rise 0.7s ease-out both;
}

.company-select-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.company-select-brand {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #f8fafc;
    text-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}

.company-select-lead {
    margin: 0.85rem 0 0;
    font-size: 1.05rem;
    color: #94a3b8;
    font-weight: 500;
}

.company-select-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .company-select-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

.company-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.35rem 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.95) 100%);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: center;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
    animation: company-rise 0.8s ease-out both;
}

.company-card:nth-child(2) { animation-delay: 0.08s; }
.company-card:nth-child(3) { animation-delay: 0.16s; }

.company-card:hover:not(:disabled) {
    transform: translateY(-8px) scale(1.01);
    border-color: color-mix(in srgb, var(--company-accent, #38bdf8) 55%, transparent);
    box-shadow:
        0 24px 48px -20px rgba(0, 0, 0, 0.85),
        0 0 0 1px color-mix(in srgb, var(--company-accent, #38bdf8) 35%, transparent),
        0 0 36px -8px color-mix(in srgb, var(--company-accent, #38bdf8) 45%, transparent);
}

.company-card:disabled {
    opacity: 0.65;
    cursor: wait;
}

.company-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 35%, color-mix(in srgb, var(--company-accent, #38bdf8) 12%, transparent) 50%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.company-card:hover .company-card-shine {
    opacity: 1;
}

.company-card-logo-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: transparent;
    border: none;
    padding: 1.1rem 1.25rem;
}

.company-card-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.company-card-logo-fallback {
    font-size: 2rem;
    font-weight: 800;
    color: var(--company-accent, #38bdf8);
}

.company-card-name {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f1f5f9;
}

.company-card-cta {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--company-accent, #38bdf8) 85%, #fff);
    opacity: 0.85;
}

.company-select-footer {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
    animation: company-rise 1s ease-out both;
}

.company-select-loading {
    padding: 2rem;
}

.company-select-alert {
    max-width: 520px;
}

@keyframes company-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes company-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, -18px); }
}

/* Button & Input Polish */
.mud-button {
    font-weight: 600 !important;
    letter-spacing: 0.015em !important;
    border-radius: var(--radius-md) !important;
    text-transform: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.3) !important;
}

.mud-button-filled.mud-button-filled-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 14px -2px rgba(37, 99, 235, 0.45) !important;
    transform: translateY(-1px);
}

.mud-button-filled.mud-button-filled-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.3) !important;
}

.mud-button-filled.mud-button-filled-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 14px -2px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-1px);
}

.mud-input-outlined {
    border-radius: var(--radius-md) !important;
}

/* Designer & Inplace Reports */
.designer-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
}

.designer-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: #ffffff;
    flex: 0 0 auto;
    font-family: var(--app-font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.designer-back {
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.designer-back:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.designer-host {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #10b981;
}

.invalid {
    outline: 1px solid #ef4444;
}

.validation-message {
    color: #ef4444;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--radius-md);
}

.blazor-error-boundary::after {
    content: "Bir hata oluştu.";
}

#blazor-error-ui {
    background: #fee2e2;
    color: #991b1b;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
    font-size: 0.875rem;
    border-top: 1px solid #fca5a5;
}

#blazor-error-ui .reload {
    color: #1d4ed8;
    margin-left: 0.5rem;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

/* Teslimat ajandası */
.ajanda-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - var(--mud-appbar-height, 64px) - 40px);
    height: calc(100dvh - var(--mud-appbar-height, 64px) - 40px);
}

.ajanda-page > .ajanda-toolbar {
    flex: 0 0 auto;
}

.ajanda-page > .ajanda-layout {
    flex: 1 1 auto;
    min-height: 0;
}

.ajanda-toolbar {
    padding: 12px 16px;
}

.ajanda-month-title {
    min-width: 180px;
    text-align: center;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    text-transform: capitalize;
}

.ajanda-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 9px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #334155;
    white-space: nowrap;
}

.ajanda-pill i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.ajanda-pill b {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ajanda-pill.due i { background: #2563eb; }
.ajanda-pill.today i { background: #d97706; }
.ajanda-pill.late i { background: #ef4444; }
.ajanda-pill.sent i { background: #10b981; }

.ajanda-pill.due b { color: #1d4ed8; }
.ajanda-pill.today b { color: #b45309; }
.ajanda-pill.late b { color: #dc2626; }
.ajanda-pill.sent b { color: #059669; }

button.ajanda-pill {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

button.ajanda-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

button.ajanda-pill.active.due {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

button.ajanda-pill.active.today {
    background: #fffbeb;
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.35);
}

button.ajanda-pill.active.late {
    background: #fef2f2;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.ajanda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 440px);
    gap: 14px;
    align-items: stretch;
}

.ajanda-calendar,
.ajanda-side {
    max-height: 100%;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.ajanda-calendar,
.ajanda-side {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.ajanda-weekdays,
.ajanda-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ajanda-weekdays {
    flex: 0 0 auto;
}

.ajanda-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(6, minmax(0, 1fr));
}

.ajanda-weekdays div {
    padding: 10px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
}

.ajanda-day {
    min-height: 0;
    padding: 6px;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    container-type: size;
}

.ajanda-grid > .ajanda-day:nth-last-child(-n+7) { border-bottom: none; }

.ajanda-day:nth-child(7n) { border-right: none; }
.ajanda-weekdays div.weekend { color: #94a3b8; }
.ajanda-day.weekend { background: #fcfcfd; }
.ajanda-day.outside { background: #f8fafc; }
.ajanda-day.outside .ajanda-day-num { color: #94a3b8; }
.ajanda-day.selected { background: #f8fbff; box-shadow: inset 0 0 0 2px #bfdbfe; }
.ajanda-day.is-today .ajanda-day-num {
    background: #2563eb;
    color: #fff;
}

.ajanda-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ajanda-day-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.ajanda-day-count {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.ajanda-day-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* Kısa hücrelerde içerik taşmasın: önce 3. chip ve "+N kalem", sonra miktar satırı ve 2. chip gizlenir */
@container (max-height: 100px) {
    .ajanda-chip:nth-of-type(n+3),
    .ajanda-more { display: none; }
}

@container (max-height: 78px) {
    .ajanda-chip-qty { display: none; }
    .ajanda-chip:nth-of-type(n+2) { display: none; }
}

.ajanda-chip,
.ajanda-more,
.ajanda-card {
    font-family: inherit;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.ajanda-chip {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-radius: 7px;
    padding: 3px 6px;
    line-height: 1.2;
    border-left: 3px solid transparent;
}

.ajanda-chip-code {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.date-column-filter {
    min-width: 260px;
    max-width: 320px;
    padding: 4px 2px;
}

.date-column-filter-title {
    display: block;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b !important;
    margin-bottom: 6px;
}

.date-column-filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ajanda-chip-qty {
    font-size: 10px;
    font-weight: 600;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ajanda-chip.due { background: #eff6ff; color: #1e40af; border-left-color: #2563eb; }
.ajanda-chip.today { background: #fffbeb; color: #92400e; border-left-color: #d97706; }
.ajanda-chip.late { background: #fef2f2; color: #991b1b; border-left-color: #ef4444; }
.ajanda-chip.sent { background: #ecfdf5; color: #065f46; border-left-color: #10b981; }

.ajanda-chip:hover { filter: brightness(.97); }

.ajanda-more {
    background: transparent;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    padding: 0 2px;
}

.ajanda-side-head {
    flex: 0 0 auto;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.ajanda-side-empty {
    padding: 32px 16px;
    text-align: center;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.ajanda-side-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.ajanda-side-actions .mud-checkbox,
.ajanda-card-row .mud-checkbox {
    margin: 0;
}

.ajanda-side-actions .mud-checkbox .mud-typography {
    font-size: 12px;
    font-weight: 700;
}

.ajanda-side-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 14px;
    overflow: auto;
    overscroll-behavior: contain;
}

.ajanda-card-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 6px;
}

.ajanda-card-row > .mud-tooltip-root {
    display: flex;
    align-items: flex-start;
    padding-top: 6px;
}

.ajanda-card-row.selected .ajanda-card {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

button.ajanda-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid transparent;
    border-left-width: 4px;
    white-space: normal;
}

.ajanda-card.due { background: #eff6ff; color: #1e3a8a; border-color: #dbeafe; border-left-color: #2563eb; }
.ajanda-card.today { background: #fffbeb; color: #78350f; border-color: #fde68a; border-left-color: #d97706; }
.ajanda-card.late { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; border-left-color: #ef4444; }
.ajanda-card.sent { background: #ecfdf5; color: #064e3b; border-color: #a7f3d0; border-left-color: #10b981; }

.ajanda-card-top {
    display: flex;
    justify-content: flex-start;
}

.ajanda-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.ajanda-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.ajanda-field > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
}

.ajanda-field > strong {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ajanda-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ajanda-address {
    font-weight: 600 !important;
    font-size: 12px !important;
}

.today-ship {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 22px;
    padding: 22px 22px 20px;
    border-radius: 18px;
    border: 1px solid #dbe7f5;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(37, 99, 235, 0.12), transparent 70%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef6ff 100%);
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.today-ship:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 32px -18px rgba(37, 99, 235, 0.45);
}

.today-ship:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.today-ship.has-items {
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(245, 158, 11, 0.16), transparent 70%),
        linear-gradient(135deg, #ffffff 0%, #fffdf8 48%, #fff7ed 100%);
    border-color: #f3e4c4;
}

.today-ship-glow {
    position: absolute;
    right: -40px;
    top: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.today-ship.has-items .today-ship-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 68%);
}

.today-ship-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.today-ship-mark {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 16px -12px rgba(37, 99, 235, 0.8);
}

.today-ship.has-items .today-ship-mark {
    color: #b45309;
    border-color: #fde68a;
    box-shadow: 0 8px 16px -12px rgba(217, 119, 6, 0.8);
}

.today-ship-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.today-ship-kicker {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.today-ship-copy h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #0f172a;
}

.today-ship-lead {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.today-ship-lead strong {
    color: #b45309;
    font-weight: 800;
}

.today-ship-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 16px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.9);
    pointer-events: none;
}

.today-ship-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.today-ship-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(140px, 1.15fr) minmax(180px, 1.7fr) minmax(120px, 1fr) minmax(96px, 0.7fr);
    gap: 12px 22px;
    align-items: start;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    pointer-events: none;
}

.today-ship-row > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.today-ship-row > div > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
}

.today-ship-row > div > strong {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.today-ship-more {
    align-self: flex-start;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 2px 0;
}

.ajanda-focus-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "kicker kicker"
        "facts action";
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #fcd34d;
    border-left: 5px solid #d97706;
    border-radius: 14px;
    background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 55%, #fef3c7 100%);
    box-shadow: 0 8px 18px -16px rgba(180, 83, 9, 0.85);
}

.ajanda-focus-kicker {
    grid-area: kicker;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #9a3412;
}

.ajanda-focus-kicker span {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #c2410c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.ajanda-focus-facts {
    grid-area: facts;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
    min-width: 0;
}

.ajanda-focus-facts > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ajanda-focus-facts span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b45309;
}

.ajanda-focus-facts strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #431407;
    overflow-wrap: anywhere;
}

.ajanda-focus-facts strong.ajanda-focus-list {
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ajanda-focus-kicker strong {
    color: #7c2d12;
}

.ajanda-focus-clear {
    grid-area: action;
    border: 0;
    background: #c2410c;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 16px -12px rgba(194, 65, 12, 0.9);
}

.ajanda-focus-clear:hover {
    background: #9a3412;
}

.ajanda-focus-row > td {
    background: #fff7ed !important;
    box-shadow: inset 3px 0 0 #d97706;
}

@media (max-width: 900px) {
    .ajanda-focus-bar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "kicker"
            "facts"
            "action";
    }
    .ajanda-focus-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .ajanda-page { height: auto; }
    .ajanda-page > .ajanda-layout { flex: 0 0 auto; }
    .ajanda-layout { grid-template-columns: 1fr; }
    .ajanda-calendar { height: auto; }
    .ajanda-side { height: auto; max-height: none; }
    .ajanda-side-list { flex: 0 1 auto; max-height: 60vh; }
    .ajanda-grid { grid-template-rows: auto; }
    .ajanda-day { min-height: 92px; overflow: visible; container-type: normal; }
    .ajanda-day-items { overflow: visible; }
    .today-ship-row { grid-template-columns: 1fr 1fr; }
    .today-ship-head { flex-wrap: wrap; }
    .today-ship-cta { width: 100%; justify-content: center; }
}
