/* Universal box-sizing rule */
*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

body {
    background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 22%, #f8fafc 100%);
    font-family: Arial, sans-serif;
    color: #0f172a;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-width: 100vw;
    box-sizing: border-box;
}

a {
    color: inherit;
}

.capability-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    gap: 40px;
}
.capability-section.reverse {
    flex-direction: row-reverse;
}
.capability-card {
    background: #f5f5f5;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 40px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    max-width: 900px;
    gap: 40px;
}

.capability-card.capability-card-aerotrack {
    max-width: 1400px;
}

.capability-card.capability-card-aerobalance {
    max-width: 1400px;
}
.capability-card.reverse {
    flex-direction: row-reverse;
}
.capability-img {
    width: 350px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: #222;
}

.capability-img.capability-img-contain {
    object-fit: contain;
    background: transparent;
}

.capability-img.capability-img-aerotrack {
    width: 700px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.capability-img.capability-img-aerobalance {
    width: 700px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.capability-img.founder-img {
    height: 360px;
    object-fit: contain;
    background: transparent;
}
.capability-text {
    flex: 1;
    font-size: 1.2em;
    color: #222;
    max-width: 500px;
}

.capability-card.capability-card-aerotrack .capability-text {
    max-width: 650px;
}

.capability-card.capability-card-aerobalance .capability-text {
    max-width: 650px;
}
.centered {
    margin-top: 100px;
    text-align: center;
}

.marketing-shell {
    position: relative;
}

.marketing-main {
    position: relative;
}
.signup-box, .login-box {
    margin: 100px auto;
    width: min(420px, calc(100vw - 32px));
    padding: 34px 30px 30px;
    background: linear-gradient(180deg, #fcfdff 0%, #f4f7fb 100%);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}
input[type=text], input[type=password], select {
    width: 100%;
    padding: 13px 14px;
    margin: 10px 0;
    border-radius: 14px;
    border: 1px solid #d5deea;
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
input[type=text]:focus, input[type=password]:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.password-field {
    position: relative;
    margin: 10px 0;
}
.password-field .password-input {
    margin: 0;
    padding-right: 76px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
}
.password-toggle:hover {
    color: #115e59;
}
input[type=submit] {
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
input[type=submit]:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.22);
    filter: brightness(1.03);
}
.error {
    color: #e53935;
}
.message {
    color: #1fbad6;
    margin-bottom: 10px;
}
.auth-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.signup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.signup-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}
.signup-link-secondary {
    background: #fff;
    color: #1f2937;
    border: 1px solid #dbe2ea;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.signup-link-secondary:hover {
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.65), rgba(148, 163, 184, 0));
}
.google-signin-shell {
    width: 100%;
}
.google-signin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.google-signin-button:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.14);
    background: #ffffff;
}
.google-signin-button:focus-visible {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 22px 40px rgba(37, 99, 235, 0.14);
}
.google-signin-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}
.google-signin-button__icon svg {
    width: 100%;
    height: 100%;
}
.google-signin-button__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .signup-box, .login-box {
        width: min(420px, calc(100vw - 24px));
        padding: 28px 22px 24px;
        border-radius: 20px;
    }
}
.header-bar {
    width: 100%;
    background: rgba(7, 13, 24, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #fff;
    padding: 14px 24px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.header-shell {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    min-width: 0;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.header-brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.header-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-brand-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.05;
}

.header-brand-tagline {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.header-btn {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 0;
    box-shadow: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.header-btn-black {
    background: transparent;
    color: rgba(241, 245, 249, 0.9);
    border-color: transparent;
}
.header-btn-white {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    color: #0f172a;
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 34px rgba(148, 163, 184, 0.24);
}

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

.header-btn-black:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.header-btn-white:hover {
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.32);
}
.user-section {
    margin-left: 16px;
}
.sidebar-menu {
    width: 220px;
    background: #000;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    max-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

.sidebar-mobile-toggle {
    display: none;
}

.sidebar-mobile-backdrop {
    display: none;
}
.sidebar-menu a {
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border: none;
    background: none;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}
.sidebar-menu a:hover {
    background: #222;
    color: #ffd700;
}

/* Operations dropdown styling */
.sidebar-dropdown {
    position: relative;
}

/* Cleaned up - using .sidebar-dropdown-button styles below */

/* Cleaned up - using the newer dropdown styles below */

/* Operations dropdown styles */
.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown-button {
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    font-weight: bold;
    border: none;
    background: none;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.sidebar-dropdown-button:hover {
    background: #222;
    color: #ffd700;
}

.dropdown-arrow {
    transform: rotate(0deg);
    transition: transform 0.2s;
}

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

.sidebar-dropdown-content {
    display: none;
    background: #111;
    border-left: 4px solid #333;
    font-family: Arial, sans-serif;
}

.sidebar-dropdown.open .sidebar-dropdown-content {
    display: block;
}

.sidebar-dropdown-content a {
    padding: 14px 48px;
    font-size: 0.9em;
    border-left: none;
    margin: 2px 0;
    display: block;
    border-radius: 0 4px 4px 0;
    font-family: Arial, sans-serif;
}

.sidebar-dropdown-content a:hover {
    background: #333;
    color: #ffd700;
    margin: 2px 0;
}

/* Sidebar submenus inside dropdowns (e.g., Operations -> Pilot) */
.sidebar-submenu-button {
    color: #fff;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    padding: 14px 48px; /* match .sidebar-dropdown-content a */
    margin: 2px 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.sidebar-submenu-button:hover {
    background: #333;
    color: #ffd700;
}

.sidebar-submenu-arrow {
    font-size: 0.9em;
    color: #fff;
}

.maintenance-flex {
    display: flex;
}

.maintenance-main {
    margin-left: 220px;
    width: calc(100% - 220px);
    padding: 0 24px;
    box-sizing: border-box;
    max-width: calc(100vw - 220px);
}

/* Generic content card (used across pages) */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.helicopter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.helicopter-link {
    text-decoration: none;
    color: inherit;
}

.helicopter-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 0;
    padding: 16px;
    width: 260px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.helicopter-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    border-color: #4caf50;
}

.helicopter-card.critical-helicopter {
    border: 3px solid #e53935;
    background: #ffebee;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3);
}

.helicopter-card.critical-helicopter:hover {
    border-color: #c62828;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.critical-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e53935;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: help;
}

.critical-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    color: #222;
    border: 2px solid #e53935;
    border-radius: 8px;
    padding: 12px;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    text-align: left;
}

.critical-badge:hover .critical-tooltip {
    display: block;
}

.critical-tooltip strong {
    display: block;
    margin-bottom: 8px;
    color: #e53935;
    font-size: 1em;
}

.critical-tooltip ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.critical-tooltip li {
    margin: 4px 0;
    font-size: 0.9em;
    color: #555;
}

/* Inline variant of the critical badge used inside Bases card rows */
.dashboard-card-bases .critical-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffeb3b; /* yellow by default for 'important' */
    color: #424242;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: default;
    white-space: nowrap;
}

.dashboard-card-bases .critical-badge-inline--danger {
    /* Match helicopter critical badge visual style */
    background: #e53935;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    white-space: nowrap;
}

/* Make absolute top-right danger badge clickable in Bases card */
.dashboard-card-bases .critical-badge { cursor: pointer; }

.dashboard-card-bases .critical-badge-inline .critical-tooltip {
    display: none;
    position: absolute;
    background: #fff;
    color: #222;
    border: 2px solid #e53935; /* default to danger color; overridden for important */
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    margin-top: 8px;
}

.dashboard-card-bases .critical-badge-inline:hover .critical-tooltip {
    display: block;
}

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

/* Important (yellow) badge tooltip border color to match badge */
.dashboard-card-bases .critical-badge-inline--important .critical-tooltip {
    border-color: #fdd835; /* slightly deeper yellow */
}
.dashboard-card-bases .critical-badge-inline--important .critical-tooltip strong {
    color: #92400e; /* match important badge text color */
}

.dashboard-card-bases .critical-badge-inline--danger .critical-tooltip {
    border-color: #e53935;
}
.dashboard-card-bases .critical-badge-inline--danger .critical-tooltip strong {
    color: #e53935;
}

.helicopter-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f7f7f7;
}

.helicopter-meta {
    margin-top: 8px;
    text-align: left;
    width: 100%;
}

.parts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.part-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 0;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
}

.part-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    border-color: #4caf50;
}

.part-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 18px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #f7f7f7;
}

.part-meta {
    flex: 1;
}

.part-bars {
    margin-top: 8px;
}

.bar-bg {
    width: 100%;
    background: #eee;
    border-radius: 6px;
    height: 18px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 18px;
    border-radius: 6px;
    transition: width 0.3s;
}

.add-heli-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #4caf50;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    margin-left: 16px;
    transition: background 0.2s;
}
.add-heli-btn:hover {
    background: #388e3c;
}


.add-heli-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin-top: 24px;
}

.add-heli-form label {
    font-weight: bold;
    margin-bottom: 2px;
}

.add-heli-form input[type="text"],
.add-heli-form input[type="file"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.add-heli-form button {
    margin-top: 12px;
    padding: 10px 18px;
    background: #4caf50;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.add-heli-form button:hover {
    background: #388e3c;
}

.message {
    margin-top: 18px;
    color: #388e3c;
    font-weight: bold;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.employee-table th, .employee-table td {
    border: 1px solid #ccc;
    padding: 10px 14px;
    text-align: left;
}

.employee-table th {
    background: #f7f7f7;
    font-weight: bold;
}

.employee-table select {
    width: 100%;
    padding: 6px 8px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    background: white;
}

.employee-table input[type="text"], 
.employee-table input[type="email"] {
    width: 100%;
    padding: 6px 8px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

/* Style for employee schedule rows */
.employee-table tr:has(.weekly-schedule) {
    background-color: #e3f2fd !important;
}

.employee-table tr:has(.weekly-schedule) td {
    background-color: #e3f2fd !important;
}

/* Fallback for browsers that don't support :has() selector */
.employee-table td:has(.weekly-schedule),
.employee-table td:has(.employee-off-days) {
    background-color: #e3f2fd !important;
}

/* Profile picture styling */
.profile-pic-cell {
    width: 80px;
    text-align: center;
    padding: 8px !important;
}

.profile-pic-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-pic-container:hover {
    transform: scale(1.05);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    border-radius: 50%;
}

.profile-pic-container:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay span {
    font-size: 24px;
    color: white;
}

/* Enhanced profile picture upload feedback */
.profile-pic-uploading {
    position: relative;
}

.profile-pic-uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-pic-success {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.upload-overlay span {
    font-size: 24px;
    color: white;
}

.employee-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.edit-btn {
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    margin-right: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.edit-btn:hover {
    background: #1565c0;
}

.remove-btn {
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.remove-btn:hover {
    background: #b71c1c;
}

.helicopter-form {
    margin: 0;
}

.helicopter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
    align-items: flex-start;
}

.view-btn {
    background: #4caf50;
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 4px;
    transition: background 0.2s;
}
.view-btn:hover {
    background: #388e3c;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin-top: 24px;
}

.help-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin-top: 24px;
}

.help-form label {
    font-weight: bold;
    margin-bottom: 2px;
}

.help-form input[type="email"],
.help-form textarea {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}


.product-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 0;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    border-color: #4caf50;
}

.product-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 18px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #f7f7f7;
}

.product-meta {
    flex: 1;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
    align-items: flex-start;
}

.product-img-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.product-img-list .product-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #f7f7f7;
}

.product-img-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 12px;
}
.product-img-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #eee;
    background: #f7f7f7;
    cursor: pointer;
    transition: border-color 0.2s;
}
.product-img-thumb:hover {
    border-color: #4caf50;
}
.product-img-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 160px;
    margin-right: 18px;
}
.product-img-large {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #4caf50;
    background: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-name-input {
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    background: transparent;
    color: #222;
    margin-bottom: 8px;
    width: 100%;
    outline: none;
}
.product-name-input:focus {
    background: #f7f7fa;
    border-bottom: 2px solid #4caf50;
}

.gray-card {
    background: #f5f5f5;
    border-radius: 14px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 16px;
    margin-bottom: 8px;
}

.green-card {
    background: #e8f5e9;
    border-radius: 14px;
    border: 1px solid #4caf50;
    box-shadow: 0 2px 8px rgba(76,175,80,0.08);
    padding: 16px;
    margin-bottom: 18px;
}

.layer-select-overlay {
    position: absolute;
    bottom: 10px;
    left: 230px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 10px 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

#layer-select {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #f7f7f7;
}


.customer-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.customer-card {
    border: 1px solid #ccc;
    border-radius: 14px;
    margin: 0;
    padding: 16px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
}

.customer-meta {
    flex: 1;
}

.customer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
    align-items: flex-start;
}

#calendar {
    min-height: 600px;
    padding: 16px;
}

.maintenance-main button {
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-right: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.maintenance-main button:hover {
    background: #388e3c;
}

.fc-view-yearGridYear .fc-daygrid-day {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    padding: 1px !important;
}


.base-panel {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 340px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    z-index: 2000;
    padding: 0;
    overflow-y: auto;
    border: 1px solid #4caf50;
    animation: fadeInPanel 0.2s;
}
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateX(40px);}
    to { opacity: 1; transform: translateX(0);}
}
.base-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 8px 18px;
    border-bottom: 1px solid #eee;
    background: #e8f5e9;
    border-radius: 12px 12px 0 0;
}
.close-panel-btn {
    background: none;
    border: none;
    font-size: 1.6em;
    color: #333;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
}
.base-panel-body {
    padding: 14px 18px;
}
.base-panel-img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f7f7f7;
    border: 1px solid #eee;
}


.part-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.part-card {
    border: 1px solid #ccc;
    border-radius: 14px;
    margin: 0;
    padding: 16px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
}

.part-meta {
    flex: 1;
}

.part-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
    align-items: flex-start;
}


.age-bar {
    background: #eee;
    border-radius: 6px;
    height: 18px;
    width: 100%;
    overflow: hidden;
    margin-top: 8px;
}

.age-bar-fill {
    height: 18px;
    border-radius: 6px;
    transition: width 0.3s;
}

.age-bar-green {
    background: #4caf50;
}
.age-bar-yellow {
    background: #ffeb3b;
}
.age-bar-red {
    background: #f44336;
}

.age-bar-label {
    font-size: 0.9em;
    color: #555;
    margin-top: 2px;
}


.footer-dark {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 32%), linear-gradient(180deg, #06111f 0%, #0b1728 100%);
    color: #fff;
    width: 100%;
    margin-top: 72px;
    padding: 24px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dark a,
.footer-dark label,
.footer-dark input,
.footer-dark h2,
.footer-dark h3,
.footer-dark ul,
.footer-dark li,
.footer-dark p,
.footer-dark b,
.footer-dark span {
    color: #fff !important;
}

.footer-dark input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(191, 219, 254, 0.18);
}

.footer-content {
    max-width: 1240px;
    margin: auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
}

.marketing-footer-intro h3 {
    margin: 10px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.marketing-footer-intro p {
    margin: 0;
    max-width: 760px;
    color: rgba(226, 232, 240, 0.84) !important;
    font-size: 1.02rem;
}

.marketing-demo-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marketing-demo-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(241, 245, 249, 0.9) !important;
}

.marketing-demo-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.marketing-demo-controls input[type="email"] {
    flex: 1 1 320px;
    min-height: 56px;
    margin: 0;
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 1rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.18);
}

.marketing-demo-button {
    min-height: 56px;
    padding: 0 24px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.26);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.marketing-demo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 48px rgba(234, 88, 12, 0.34);
    filter: brightness(1.03);
}

.marketing-flash-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.marketing-flash-message {
    width: fit-content;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(191, 219, 254, 0.14);
    color: #f8fafc !important;
    font-weight: 700;
}

.marketing-footer-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.95rem;
}

.marketing-footer-meta a {
    color: rgba(226, 232, 240, 0.9) !important;
    text-decoration: none;
}

.marketing-home {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.marketing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 32px;
    align-items: center;
    padding: 48px 0 28px;
}

.marketing-eyebrow,
.marketing-section-tag,
.marketing-section-tag-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.marketing-eyebrow,
.marketing-section-tag {
    background: rgba(219, 234, 254, 0.9);
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.marketing-section-tag-dark {
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
}

.marketing-hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.6rem, 5vw, 4.65rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: 780px;
}

.marketing-hero-lead {
    margin: 0;
    max-width: 700px;
    font-size: 1.16rem;
    line-height: 1.7;
    color: #334155;
}

.marketing-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.marketing-primary-cta,
.marketing-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.marketing-primary-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 22px 45px rgba(29, 78, 216, 0.2);
}

.marketing-secondary-cta {
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.marketing-primary-cta:hover,
.marketing-secondary-cta:hover {
    transform: translateY(-1px);
}

.marketing-primary-cta:hover {
    box-shadow: 0 28px 52px rgba(29, 78, 216, 0.28);
}

.marketing-secondary-cta:hover {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.marketing-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.marketing-stat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.marketing-stat-value {
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
}

.marketing-stat-label {
    color: #475569;
    line-height: 1.45;
}

.marketing-hero-visual {
    display: flex;
    justify-content: center;
}

.marketing-visual-panel {
    position: relative;
    width: min(100%, 480px);
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    background: radial-gradient(circle at top, rgba(96, 165, 250, 0.3), transparent 48%), linear-gradient(160deg, #081226 0%, #0f172a 50%, #172554 100%);
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.26);
    overflow: hidden;
}

.marketing-visual-panel::before,
.marketing-visual-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    filter: blur(12px);
    z-index: 0;
}

.marketing-visual-panel::before {
    width: 240px;
    height: 240px;
    top: -80px;
    right: -20px;
}

.marketing-visual-panel::after {
    width: 160px;
    height: 160px;
    left: -40px;
    bottom: 30px;
}

.marketing-hero-image {
    position: relative;
    width: min(88%, 420px);
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(14, 165, 233, 0.24));
    z-index: 1;
}

.marketing-visual-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    z-index: 3;
}

.marketing-visual-badge-top {
    top: 28px;
    left: 24px;
}

.marketing-visual-badge-bottom {
    right: 24px;
    bottom: 28px;
}

.marketing-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 18px;
}

.marketing-proof-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.07);
}

.marketing-proof-card h2 {
    margin: 0 0 10px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.marketing-proof-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.marketing-feature-grid {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.marketing-feature-card {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

.marketing-feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    background: #dbeafe;
}

.marketing-feature-body h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1.12;
}

.marketing-feature-body p {
    margin: 0;
    color: #475569;
    font-size: 1.04rem;
    line-height: 1.72;
}

.marketing-feature-kicker {
    color: #2563eb;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketing-ops-band {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
    margin-top: 32px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f172a 0%, #172554 100%);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2);
}

.marketing-ops-copy h2 {
    margin: 14px 0 12px;
    color: #ffffff;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.02;
}

.marketing-ops-copy p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.72;
    font-size: 1.05rem;
}

.marketing-checklist {
    display: grid;
    gap: 14px;
}

.marketing-checklist-item {
    position: relative;
    padding: 18px 18px 18px 54px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #eff6ff;
    line-height: 1.58;
    border: 1px solid rgba(191, 219, 254, 0.12);
}

.marketing-checklist-item::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #bfdbfe;
    font-weight: 800;
}

.marketing-bottom-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.72) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.08);
}

.marketing-bottom-cta h2 {
    margin: 12px 0 10px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.02;
}

.marketing-bottom-cta p {
    margin: 0;
    color: #475569;
    line-height: 1.68;
    max-width: 680px;
}

.marketing-cta-group-end {
    justify-content: flex-end;
}

.marketing-page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.marketing-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 24px;
    align-items: stretch;
    padding: 48px 0 28px;
}

.marketing-page-hero-card,
.marketing-page-side-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.marketing-page-hero-card {
    padding: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
}

.marketing-page-hero-card::before,
.marketing-page-side-card::before {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    filter: blur(16px);
    pointer-events: none;
}

.marketing-page-hero-card::before {
    width: 240px;
    height: 240px;
    top: -110px;
    right: -70px;
    background: rgba(96, 165, 250, 0.18);
}

.marketing-page-side-card {
    padding: 28px;
    background: linear-gradient(145deg, #081226 0%, #0f172a 50%, #172554 100%);
    color: #eff6ff;
}

.marketing-page-side-card::before {
    width: 180px;
    height: 180px;
    right: -40px;
    bottom: -40px;
    background: rgba(56, 189, 248, 0.18);
}

.marketing-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.9);
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.marketing-page-kicker-dark {
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.12);
}

.marketing-page-title {
    margin: 0;
    font-size: clamp(2.35rem, 4.3vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.marketing-page-lead {
    margin: 18px 0 0;
    max-width: 720px;
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.75;
}

.marketing-page-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.marketing-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.marketing-inline-pill strong {
    font-size: 1.02rem;
}

.marketing-side-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.marketing-side-intro h2 {
    margin: 14px 0 10px;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.06;
    color: #ffffff;
}

.marketing-side-intro p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.72;
}

.marketing-side-grid {
    display: grid;
    gap: 12px;
}

.marketing-side-metric {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.12);
}

.marketing-side-metric-label {
    display: block;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketing-side-metric-value {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.55;
}

.marketing-section-block {
    margin-top: 30px;
}

.marketing-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.marketing-detail-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.07);
}

.marketing-detail-card h2,
.marketing-detail-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    line-height: 1.2;
}

.marketing-detail-card p {
    margin: 0;
    color: #475569;
    line-height: 1.68;
}

.marketing-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marketing-list li {
    position: relative;
    padding-left: 18px;
    color: #475569;
    line-height: 1.6;
}

.marketing-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
    font-weight: 900;
}

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

.marketing-pricing-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

.marketing-pricing-card-featured {
    border-color: rgba(59, 130, 246, 0.32);
    box-shadow: 0 30px 68px rgba(37, 99, 235, 0.14);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.marketing-pricing-tier {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.marketing-pricing-subtitle {
    color: #475569;
    line-height: 1.62;
}

.marketing-pricing-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.9);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.marketing-pricing-note {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.04);
    color: #334155;
    line-height: 1.65;
}

.marketing-founder-grid {
    display: grid;
    gap: 24px;
}

.marketing-founder-card {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 26px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

.marketing-founder-media {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.marketing-founder-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketing-founder-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    line-height: 1.08;
}

.marketing-founder-summary {
    margin: 14px 0 0;
    color: #334155;
    line-height: 1.72;
}

.marketing-founder-sections {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.marketing-founder-sections section h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.02rem;
}

.marketing-founder-sections section p,
.marketing-founder-sections section li {
    color: #475569;
    line-height: 1.68;
}

.marketing-founder-sections section p {
    margin: 0;
}

.marketing-founder-sections section ul {
    margin: 0;
    padding-left: 18px;
}

.marketing-founder-contact {
    margin-top: 18px;
    color: #0f172a;
    font-weight: 700;
}

.marketing-founder-contact a,
.marketing-contact-link {
    color: #1d4ed8;
    text-decoration: none;
}

.marketing-founder-contact a:hover,
.marketing-contact-link:hover {
    text-decoration: underline;
}

.marketing-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.marketing-contact-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.07);
}

.marketing-contact-card h2 {
    margin: 10px 0 12px;
    color: #0f172a;
    font-size: 1.22rem;
}

.marketing-contact-card p {
    margin: 0;
    color: #475569;
    line-height: 1.68;
}

.marketing-contact-meta {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.72);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.marketing-spaced-copy {
    display: grid;
    gap: 12px;
}

.marketing-spaced-copy p {
    margin: 0;
}
}
.centered {
    max-width: 900px;
    margin: auto;
    padding: 32px 16px;
}

.ticket-img {
    display: block;
    margin: 32px auto;
    max-width: 180px;
}

.numbers-title {
    margin-top: 48px;
    text-align: center;
}

.numbers-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 32px 0;
}

.numbers-card {
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 32px 24px;
    min-width: 220px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.numbers-value {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 12px;
}

.numbers-desc {
    font-size: 1.1em;
}

.numbers-green .numbers-value {
    color: #4caf50;
}
.numbers-blue .numbers-value {
    color: #2196f3;
}
.numbers-orange .numbers-value {
    color: #ff9800;
}

.ticket-img-full {
    display: block;
    margin: 32px auto;
    width: 50%;
    max-width: 450px;
    height: auto;
}


.dashboard-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-top {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 260px;
}

.dashboard-map {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: stretch;    
    position: sticky;
    top: 0px; /* Adjust to match your menu bar height */
    z-index: 2;
    background: #fff;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 100%;
    flex: 1 1 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.dashboard-cards {
    flex: 1 1 0;
    max-width: 50%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
    align-items: stretch;
    padding: 16px;
    box-sizing: border-box;
}

.dashboard-card {
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px 18px;
    min-width: 140px;
    min-height: 90px;
    max-width: 140px;
    max-height: 90px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

.dashboard-bottom {
    margin-top: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.dashboard-flex {
    display: flex;
}

.dashboard-main {
    margin-left: 220px;
    width: calc(100% - 220px);
    padding: 0;
    box-sizing: border-box;
    max-width: calc(100vw - 220px);
    background-color: #ffffff;
}
.dashboard-card-bases:hover span { color: #455a64; }
.dashboard-card-helicopters:hover span { color: #01579b; }
.dashboard-card-employees:hover span { color: #3e2723; }
.dashboard-card-customers:hover span { color: #558b2f; }
.dashboard-card-reports:hover span { color: #b71c1c; }
.dashboard-card-products:hover span { color: #f57c00; }
.dashboard-card-tips:hover span { color: #00695c; }
.dashboard-card-email:hover span { color: #1565c0; }
.dashboard-card-phone:hover span { color: #2e7d32; }
.dashboard-card-text:hover span { color: #fbc02d; }

/* Critical helicopter cards on dashboard */
.dashboard-card.critical-helicopter {
    background: #ffebee !important;
    border: 3px solid #e53935 !important;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3) !important;
    position: relative;
}

.dashboard-card.critical-helicopter:hover {
    border-color: #c62828 !important;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4) !important;
}

/* Generic danger badge for dashboard cards (positioned absolute within the card) */
.dashboard-card .critical-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #e53935;
    color: white;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: help;
    white-space: nowrap;
    line-height: normal;
}
.dashboard-card-bases .critical-badge { cursor: pointer; }

/* Dismiss (X) button inside critical badges */
.dashboard-card .critical-badge .critical-dismiss-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    font-size: 1.15em;
    font-weight: 900;
    line-height: 1;
    margin-left: 8px;
    padding: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.dashboard-card .critical-badge .critical-dismiss-btn:hover {
    background: rgba(255,255,255,0.28);
}

.dashboard-card .critical-badge .critical-dismiss-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Align and stack badges in the top-right of the Bases card */
.dashboard-card-bases .critical-badge-important {
    right: 8px;
    top: 8px;
    z-index: 12; /* sit above the danger badge */
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 12px;
}

.dashboard-card-bases .critical-badge {
    right: 8px;
    top: 8px;
    z-index: 11;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 12px;
    transform: translateX(calc(-100% - 12px)); /* place danger badge to the left of the important badge with larger gap */
}

/* Bases card specific positioning and alert borders */
.dashboard-card-bases {
    position: relative;
}

.dashboard-card-bases.bases-has-very {
    background: #ffebee !important;
    border: 3px solid #e53935 !important;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3) !important;
}

.dashboard-card-bases.bases-has-important {
    background: #fff8e1 !important;
    border: 3px solid #fdd835;
    box-shadow: 0 4px 12px rgba(255, 216, 77, 0.15);
}

/* Absolute yellow badge for important TODOs in Bases card */
.dashboard-card-bases .critical-badge-important {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fdd835;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
    z-index: 12;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
}


.dashboard-card .critical-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    color: #222;
    border: 2px solid #e53935;
    border-radius: 8px;
    padding: 12px;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    text-align: left;
    white-space: normal;
}

.dashboard-card .critical-badge:hover .critical-tooltip {
    display: block;
}

.dashboard-card .critical-tooltip strong {
    display: block;
    margin-bottom: 8px;
    color: #e53935;
    font-size: 1em;
}

.dashboard-card .critical-tooltip ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.dashboard-card .critical-tooltip li {
    margin: 4px 0;
    font-size: 0.9em;
    color: #555;
}

.header-spacer {
    height: 94px;
}

@media (max-width: 1120px) {
    .marketing-hero,
    .marketing-ops-band,
    .marketing-feature-card,
    .marketing-proof-grid,
    .marketing-stat-row,
    .marketing-page-hero,
    .marketing-card-grid,
    .marketing-pricing-grid,
    .marketing-contact-grid,
    .marketing-founder-card {
        grid-template-columns: 1fr;
    }

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

    .header-left,
    .header-right {
        justify-content: space-between;
    }

    .header-nav {
        gap: 8px;
    }

    .marketing-feature-image {
        height: 220px;
    }

    .marketing-founder-media {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .header-bar {
        padding: 12px 16px;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        justify-content: flex-start;
    }

    .header-brand-tagline {
        display: none;
    }

    .header-nav {
        gap: 6px;
    }

    .header-btn {
        padding: 9px 14px;
        font-size: 0.9rem;
    }

    .header-spacer {
        height: 128px;
    }

    .marketing-home {
        padding-left: 16px;
        padding-right: 16px;
    }

    .marketing-page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .marketing-hero {
        padding-top: 24px;
    }

    .marketing-page-hero {
        padding-top: 24px;
    }

    .marketing-feature-card,
    .marketing-ops-band,
    .marketing-bottom-cta,
    .marketing-proof-card,
    .marketing-stat-card,
    .marketing-page-hero-card,
    .marketing-page-side-card,
    .marketing-detail-card,
    .marketing-pricing-card,
    .marketing-founder-card,
    .marketing-contact-card {
        padding: 22px;
    }

    .marketing-demo-controls,
    .marketing-cta-group,
    .marketing-footer-meta,
    .marketing-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .marketing-primary-cta,
    .marketing-secondary-cta,
    .marketing-demo-button,
    .marketing-inline-pill {
        width: 100%;
    }

    .marketing-page-title {
        font-size: clamp(2.1rem, 9vw, 3.2rem);
    }

    .marketing-visual-panel {
        min-height: 340px;
    }

    .marketing-visual-badge {
        font-size: 0.82rem;
        min-height: 40px;
        padding: 0 12px;
    }

    .marketing-visual-badge-top {
        left: 16px;
        top: 16px;
    }

    .marketing-visual-badge-bottom {
        right: 16px;
        bottom: 16px;
    }

    .footer-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .marketing-founder-media {
        min-height: 240px;
    }
}

/* Location page specific styles */
.location-selection {
    background: #fff !important;
    padding: 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    margin: 20px 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.location-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin: 20px 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.location-card {
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    padding: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
}

.location-card:hover {
    border-color: #2196f3 !important;
    background-color: #f5f5f5 !important;
}

.location-card input[type="radio"] {
    margin-right: 8px !important;
}

.location-card label {
    cursor: pointer !important;
    font-weight: bold !important;
    display: block !important;
    word-wrap: break-word;
}

.current-location {
    background: #f5f5f5 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    border-left: 4px solid #4caf50 !important;
    box-sizing: border-box;
    width: 100%;
}

.location-help {
    background: #f9f9f9 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    border-left: 4px solid #ff9800 !important;
    box-sizing: border-box;
    width: 100%;
}

/* Responsive adjustments for location page */
@media (max-width: 768px) {
    .maintenance-main {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .location-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Additional responsive fixes for maintenance-main */
@media (max-width: 480px) {
    .maintenance-main {
        margin-left: 0;
        width: 100%;
        padding: 0 12px;
    }
    
    .location-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .location-card {
        padding: 12px !important;
    }
}

@media (max-width: 1200px) {
    .location-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    body.has-legacy-sidebar {
        overflow-x: hidden;
    }

    body.has-legacy-sidebar.sidebar-mobile-nav-open {
        overflow: hidden;
    }

    .sidebar-mobile-toggle {
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 1002;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.96);
        color: #fff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
        font-family: Arial, sans-serif;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    .sidebar-mobile-toggle:hover {
        background: rgba(30, 41, 59, 0.98);
    }

    .sidebar-mobile-toggle:focus-visible {
        outline: 2px solid #60a5fa;
        outline-offset: 2px;
    }

    .sidebar-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: block;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.sidebar-mobile-nav-open .sidebar-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-menu {
        width: min(320px, calc(100vw - 56px));
        max-width: calc(100vw - 56px);
        height: 100dvh;
        box-shadow: 12px 0 28px rgba(0, 0, 0, 0.32);
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 1001;
    }

    body.sidebar-mobile-nav-open .sidebar-menu {
        transform: translateX(0);
    }

    .sidebar-menu ~ * {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .maintenance-flex,
    .dashboard-flex,
    .calendar-flex,
    .detail-flex,
    .fitness-flex {
        display: block;
    }
}

/* Body overflow control to prevent horizontal scrolling */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent any element from causing horizontal overflow */
* {
    max-width: 100%;
}

/* Allow absolute-positioned badges inside the Bases card (used when a single base is shown) */
.dashboard-card-bases { position: relative; overflow: visible; }

/* Ensure both badges are positioned relative to the Bases card (top-right of the card) */
.dashboard-card-bases .critical-badge-important {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: #fdd835;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
    z-index: 30 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
    white-space: nowrap;
}

.dashboard-card-bases .critical-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;
    transform: translateX(calc(-100% - 8px)) !important;
}

.dashboard-card-bases .critical-badge-important .critical-tooltip { border-color: #fdd835; }
.dashboard-card-bases .critical-badge-important .critical-tooltip strong { color: #92400e; }

/* Visual border indicators for Bases card when alerts exist */
.dashboard-card-bases.bases-has-very {
    border: 3px solid #e53935 !important;
    box-shadow: 0 4px 16px rgba(229,57,53,0.12);
}
.dashboard-card-bases.bases-has-important {
    border: 3px solid #fdd835;
    box-shadow: 0 4px 12px rgba(253,216,53,0.08);
}

/* Show the tooltip when hovering the absolute important badge (match inline behavior) */
.dashboard-card-bases .critical-badge-important:hover .critical-tooltip {
    display: block;
}

/* Global table striping (zebra) and hover for improved scanability */
table {
    border-collapse: collapse;
}

table tbody tr:nth-child(even) {
    background: #f7fafc; /* subtle light stripe */
}

table tbody tr:nth-child(odd) {
    background: #ffffff;
}

table tbody tr:hover {
    background: #edf2f7; /* slightly darker on hover */
}

/* Leave header styling to per-page rules (this ensures black headers remain intact) */
table thead th {
    /* intentionally empty - per-page header backgrounds override */
}