﻿body {
    background-color: #f5f7ff;
}

.full-height-table .mud-table-container {
    height: calc(100vh - var(--header-nav-height) - var(--bottom-bar-height));
}

.mud-tab-slider {
    position: absolute;
    background: none !important;
}


.sticky-search-card {
    position: sticky;
    top: var(--mud-appbar-height);
    z-index: 110;
    /* background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);*/
}

.no-underline .mud-input.mud-input-underline:before,
.no-underline .mud-input.mud-input-underline:after {
    display: none !important;
}
.content-grid {
    grid-template-rows: auto 1fr;
    height: 100%
}

.default-back {
    background-color: white;
}

.mud-table-foot .bold-row .mud-table-cell {
    font-weight: 500;
}

.mud-nav-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    list-style: none;
    position: relative;
    color: #6c757d;
    gap: 10px;
    -webkit-transition: all .1s ease-in-out;
    transition: all .1s ease-in-out;
    font-size: 15.2px;
    padding: 10px 15px;
}

.mud-nav-group > .mud-nav-link > .mud-nav-link-text {
    font-weight: 500;
}



/*.mud-appbar {
    background-color: #1877bd;
}

.mud-button-filled.mud-button-filled-primary {
    background-color: #1877bd;
}

    .mud-button-filled.mud-button-filled-primary:hover, .mud-button-filled.mud-button-filled-primary:focus-visible {
        background-color: #1877bd;
    }*/
/*.mud-popover-top-left {
    top: 7% !important;
    width: 15.6%;
}*/

/*.ma-4 {
    margin: 16px 0px !important;
}*/
:root {
    --mud-drawer-width-left: 270px !important;
}

.mud-table-toolbar {
    margin-bottom: 20px;
}

.mud-drawer-header {
    padding: 10px 0px 6px 20px !important;
}

.w-100 {
    width: 100% !important;
}

.mud-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Only the personnel and hotel editors: header/footer stay outside the scroll area. */
.mud-dialog:is(.staff-editor-dialog, .hotel-editor-dialog) {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}
.mud-dialog:is(.staff-editor-dialog, .hotel-editor-dialog) > .mud-dialog-title {
    flex: 0 0 auto;
}
.mud-dialog:is(.staff-editor-dialog, .hotel-editor-dialog) > .bounded-editor-body,
.mud-dialog:is(.staff-editor-dialog, .hotel-editor-dialog) > .bounded-editor-body > .mud-focus-trap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}
.mud-dialog:is(.staff-editor-dialog, .hotel-editor-dialog) > .bounded-editor-body .mud-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}
.mud-dialog:is(.staff-editor-dialog, .hotel-editor-dialog) > .bounded-editor-body .mud-dialog-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--wa-border);
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.mud-dialog-content {
    border-top: solid lightgray 1px;
    border-radius: 0 !important;
    border-bottom: solid lightgray 1px;
}

/* Utility: apply to MudTextField/MudSelect/MudDatePicker via Class="rounded-field" */
.rounded-field .mud-input.mud-input-outlined {
    border-radius: 24px !important;
    overflow: hidden; /* ensures rounded outline corners are visible */
}

.rounded-field .mud-input-outlined-border {
    border-radius: 24px !important;
}

/* Utility: only apply rounding on mobile via Class="rounded-field-mobile" */
@media (max-width: 600px) {
    .rounded-field-mobile .mud-input.mud-input-outlined {
        border-radius: 24px !important;
        overflow: hidden;
    }

    .rounded-field-mobile .mud-input-outlined-border {
        border-radius: 24px !important;
    }
}

/* West Academy 2026 design system */
:root { --wa-navy:#111827; --wa-gold:#c99732; --wa-violet:#7357d7; --wa-surface:rgba(255,255,255,.88); --wa-border:rgba(148,163,184,.22); --wa-shadow:0 18px 50px rgba(15,23,42,.09); --wa-radius:20px; }
html,body { font-family:"Inter",sans-serif !important; color:var(--wa-navy); }
body { background:#f5f7fb; }
body::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(circle at 8% 8%,rgba(201,151,50,.13),transparent 31%),radial-gradient(circle at 92% 18%,rgba(115,87,215,.10),transparent 29%),linear-gradient(145deg,#f8fafc 0%,#f6f5fb 48%,#f2f8f8 100%); }
.mud-main-content { min-height:100vh; }
.mud-appbar { background:rgba(255,255,255,.82)!important; color:var(--wa-navy)!important; border-bottom:1px solid var(--wa-border); backdrop-filter:blur(18px); }
.mud-drawer { border-right:1px solid var(--wa-border)!important; background:rgba(255,255,255,.96)!important; }
.mud-drawer-header { min-height:68px; border-bottom:1px solid var(--wa-border); }
.mud-nav-link { margin:3px 10px; border-radius:12px; font-weight:500; transition:.2s ease; }
.mud-nav-link:hover,.mud-nav-link.active,.mud-nav-link.mud-nav-link-active { color:#6a4fc1!important; background:linear-gradient(110deg,rgba(201,151,50,.15),rgba(115,87,215,.11))!important; transform:translateX(2px); }
.mud-paper,.mud-card { border:1px solid var(--wa-border)!important; border-radius:var(--wa-radius)!important; box-shadow:var(--wa-shadow)!important; background:var(--wa-surface)!important; backdrop-filter:blur(14px); }
.mud-table { border-radius:var(--wa-radius)!important; overflow:hidden; }
.mud-table-head { background:linear-gradient(110deg,#f8f4e8,#f4f1fb)!important; }
.mud-table-head .mud-table-cell { color:#334155!important; font-size:.76rem; letter-spacing:.035em; text-transform:uppercase; font-weight:700!important; }
.mud-table-row { transition:background .18s ease; }
.mud-table-row:hover { background:rgba(115,87,215,.045)!important; }
.mud-table-cell { border-bottom-color:rgba(148,163,184,.15)!important; }
.mud-table-toolbar { background:transparent!important; padding:18px 20px!important; margin-bottom:0!important; }
.default-back { margin:18px 16px 4px; padding:14px 20px!important; border:1px solid var(--wa-border); border-radius:16px; background:linear-gradient(120deg,rgba(255,255,255,.94),rgba(249,246,236,.92))!important; box-shadow:0 8px 28px rgba(15,23,42,.05); }
.default-back h3 { font-weight:750; letter-spacing:-.025em; }
.mud-input.mud-input-outlined { border-radius:14px!important; background:rgba(255,255,255,.74); transition:.2s ease; }
.mud-input-outlined-border { border-radius:14px!important; border-color:rgba(100,116,139,.32)!important; }
.mud-input:focus-within { background:white; filter:drop-shadow(0 7px 14px rgba(115,87,215,.09)); }
.mud-button-root { border-radius:12px!important; min-height:42px; font-weight:700!important; text-transform:none!important; letter-spacing:0!important; }
.mud-button-filled-primary { color:#fff!important; background:linear-gradient(115deg,#a97a1c 0%,#c99732 42%,#7258c8 125%)!important; box-shadow:0 10px 22px rgba(169,122,28,.22)!important; }
.mud-button-filled-primary:hover { transform:translateY(-1px); box-shadow:0 14px 28px rgba(115,87,215,.20)!important; }
.mud-button-outlined-primary { border-color:rgba(169,122,28,.5)!important; background:rgba(255,255,255,.65); }
.mud-dialog { border-radius:24px!important; overflow:hidden; }
.mud-dialog-title { font-weight:750!important; background:linear-gradient(110deg,#fbf7eb,#f6f3fc); }
.mud-dialog-content { border-color:var(--wa-border)!important; padding:24px!important; }
.mud-chip,.mud-pagination-item { border-radius:999px!important; }
.mud-fab { background:linear-gradient(135deg,var(--wa-gold),var(--wa-violet))!important; color:#fff!important; }
@media(max-width:600px){.mud-container{padding:0 12px!important}.default-back{margin:10px 0 4px;border-radius:14px}.mud-paper,.mud-card{border-radius:17px!important}.mud-table-toolbar{padding:14px!important}}

/* Mobile: increase border radius for MudBlazor Outlined inputs globally */
/*@media (max-width: 600px) {*/
    /* Your DOM uses: .mud-input.mud-input-outlined ... <fieldset class="mud-input-outlined-border"> */
    /*.mud-input.mud-input-outlined {
        border-radius: 24px !important;
        overflow: hidden;*/ /* ensures rounded outline corners are visible */
    /*}

    .mud-input.mud-input-outlined > .mud-input-outlined-border {
        border-radius: 24px !important;
    }*/

    /* Some templates place fieldset deeper - keep a descendant selector too */
    /*.mud-input.mud-input-outlined .mud-input-outlined-border {
        border-radius: 24px !important;
    }
}*/

/* West Academy — hospitality workspace */
:root{--wa-ink:#17201d;--wa-muted:#69716e;--wa-brand:#315e54;--wa-brand-soft:#e8efec;--wa-accent:#8b6538;--wa-canvas:#f4f5f2;--wa-surface:#fff;--wa-border:#e1e4df;--wa-shadow:0 8px 28px rgba(20,32,28,.06);--wa-radius:12px}
html,body{font-family:"Inter","Segoe UI",system-ui,sans-serif!important;color:var(--wa-ink);background:var(--wa-canvas)}
#blazor-error-ui{display:none!important}
html:has(.auth-shell),body:has(.auth-shell){height:100dvh!important;overflow:hidden!important}
.mud-layout:has(.auth-shell),.mud-main-content:has(.auth-shell){height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;padding:0!important}
html:has(.responsive-register),body:has(.responsive-register){min-height:100%;overflow-x:hidden!important;overflow-y:auto!important}
.mud-layout:has(.responsive-register),.mud-main-content:has(.responsive-register){height:auto!important;min-height:100dvh!important;overflow:visible!important;padding:0!important}
body::before{display:none!important}
.mud-main-content{background:var(--wa-canvas);min-height:100dvh}
.mud-appbar{height:64px!important;background:rgba(255,255,255,.94)!important;color:var(--wa-ink)!important;border-bottom:1px solid var(--wa-border);box-shadow:none!important;backdrop-filter:blur(14px)}
.mud-drawer{background:#fbfcfa!important;border-right:1px solid var(--wa-border)!important;box-shadow:none!important}
.mud-drawer-header{min-height:64px;border-bottom:1px solid var(--wa-border)}
.mud-nav-link{margin:2px 10px;padding:9px 12px;border-radius:8px;color:#59615e;font-size:.88rem;transition:background .15s,color .15s}
.mud-nav-link:hover,.mud-nav-link.active,.mud-nav-link.mud-nav-link-active{background:var(--wa-brand-soft)!important;color:var(--wa-brand)!important;transform:none!important}
.mud-paper,.mud-card{background:var(--wa-surface)!important;border:1px solid var(--wa-border)!important;border-radius:var(--wa-radius)!important;box-shadow:var(--wa-shadow)!important;backdrop-filter:none!important}
.mud-table{border-radius:var(--wa-radius)!important;overflow:hidden;background:#fff!important}
.mud-table-head{background:#f7f8f6!important}
.mud-table-head .mud-table-cell{height:46px;color:#6d7471!important;font-size:.7rem;letter-spacing:.055em;text-transform:uppercase;font-weight:650!important;border-bottom:1px solid var(--wa-border)!important}
.mud-table-row{transition:background .12s}
.mud-table-row:hover{background:#fafbf9!important}
.mud-table-cell{border-bottom:1px solid #edf0eb!important}
.mud-table-toolbar{padding:16px 18px!important;margin:0!important;border-bottom:1px solid var(--wa-border)}
.default-back{margin:20px 20px 6px;padding:4px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.default-back h3{font-weight:650;letter-spacing:-.03em;color:var(--wa-ink)}
.mud-input.mud-input-outlined{border-radius:9px!important;background:#fff;transition:border-color .15s,box-shadow .15s}
.mud-input-outlined-border{border-radius:9px!important;border-color:#cfd4ce!important}
.mud-input:focus-within{filter:none!important;box-shadow:0 0 0 3px rgba(49,94,84,.1)}
.mud-button-root{min-height:40px;border-radius:9px!important;text-transform:none!important;font-weight:600!important;letter-spacing:0!important;box-shadow:none!important;transition:background .15s,transform .15s}

/* Preserve MudBlazor's day height so six-week calendars fit in the picker. */
.mud-picker-calendar .mud-day {
    min-height: 0;
}
.mud-button-filled-primary{background:var(--wa-brand)!important;color:#fff!important;box-shadow:none!important}
.mud-button-filled-primary:hover{background:#264c43!important;transform:translateY(-1px);box-shadow:none!important}
.mud-button-outlined-primary{color:var(--wa-brand)!important;border-color:#b7c7c2!important;background:#fff!important}
.mud-fab{background:var(--wa-brand)!important;color:#fff!important;box-shadow:0 10px 28px rgba(31,69,60,.25)!important}
.mud-dialog{border-radius:14px!important;overflow:hidden}
.mud-dialog-title{background:#fff!important;font-weight:650!important;border-bottom:1px solid var(--wa-border)}
.mud-dialog-content{padding:22px!important;border:0!important}
.mud-chip,.mud-pagination-item{border-radius:7px!important}
@media(max-width:960px){
 html,body,#app{width:100%;max-width:100%;overflow-x:hidden}
 .mud-layout,.mud-main-content,.mud-container{min-width:0;max-width:100%}
 .mud-main-content{padding-bottom:86px}
 .mud-main-content:has(.auth-shell){padding-bottom:0!important;height:100dvh;overflow:hidden}
 .mud-main-content:has(.responsive-register){padding-bottom:0!important;height:auto!important;min-height:100dvh;overflow:visible!important}
 .mud-container{padding:0 12px!important}
 .default-back{margin:14px 4px 6px;min-width:0;max-width:100%;flex-wrap:wrap;gap:8px}
 .default-back h1,.default-back h2,.default-back h3,.default-back h4{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .mud-paper,.mud-card{border-radius:11px!important;box-shadow:0 4px 18px rgba(20,32,28,.055)!important}
 .mud-table-toolbar{padding:12px!important;flex-wrap:wrap;gap:8px}
 .mud-table-toolbar>*{min-width:0;max-width:100%}
 .mud-table-container{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
 .full-height-table{width:100%;max-width:100%;margin:8px 0!important}
 .full-height-table .mud-table-root{min-width:720px}
 .mud-table-pagination{min-width:0;flex-wrap:wrap;justify-content:flex-end}
 .mud-dialog-content .mud-table-container{overflow-x:auto!important}
 .mud-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)}
 .mud-dialog-content{padding:14px!important;min-width:0;overflow-x:hidden}
 .mud-dialog-actions{padding:10px 14px max(10px,env(safe-area-inset-bottom))!important;flex-wrap:wrap;gap:8px}
 .mud-tabs{max-width:100%;min-width:0}
 .mud-tabs-toolbar{max-width:100%;overflow:hidden}
 .mud-input-control,.mud-input-root,.mud-select{min-width:0;max-width:100%}
 .mud-popover{max-width:calc(100vw - 16px)}
}

.no-data-message,
.mud-table .mud-typography-body1,
.mud-table .mud-typography-body2 {
    font-size: .82rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
