* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #111827;
}

/* Keep the desktop canvas stable when a mouse/trackpad device narrows its window. */
@media (hover: hover) and (pointer: fine) {
    html:not(.login-centered-document),
    html:not(.login-centered-document) body {
        min-width: 1280px;
    }

    html.login-centered-document,
    html.login-centered-document body {
        min-width: 0;
    }

    html.login-centered-document .page-shell {
        max-width: none;
        padding: 0;
    }

}

a {
    color: inherit;
}

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

/* =========================
   FIRST-VISIT INTRO
========================= */

.app-intro {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: none;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(219, 234, 254, 0.94) 0, rgba(238, 242, 255, 0.78) 28%, transparent 58%),
        linear-gradient(145deg, #f8fbff 0%, #eef3ff 48%, #f7f5ff 100%);
    opacity: 1;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

.app-intro[hidden] {
    display: none !important;
}

.app-intro-pending,
.app-intro-running {
    overflow: hidden;
}

.app-intro-pending .app-intro,
.app-intro-running .app-intro {
    display: grid;
}

.app-intro-leaving {
    visibility: hidden;
    opacity: 0;
}

.app-intro-glow {
    position: absolute;
    width: min(86vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), rgba(37, 99, 235, 0.06) 45%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
}

.app-intro-stage {
    position: relative;
    width: min(82vw, 360px);
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.app-intro-logo {
    position: relative;
    z-index: 3;
    width: clamp(92px, 10vw, 116px);
    height: clamp(92px, 10vw, 116px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 32%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow:
        0 28px 54px rgba(37, 99, 235, 0.28),
        0 10px 22px rgba(124, 58, 237, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.42);
    color: #fff;
    font-size: clamp(44px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.06em;
    opacity: 0;
    transform: translateY(14px) scale(0.72) rotate(-5deg);
}

.app-intro-logo::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -65%;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    transform: skewX(-18deg);
}

.app-intro-logo-mark {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.brand-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-intro-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -62%) scale(0.48);
}

.app-intro-orbit-outer {
    width: 236px;
    height: 236px;
}

.app-intro-orbit-inner {
    width: 174px;
    height: 174px;
    border-color: rgba(37, 99, 235, 0.28);
}

.app-intro-progress {
    position: relative;
    z-index: 3;
    width: 104px;
    height: 3px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.13);
    opacity: 0;
}

.app-intro-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: translateX(-105%);
}

.app-intro-running .app-intro-glow {
    animation: app-intro-glow-in 1.4s ease-out both;
}

.app-intro-running .app-intro-logo {
    animation: app-intro-logo-in 0.72s cubic-bezier(0.2, 0.82, 0.25, 1.18) 0.08s both;
}

.app-intro-running .app-intro-logo::after {
    animation: app-intro-shine 0.68s ease 0.62s both;
}

.app-intro-running .app-intro-orbit-outer {
    animation: app-intro-orbit 1.18s cubic-bezier(0.2, 0.72, 0.2, 1) 0.2s both;
}

.app-intro-running .app-intro-orbit-inner {
    animation: app-intro-orbit 1.02s cubic-bezier(0.2, 0.72, 0.2, 1) 0.12s both;
}

.app-intro-running .app-intro-progress {
    animation: app-intro-copy-in 0.35s ease-out 0.68s both;
}

.app-intro-running .app-intro-progress span {
    animation: app-intro-progress 0.78s cubic-bezier(0.65, 0, 0.35, 1) 0.72s both;
}

@keyframes app-intro-logo-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

@keyframes app-intro-orbit {
    0% {
        opacity: 0;
        transform: translate(-50%, -62%) scale(0.48);
    }
    45% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -62%) scale(1.18);
    }
}

@keyframes app-intro-shine {
    from { left: -65%; }
    to { left: 135%; }
}

@keyframes app-intro-copy-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-intro-progress {
    0% { transform: translateX(-105%); }
    72% { transform: translateX(-12%); }
    100% { transform: translateX(0); }
}

@keyframes app-intro-glow-in {
    0% { opacity: 0; transform: scale(0.76); }
    55% { opacity: 1; }
    100% { opacity: 0.72; transform: scale(1.06); }
}

@media (max-width: 768px) and (pointer: coarse) {
    .app-intro-stage {
        width: 88vw;
        min-height: 280px;
    }

    .app-intro-logo {
        width: 96px;
        height: 96px;
        border-radius: 30px;
        font-size: 46px;
    }

    .app-intro-orbit-outer {
        width: 214px;
        height: 214px;
    }

    .app-intro-orbit-inner {
        width: 156px;
        height: 156px;
    }
}

/*
 * Standalone iOS lays the page viewport below the status region. Because the
 * reserved top and bottom regions are unequal, the mathematical viewport
 * centre looks lower than the physical screen centre.
 */
@media (display-mode: standalone) and (max-width: 768px) and (pointer: coarse) {
    .app-intro-stage {
        transform: translateY(clamp(-24px, -2.2dvh, -16px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-intro,
    .app-intro-glow,
    .app-intro-logo,
    .app-intro-logo::after,
    .app-intro-orbit,
    .app-intro-progress,
    .app-intro-progress span {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .app-intro-running .app-intro-logo,
    .app-intro-running .app-intro-progress {
        opacity: 1;
        transform: none;
    }
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8edf5;
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    overflow: hidden;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.brand-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.top-nav-link {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    color: #2563eb;
    background: #eef2ff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.top-nav-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.top-nav-link-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: none;
}

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

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
}

.account-avatar-preview-wrap-has-avatar .header-avatar {
    background: transparent;
}

.header-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.account-avatar-preview {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.account-avatar-preview-wrap {
    position: relative;
    width: 64px;
    height: 64px;
}

.account-avatar-edit-wrap {
    cursor: pointer;
}

.account-avatar-edit-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.88);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(0.9);
    z-index: 2;
}

.account-avatar-preview-wrap:hover .account-avatar-edit-btn,
.account-avatar-preview-wrap:focus-within .account-avatar-edit-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.account-avatar-remove-form {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(0.9);
}

.account-avatar-preview-wrap:hover .account-avatar-remove-form,
.account-avatar-preview-wrap:focus-within .account-avatar-remove-form {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.account-avatar-remove-btn {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.88);
    color: #fff;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.28);
}

.account-avatar-remove-btn:hover {
    background: rgba(185, 28, 28, 0.92);
}

.account-settings-form {
    max-width: 460px;
}

.account-profile-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.account-profile-main-line {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.account-profile-userline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.account-login-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.account-login-value {
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
}

.account-settings-subtitle {
    margin: 4px 0 0;
    color: #64748b;
}

.account-settings-header {
    margin-bottom: 0;
}

.account-hero-card {
    position: static;
    margin-top: 24px;
}

.account-avatar-hidden-form {
    max-width: 0;
    max-height: 0;
    overflow: hidden;
}

.account-tab-link-logs {
    display: inline-flex;
}

.account-nav {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.account-logout-btn {
    display: none !important;
}

.account-settings-page .account-push-card {
    display: none;
}

.account-tab-content {
    display: none;
}

.account-tab-content-active {
    display: block;
}

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

.account-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-card {
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    transition: none;
}

.account-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.14), rgba(14, 165, 233, 0.14));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.account-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #edf0f5;
}

.account-card:hover::before {
    opacity: 0;
}

.account-card-glow {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.account-inline-form-spaced {
    margin-top: 12px;
}

.account-2fa-disable-form[hidden] {
    display: none;
}

.account-2fa-disable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-2fa-disable-actions .btn {
    flex: 1 1 190px;
}

.account-logout-all-form {
    margin-top: 16px;
}

.account-push-mobile-only {
    display: none;
}

.account-push-description {
    line-height: 1.55;
}

.account-push-status {
    min-height: 42px;
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    line-height: 1.45;
}

.account-push-status[data-state="success"] {
    background: #ecfdf5;
    color: #047857;
}

.account-push-status[data-state="error"] {
    background: #fef2f2;
    color: #b91c1c;
}

.account-push-status[data-state="info"] {
    background: #eff6ff;
    color: #1d4ed8;
}

.account-push-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-push-actions .btn {
    flex: 1 1 190px;
}

.account-push-actions .btn[hidden] {
    display: none;
}

.account-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
}

.account-codes-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.account-code-item {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.04em;
}

.section-subtitle {
    margin: 0 0 10px;
    font-size: 16px;
}

.account-inline-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
    color: #991b1b;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(153, 27, 27, 0.12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.account-inline-notice[hidden] {
    display: none;
}

.account-inline-notice-show {
    opacity: 1;
    transform: translateY(0);
}

.account-inline-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.avatar-crop-layout {
    display: flex;
    justify-content: center;
    margin: 6px 0 0;
}

.avatar-crop-modal[hidden] {
    display: none;
}

.avatar-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.avatar-crop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.avatar-crop-modal-card {
    position: relative;
    width: min(500px, 100%);
    border-radius: 18px;
    border: 1px solid #dbe3f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px 12px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.avatar-crop-modal-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.avatar-crop-stage {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 420px);
}

.avatar-crop-frame {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    border: 1px solid #dbe4f2;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #f8fbff, #edf2ff);
    cursor: grab;
}

.avatar-crop-frame:active {
    cursor: grabbing;
}

.avatar-crop-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    border: 2px solid rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.18);
    pointer-events: none;
}

#avatar-crop-image {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

.avatar-crop-controls {
    display: grid;
    gap: 6px;
    width: 100%;
}

.avatar-crop-controls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar-crop-zoom-value {
    min-width: 52px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

.avatar-crop-zoom-input {
    touch-action: none;
    width: 100%;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb var(--avatar-zoom-progress, 0%), #dbeafe var(--avatar-zoom-progress, 0%));
    outline: none;
}

.avatar-crop-zoom-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

.avatar-crop-zoom-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

.avatar-crop-zoom-input::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #dbeafe;
}

.avatar-crop-modal-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
}

.avatar-crop-action-btn {
    min-height: 38px;
    min-width: 110px;
    padding: 0 14px;
}

.avatar-file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff !important;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.account-permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-permission-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.account-permission-option input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.account-managed-users {
    display: grid;
    gap: 14px;
}

.account-managed-user-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.account-managed-user-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.account-managed-user-login {
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.avatar-file-label:visited,
.avatar-file-label:hover,
.avatar-file-label:active,
.avatar-file-label:focus {
    color: #fff !important;
}

.avatar-file-selected {
    margin-top: 10px;
    border: 1px dashed #bfd2f3;
    border-radius: 10px;
    background: #f8fbff;
    padding: 8px 10px;
    font-size: 13px;
    color: #334155;
}

html.avatar-crop-scroll-locked,
body.avatar-crop-scroll-locked {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.recovery-codes-card {
    margin-top: 16px;
    border: 1px solid #d8e3f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 14px;
}

.site-log-output {
    margin: 0;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d8e3f7;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.45;
    overflow: auto;
    max-height: 540px;
    white-space: pre-wrap;
    word-break: break-word;
}

.site-log-output-human {
    margin: 0;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d8e3f7;
    background: #f8fbff;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.5;
    overflow: auto;
    max-height: 540px;
}

.site-log-row {
    padding: 8px 10px;
    border-bottom: 1px solid #dbe7fb;
}

.site-log-row:last-child {
    border-bottom: none;
}

@keyframes accountFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-text-only {
    display: none;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

/* =========================
   PAGE SHELL
========================= */

.page-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* =========================
   COMMON BLOCKS
========================= */

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

.page-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.page-title-strong {
    font-weight: 700;
}

.page-title-light {
    font-weight: 400;
    color: #6b7280;
    margin-left: 8px;
}

.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf0f5;
    margin-bottom: 24px;
}

.section-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, filter 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.97;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: none;
}

.btn-secondary {
    background: #eef2ff;
    color: #2563eb;
}

.btn-tab {
    background: #eef2ff;
    color: #2563eb;
    border: none;
    box-shadow: none;
}

.btn-tab:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-tab-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: none;
}

.btn-tab.btn-tab-active:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-success {
    background: #16a34a;
    color: #ffffff;
    box-shadow: none;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.btn-wide {
    width: 100%;
}

.btn-logout {
    min-height: 40px;
}

.btn-import-shortcut {
    min-width: 44px;
    padding: 0 12px;
}

/* =========================
   FLASH
========================= */

.flash-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;
    width: min(360px, calc(100vw - 32px));
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    pointer-events: none;
}

.flash-message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    border-radius: 14px;
    padding: 13px 14px 13px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    border: 1px solid transparent;
    pointer-events: auto;
}

.flash-message-text {
    flex: 1;
}

.flash-close {
    border: none;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

.flash-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.flash-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.flash-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.flash-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

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

.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-card {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}

.welcome-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.welcome-name {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0.96;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.dashboard-grid-mobile,
.app-bottom-nav {
    display: none;
}

.mobile-push-inbox-trigger,
.mobile-push-inbox-sheet {
    display: none;
}

.dashboard-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf0f5;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.dashboard-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    font-size: 24px;
    margin-bottom: 16px;
}

.dashboard-card-icon svg {
    width: 27px;
    height: 27px;
}

.dashboard-card-icon-blue {
    color: #2563eb;
    background: #dbeafe;
}

.dashboard-card-icon-purple {
    color: #7c3aed;
    background: #ede9fe;
}

.dashboard-card-icon-amber {
    color: #d97706;
    background: #fef3c7;
}

.dashboard-card-icon-rose {
    color: #e11d48;
    background: #ffe4e6;
}

.dashboard-card-icon-green {
    color: #15803d;
    background: #dcfce7;
}

.dashboard-card-icon-slate {
    color: #475569;
    background: #e2e8f0;
}

.dashboard-card-featured {
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-grid-mobile .dashboard-card,
.hub-grid .dashboard-card {
    position: relative;
    overflow: hidden;
}

.dashboard-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eff6ff;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.dashboard-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.dashboard-grid-mobile .dashboard-card-text,
.hub-grid .dashboard-card-text {
    padding-right: 44px;
}

.hub-page-header {
    margin-bottom: 18px;
}

.hub-page-eyebrow {
    margin: 0 0 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-page-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.55;
}

.section-styled-page {
    max-width: 1180px;
    margin: 0 auto;
}

.section-hero {
    position: relative;
    min-height: 148px;
    margin-bottom: 18px;
    padding: 26px 30px;
    border: 1px solid rgba(196, 181, 253, 0.7);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #4338ca 0%, #6d28d9 52%, #9333ea 100%);
    box-shadow: 0 22px 50px rgba(91, 33, 182, 0.24);
}

.section-hero::after {
    content: "";
    position: absolute;
    right: -96px;
    bottom: -132px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.section-hero > * {
    position: relative;
    z-index: 1;
}

.section-hero .page-title,
.section-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

.section-hero p:not(.section-hero-kicker) {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.5;
}

.section-hero-kicker {
    margin: 0 0 6px;
    color: #ddd6fe;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.section-styled-page .hub-grid .dashboard-card {
    border-color: rgba(196, 181, 253, 0.48);
    background: linear-gradient(145deg, #ffffff 0%, #faf7ff 100%);
    box-shadow: 0 18px 42px rgba(91, 33, 182, 0.08);
}

.section-styled-page .hub-grid .dashboard-card-featured {
    border-color: rgba(45, 212, 191, 0.38);
    background: linear-gradient(145deg, #f8fffd 0%, #f7fbff 100%);
}

.hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Desktop keeps service sections neutral; mobile keeps the richer accent cards. */
@media (hover: hover) and (pointer: fine) {
    .section-hero {
        border-color: #e5eaf2;
        color: #172033;
        background: #ffffff;
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
    }

    .section-hero::after {
        display: none;
    }

    .section-hero .page-title,
    .section-hero h1 {
        color: #111827;
    }

    .section-hero p:not(.section-hero-kicker) {
        color: #64748b;
    }

    .section-hero-kicker {
        color: #475569;
    }

    .section-styled-page .hub-grid .dashboard-card,
    .section-styled-page .hub-grid .dashboard-card-featured {
        border-color: #e5eaf2;
        background: #ffffff;
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
    }
}

/* =========================
   BUDGET
========================= */

.budget-page {
    max-width: 1200px;
    margin: 0 auto;
}

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

.stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf0f5;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.stat-card-income {
    border-left: 5px solid #16a34a;
}

.stat-card-expense {
    border-left: 5px solid #dc2626;
}

.stat-card-balance {
    border-left: 5px solid #2563eb;
}

.stat-card-current {
    border-left: 5px solid #7c3aed;
}

.budget-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.big-balance {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
    line-height: 1.2;
}

.form-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-input {
    height: 46px;
    border: 1px solid #d6dbe4;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-input-compact {
    max-width: 240px;
    height: 40px;
    font-size: 14px;
}

.filter-card {
    margin-bottom: 24px;
}

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

.filter-actions {
    display: flex;
    align-items: end;
}

.table-card {
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.data-table thead tr {
    background: #f8fafc;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}

.data-table td:first-child,
.data-table th:first-child {
    padding-left: 18px;
}

.data-table td:last-child,
.data-table th:last-child {
    padding-right: 18px;
}

.data-table th {
    font-size: 14px;
    color: #475569;
    font-weight: 700;
}

.data-table td {
    font-size: 15px;
    color: #111827;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

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

.bulk-table-actions {
    justify-content: flex-end;
}

.shootings-archive-actions {
    margin-top: 8px;
}

.bulk-actions-hidden .bulk-delete-selected-form,
.bulk-actions-hidden .bulk-delete-all-form {
    display: none !important;
}

.bulk-actions-hidden .bulk-cancel-selection-btn {
    display: none !important;
}

.bulk-selection-hidden .bulk-col {
    display: none !important;
}

.bulk-col {
    width: 46px;
    min-width: 46px;
    text-align: center !important;
}

.bulk-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.inline-form {
    display: inline;
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-income {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.badge-expense {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.empty-state {
    padding: 20px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.empty-state-centered {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.empty-state-horizontal-only {
    width: 100%;
    margin: 0 auto;
    display: block;
    text-align: center;
}

.empty-table-message {
    padding: 36px 20px !important;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
}

.edit-card {
    max-width: 680px;
}

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

html.login-centered-document,
html.login-centered-document body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

html.login-centered-document .app-body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

html.login-centered-document .page-shell {
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
}

.login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid #edf0f5;
}

.login-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.login-subtitle {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

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

@media (max-width: 768px) and (pointer: coarse) {
    .page-shell {
        padding: 18px 12px 32px;
    }

    .page-title {
        font-size: 26px;
    }

    .stat-value,
    .big-balance {
        font-size: 28px;
    }

    .card,
    .welcome-card,
    .dashboard-card {
        padding: 18px;
    }

    .site-header-inner {
        padding: 12px;
    }

    .top-nav {
        width: 100%;
    }
}
.budget-manage-grid-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 300px;
    align-items: start;
}
@media (max-width: 800px) and (pointer: coarse) {
    .budget-manage-grid-top {
        grid-template-columns: 1fr;
    }
}
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
}

.status-pill-done {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.status-pill-work {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}


.confirm-modal[hidden] {
    display: none;
}

.validation-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 18px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    max-width: min(92vw, 420px);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 16px 36px rgba(154, 52, 18, 0.2);
    transition: opacity .24s ease, transform .24s ease;
}

.validation-toast-show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    animation: validationToastPulse .36s ease;
}

@keyframes validationToastPulse {
    0% { transform: translate(-50%, 4px) scale(.98); }
    55% { transform: translate(-50%, -2px) scale(1.02); }
    100% { transform: translate(-50%, 0) scale(1); }
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.confirm-modal-card {
    position: relative;
    width: min(94vw, 420px);
    background: linear-gradient(165deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    border-radius: 18px;
    padding: 22px;
}

.confirm-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.confirm-modal-text {
    color: #334155;
    margin-bottom: 18px;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* =========================
   MOBILE ADAPTATION
========================= */

@media (max-width: 1024px) and (pointer: coarse) {
    .site-header-inner {
        gap: 12px;
        align-items: flex-start;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .header-user-block {
        width: 100%;
        justify-content: space-between;
    }

    .two-column-grid,
    .budget-manage-grid,
    .budget-manage-grid-top {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) and (pointer: coarse) {
    .page-shell {
        padding: 14px 10px 24px;
    }

    .site-header {
        position: static;
    }

    .site-header-inner {
        padding: 12px 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: flex-start;
    }

    .top-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .top-nav-link {
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .header-user-block {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .header-user-name {
        font-size: 13px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 18px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-title-light {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .page-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn,
    .btn-wide,
    .btn-compact {
        width: 100%;
        min-height: 42px;
    }

    .card,
    .welcome-card,
    .dashboard-card,
    .notification-card {
        padding: 16px;
        border-radius: 16px;
    }

    .welcome-name {
        font-size: 26px;
    }

    .welcome-text,
    .welcome-label {
        font-size: 14px;
    }

    .dashboard-grid,
    .stats-grid,
    .notification-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-card-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .dashboard-card-title {
        font-size: 18px;
    }

    .dashboard-card-text {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-input,
    .form-input-compact {
        width: 100%;
        max-width: 100%;
        height: 42px;
        font-size: 14px;
    }

    .table-card {
        padding: 14px;
    }

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

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

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

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

    .table-actions .btn,
    .table-actions .btn-small {
        width: 100%;
    }

    .status-switch {
        flex-direction: column;
        align-items: stretch;
    }

    .status-switch form {
        width: 100%;
    }

    .status-btn {
        width: 100%;
    }

    .flash-stack {
        right: 14px;
        bottom: calc(86px + env(safe-area-inset-bottom, 0px));
        width: min(340px, calc(100vw - 28px));
    }

    .flash-message {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) and (pointer: coarse) {
    .brand-badge {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 12px;
    }

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

    .brand-subtitle {
        font-size: 11px;
    }

    .top-nav {
        grid-template-columns: 1fr;
    }

    .header-user-block {
        flex-direction: column;
        align-items: stretch;
    }

    .page-title {
        font-size: 22px;
    }

    .welcome-name {
        font-size: 22px;
    }

    .dashboard-card,
    .card,
    .welcome-card {
        padding: 14px;
    }

    .btn {
        font-size: 13px;
    }
}
/* =========================
   PASSWORD EYE (CLEAN UI)
========================= */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
}

.password-toggle:hover {
    background: #f1f5f9;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* сам глаз */
.eye-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

/* форма глаза */
.eye-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #64748b;
    border-radius: 12px / 8px;
}

/* зрачок */
.eye-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* активное состояние (когда показан пароль) */
.password-toggle.is-visible .eye-icon::before {
    border-color: #0f172a;
}

.password-toggle.is-visible .eye-icon::after {
    background: #0f172a;
}
/* =========================
   INPUTS (ОДИНАКОВЫЕ ПОЛЯ)
========================= */

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    background: #ffffff;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    outline: none;
}
* обёртка пароля */
.password-input-wrap {
    position: relative;
    width: 100%;
}

/* поле пароля (делаем ОДИНАКОВЫМ с логином) */
.password-input-wrap .form-input {
    height: 44px;
    padding: 0 44px 0 14px; /* место под глаз */
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
}
/* =========================
   LOGIN PASSWORD TOGGLE
========================= */

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.password-toggle:hover {
    background: #f1f5f9;
}

.password-toggle.is-visible {
    background: #e2e8f0;
}

.field-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

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

.data-table-car {
    table-layout: fixed;
}

.data-table-car th,
.data-table-car td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.data-table-car td .status-pill {
    white-space: nowrap;
}

.data-table-car td:last-child {
    width: 150px;
}

/* =========================
   NOTIFICATIONS
========================= */

.status-pill-alert {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.notification-card-custom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.notification-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.notification-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.notification-meta-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.notification-meta-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.notification-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.notification-description-block {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.notification-description-text {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.55;
    word-break: break-word;
}

/* =========================
   SMALL SCREENS
========================= */

    .notification-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
/* =========================
   BALANCE HISTORY CARDS
========================= */

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    gap: 14px;
    justify-content: start;
}

.balance-month-card {
    width: 140px;
    min-height: 90px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    overflow: hidden;
}

.balance-month-name {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    line-height: 1.3;
    word-break: break-word;
}

.balance-month-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    word-break: break-word;
}

@media (max-width: 768px) and (pointer: coarse) {
    .balance-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 120px));
        gap: 12px;
    }

    .balance-month-card {
        width: 120px;
        min-height: 120px;
        padding: 12px;
        border-radius: 16px;
    }

    .balance-month-name {
        font-size: 13px;
    }

    .balance-month-value {
        font-size: 18px;
    }
}
.data-table-car {
    table-layout: fixed;
    width: 100%;
}

.data-table-car th,
.data-table-car td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.table-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-sort-form {
    min-width: 220px;
}

.form-input-small {
    height: 40px;
    min-width: 220px;
}

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

.btn-fixed-action {
    min-width: 120px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.status-pill-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

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

.notification-close-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.notification-close-btn:hover {
    background: #fecaca;
}

.stat-card-active {
    outline: 2px solid rgba(99, 102, 241, 0.25);
}

@media (max-width: 768px) and (pointer: coarse) {
    .table-actions-fixed {
        flex-wrap: wrap;
    }

    .btn-fixed-action {
        min-width: 100%;
    }
}

/* ===== Shans car/notifications fixes ===== */
.data-table-car td:last-child {
    width: 220px;
}

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

.table-actions-fixed .inline-form {
    display: flex;
}

.btn-fixed-action {
    min-width: 128px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.notification-card-custom,
.notification-title,
.notification-meta-value,
.notification-description-text {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notification-actions-top .status-pill,
.status-change-row .status-pill {
    white-space: nowrap;
}

.status-change-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-arrow {
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
}

@media (max-width: 768px) and (pointer: coarse) {
    .table-actions-fixed {
        flex-wrap: wrap;
    }

    .btn-fixed-action {
        width: 100%;
    }

    .data-table-car td:last-child {
        width: auto;
    }
}
.car-notifications-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notification-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #d9dbe3;
    background: #ffffff;
    color: #1f2937;
    font-weight: 600;
    transition: 0.2s ease;
}

.notification-filter-chip:hover {
    transform: translateY(-1px);
}

.notification-filter-chip.active {
    background: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.notification-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.notification-filter-chip:not(.active) .notification-filter-count {
    background: #eef1f5;
    color: #111827;
}

.notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.notification-card {
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-card.status-need {
    border-left: 5px solid #ef4444;
}

.notification-card.status-soon {
    border-left: 5px solid #f59e0b;
}

.notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1 1 220px;
}

.notification-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    word-break: break-word;
}

.notification-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.notification-status-badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.notification-status-badge.warning {
    background: #fef3c7;
    color: #b45309;
}

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

.small-btn {
    padding: 9px 14px;
    white-space: nowrap;
}

.icon-delete-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-delete-btn:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.notification-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notification-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.notification-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.notification-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 700;
}

.notification-meta-value {
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

.notification-description-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.notification-description-text {
    margin: 0;
    line-height: 1.55;
    color: #1f2937;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.empty-state-card {
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    padding: 32px 20px;
    text-align: center;
}

.empty-state-card h3 {
    margin: 0 0 8px 0;
}

.empty-state-card p {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 700px) and (pointer: coarse) {
    .notification-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-card-actions {
        justify-content: flex-start;
    }

    .notification-meta-grid {
        grid-template-columns: 1fr;
    }
}
.archive-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.table-toolbar-title h2 {
    margin: 0;
}

.table-toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.table-action-group form {
    margin: 0;
}

.status-link {
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.status-link.in-progress {
    color: #b45309;
}

.status-link.in-progress:hover {
    text-decoration: underline;
}

.status-text {
    font-weight: 600;
}

.small-btn {
    white-space: nowrap;
}

.table-responsive td,
.table-responsive th,
.car-table td,
.car-table th {
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.page-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.content-grid.single-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-toolbar-title h2 {
    margin: 0;
    font-size: 22px;
}

.table-toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.car-table th,
.car-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.car-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    font-weight: 700;
    background: #f9fafb;
}

.car-table td {
    color: #111827;
    line-height: 1.45;
}

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

.table-action-group form {
    margin: 0;
}

.status-link {
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.status-link.in-progress {
    color: #b45309;
}

.status-link.in-progress:hover {
    text-decoration: underline;
}

.status-text {
    font-weight: 600;
    color: #374151;
}

.empty-state-card {
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
}

.empty-state-card h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.empty-state-card p {
    margin: 0;
    color: #6b7280;
}

.small-btn {
    padding: 9px 14px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.primary-btn,
.secondary-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.primary-btn {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.primary-btn:hover {
    background: #1f2937;
}

.secondary-btn {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.secondary-btn:hover {
    background: #f9fafb;
}

.danger-btn {
    background: #ffffff;
    color: #b91c1c;
    border-color: #fecaca;
}

.danger-btn:hover {
    background: #fef2f2;
}

@media (max-width: 900px) and (pointer: coarse) {
    .car-table {
        min-width: 900px;
    }
}
/* =========================
   CAR BEAUTY REFRESH
========================= */

.car-stats-grid {
    margin-bottom: 24px;
}

.car-tab-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.car-tab-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.car-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    white-space: nowrap;
    border-radius: 14px;
    text-decoration: none;
    background: transparent;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    font-weight: 700;
    transition: 0.15s ease;
}

.car-tab-link:hover {
    transform: translateY(-1px);
    background: #eef2ff;
    color: #312e81;
}

.car-tab-link-active {
    background: #4338ca;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: none;
}

.car-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 700;
}

.car-tab-link:not(.car-tab-link-active) .car-tab-count {
    background: #e0e7ff;
    color: #3730a3;
}

.notifications-list-pretty {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-card-pretty {
    margin-bottom: 0;
}

.notification-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

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

.table-actions-icon .inline-form {
    display: flex;
    margin: 0;
}

.icon-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: 0.15s ease;
    padding: 0;
}

.btn-icon-mobile-glyph {
    display: none;
}

.icon-action-btn:hover {
    transform: translateY(-1px);
}

.icon-edit:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.icon-complete:hover {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.icon-export:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.icon-delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.data-table-car td:last-child {
    width: 110px;
}

.data-table-car td,
.data-table-car th {
    vertical-align: top;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
}

@media (max-width: 768px) and (pointer: coarse) {
    .car-tab-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .car-tab-link {
        justify-content: space-between;
    }

    .car-tab-actions {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .car-tab-actions .btn {
        width: 100%;
        text-align: center;
    }

    .table-actions-icon {
        flex-wrap: wrap;
    }

    .data-table-car td:last-child {
        width: auto;
    }
}
/* =========================
   CAR FORMS BEAUTY
========================= */

.car-form-card {
    max-width: 860px;
}

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

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

.car-textarea {
    min-height: 120px;
    height: auto;
    padding: 14px;
    resize: vertical;
}

.car-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.car-complete-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

.car-complete-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

/* =========================
   CAR NOTIFICATIONS BEAUTY
========================= */

.notifications-list-pretty {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-card-pretty {
    margin-bottom: 0;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf0f5;
}

.notification-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.notification-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

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

.notification-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: 0.15s ease;
}

.notification-close-btn:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.car-tab-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.car-tab-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.car-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    white-space: nowrap;
    border-radius: 14px;
    text-decoration: none;
    background: transparent;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    font-weight: 700;
    transition: 0.15s ease;
}

.car-tab-link:hover {
    transform: translateY(-1px);
    background: #eef2ff;
    color: #312e81;
}

.car-tab-link-active {
    background: #4338ca;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: none;
}

.car-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 700;
}

.car-tab-link:not(.car-tab-link-active) .car-tab-count {
    background: #e0e7ff;
    color: #3730a3;
}

/* =========================
   ARCHIVE BUTTON
========================= */

.archive-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

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

@media (max-width: 768px) and (pointer: coarse) {
    .car-form-grid {
        grid-template-columns: 1fr;
    }

    .car-tab-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .car-tab-link {
        justify-content: space-between;
    }

    .car-tab-actions {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .car-tab-actions .btn {
        width: 100%;
        text-align: center;
    }

    .notification-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-actions-top {
        justify-content: flex-start;
    }

    .car-form-actions .btn {
        width: 100%;
    }
}
/* =========================
   CAR FORMS STYLE
========================= */

.car-form-card {
    max-width: 860px;
}

.car-form-head {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.car-form-head-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.car-form-head-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

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

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

.car-textarea {
    min-height: 120px;
    height: auto;
    padding: 14px;
    resize: vertical;
}

.car-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.car-complete-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

.car-complete-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

/* =========================
   ICON ACTIONS
========================= */

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

.table-actions-icon .inline-form {
    display: flex;
    margin: 0;
}

.icon-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: 0.15s ease;
    padding: 0;
}

.icon-action-btn:hover {
    transform: translateY(-1px);
}

.icon-edit:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.icon-complete:hover {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.icon-export:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.icon-delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* =========================
   COMPLETE STATUS BLOCK
========================= */

.status-change-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-arrow {
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
}

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

@media (max-width: 768px) and (pointer: coarse) {
    .car-form-grid {
        grid-template-columns: 1fr;
    }

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

    .table-actions-icon {
        flex-wrap: wrap;
    }
}
/* =========================
   CAR MANAGE
========================= */

.car-manage-done-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.car-manage-inner-grid {
    margin-top: 2px;
}

#done-fields-box[style*="display: none"] {
    display: none !important;
}
/* =========================
   NOTIFICATION INNER BEAUTY
========================= */

.notification-info-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 2px;
}

.notification-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-info-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.notification-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notification-note-card {
    margin-top: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}

.notification-note-text {
    margin-top: 8px;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.notification-card-pretty {
    padding: 22px;
}

.notification-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
}

.notification-title-wrap {
    gap: 12px;
}

.notification-actions-top {
    align-items: flex-start;
}

@media (max-width: 768px) and (pointer: coarse) {
    .notification-info-layout {
        grid-template-columns: 1fr;
    }

    .notification-note-card {
        margin-top: 12px;
    }
}
/* =========================
   NOTIFICATIONS TABLE
========================= */

.notifications-table {
    width: 100%;
    table-layout: fixed;
}

.notifications-table th,
.notifications-table td {
    vertical-align: top;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.notifications-table th:nth-child(1),
.notifications-table td:nth-child(1) {
    width: 46px;
}

.notifications-table th:nth-child(2),
.notifications-table td:nth-child(2) {
    width: 22%;
}

.notifications-table th:nth-child(3),
.notifications-table td:nth-child(3) {
    width: 16%;
}

.notifications-table th:nth-child(4),
.notifications-table td:nth-child(4) {
    width: 14%;
}

.notifications-table th:nth-child(5),
.notifications-table td:nth-child(5) {
    width: 24%;
}

.notifications-table th:nth-child(6),
.notifications-table td:nth-child(6) {
    width: 14%;
}

.notifications-table th:nth-child(7),
.notifications-table td:nth-child(7) {
    width: 10%;
}

@media (max-width: 900px) and (pointer: coarse) {
    .notifications-table {
        min-width: 980px;
    }
}

/* =========================
   SHOOTINGS IN CAR STYLE
========================= */

.shooting-page {
    max-width: 1200px;
    margin: 0 auto;
}

.shooting-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.shooting-summary-card {
    min-height: 150px;
}

.shooting-clickable-row {
    cursor: pointer;
}

.shooting-money-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.shooting-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.shooting-money-box {
    margin-top: 6px;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
    color: #ffffff;
}

.shooting-money-label {
    color: rgba(255, 255, 255, 0.9);
}

.shooting-money-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.nearest-shooting-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) and (pointer: coarse) {
    .shooting-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   SHOOTINGS POLISH
========================= */

.shooting-page {
    max-width: 1200px;
    margin: 0 auto;
}

.shooting-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.shooting-summary-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
}

.shooting-summary-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    font-size: 22px;
    margin-bottom: 2px;
}

.shooting-soft-text {
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.shooting-link-hint {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #3730a3;
}

.shooting-clickable-row {
    cursor: pointer;
}

.shooting-clickable-row:hover {
    background: #f8fafc;
}

.shooting-money-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.shooting-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.shooting-money-box {
    margin-top: 6px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
    color: #ffffff;
}

.shooting-money-label {
    color: rgba(255, 255, 255, 0.92);
}

.shooting-money-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 6px;
}

.shooting-money-subtext {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.nearest-shooting-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) and (pointer: coarse) {
    .shooting-detail-grid {
        grid-template-columns: 1fr;
    }

    .shooting-money-value {
        font-size: 28px;
    }
}
/* =========================
   SHOOTINGS FINAL POLISH
========================= */

.shooting-page {
    max-width: 1200px;
    margin: 0 auto;
}

.shooting-page-narrow {
    max-width: 860px;
}

.shooting-page-detail {
    max-width: 980px;
}

.shooting-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.shooting-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    background: #eef2ff;
    color: #2563eb;
    border: none;
    font-weight: 700;
    transition: 0.15s ease;
}

.shooting-nav-link:hover {
    transform: translateY(-1px);
    background: #dbeafe;
    color: #1d4ed8;
}

.shooting-nav-link-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: none;
}

.shooting-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 700;
}

.shooting-nav-link:not(.shooting-nav-link-active) .shooting-nav-count {
    background: #dbeafe;
    color: #1d4ed8;
}

.shooting-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.shooting-summary-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shooting-summary-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    font-size: 22px;
}

.shooting-soft-text {
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.shooting-link-hint {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #3730a3;
}

.shooting-clickable-row {
    cursor: pointer;
}

.shooting-clickable-row:hover {
    background: #f8fafc;
}

.shooting-money-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.shooting-form-card-compact {
    max-width: 760px;
    margin: 0 auto;
}

.shooting-form-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.shooting-form-head-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.shooting-form-head-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.shooting-form-head-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

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

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

.shooting-textarea-compact {
    min-height: 110px;
    height: auto;
    padding: 14px;
    resize: vertical;
}

.shooting-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.shooting-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
}

.shooting-detail-main-card {
    max-width: 860px;
    margin: 0 auto;
}

.shooting-detail-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.shooting-detail-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
}

.shooting-detail-client {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.shooting-detail-grid-beauty {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.shooting-info-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}

.shooting-info-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.shooting-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}

.shooting-money-box {
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
    color: #ffffff;
}

.shooting-money-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shooting-money-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 6px;
}

.shooting-money-subtext {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.shooting-note-box {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.shooting-note-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.shooting-note-text {
    font-size: 15px;
    line-height: 1.65;
    color: #1e293b;
    white-space: pre-wrap;
}

@media (max-width: 768px) and (pointer: coarse) {
    .shooting-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shooting-form-grid-compact,
    .shooting-detail-grid-beauty {
        grid-template-columns: 1fr;
    }

    .shooting-actions-row .primary-btn,
    .shooting-actions-row .secondary-btn,
    .shooting-actions-row .danger-btn,
    .shooting-actions-row .btn {
        width: 100%;
    }

    .shooting-detail-client {
        font-size: 24px;
    }

    .shooting-money-value {
        font-size: 28px;
    }
}
/* =========================
   SHOOTINGS FINAL TWEAK
========================= */

.shooting-summary-grid-compact {
    grid-template-columns: 220px 1fr;
    align-items: stretch;
}

.shooting-summary-card-tight {
    min-height: 0;
    padding: 18px;
    gap: 8px;
    justify-content: flex-start;
}

.shooting-summary-card-tight .balance-month-value {
    font-size: 34px;
    line-height: 1;
}

.shooting-summary-card-tight .notification-title {
    font-size: 26px;
    margin: 2px 0 0 0;
}

.shooting-summary-card-tight .notification-meta-value {
    font-size: 16px;
}

.shooting-mini-meta {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.shooting-link-hint {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #3730a3;
}

.shooting-nav {
    margin-bottom: 16px;
}

.shooting-nav-link {
    min-height: 44px;
}

.shooting-money-pill {
    min-width: 78px;
}

@media (max-width: 900px) and (pointer: coarse) {
    .shooting-summary-grid-compact {
        grid-template-columns: 1fr;
    }
}
/* =========================
   SHOOTINGS TOP ROW FIX
========================= */

.shooting-top-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    margin-bottom: 20px;
    align-items: stretch;
}

.shooting-count-card,
.shooting-nearest-card {
    margin-bottom: 0;
    min-height: 0;
}

.shooting-count-card {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shooting-nearest-card {
    padding: 18px 18px 16px;
}

.shooting-top-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.shooting-count-value {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.shooting-nearest-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 6px;
}

.shooting-nearest-client {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.shooting-nearest-meta {
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

.shooting-nearest-empty {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.shooting-link-hint {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #3730a3;
}

@media (max-width: 900px) and (pointer: coarse) {
    .shooting-top-row {
        grid-template-columns: 1fr;
    }

    .shooting-count-value {
        font-size: 38px;
    }
}
/* =========================
   SHOOTINGS PREMIUM TOP
========================= */

.shooting-top-row {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 16px;
    margin-bottom: 22px;
    align-items: stretch;
}

.shooting-premium-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 22px 22px 20px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.shooting-premium-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 72%);
    pointer-events: none;
}

.shooting-premium-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    opacity: 0.9;
}

.shooting-count-card-premium {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 156px;
}

.shooting-nearest-card-premium {
    min-height: 156px;
}

.shooting-premium-label {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.shooting-count-value-premium {
    position: relative;
    z-index: 1;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 10px;
}

.shooting-premium-subtext {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

.shooting-nearest-title-premium {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 8px;
}

.shooting-nearest-client-premium {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.shooting-nearest-meta-premium {
    position: relative;
    z-index: 1;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.shooting-link-hint-premium {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 800;
    color: #3730a3;
    letter-spacing: 0.01em;
}

.shooting-nearest-empty-premium {
    position: relative;
    z-index: 1;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.nearest-shooting-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nearest-shooting-link:hover .shooting-nearest-title-premium,
.nearest-shooting-link:hover .shooting-link-hint-premium {
    opacity: 0.92;
}

@media (max-width: 900px) and (pointer: coarse) {
    .shooting-top-row {
        grid-template-columns: 1fr;
    }

    .shooting-count-card-premium,
    .shooting-nearest-card-premium {
        min-height: 0;
    }

    .shooting-count-value-premium {
        font-size: 46px;
    }

    .shooting-nearest-title-premium {
        font-size: 20px;
    }
}

/* =========================
   SHOOTINGS UX POLISH
========================= */
.nearest-shooting-card {
    text-decoration: none;
    color: inherit;
}

.nearest-shooting-card-active {
    border: 1px solid #dbeafe;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.16);
    animation: nearestShootPulse 2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nearest-shooting-card-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.24);
}

@keyframes nearestShootPulse {
    0%,
    100% {
        box-shadow: 0 16px 32px rgba(37, 99, 235, 0.16);
    }
    50% {
        box-shadow: 0 20px 42px rgba(37, 99, 235, 0.28);
    }
}

.shooting-detail-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.shooting-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.shooting-detail-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    background: #ffffff;
}

.shooting-detail-item-full {
    grid-column: 1 / -1;
}

.shooting-detail-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.shooting-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.shooting-detail-notes {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    white-space: pre-wrap;
}

@media (max-width: 768px) and (pointer: coarse) {
    .shooting-detail-grid {
        grid-template-columns: 1fr;
    }
}

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

.data-table-photo-projects tbody tr:hover,
.data-table-photo-bookings tbody tr:hover {
    background: #f8fafc;
}

.js-project-row,
.js-booking-row,
.js-shooting-row {
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.js-project-row:active,
.js-booking-row:active,
.js-shooting-row:active {
    transform: translateY(1px) scale(0.998);
}

.booking-meta-time {
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.remaining-payment-preview {
    border: 1px solid #dbeafe;
    background: linear-gradient(145deg, #eff6ff, #f8fafc);
    border-radius: 14px;
    padding: 10px 12px;
}

.remaining-payment-preview-label {
    display: block;
    color: #475569;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.remaining-payment-input {
    background: #fff;
    border-color: #bfdbfe;
    color: #0f172a;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

.remaining-payment-preview-complete {
    border-color: #c7d2fe;
    background: linear-gradient(145deg, #eef2ff, #f8fafc);
}

.booking-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.booking-detail-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.booking-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.remaining-card {
    border: 1px solid #bfdbfe;
}

/* ===== Import center refinements ===== */
.desktop-only {
    display: inline-flex;
}

.top-nav-import-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-nav-import-link:hover {
    background: #f1f5f9;
    color: #334155;
    transform: translateY(-1px);
}

.top-nav-import-icon {
    font-size: 21px;
    line-height: 1;
}

.import-shortcut {
    margin-top: 10px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5b7cfa 0%, #8d63ff 100%);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 10px 18px rgba(91, 124, 250, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.import-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(91, 124, 250, 0.32);
}

.import-center-page {
    max-width: 860px;
}

.import-center-subtitle {
    margin-top: 8px;
    color: var(--text-secondary);
}

.import-center-card {
    max-width: 760px;
    border: 1px solid rgba(92, 124, 250, 0.14);
    box-shadow: 0 18px 36px rgba(18, 26, 61, 0.08);
}

.import-center-lock-card {
    max-width: 500px;
}

.import-center-form {
    margin-top: 14px;
}

.import-file-input {
    display: none;
}

.import-file-picker {
    display: grid;
    grid-template-columns: minmax(230px, 320px) 1fr;
    align-items: center;
    gap: 12px;
}

.import-file-btn {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.import-file-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.import-file-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-size: 16px;
}

.import-file-btn-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.import-file-btn-text strong {
    font-size: 14px;
    color: #0f172a;
}

.import-file-btn-text small {
    font-size: 12px;
    color: #64748b;
}

.import-file-name {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.import-mode-switch {
    display: grid;
    gap: 12px;
}

.import-mode-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.import-mode-option input[type="radio"] {
    margin-top: 4px;
}

.import-mode-option strong {
    display: block;
    font-size: 14px;
}

.import-mode-option small {
    display: block;
    color: var(--text-secondary);
    margin-top: 2px;
}

.import-center-hint {
    margin-top: 14px;
}

/* =========================
   UNIFIED GM TABS
========================= */
.btn-tab,
.car-tab-link {
    background: transparent;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.btn-tab:hover,
.car-tab-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.btn-tab-active,
.car-tab-link-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: none;
}

.btn-tab.btn-tab-active:hover,
.car-tab-link.car-tab-link-active:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.car-tab-link:not(.car-tab-link-active) .car-tab-count {
    background: #dbeafe;
    color: #1d4ed8;
}

.empty-state-table {
    width: 100%;
    min-height: 0;
}
.photo-projects-add-icon {
    display: none;
}

/* =========================
   DATE AND SELECT CONTROLS
========================= */

.form-input:is(
    select,
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
) {
    min-height: 48px;
    border: 1px solid #d8e1ef;
    border-radius: 14px;
    background-color: #ffffff;
    color: #172033;
    font-weight: 600;
    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    color-scheme: light;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.form-input:is(
    select,
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
):hover:not(:disabled) {
    border-color: #aebfda;
    background-color: #fbfdff;
    box-shadow:
        0 9px 22px rgba(37, 99, 235, 0.09),
        inset 0 1px 0 #ffffff;
}

.form-input:is(
    select,
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
):focus {
    border-color: #4f73f1;
    background-color: #ffffff;
    box-shadow:
        0 0 0 4px rgba(79, 115, 241, 0.13),
        0 10px 24px rgba(37, 99, 235, 0.1);
    outline: none;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, #59708f 50%),
        linear-gradient(135deg, #59708f 50%, transparent 50%),
        linear-gradient(to bottom, rgba(216, 225, 239, 0.2), rgba(216, 225, 239, 0.9), rgba(216, 225, 239, 0.2));
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px),
        calc(100% - 43px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px, 1px 26px;
}

select.form-input option {
    background: #ffffff;
    color: #172033;
    font-weight: 500;
}

select.form-input option:checked {
    background: #eaf1ff;
    color: #1d4ed8;
    font-weight: 700;
}

.form-input:is(
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
) {
    padding-right: 8px;
}

.form-input:is(
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
)::-webkit-calendar-picker-indicator {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 7px;
    border-radius: 10px;
    background-color: #edf3ff;
    cursor: pointer;
    opacity: 0.82;
    transition: background-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.form-input:is(
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
):hover::-webkit-calendar-picker-indicator,
.form-input:is(
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
):focus::-webkit-calendar-picker-indicator {
    background-color: #dbe8ff;
    opacity: 1;
}

.form-input:is(
    select,
    input[type="date"],
    input[type="time"],
    input[type="month"],
    input[type="datetime-local"]
):disabled {
    border-color: #e5e9f0;
    background-color: #f4f6f9;
    color: #94a0b2;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 768px) and (pointer: coarse) {
    .form-input:is(
        select,
        input[type="date"],
        input[type="time"],
        input[type="month"],
        input[type="datetime-local"]
    ) {
        min-height: 50px;
        border-radius: 14px;
        font-size: 16px;
    }

    select.form-input {
        padding-right: 46px;
        background-position:
            calc(100% - 21px) calc(50% - 3px),
            calc(100% - 15px) calc(50% - 3px),
            calc(100% - 41px) 50%;
    }
}
