body {
    background: #f6f6f8;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ==== Logo Above Form/Title ==== */
.container-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}
.form-logo {
    height: 164px;
    max-width: 320px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ==== BACK LINK ==== */
.back-link {
    margin: 0 0 18px 0;
    text-align: left;
}
.back-link a {
    color: #377dff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    transition: color 0.15s;
}
.back-link a:hover {
    color: #172642;
    text-decoration: underline;
}

/* Main Container */
.container {
    background: #fff;
    margin: 48px auto;
    padding: 42px 48px 32px 48px;
    max-width: 1400px;
    min-width: 1100px;
    box-shadow: 0 6px 32px rgba(60,80,130,0.10);
    border-radius: 18px;
}

/* ===== Page Title ===== */
h1, .main-title {
    text-align: center;
    font-size: 2.8rem;
    color: #192248;
    font-weight: 800;
    margin: 8px 0 28px 0;
    letter-spacing: .01em;
    position: relative;
}
h1:after, .main-title:after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 70px;
    border-bottom: 3px solid #03a9f4;
    padding-top: 7px;
}
h2, h3 {
    margin-top: 0;
    color: #192248;
    letter-spacing: .01em;
    text-align: center;
    font-size: 2.1rem;
    font-weight: 700;
    position: relative;
}
h2:after, h3:after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 40px;
    border-bottom: 2px solid #03a9f4;
    padding-top: 5px;
}

/* ===== NAV ===== */
.nav {
    background: #24304e;
    padding: 14px 0 14px 38px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.nav a {
    color: #fff;
    margin-right: 22px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: .01em;
    transition: color .18s;
}
.nav a:hover {
    color: #f8fafc;
    text-decoration: underline;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0 10px 0;
    background: #fafbff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(90,120,150,0.08);
    overflow: hidden;
}
th, td {
    border: none;
    padding: 11px 15px;
    text-align: left;
    font-size: 1.03rem;
    white-space: nowrap;
    vertical-align: middle;
}
th {
    background: #eef1f8;
    color: #32406b;
    font-weight: 600;
}
tr:nth-child(even) {
    background: #f6f8fc;
}
tr:hover {
    background: #e6f0ff;
    transition: background .16s;
}

/* Flashes */
.flashes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.flashes li {
    background: #dbeafe;
    color: #2563eb;
    padding: 10px 18px;
    margin-bottom: 4px;
    border-left: 5px solid #2563eb;
    border-radius: 4px;
    font-size: 1.03rem;
}

/* ==== FORM ELEMENTS ==== */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select {
    padding: 11px 14px;
    margin: 6px 0 18px 0;
    border: 1.3px solid #d1d5db;
    border-radius: 6px;
    width: 100%;
    font-size: 1.08rem;
    background: #f9fbff;
    transition: border .18s, box-shadow .18s;
    height: 46px;
    box-sizing: border-box;
    vertical-align: middle;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
select:focus {
    border: 1.3px solid #03a9f4;
    outline: none;
    background: #fff;
    box-shadow: 0 1px 3px #b6e5fc21;
}
label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
    display: block;
    font-size: 1.07rem;
    letter-spacing: .01em;
}

/* ==== FORM CARD ==== */
.form-card {
    background: #fff;
    border-radius: 18px;
    max-width: 900px;
    margin: 48px auto;
    padding: 44px 38px 30px 38px;
    box-shadow: 0 4px 24px rgba(50,60,80,0.10);
}
.form-card h2 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #172642;
    letter-spacing: .02em;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 700;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

/* ==== CUSTOMER SEARCH FORM ROW (Perfect Alignment) ==== */
.customer-search-form .form-search-row {
    display: flex;
    gap: 16px;
    align-items: center;  /* key for alignment */
    flex-wrap: wrap;
}
.form-search-field {
    flex: 1;
    min-width: 180px;
}
.customer-search-form input[type="text"] {
    margin-bottom: 0;
    height: 46px;
    font-size: 1.11rem;
    line-height: 46px;
    vertical-align: middle;
    box-sizing: border-box;
}
.customer-search-form .btn-custom {
    margin-bottom: 0;
    min-width: 150px;
    height: 46px;
    line-height: 46px;
    box-shadow: 0 2px 8px rgba(90,120,150,0.10);
    background: #e6e8eb;
    color: #21263a;
    border: none;
    font-weight: 700;
    font-size: 1.09rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 0 24px;
    border-radius: 8px;
}
.customer-search-form .btn-custom:hover {
    background: #d0d5db;
    color: #192248;
}

/* ==== BUTTONS ==== */
.btn-custom, .btn-secondary, button, .btn-xs {
    background: #e6e8eb;
    color: #21263a;
    border: none;
    border-radius: 7px;
    padding: 8px 22px;
    font-weight: 700;
    font-size: 1.02rem;
    box-shadow: 0 2px 8px rgba(120,120,120,0.09);
    transition: background .16s, color .16s, box-shadow .16s;
    cursor: pointer;
    display: inline-block;
    min-width: 90px;
    margin-top: 2px;
    margin-bottom: 2px;
    text-align: center;
    text-decoration: none;
    outline: none;
}
.btn-custom:hover, .btn-secondary:hover, button:hover, .btn-xs:hover {
    background: #d0d5db;
    color: #192248;
}
.btn-xs {
    padding: 5px 13px !important;
    font-size: 0.96rem !important;
    min-width: 70px;
}
.btn-delete {
    color: #ba1919 !important;
    font-weight: 700;
}
.btn-delete:hover {
    background: #ffd7d7 !important;
    color: #990505 !important;
}

/* ==== VEHICLE TAGS ==== */
.vehicle-tag {
    display: inline-block;
    background: #f2f7ff;
    border-radius: 6px;
    padding: 3px 10px 3px 7px;
    margin: 2px 3px 2px 0;
    font-size: 0.98rem;
    position: relative;
}
.vehicle-tag .btn-icon {
    color: #1975c6;
    margin-left: 8px;
    font-size: 1.07em;
    vertical-align: middle;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    display: inline;
    padding: 0 2px;
}
.vehicle-tag .btn-icon:hover {
    text-decoration: underline;
    color: #0b4d8d;
}

/* Responsive */
@media (max-width: 1450px) {
    .container {
        max-width: 100vw;
        min-width: 950px;
        padding: 16px 4vw 16px 4vw;
    }
    table {
        font-size: 0.97rem;
    }
    th, td {
        font-size: 0.96rem;
        padding: 9px 10px;
    }
    .form-logo {
        height: 48px;
        max-width: 120px;
    }
    .container-header {
        margin-bottom: 4px;
    }
    .company-setup-form {
        max-width: 96vw;
    }
}
@media (max-width: 1100px) {
    .container {
        min-width: 0;
        max-width: 99vw;
        padding: 8px 2vw 8px 2vw;
    }
    table {
        font-size: 0.94rem;
    }
    th, td {
        padding: 6px 4px;
        font-size: 0.92rem;
    }
    .form-logo {
        height: 36px;
        max-width: 80px;
    }
    .container-header {
        margin-bottom: 2px;
    }
    .company-setup-form {
        max-width: 99vw;
    }
}
@media (max-width: 800px) {
    th, td {
        padding: 3px 2px;
        font-size: 0.89rem;
    }
    .login-card {
        margin-top: 30px;
        padding: 14px 4vw;
    }
    .form-logo {
        height: 24px;
        max-width: 50px;
    }
    .container-header {
        margin-bottom: 2px;
    }
    .company-setup-form {
        max-width: 100vw;
    }
    .dashboard-cards {
        flex-direction: column;
        gap: 14px;
    }
    .dashboard-card {
        min-width: 0;
        padding: 16px 10px;
    }
    .customer-search-form .form-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .customer-search-form .btn-custom,
    .customer-search-form input[type="text"] {
        width: 100%;
        min-width: unset;
    }
}
