﻿
.dashboard-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 105px);
}

.v-spacer {
    margin-bottom: 30px;
}
/*---NEW GRID------------------------------------------------------------------------*/
form {
    max-width: 900px;
    margin: auto;
    border-radius: 6px;
    font-family: 'Segoe UI', Arial, sans-serif;
}


.field-row {
    display: grid;
    column-gap: 20px;
    row-gap: 16px;
    margin-bottom: 12px;
}

    .field-row.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-row.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

.field-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .field-group label {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 4px;
    }

        .field-group label.required::after {
            content: " *";
            color: red;
            margin-left: 2px;
            font-weight: bold;
        }

    .field-group input {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        max-width: 100%;
    }

    .field-group select {
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        max-width: 100%;
        margin: 0;
    }

    .field-group input:focus {
        border-color: #0078d4;
        outline: none;
    }

.error {
    color: red;
    font-size: 12px;
    margin-top: 4px;
}

input:invalid + .error {
    display: block;
}
/*---NEW GRID------------------------------------------------------------------------*/

.dashboard-body {
    flex: 1;
    display: flex;
    padding: 0px;
    gap: 15px;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    height: calc(100vh - 45px);
    font-size: 12pt;
}

@media (min-width: 1200px) {
    .dashboard-body {
        height: calc(100vh - 110px);
    }
}

.flight-data-view {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    min-height: 0;
}

.service-data-view {
    border-radius: 8px 8px 0 0;
    background: rgba(5, 28, 44, 0.04);
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 60px 60px;
    gap: 10px;
}

.service-info {
    font-family: 'Segoe UI';
    color: #333333;
}

.svc-key {
    font-size: 16px;
    vertical-align: middle;
}

.svc-val {
    font-family: 'Segoe UI';
    font-size: 20px;
}

.header {
    font-size: 14pt;
}

.flight-data-summary {
    padding: 4px 4px 0 7px;
    color: white;
    height: 30px;
    background: #455;
    border-radius: 4px;
    margin-right: 5px;
    font-weight: 600;
    font-size: small;
}

.traveler-data-view {
    padding-top: 0;
    padding-right: 0;
}

.user-guide {
    font-family: monospace;
    margin-bottom: 10px;
    font-size: small;
}

.line-divider {
    border-bottom: 1px solid #dcdcdc;
}

.service-summary-body {
    transition: all 0.2s ease-in-out;
}

.active-traveler-row {
    background-color: #014F98 !important; /* light yellow highlight - TEMPORARY COLOR */
    color: white !important;
}

.default-btn {
    border-radius: 2px;
    border: 1px solid #2F6EAC;
    font-family: 'Segoe UI';
    font-weight: 700;
    width: 37px;
    height: 39px;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    line-height: 21px;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 0;
    min-width: 130px;
}

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

    table.fixed-actions td {
        vertical-align: middle;
    }

td.actions-cell {
    width: 50px;
    text-align: right;
    white-space: nowrap;
    padding-right: 10px;
}

    td.actions-cell .dropdown {
        display: inline-block;
    }

.kebab-icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

    .kebab-icon-btn:hover,
    .kebab-icon-btn:focus {
        background: transparent;
        box-shadow: none;
        outline: none;
    }

.kebab-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}
/* on edit table is locked*/
.table.table-locked {
    opacity: 0.6;
}

    .table.table-locked .actions-cell {
        pointer-events: none;
    }
/* Sections */
.section-header {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

.section-header-divide {
    border-bottom: 1px solid silver;
}
/* LEFT SIDE GROUP */
.left-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* pushes right group to far end */
.right-group {
    margin-left: auto;
    display: flex;
    align-items: center;
}
/* optional styling */
.title {
    font-size: 1.1em;
}
/* push last button to far right */
.toggle-btn {
    margin-left: auto;
}

.narrow-cell {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}

.travelerType-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.count-cell {
    font-weight: bolder;
}
/*table overlay*/
.table-overlay-wrapper {
    position: relative;
    margin-top: 10px;
}
/* Overlay layer */
.table-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.table td, .table th {
    border-top: none !important;
}

.overlay-content {
    background: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 34px;
    height: 34px;
    border: 2px solid #ccc;
    border-top-color: #004F98;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: inline-flex;
    min-width: 20px;
    cursor: pointer;
}

    .icon-btn:focus,
    .icon-btn:hover {
        background: transparent;
        box-shadow: none;
        outline: none;
    }
/*country-port selections*/
.combo-control {
    display: flex;
    width: 100%;
}
    /* Country */
    .combo-control select {
        flex: 0 0 40%;
        max-width: 40%;
        margin-left: 0;
    }
    /* Port */
    .combo-control input {
        flex: 1;
        border-radius: 0 5px 5px 0 !important;
    }
/*country-port selections*/


/*buttons*/
.actions-group {
    margin-left: 5px;
}

.btn-disabled {
    opacity: 0.5;
    border: 1px solid #2F6EAC;
    color: #004F98;
    cursor: not-allowed !important;
}

.btn-enabled {
    background-color: #004F98;
    border: 1px solid #2F6EAC;
    color: #fff;
    cursor: pointer !important;
}
/*buttons*/

.validation-error {
    color: red;
    font-size: small;
    padding-left: 4px;
    opacity: 0.7;
}

select.is-placeholder {
    color: #999;
}

.submission-success {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    padding: 2rem 1rem;
    flex: 2;
}

    .submission-success img {
        width: 32px;
        height: 32px;
    }

.submission-success__msg {
    font: 400 24px/32px 'Segoe UI', Arial, sans-serif;
    color: #333;
    margin: 0;
}
.submission-download-info{
    font-size: 18px;
}
.submission-history-info {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.64);
}

.submission-success__actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.submission-wide {
    padding-left: 30px;
    padding-right: 30px;
}
