/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --bs-primary: #04394B;
    --bs-primary-rgb: 4, 57, 75;

    --bs-secondary: #064E66;
    --bs-secondary-rgb: 6, 78, 102;

    --bs-warning: #EAA416;
    --bs-warning-rgb: 234, 164, 22;

    --bs-light: #F6EFE8;
    --bs-light-rgb: 246, 239, 232;

    --bs-gray-100: #EEEEF0;
    --bs-body-bg: #EEEEF0;
    --bs-body-color: #04394B;

    --bs-border-color: #EEEEF0;

    --bs-font-sans-serif: 'Poppins', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--bs-font-sans-serif);
    /* background-color: var(--bs-body-bg); */
    color: var(--bs-body-color);
    /* background: linear-gradient(135deg, #064E66 0%, #04394B 100%); */
    display: flex;
    flex-direction: column;
}

main {
    background: #EEEEF0;
    min-height: 90vh; /* Viewport Height */
}

footer {
     width: 100%;
     z-index: 1000;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Links */
a {
    color: var(--bs-secondary);
}
a:hover {
    color: var(--bs-primary);
}

/* Buttons */
.btn-primary {
    background-color: #04394B;
    border-color: #04394B;
}
.btn-primary:hover {
    background-color: #064E66;
    border-color: #064E66;
}

.btn-secondary {
    background-color: #064E66;
    border-color: #064E66;
}
.btn-secondary:hover {
    background-color: #04394B;
    border-color: #04394B;
}

.btn-warning {
    background-color: #EAA416;
    border-color: #EAA416;
    color: #fff;
}
.btn-warning:hover {
    background-color: #c98c12;
    border-color: #c98c12;
}

/* Navbar */
.navbar {
    background-color: #04394B !important;
}
.navbar .nav-link,
.navbar-brand {
    color: #fff !important;
}
.navbar .nav-link:hover {
    color: #EAA416 !important;
}

/* Cards */
.card {
    border: 1px solid #EEEEF0;
    border-radius: 0.5rem;
}
.card-header {
    background-color: #F6EFE8;
    border-bottom: 1px solid #EEEEF0;
}

/* Forms */
.form-control {
    border-color: #EEEEF0;
}
.form-control:focus {
    border-color: #064E66;
    box-shadow: 0 0 0 0.2rem rgba(6, 78, 102, 0.25);
}

/* Tables */
.table {
    color: #04394B;
}
.table thead {
    background-color: #064E66CC;
    color: #EEEEF0;
}
/* .table-striped tbody tr:nth-of-type(odd) {
    background-color: #F6EFE8;
} */

/* Alerts */
.alert-primary {
    background-color: rgba(4, 57, 75, 0.1);
    border-color: #04394B;
    color: #04394B;
}

.alert-warning {
    background-color: rgba(234, 164, 22, 0.1);
    border-color: #EAA416;
    color: #EAA416;
}

/* Badges */
.badge-primary {
    background-color: #04394B;
}
.badge-warning {
    background-color: #EAA416;
}

/* Pagination */
.page-link {
    color: #064E66;
}
.page-item.active .page-link {
    background-color: #04394B;
    border-color: #04394B;
}

/* Modals */
.modal-content {
    border-radius: 0.5rem;
}
.modal-header {
    background-color: #F6EFE8;
    border-bottom: 1px solid #EEEEF0;
}

/* Progress Bars */
.progress-bar {
    background-color: #EAA416;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #F6EFE8;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid #EEEEF0;
}
.dropdown-item:hover {
    background-color: #F6EFE8;
}

/* Footer Example */
.footer {
    background-color: #04394B;
    color: #fff;
}

/* Shared listing page toolbars */
.quotation-filter-actions,
.device-toolbar-actions {
    display: flex;
    gap: .5rem;
}

.quotation-filter-actions .btn-primary,
.device-toolbar-actions .btn-secondary {
    flex: 1 1 auto;
}

.quotation-filter-actions .btn-danger {
    min-width: 86px;
}

.device-toolbar-actions .btn-primary {
    min-width: 120px;
}

.users-toolbar-actions {
    display: flex;
    justify-content: flex-end;
}

.users-toolbar-actions .btn {
    min-width: 140px;
}

/* Shared actions cell layouts */
.quotation-actions-cell {
    min-width: 360px;
}

.device-actions-cell,
.users-actions-cell {
    min-width: 220px;
}

.review-actions-cell {
    min-width: 240px;
}

.quotation-actions-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.quotation-actions-top {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.quotation-actions-buttons,
.device-actions-group,
.users-actions-group,
.review-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.quotation-actions-buttons .btn,
.quotation-actions-buttons .quotation-actions-submit {
    flex: 1 1 120px;
    min-width: 120px;
    margin: 0;
}

.quotation-actions-submit {
    max-width: none;
}

.quotation-actions-buttons .btn,
.device-actions-group form .btn,
.users-actions-group form .btn {
    width: 100%;
}

.device-actions-group .btn,
.device-actions-group form,
.users-actions-group .btn,
.users-actions-group form {
    flex: 1 1 96px;
    min-width: 96px;
    margin: 0;
}

.review-actions-group .btn {
    flex: 1 1 110px;
    min-width: 110px;
}

/* Site Surveys Styles */
.survey-actions-cell {
    min-width: 280px;
}

.survey-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.survey-actions-group .btn {
    flex: 1 1 90px;
    min-width: 90px;
}

.survey-actions-group form {
    display: contents;
}

.survey-rooms-list {
    display: grid;
    gap: .75rem;
}

.survey-rooms-list .accordion-item {
    border: 1px solid #dbe3eb;
    border-radius: .6rem;
    overflow: hidden;
    background: #fff;
}

.survey-room-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 0;
    background: #fff;
    color: #04394B;
    padding: .85rem 1rem;
    text-align: left;
}

.survey-room-toggle:hover {
    background: #f4f8fb;
}

.survey-room-toggle:not(.collapsed) {
    background: #ecf5fa;
    border-bottom: 1px solid #dbe3eb;
}

.survey-room-title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.survey-room-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}

.survey-room-subtitle {
    color: #587083;
    font-size: .82rem;
    margin-top: .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.survey-room-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: flex-end;
}

.survey-room-chip {
    background: #e7f0f5;
    color: #04394B;
    border: 1px solid #c5d8e3;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .75rem;
    font-weight: 600;
}

.survey-rooms-list .accordion-body {
    background: #fbfdff;
    padding: 1rem;
}

.survey-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.survey-spec-card {
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: .55rem;
    padding: .75rem;
}

.survey-spec-title {
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: .55rem;
    color: #04394B;
}

.survey-spec-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.survey-spec-chip {
    background: #f1f7fb;
    color: #04394B;
    border: 1px solid #d3e4ee;
    border-radius: 999px;
    font-size: .75rem;
    padding: .18rem .5rem;
    font-weight: 600;
}

.survey-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .35rem;
}

.survey-spec-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .85rem;
}

.survey-flag {
    border-radius: 999px;
    padding: .12rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid;
}

.survey-flag.yes {
    color: #0e6331;
    background: #e9f7ef;
    border-color: #b7e3ca;
}

.survey-flag.no {
    color: #8a2c2c;
    background: #fdeeee;
    border-color: #f5c2c2;
}

.survey-room-image {
    max-width: 320px;
    border-radius: .55rem;
    border: 1px solid #dbe6ef;
    box-shadow: 0 4px 10px rgba(4, 57, 75, .08);
}

.survey-form-section {
    background: #ffffff;
    border: 1px solid #dbe6ef;
    border-radius: .55rem;
    padding: .85rem;
}

.survey-form-section-title {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .7rem;
    color: #04394B;
    padding-bottom: .45rem;
    border-bottom: 1px solid #e4edf4;
}

.survey-room-actions {
    display: flex;
    justify-content: flex-start;
}

.survey-room-save-btn,
.survey-room-delete-btn {
    min-width: 180px;
}

.survey-room-delete-form {
    margin-top: .5rem;
}
