html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content-area {
  flex: 1 0 auto;
}

/*=================== ADMIN HOME ===================*/

.admin-welcome-banner {
    background: linear-gradient(to right, var(--js-orange-dark), var(--js-orange));
    color: white;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

    .admin-welcome-banner h2 {
        color: white;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .admin-welcome-banner p {
        margin: 0;
        opacity: .95;
    }

.admin-section-label {
    color: var(--js-orange-dark);
    font-weight: 700;
    font-size: .95em;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 8px 0 14px;
}

/*=================== ALERTS (dashboard overdue banner, allocation-rate warning) ===================*/
.admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: .95em;
    line-height: 1.5;
    text-decoration: none !important;
}

    .admin-alert svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

.admin-alert--overdue {
    background: #fdeeee;
    color: #a53125;
    border: 1px solid #f6cccc;
}

    a.admin-alert--overdue:hover {
        background: #fbe3e3;
        color: #a53125;
    }

.admin-alert--warning {
    background: #fff8e6;
    color: #8a6407;
    border: 1px solid #f3e3ae;
}

    .admin-alert--warning a {
        color: #8a6407;
        font-weight: 700;
        text-decoration: underline;
    }

/* Multi-line alert variant (e.g. the room-allocation warning's per-room-type bullet list) -
   the base .admin-alert is a single-line flex row, this stacks the message below the icon. */
.admin-alert--block {
    align-items: flex-start;
}

.admin-alert__list {
    margin: 8px 0 0;
    padding-left: 20px;
}

    .admin-alert__list li {
        margin-bottom: 4px;
    }

/* Room type / missing-date-ranges grid for the allocation warning - each room type gets its
   own row, dates render as scannable pill badges instead of a run-on comma-separated sentence. */
.admin-alert__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 10px;
    margin-top: 12px;
    align-items: start;
}

.admin-alert__roomtype {
    font-weight: 700;
    white-space: nowrap;
    padding-top: 3px;
}

.admin-alert__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-alert__badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f3e3ae;
    font-size: .85em;
    white-space: nowrap;
}

/*=================== HEADER ===================*/
@media (max-width: 992px) {
    .navbar-collapse {
        padding: 20px 0;
        max-height: none !important;
        overflow: visible;
    }
}

/* Main orange menu: one row on desktop, items sit close together instead of
   stretching edge to edge on wide screens. Never wraps mid-label; if the
   viewport is too narrow to fit everything the bar scrolls horizontally
   instead of breaking into a ragged second row. */
.header-navbar-row .container {
    max-width: 1200px;
}






.nav-link:hover {
    color: rgb(34, 34, 33) !important;
    text-shadow: 1px 1px 1px rgba(128, 128, 128, 0.7);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.25);
}

.navbar-nav .nav-link.active {
    color: var(--js-orange-dark) !important;
    font-weight: bold;
}

/* The orange gradient nav bar (#navbarNav) needs its own ".active" treatment - the generic
   rule above sets orange-dark TEXT, which is nearly invisible on this bar's orange-dark
   background. Match the bar's existing :hover look (light pill + dark text) instead. */

.nav-link {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

/*=================== FOOTER ===================*/
.footer-custom {
    background-color: #2b2420; /* warm dark neutral instead of flat black */
    background-repeat: repeat;
    background-size: auto;
    border-top: 3px solid var(--js-orange);
    flex-shrink: 0;
    width: 100%;
}


.footer-links a {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #bbbbbb !important;
}

.footer-links a:hover {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: var(--js-orange) !important;
}

.footer-copyright {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    color: #bbbbbb !important;
}
/*=================== CONTENT ===================*/

.readOnly {
    background-color: #e6e6e6;
}

.editor {
    height: 300px !important;
}

pre {
    font-size: 1em;
    font-family: Arial, Helvetica, sans-serif;
}

h3 {
    font-size: 1.2em;
    /*background: linear-gradient(to right, var(--js-orange-dark), var(--js-orange));*/
    color: white;
    /*    border-radius: 3px;
    padding: 10px 5px;*/
    margin-bottom: 0;
}

.btn-delete {
    background: none;
    border: none;
    color: var(--js-orange);
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    padding: 0;
}

.box-div {
    width: 110px;
    height: 150px;
    padding: 5px;
    
    border: 1px solid #E6E6e6;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    color: var(--js-orange-dark);
    text-decoration: underline;
}

/* Same link-button shape as .btn-delete, green for the Booking Report's "Mark Paid"
   action so it reads as positive/confirming next to .btn-delete's Remove. */
.btn-mark-paid {
    background: none;
    border: none;
    color: #1e7e42;
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    padding: 0;
}

.btn-mark-paid:hover {
    color: #145c30;
    text-decoration: underline;
}

.jssOrangeRed {
    color: var(--js-orange-dark)
}

.jss-background {
    
}

.image-section-container{
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
}

.admin-main-image {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.admin-map-image {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.admin-gallery-image {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.list-container {
    padding: 10px 0;
}

.inline {
    display: inline;
}

.tableList {
    width: 100%;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
    .tableList thead th:first-child,
    .tableList tbody tr td:first-child {
        text-align: center;
    }

    .tableList thead tr th {
        padding: 12px 14px;
        color: var(--js-orange-dark);
        font-weight: 700;
        font-size: .85em;
        text-transform: uppercase;
        letter-spacing: .03em;
        border: none;
        border-bottom: 2px solid #eaeaea;
        background-color: #fbf8f4;
    }

    .tableList tbody tr {
        transition: background-color 0.1s ease;
    }

    .tableList tbody tr:hover {
        background-color: #fef7ef;
    }

    .tableList tbody tr:not(:last-child) td {
        border-bottom: 1px solid #f0f0f0;
    }

    .tableList tbody tr td {
        padding: 12px 14px;
        border: none;
    }

.star-rating {
    display: inline-flex;
    gap: 1px;
    color: #f4b400;
    vertical-align: middle;
}

.buttonContainer {
    white-space: nowrap;
}

    .buttonContainer form {
        white-space: nowrap;
        display: inline;
    }

        .buttonContainer form button {
            background: none;
            border: none;
            color: #007bff;
            text-decoration: underline;
            cursor: pointer;
            padding: 0;
            font: inherit;
        }

            .buttonContainer form button:hover {
                color: #0056b3;
            }

.status-true {
    color: green;
    font-weight: bold;
}

.status-false {
    color: red;
    font-weight: bold;
}

.header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, var(--js-orange-dark), var(--js-orange));
    color: white;
    padding: 10px;
    border-radius: 3px;
}

.add-button {
    background-color: var(--js-orange-dark);
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 1em;
    margin-right: 5px;
    font-weight: 600;
    border: none;
}

    .add-button:hover {
        background-color: var(--js-orange);
    }

.page-content-area {
    min-height: 700px;
    padding: 20px 0;
}

.page-title {
    color: var(--js-orange-dark);
    font-weight: 700;
    font-size: 1.7em;
    padding: 20px 0;
}

.row-gap {
    padding: 20px 3px;
}

.form-edit-item { 
    color: var(--js-orange);
    font-size: .85em;
    padding: 0 10px;
}

.hotel-selection-container {
    background-color: #e6e6e6;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
}
    .hotel-selection-container label{
        font-weight: bold;
    }

.rate-management-link a {
    text-decoration: none;
    color: var(--js-orange-dark);
    border-radius: 3px;
    padding: 2px;
}
    .rate-management-link a:hover {
        text-decoration: underline !important;
        color: white !important;
        background-color: var(--js-orange-dark) !important;
    }

.rate-management-link button {
    text-decoration: none !important;
    color: var(--js-orange-dark) !important;
    border-radius: 3px;
    padding: 2px;
}

    .rate-management-link button:hover {
        text-decoration: underline !important;
        color: white !important;
        background-color: var(--js-orange-dark) !important;
    }

.minute-divider {
    margin: 3px 1px;
    color: var(--js-orange);
}
/*=================== SIDE MENU ===================*/
.menu-box {
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    width: 200px;
    padding: 0;
    background-color: #e6e6e6;
}

.menu-header {
    background-color: var(--js-orange-dark);
    padding: 10px;
    font-weight: bold;
    color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 10px;
}

    .menu-list li {
        margin-bottom: 8px;
    }

    .menu-list a {
        text-decoration: none;
        color: #333;
    }

        .menu-list a:hover {
            text-decoration: underline;
        }


/*=============== data table =============*/
.list-container {
    font-size: 0.95em;
}

.list-container .dt-input {
    margin: 2px 5px;
    font-size: 0.95em;
    color: var(--js-orange-dark) !important;
}

.list-container label {
    margin: 2px 5px;
    font-size: 1em;
    color: darkgray !important;
}

.list-container .dt-info {
    font-size: 0.85em;
    color: darkgray !important;
}

.list-container .dt-paging {
    font-size: 0.9em;
    color: var(--js-orange-dark) !important;
}

/* Override DataTables' default black/gray pagination buttons (dataTables.dataTables.min.css)
   with the site's orange theme. dataTables.dataTables.min.css is linked AFTER site.css in
   _Layout.cshtml AND its own ".current" rule (div.dt-container .dt-paging .dt-paging-button.current)
   is more specific than a plain ".dt-paging-button.current" here - both selector prefix and
   ".list-container" wrapper are included below purely to outrank it on specificity. */
.list-container .dt-paging-button {
    border-radius: 6px !important;
    margin-left: 4px !important;
}

.list-container div.dt-container .dt-paging .dt-paging-button.current,
.list-container div.dt-container .dt-paging .dt-paging-button.current:hover {
    border: 1px solid var(--js-orange) !important;
    background: var(--js-orange) !important;
    color: #fff !important;
}

.list-container div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled) {
    border: 1px solid var(--js-orange-dark) !important;
    background: var(--js-orange-dark) !important;
    color: #fff !important;
}

/* Booking reference link (Booking Report list) - a small badge instead of a bare
   underlined blue link, so it reads as a tappable reference chip. */
.bkg-ref-link {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: #fdf1e4;
    color: var(--js-orange-dark) !important;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none !important;
}

    .bkg-ref-link:hover {
        background: var(--js-orange);
        color: #fff !important;
    }

/* Payment status (Booking Report list) - color-coded so a row's payment state reads
   at a glance without parsing text. "Overdue" is balance-due-date-has-passed, not just
   "not paid yet" - see the isOverdue check in BookingList.cshtml. */
.payment-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .85em;
    white-space: nowrap;
}

.payment-badge--paid {
    background: #e6f6ec;
    color: #1e7e42;
}

.payment-badge--deposit {
    background: #fdf1e4;
    color: var(--js-orange-dark);
}

.payment-badge--overdue {
    background: #fdeeee;
    color: #c0392b;
}


.width5p {
    width: 5%;
}
.width10p {
    width: 10%;
}
.width15p {
    width: 15%;
}
.width20p {
    width: 20%;
}
.width25p {
    width: 25%;
}
.width30p {
    width: 30%;
}
.width35p {
    width: 35%;
}
.width40p {
    width: 40%;
}
.width45p {
    width: 45%;
}
.width50p {
    width: 50%;
}

/*=========== Menu / dashboard tiles =========*/
.menu-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    height: 100%;
}

    a.menu-tile-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    a.menu-tile-link:hover .menu-item {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        border-color: var(--js-orange);
    }

    a.menu-tile-link:hover .menu-icon-circle {
        background: var(--js-orange);
        color: white;
    }

.menu-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--js-orange) 14%, white);
    color: var(--js-orange-dark);
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .menu-icon-circle svg {
        width: 26px;
        height: 26px;
    }

.menu-label {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #333;
    line-height: 1.3;
}

.grid-wrapper {
    min-height: 100vh;
}

/*============= Hotel Rate Top Menu ============*/
.rate-menu {
    background-color: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    padding: 6px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .95rem;
}

    .rate-menu a {
        color: #4b5563;
        font-weight: 600;
        text-decoration: none;
        padding: 8px 14px;
        border-radius: 8px;
        transition: background-color .15s ease, color .15s ease;
    }

        .rate-menu a:hover {
            background-color: #fff3e6;
            color: var(--js-orange-dark, #d9731a);
        }

    .rate-menu a.selectedRateMenuOption,
    .rate-menu a.selectedRateMenuOption:hover {
        background-color: var(--js-orange);
        color: #fff;
    }

/* Mobile toggle for .rate-menu, injected by _Layout.cshtml's script - hidden on desktop where
   the menu already fits on one/two flex-wrapped rows. Below the breakpoint the menu starts
   collapsed to just this button (showing the current section) instead of eating ~500px of
   vertical space above the actual page content on a phone. */
.rate-menu-toggle {
    display: none;
}

@media (max-width: 767.98px) {
    .rate-menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 10px;
        padding: 10px 14px;
        border: none;
        border-radius: 5px;
        background-color: var(--js-orange);
        color: white;
        font-size: 1.05em;
        font-weight: 600;
        text-align: left;
    }

    .rate-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

        .rate-menu.show {
            display: flex;
        }
}

/*=================== Audit Log ===================*/
.audit-log__filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .audit-log__filters .form-select,
    .audit-log__filters .form-control {
        max-width: 260px;
    }

.audit-log__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: .9em;
}

    .audit-log__pill a {
        color: #888;
        text-decoration: none;
        font-weight: 700;
    }

        .audit-log__pill a:hover {
            color: #a53125;
        }

.audit-log__action {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .85em;
    font-weight: 700;
}

.audit-log__action--insert {
    background: #e6f4ea;
    color: #1e7a34;
}

.audit-log__action--update {
    background: #fff8e6;
    color: #8a6407;
}

.audit-log__action--delete {
    background: #fdeeee;
    color: #a53125;
}

.audit-log__changes {
    margin: 0;
    padding-left: 18px;
}

    .audit-log__changes li {
        margin-bottom: 4px;
    }

.audit-log__old {
    color: #a53125;
    text-decoration: line-through;
    opacity: .8;
}

.audit-log__new {
    color: #1e7a34;
    font-weight: 600;
}

.audit-log__none {
    color: #999;
}

/* Compact variant embedded on an Edit form (see _AuditHistory.cshtml) rather than the
   standalone /Manage/AuditLog page - same building blocks, smaller footprint. */
.audit-log__inline {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eaeaea;
}

    .audit-log__inline h5 {
        font-size: 1em;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #888;
        margin-bottom: 10px;
    }

.audit-log__inline-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: .9em;
}

    .audit-log__inline-row:last-child {
        border-bottom: none;
    }

.audit-log__inline-when {
    color: #888;
    white-space: nowrap;
    min-width: 130px;
}

.audit-log__inline-who {
    font-weight: 600;
    white-space: nowrap;
}

/*===========Report table===============*/

.report-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

    .report-table th {
        background-color: #fbf8f4;
        padding: 12px 14px;
        border: none;
        border-bottom: 2px solid #eaeaea;
        text-align: left;
        color: var(--js-orange-dark);
        font-weight: 700;
        font-size: .85em;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .report-table tr:hover td {
        background-color: #fef7ef;
    }

    .report-table tr:not(:last-child) td {
        border-bottom: 1px solid #f0f0f0;
    }

    .report-table td {
        padding: 12px 14px;
        border: none;
    }

/*=================== ACTION BUTTONS (Edit | Images | Rates | Delete) ===================*/
/* Markup across ~20 list pages is a literal " | "-separated run of <a class="inline"> /
   <form class="inline"><button> inside <td class="buttonContainer"> - styling here upgrades
   every one of those pages at once without touching each cshtml file. The plain-text "|"
   separators can't be targeted by CSS (bare text nodes), so they're just faded down to a
   light rule-like color that recedes behind the pill buttons instead of removed outright. */
.buttonContainer {
    color: #d5d2cc;
    font-size: 0;
}

    .buttonContainer > a,
    .buttonContainer form {
        font-size: .85rem;
    }

    .buttonContainer a,
    .buttonContainer form button {
        display: inline-flex;
        align-items: center;
        margin: 2px 2px;
        padding: 5px 12px;
        border-radius: 6px;
        font-size: .85rem;
        font-weight: 600;
        text-decoration: none;
        border: 1px solid transparent;
        background: #f3f0ec;
        color: #55504a;
        cursor: pointer;
        transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    }

        .buttonContainer a:hover,
        .buttonContainer form button:hover {
            background: var(--js-orange);
            color: #fff;
        }

        /* Delete is always the <form><button> in this markup pattern - give it its own
           at-rest color so it reads as the risky action even before hovering. */
        .buttonContainer form button {
            background: #fdeeee;
            color: #c0392b;
        }

            .buttonContainer form button:hover {
                background: #c0392b;
                color: #fff;
            }

/*=================== IDENTITY: LOGIN / REGISTER CARD ===================*/
.auth-card-wrap {
    max-width: 440px;
    margin: 40px auto;
}

.auth-card {
    border-radius: 14px;
    overflow: hidden;
}

.auth-card__header {
    background: linear-gradient(to right, var(--js-orange-dark), var(--js-orange));
    padding: 18px 28px;
}

.auth-card__title {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
}

.auth-card__body {
    padding: 28px;
}

.auth-card__submit {
    background: var(--js-orange);
    border: none;
    color: #fff;
    font-weight: 600;
}

    .auth-card__submit:hover {
        background: var(--js-orange-dark);
        color: #fff;
    }

/*=================== HEADER: ACCOUNT / LOGIN-LOGOUT ===================*/
.account-nav {
    align-items: center;
    gap: 8px;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    background: #f5f2ee;
    color: #55504a !important;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none !important;
}

.account-chip__icon {
    color: var(--js-orange-dark);
    flex-shrink: 0;
}

.account-logout-btn {
    background: none;
    border: 1px solid #e5e0d8;
    color: #857f76;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

    .account-logout-btn:hover {
        background: #f5f2ee;
        color: var(--js-orange-dark);
        border-color: #e5e0d8;
    }

.account-link {
    padding: 6px 14px;
    border-radius: 6px;
    color: #55504a !important;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none !important;
}

    .account-link:hover {
        background: #f5f2ee;
    }

.account-link--primary {
    background: var(--js-orange);
    color: #fff !important;
}

    .account-link--primary:hover {
        background: var(--js-orange-dark);
        color: #fff !important;
    }

/*=================== TOAST (saved confirmation) ===================*/
.app-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e7e42;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-weight: 600;
    animation: app-toast-in .25s ease;
}

.app-toast--out {
    animation: app-toast-out .3s ease forwards;
}

@keyframes app-toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes app-toast-out {
    to { opacity: 0; transform: translateY(-10px); }
}

/*=================== CONFIRM MODAL ===================*/
/*=================== Global search / command palette (Ctrl+K) ===================*/
.search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #e4e0da;
    border-radius: 8px;
    background: #fbf8f4;
    color: #6b665f;
    font-size: .88em;
    cursor: pointer;
    margin-right: 12px;
}

    .search-trigger:hover {
        background: #f3efe8;
    }

    .search-trigger kbd {
        padding: 1px 6px;
        border-radius: 4px;
        background: #fff;
        border: 1px solid #ddd8d0;
        font-size: .85em;
        font-family: inherit;
    }

.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 10, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    z-index: 1060;
}

.search-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 560px;
    overflow: hidden;
}

.search-modal__input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 16px 20px;
    font-size: 1.05em;
    outline: none;
}

.search-modal__results {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 360px;
    overflow-y: auto;
}

.search-modal__result {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .95em;
    color: #33302c;
}

    .search-modal__result.active,
    .search-modal__result:hover {
        background: var(--js-orange);
        color: #fff;
    }

.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 10, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.confirm-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 24px;
    max-width: 380px;
    width: 90%;
}

.confirm-modal__message {
    margin: 0 0 20px;
    color: #33302c;
    font-size: 1.02em;
    line-height: 1.5;
}

.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-modal__cancel,
.confirm-modal__confirm {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .92em;
    border: none;
    cursor: pointer;
}

.confirm-modal__cancel {
    background: #f3f0ec;
    color: #55504a;
}

    .confirm-modal__cancel:hover {
        background: #e8e4de;
    }

.confirm-modal__confirm {
    background: #c0392b;
    color: #fff;
}

    .confirm-modal__confirm:hover {
        background: #a53125;
    }
/* ---- Audit log: readable rows ---- */
.audit-log__table td { vertical-align: top; }
.audit-log__table td:nth-child(1) { white-space: nowrap; }
.audit-log__changes { margin: 0; padding-left: 1.1rem; }
.audit-log__changes li { margin-bottom: 6px; overflow-wrap: anywhere; }
.audit-log__val { cursor: default; }
.audit-log__val { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.audit-log__val--open { display: inline; -webkit-line-clamp: unset; }
.audit-log__old.audit-log__val, .audit-log__new.audit-log__val { cursor: pointer; }
.audit-log__changes li > span:not(.audit-log__val) { display: block; color: #9ca3af; line-height: 1; }
.audit-log__table { table-layout: auto; width: 100%; }

/* ---- Booking details ---- */
.bd-title { font-size: 1.05rem; font-weight: 800; color: #1f2937; margin: 30px 0 10px; padding-left: 12px; border-left: 4px solid var(--js-orange); }
.bd-list { list-style: none; margin: 0 0 6px; padding: 14px 18px; background: #fff; border: 1px solid #ececec; border-radius: 10px; }
.bd-list li { padding: 5px 0; border-bottom: 1px solid #f3f4f6; overflow-wrap: anywhere; }
.bd-list li:last-child { border-bottom: 0; }
.bd-list li span:first-child { display: inline-block; min-width: 92px; font-weight: 700; color: #6b7280; }
.bd-block { padding: 14px 18px; background: #fff; border: 1px solid #ececec; border-radius: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.bd-pre { margin: 0; padding: 12px 16px; background: #fff; border: 1px solid #ececec; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.bd-chip { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; }
.bd-chip--ok { background: #e7f6ec; color: #157347; }
.bd-chip--part { background: #fff3e0; color: #b45309; }
.bd-chip--bad { background: #fde8e8; color: #b42318; }

/* ---- Section tabs (Accommodation settings, Transfers) ---- */
.sub-menu { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #fff; border: 1px solid #ececec; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.sub-menu a { color: #4b5563; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-size: .95rem; transition: background-color .15s ease, color .15s ease; }
.sub-menu a:hover { background-color: color-mix(in srgb, var(--js-orange, #f39200) 10%, white); color: var(--js-orange-dark, #d9731a); }
.sub-menu a.active, .sub-menu a.active:hover { background-color: var(--js-orange); color: #fff; }

/* ---- Admin header v2: one clean white bar with grouped menus ---- */
.admin-header { background: #fff; border-bottom: 1px solid #ececec; box-shadow: 0 2px 12px rgba(0,0,0,.04); position: relative; z-index: 50; }
.admin-header::after { content: ""; display: block; height: 3px; background: linear-gradient(to right, var(--js-orange-dark), var(--js-orange)); }
.admin-nav { padding: 6px 0; }
.admin-nav .container { gap: 14px; }
.admin-nav .navbar-collapse { align-items: center; gap: 12px; }
.admin-nav__menu { gap: 2px; align-items: center; }
.admin-nav .nav-link { color: #374151; font-weight: 600; font-size: .95rem; padding: 8px 13px; border-radius: 8px; text-shadow: none; transition: background-color .15s ease, color .15s ease; }
.admin-nav .nav-link:hover, .admin-nav .nav-link:focus { background: #fff3e6; color: var(--js-orange-dark); text-shadow: none; }
.admin-nav .nav-link.active, .admin-nav .nav-link.show { background: var(--js-orange); color: #fff !important; text-shadow: none; font-weight: 700; }
.admin-nav .dropdown-toggle::after { margin-left: .45em; vertical-align: .15em; }
.admin-nav__drop { border: 1px solid #ececec; border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.14); padding: 6px; margin-top: 8px; min-width: 210px; }
.admin-nav__drop .dropdown-item { border-radius: 8px; font-weight: 600; font-size: .93rem; color: #374151; padding: 8px 12px; }
.admin-nav__drop .dropdown-item:hover { background: #fff3e6; color: var(--js-orange-dark); }
.admin-nav__drop .dropdown-item.active, .admin-nav__drop .dropdown-item.active:hover { background: var(--js-orange); color: #fff; }
@media (max-width: 991.98px) {
    .admin-nav .navbar-collapse { padding: 12px 0; align-items: stretch; }
    .admin-nav__drop { box-shadow: none; border: 0; background: #faf6f1; margin: 2px 0 6px 10px; }
}

/* Header fit tuning: keep the grouped menu on one row at ~1000px+ by shrinking the search to an icon and trimming the account chip. */
.admin-nav .search-trigger { white-space: nowrap; flex-shrink: 0; }
.admin-nav .account-nav { flex-wrap: nowrap; align-items: center; flex-shrink: 0; }
.admin-nav .account-chip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1399.98px) {
    .admin-nav .search-trigger span, .admin-nav .search-trigger kbd { display: none; }
    .admin-nav .search-trigger { padding: 8px 10px; }
    .admin-nav .nav-link { padding: 8px 10px; }
    .admin-nav .account-chip { max-width: 130px; }
}

/* The old orange-bar rule (#navbarNav .navbar-nav { width:100% }) made the menu collapse to 0px next to the search and account items. */
#navbarNav .admin-nav__menu { width: auto; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; min-width: 0; }
#navbarNav .admin-nav__menu .nav-link { white-space: nowrap; font-size: .95rem; }

/* Booking Report list - two-line cells: primary value + muted detail underneath. */
.tableList .bk-main { font-weight: 600; color: #2b2b2b; }
.tableList .bk-sub { font-size: .8em; color: #7a7a7a; line-height: 1.35; }
.tableList .bk-sub-lg { font-size: .9em; color: #4a4a4a; }
.tableList tbody td { vertical-align: top; }
.tableList .bk-nowrap { white-space: nowrap; }
.tableList .bk-sub { white-space: normal; }
.tableList td, .tableList th { text-align: left; }
.tableList thead th:first-child, .tableList tbody tr td:first-child { text-align: left; }

/* ---- Admin footer: light, quiet, matches the redesigned header ---- */
.footer-custom {
    background: #faf6f1 !important;
    background-image: none !important;
    border-top: 1px solid #ece4d9 !important;
    padding: 18px 0 !important;
    margin-top: 28px;
}
.footer-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: inherit;
}
.footer-admin__brand { font-weight: 700; color: #55504a; font-size: .9rem; }
.footer-admin__tag {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fdf1e4;
    color: var(--js-orange-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.footer-admin__copy { font-size: .8rem; color: #8a847b; }

/* ---- Account chip: full email on wide screens, name part only when tight ---- */
.admin-nav .account-chip { max-width: none; overflow: visible; }
.account-chip__short { display: none; }
@media (max-width: 1399.98px) {
    .admin-nav .account-chip { max-width: none; }
    .account-chip__full { display: none; }
    .account-chip__short { display: inline; }
}

/* ---- Booking ref: monospace code-style tag ---- */
.bkg-ref-link {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #f0cfa8;
    color: #b85f0f !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.bkg-ref-link:hover {
    background: var(--js-orange);
    border-color: var(--js-orange);
    color: #fff !important;
}
