/* ==========================================================
   MiProgram — Site.css
   Ported from MiProgram.Modern design system
   Palette:
     Sidebar:    #2D3748
     Topbar:     #2D3748
     Background: #E2E8F0
     Cards:      #FFFFFF, rounded-xl, subtle shadow
     Accent:     #0D9488 (teal-600)
     Text:       #1A202C (headings), #4A5568 (body), #718096 (muted)
     Borders:    #E2E8F0
     Table head: #F7FAFC
   ========================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    background-color: #E2E8F0;
    margin: 0;
    padding: 0;
    color: #4A5568;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    border: none;
    background-image: none;
}

a { color: #0D9488; text-decoration: none; padding: 0; outline: none; }
a:link, a:visited, a:active { color: #0D9488; }
a:hover { color: #0F766E; background: none; }

header, footer, hgroup, nav, section { display: block; }

h1, h2, h3, h4, h5, h6 {
    color: #1A202C;
    margin-bottom: 0;
    padding-bottom: 0;
    font-weight: 700;
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
h5 a:link, h5 a:visited, h5 a:active { padding: 0; text-decoration: none; }

mark { background-color: #BEE3F8; padding: 0 4px; border-radius: 2px; }

.float-left { float: left; }
.float-right { float: right; }
.clear-fix:after { content: "."; clear: both; display: block; height: 0; visibility: hidden; }


/* ============================================================
   APP WRAPPER — flex layout for sidebar + content
   ============================================================ */
#app-wrapper {
    display: flex;
    min-height: 100vh;
}


/* ============================================================
   SIDEBAR — fixed left, collapsible
   Expanded: 220px  |  Collapsed: 64px (icon-only)
   ============================================================ */
#sidebar {
    width: 220px;
    min-width: 220px;
    background-color: #2D3748;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    transition: width 0.2s ease, min-width 0.2s ease;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-brand:hover { background: none; opacity: 0.9; }

.sidebar-logo { height: 36px; object-fit: contain; }
.sidebar-logo-icon { width: 36px; min-width: 36px; display: block; }
.sidebar-logo-full { display: none; width: auto; max-width: 140px; }

#sidebar:not(.collapsed) .sidebar-logo-icon,
#sidebar.collapsed:hover .sidebar-logo-icon { display: none; }
#sidebar:not(.collapsed) .sidebar-logo-full,
#sidebar.collapsed:hover .sidebar-logo-full { display: block; }

.sidebar-brand-text {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.sidebar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    padding: 2px 0.625rem;
}

.sidebar-nav .nav-link {
    color: #CBD5E0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #FFFFFF;
}
.sidebar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.12);
    color: #FFFFFF;
}

.sidebar-nav .nav-link i {
    font-size: 1.25rem;
    min-width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    color: #CBD5E0;
}
.sidebar-nav .nav-link:hover i { color: #FFFFFF; }

.sidebar-nav .nav-text {
    opacity: 1;
    transition: opacity 0.15s ease;
}

.sidebar-nav-bottom {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1rem;
}

/* Collapsed state */
#sidebar.collapsed { width: 64px; min-width: 64px; }
#sidebar.collapsed .sidebar-brand-text { opacity: 0; pointer-events: none; }
#sidebar.collapsed .nav-text { opacity: 0; pointer-events: none; }

/* Hover on collapsed: expand temporarily */
#sidebar.collapsed:hover { width: 220px; }
#sidebar.collapsed:hover .sidebar-brand-text,
#sidebar.collapsed:hover .nav-text { opacity: 1; pointer-events: auto; }


/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
#main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    margin-left: 220px;
    background-color: #E2E8F0;
    transition: margin-left 0.2s ease;
}

#sidebar.collapsed ~ #main-content-wrapper {
    margin-left: 64px;
}

#main-content-wrapper > main {
    flex: 1;
    padding: 1.5rem;
}


/* ============================================================
   TOP BAR (breadcrumb bar)
   ============================================================ */
#top-bar {
    display: flex;
    align-items: center;
    height: 48px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

#top-bar #breadcrumb {
    background: transparent;
    border: none;
    height: auto;
    width: auto;
    padding: 0;
    margin: 0;
}

#top-bar #bread-crumb {
    padding: 0;
    margin: 0;
}

#top-bar #bread-crumb li { color: #718096; }
#top-bar #bread-crumb a { color: #0D9488; font-size: 0.8125rem; }


/* ============================================================
   WINDOW LAYOUT — hide sidebar
   ============================================================ */
#window-layout #sidebar { display: none !important; }
#window-layout #main-content-wrapper { margin-left: 0 !important; }
#window-layout #top-bar { display: none !important; }


/* ============================================================
   HEADER / TOP BAR (unauthenticated fallback)
   Restyles existing <header> + ul#menu to Modern palette
   ============================================================ */
header {
    background-color: #2D3748;
    background-image: none;
    opacity: 1;
}

header .content-wrapper {
    padding: 10px 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title { color: #CBD5E0; font-family: inherit; font-size: 2.3em; margin: 0; }
.site-title a, .site-title a:hover, .site-title a:active { background: none; color: #CBD5E0; outline: none; text-decoration: none; }

/* menu */
ul#menu {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

ul#menu li {
    display: inline;
    list-style: none;
    padding-left: 0;
}

ul#menu li a {
    background: none;
    color: #CBD5E0;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: background 0.15s ease, color 0.15s ease;
}

ul#menu li a:hover {
    color: #FFFFFF;
    background-color: rgba(255,255,255,0.08);
    text-decoration: none;
}

#login {
    display: block;
    font-size: .85em;
    margin: 0 0 10px;
    text-align: right;
}
#login a { background-color: #EDF2F7; margin-left: 10px; margin-right: 3px; padding: 2px 3px; text-decoration: none; }
#login a.username { background: none; margin: 0; padding: 0; text-decoration: underline; }
#login ul { margin: 0; }
#login li { display: inline; list-style: none; }


/* ============================================================
   BREADCRUMB
   ============================================================ */
#breadcrumb {
    background-color: #1A202C;
    width: 100%;
    height: auto;
    min-height: 24px;
    border-bottom: none;
    padding: 2px 0;
}

#bread-crumb { margin: 0; padding: 2px 0 0 1.5rem; }
#bread-crumb li { display: inline; margin: 0; padding: 0; color: #A0AEC0; }
#bread-crumb a, #bread-crumb a:link, #bread-crumb a:visited, #bread-crumb a:hover {
    color: #CBD5E0; text-decoration: none; font-size: 0.875rem;
}
#bread-crumb a:hover { background: none; text-decoration: underline; }


/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.content-wrapper {
    margin: 0 auto;
    padding-right: 10px;
}

#body {
    background-color: #E2E8F0;
    clear: both;
    padding-bottom: 35px;
    background-repeat: no-repeat;
    background-image: none;
}

.main-content {
    padding-left: 10px;
    padding-top: 1.5rem;
    background-image: none;
    background: none;
}

.featured + .main-content {
    background: none;
}


/* ============================================================
   CONTENT AREA (document views with sidebars)
   ============================================================ */
.content-area {
    margin-left: 220px;
    margin-right: 260px;
    padding: 20px;
}


/* ============================================================
   CARDS
   ============================================================ */
.card-modern {
    background: #FFFFFF;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.card-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-modern-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: #1A202C;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background-color: #2D3748 !important;
    border-color: #2D3748 !important;
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}
.btn-primary:hover {
    background-color: #1A202C !important;
    border-color: #1A202C !important;
}
.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(45,55,72,0.25) !important;
}

.btn-teal {
    background-color: #0D9488;
    border-color: #0D9488;
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
}
a.btn-teal,
a.btn-teal:link,
a.btn-teal:visited {
    color: #fff !important;
    text-decoration: none;
}
.btn-teal:hover {
    background-color: #0F766E;
    border-color: #0F766E;
    color: #fff;
}

.btn-outline-teal {
    background: #FFFFFF;
    border: 1.5px solid #0D9488;
    color: #0D9488;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
}
.btn-outline-teal:hover {
    background: #F0FDFA;
    color: #0F766E;
    border-color: #0F766E;
}

.btn-outline-secondary {
    border-color: #CBD5E0;
    color: #4A5568;
    border-radius: 0.5rem;
}
.btn-outline-secondary:hover {
    background-color: #F7FAFC;
    border-color: #A0AEC0;
    color: #1A202C;
}

input[type="submit"],
input[type="button"] {
    background-color: #2D3748;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    width: auto;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #1A202C;
}

td input[type="submit"],
td input[type="button"],
td button {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
}


/* ============================================================
   FORMS
   ============================================================ */
fieldset { border: none; margin: 0; padding: 0; }
fieldset legend { display: none; }
fieldset ol { padding: 0; list-style: none; }
fieldset ol li { padding-bottom: 5px; }

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4A5568;
}
label.checkbox { display: inline; }

input, textarea {
    border: 1px solid #CBD5E0;
    background: #fff;
    color: #1A202C;
    font-size: 0.9375rem;
    margin: 4px 0 6px 0;
    padding: 0.5rem 0.75rem;
    width: 300px;
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { font-family: inherit; width: 500px; }

input:focus, textarea:focus {
    border-color: #0D9488;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

input[type="checkbox"] {
    background: transparent;
    border: inherit;
    width: auto;
}

/* Search form card */
.search-form {
    background: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}
.search-form h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #4A5568;
    margin-top: 0;
    margin-bottom: 0.75rem;
}


/* ============================================================
   TABLES
   ============================================================ */
table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 0;
    border: 0 none;
    width: 100%;
}

th {
    font-size: 0.8125rem;
    text-align: left;
    border: none;
    padding-left: 0;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
th a { display: block; position: relative; }
th a:link, th a:visited, th a:active, th a:hover {
    color: #718096;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
}
th a:hover { color: #4A5568; }

th.asc a, th.desc a { margin-right: .75em; }
th.asc a:after, th.desc a:after {
    display: block; position: absolute; right: 0; top: 0; font-size: 0.75em;
}
th.asc a:after { content: '\25B2'; }
th.desc a:after { content: '\25BC'; }

td {
    padding: 0.75rem 1rem;
    border: 0 none;
    color: #4A5568;
    font-size: 0.9rem;
}
tr.pager td { padding: 0 0.25em 0 0; }


/* ============================================================
   VALIDATION / MESSAGES
   ============================================================ */
.message-info {
    border: 1px solid #E2E8F0;
    clear: both;
    padding: 10px 20px;
    border-radius: 0.5rem;
    background: #F7FAFC;
}
.message-error {
    clear: both;
    color: #E53E3E;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}
.message-success {
    color: #0D9488;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}
.error { color: #E53E3E; }

.field-validation-error {
    color: #E53E3E;
    font-weight: 600;
    display: block;
    margin-top: 4px;
    font-size: 0.8125rem;
}
.field-validation-valid { display: none; }
input.input-validation-error { border-color: #E53E3E; }
input[type="checkbox"].input-validation-error { border: 0 none; }
.validation-summary-errors { color: #E53E3E; font-weight: 600; font-size: 0.9375rem; }
.validation-summary-valid { display: none; }


/* ============================================================
   LOGIN PAGE
   ============================================================ */
#loginForm { border-right: solid 2px #E2E8F0; float: left; width: 55%; }
#loginForm .validation-error { display: block; margin-left: 15px; }
#loginForm .validation-summary-errors ul { margin: 0; padding: 0; }
#loginForm .validation-summary-errors li { display: inline; list-style: none; margin: 0; }
#loginForm input { width: 250px; }
#loginForm input[type="checkbox"], #loginForm input[type="submit"], #loginForm input[type="button"], #loginForm button { width: auto; }
#logoutForm { display: inline; }

#socialLoginForm { margin-left: 40px; float: left; width: 40%; }
#socialLoginForm h2 { margin-bottom: 5px; }
#socialLoginList button { margin-bottom: 12px; }


/* ============================================================
   PAGE ELEMENTS
   ============================================================ */
.label { font-weight: 700; }

hgroup.title { margin-bottom: 10px; }
hgroup.title h1, hgroup.title h2 { display: inline; }
hgroup.title h2 { font-weight: normal; margin-left: 3px; }

/* featured */
.featured { background-color: #fff; }
.featured .content-wrapper {
    background: linear-gradient(to right, #0D9488, #38B2AC);
    color: #fff;
    padding: 20px 40px 30px 40px;
}
.featured hgroup.title h1, .featured hgroup.title h2 { color: #fff; }
.featured p { font-size: 1.1em; }

/* features */
section.feature { width: 300px; float: left; padding: 10px; }

/* ordered lists */
ol.round { list-style-type: none; padding-left: 0; }
ol.round li { margin: 25px 0; padding-left: 45px; }
ol.round li.zero { background: url("../Images/orderedList0.png") no-repeat; }
ol.round li.one { background: url("../Images/orderedList1.png") no-repeat; }
ol.round li.two { background: url("../Images/orderedList2.png") no-repeat; }
ol.round li.three { background: url("../Images/orderedList3.png") no-repeat; }
ol.round li.four { background: url("../Images/orderedList4.png") no-repeat; }
ol.round li.five { background: url("../Images/orderedList5.png") no-repeat; }
ol.round li.six { background: url("../Images/orderedList6.png") no-repeat; }
ol.round li.seven { background: url("../Images/orderedList7.png") no-repeat; }
ol.round li.eight { background: url("../Images/orderedList8.png") no-repeat; }
ol.round li.nine { background: url("../Images/orderedList9.png") no-repeat; }

/* content */
article { float: left; width: 70%; }
aside { float: right; width: 25%; }
aside ul { list-style: none; padding: 0; }
aside ul li { background: url("../Images/bullet.png") no-repeat 0 50%; padding: 2px 0 2px 20px; }

/* contact */
.contact h3 { font-size: 1.2em; }
.contact p { margin: 5px 0 0 10px; }
.contact iframe { border: 1px solid #CBD5E0; margin: 5px 0 0 10px; }


/* ============================================================
   ADDRESS
   ============================================================ */
.address {
    color: #0D9488;
    font-size: 0.9375rem;
    padding: 10px;
}


/* ============================================================
   RIGHT SIDEBAR (property panel)
   ============================================================ */
#right-side-bar {
    right: 0px;
    position: absolute;
    width: 240px;
    border-left: 1px solid #E2E8F0;
    margin-top: -30px;
    padding-bottom: 5px;
    background: #fff;
}

#right-side-bar .k-dropdown {
    width: 220px;
    margin-left: 10px;
    margin-bottom: 5px;
}

#right-side-bar img {
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 10px;
    width: 100%;
}

#right-side-bar .button {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 0.8em !important;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
    display: block;
    margin-top: 0px;
    margin-bottom: 5px;
}

#right-side-bar a.delete-button {
    float: none !important;
}


/* ============================================================
   LEFT SIDEBAR (document menu)
   ============================================================ */
#side-bar {
    position: absolute;
    width: 200px;
    margin-top: -30px;
    margin-left: -10px;
    background-image: none;
    background-color: #2D3748;
    padding-bottom: 200px;
    height: 100%;
}

#side-bar::-webkit-scrollbar { width: 4px; }
#side-bar::-webkit-scrollbar-track { background: transparent; }
#side-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
#side-bar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

#side-menu {
    width: 198px;
    border-left: none;
    border-bottom: none;
}

#side-menu .k-item {
    background: #2D3748;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: none;
}

/* Side menu — Kendo Menu styles */
#side-menu {
    border: none;
    background: transparent;
    width: 100%;
}

#side-menu .k-item {
    background: #2D3748;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: none;
}

#side-menu .k-item a {
    color: #CBD5E0;
    padding: 10px 20px 10px 10px;
    text-decoration: none;
}

#side-menu .k-link {
    padding: 10px 20px 10px 10px !important;
}

#side-menu span.non-menu-link {
    color: #CBD5E0;
}

#side-menu .k-state-hover > .k-link {
    background: rgba(255,255,255,0.12) !important;
}

#side-menu .k-state-hover > .k-link span {
    color: #fff !important;
}

#side-menu .k-item a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

#side-menu .k-item ul {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-right: none;
}

/* Simple sidebar links (for future use) */
.sidebar-link {
    display: block;
    padding: 0.625rem 0.75rem;
    color: #CBD5E0;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-link:link, .sidebar-link:visited { color: #CBD5E0; text-decoration: none; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

.sidebar-link-active {
    background: rgba(13,148,136,0.15) !important;
    color: #fff !important;
    font-weight: 600;
    border-left: 3px solid #0D9488;
    padding-left: calc(0.75rem - 3px);
}
.sidebar-link-active:link, .sidebar-link-active:visited { color: #fff; }

.sidebar-label {
    padding: 0.5rem 0.75rem;
    color: #718096;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Custom sidebar nav */
.sb-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #CBD5E0;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s ease, color 0.15s ease;
}
.sb-link:link, .sb-link:visited { color: #CBD5E0; text-decoration: none; }
.sb-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

.sb-active {
    background: rgba(13,148,136,0.2) !important;
    color: #fff !important;
    font-weight: 600;
    border-left: 3px solid #0D9488;
    padding-left: calc(0.75rem - 3px);
}
.sb-active:link, .sb-active:visited { color: #fff; }

.sb-label {
    padding: 0.5rem 0.75rem;
    color: #718096;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Sidebar dropdown (Rooms etc.) */
.sb-dropdown {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sb-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: #CBD5E0;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}
.sb-dropdown-header:hover { background: rgba(255,255,255,0.08); color: #fff; }

.sb-dropdown-icon {
    font-size: 0.625rem;
    color: #718096;
    transition: transform 0.2s ease;
}

.sb-dropdown-open .sb-dropdown-icon {
    transform: rotate(180deg);
}

.sb-dropdown-open > .sb-dropdown-header {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.sb-dropdown-body {
    background: rgba(0,0,0,0.15);
    display: none;
}
.sb-dropdown-open > .sb-dropdown-body {
    display: block;
}

.sb-dropdown-item {
    display: block;
    padding: 0.375rem 0.75rem 0.375rem 1.25rem;
    color: #A0AEC0;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease, color 0.15s ease;
}
.sb-dropdown-item:link, .sb-dropdown-item:visited { color: #A0AEC0; text-decoration: none; }
.sb-dropdown-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sb-dropdown-item.sb-active {
    background: rgba(13,148,136,0.2) !important;
    color: #fff !important;
    font-weight: 600;
    border-left: 3px solid #0D9488;
    padding-left: calc(1.25rem - 3px);
}

/* Simple sidebar nav (top-level items only) */
.simple-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.simple-nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.simple-nav-item a {
    display: block;
    padding: 0.625rem 0.75rem;
    color: #CBD5E0;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.simple-nav-item a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.simple-nav-active {
    border-left: 3px solid #0D9488;
}

.simple-nav-active a {
    background: rgba(13,148,136,0.15) !important;
    color: #fff !important;
    font-weight: 600;
    padding-left: calc(0.75rem - 3px);
}

.simple-nav-label {
    padding: 0.5rem 0.75rem;
    color: #718096;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Accordion sections (child sections on form pages) */
.child-sections {
    margin-top: 1.5rem;
}

.accordion-section {
    background: #fff;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: #F7FAFC;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1A202C;
    border-bottom: 1px solid #E2E8F0;
    transition: background 0.15s ease;
    user-select: none;
}

.accordion-header:hover {
    background: #EDF2F7;
}

.accordion-header .accordion-icon {
    color: #718096;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.accordion-header.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1rem 1.25rem;
}

.accordion-child-item {
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-child-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: #4A5568;
    background: #fff;
    transition: background 0.15s ease;
    user-select: none;
}

.accordion-child-header:hover {
    background: #F7FAFC;
}

.accordion-child-header .accordion-icon {
    color: #A0AEC0;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.accordion-child-header.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-child-body {
    padding: 0.75rem 1rem;
    background: #F7FAFC;
    border-top: 1px solid #E2E8F0;
}

.accordion-child-link {
    display: block;
    padding: 0.625rem 1rem;
    color: #0D9488;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.accordion-child-link:link, .accordion-child-link:visited { color: #0D9488; }
.accordion-child-link:hover { color: #0F766E; }

.accordion-sub-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.accordion-sub-list li {
    padding: 0.375rem 0;
    border-bottom: 1px solid #EDF2F7;
}

.accordion-sub-list li:last-child {
    border-bottom: none;
}

.accordion-sub-list a {
    color: #0D9488;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
}

.accordion-sub-list a:hover {
    color: #0F766E;
    text-decoration: underline;
    background: none;
}

/* Form breadcrumb (in content area) */
.form-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
    font-size: 0.8125rem;
}

.form-bc-link {
    color: #0D9488;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
}
.form-bc-link:hover {
    color: #0F766E;
    text-decoration: underline;
    background: none;
}

.form-bc-sep {
    color: #CBD5E0;
    font-size: 0.625rem;
}

.form-bc-current {
    color: #1A202C;
    font-weight: 600;
}

/* Active menu item highlight */
#side-menu a.menu-active,
#side-menu a.menu-active:link,
#side-menu a.menu-active:visited {
    background: rgba(13,148,136,0.25) !important;
    color: #fff !important;
    border-left: 3px solid #0D9488;
    padding-left: calc(0.75rem - 3px);
}

/* Form navigation buttons (prev/next) */
.form-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.form-nav-buttons:last-child {
    border-bottom: none;
    border-top: 1px solid #E2E8F0;
    margin-bottom: 0;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.form-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #CBD5E0;
    border-radius: 0.5rem;
    color: #4A5568;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-nav-btn:hover {
    background: #F7FAFC;
    border-color: #0D9488;
    color: #0D9488;
}

.form-nav-btn:link, .form-nav-btn:visited { color: #4A5568; text-decoration: none; }
.form-nav-btn:hover { color: #0D9488; background: #F0FDFA; }

.form-nav-position {
    font-size: 0.75rem;
    color: #A0AEC0;
    font-weight: 500;
}


/* ============================================================
   LOGO
   ============================================================ */
.logo { width: 58px; margin-left: 10px; }
.home-link { text-decoration: none; }
.home-link:hover { opacity: 0.7; background: none; }


/* ============================================================
   WINDOW LAYOUT (popup forms)
   ============================================================ */
#window-layout { background: #F7FAFC; }
#window-layout header { display: none !important; }
#window-layout .main-content { padding-top: 0; }


/* ============================================================
   DASHBOARD STATS
   ============================================================ */
.stats h2 {
    font-size: 1rem;
    color: #0D9488;
    background: none;
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.stats { padding: 0; }
.stats table {
    border: none;
    background: #fff;
    margin: 0 auto 1.25rem;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stats th, .stats td {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #EDF2F7;
}
.stats td { color: #0D9488; }

/* Dashboard Stat Cards */
.stat-cards { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.stat-cards-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 3px solid transparent;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}
.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1A202C;
    line-height: 1.2;
}
.stat-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.stat-card-sub {
    font-size: 0.75rem;
    color: #A0AEC0;
    margin-top: 0.125rem;
}
.stat-card-inventory { border-left-color: #3182CE; }
.stat-card-checkin { border-left-color: #38A169; }
.stat-card-midterm { border-left-color: #D69E2E; }
.stat-card-checkout { border-left-color: #E53E3E; }
.stat-card-block { border-left-color: #805AD5; }
.stat-card-total { border-left-color: #0D9488; }
.stat-card-property { border-left-color: #DD6B20; }
.stat-card-client { border-left-color: #718096; }

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #0D9488;
}

.stat-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A202C;
    text-transform: none;
    letter-spacing: normal;
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #F7FAFC;
    border-left: 3px solid #0D9488;
    border-radius: 0 0.375rem 0.375rem 0;
}


/* ============================================================
   BUTTON LINKS (.button class)
   ============================================================ */
a.button, input.button, .button {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid #CBD5E0;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4A5568;
    background: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.5;
}
a.button:hover, input.button:hover, .button:hover {
    background: #F7FAFC;
    border-color: #A0AEC0;
    color: #1A202C;
}
a.button:link, a.button:visited, a.button:active { color: #4A5568; text-decoration: none; }

/* Action Toolbar */
.action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}


/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.5;
}
.status-badge-draft { background: #EDF2F7; color: #4A5568; }
.status-badge-ready { background: #EBF8FF; color: #2B6CB0; }
.status-badge-pending { background: #FEFCBF; color: #744210; }
.status-badge-opened { background: #E6FFFA; color: #0D9488; }
.status-badge-completed { background: #F0FFF4; color: #276749; }
.status-badge-expired { background: #FEEBC8; color: #9C4221; }
.status-badge-deleted { background: #FFF5F5; color: #C53030; }
.status-badge-active { background: #F0FFF4; color: #276749; }
.status-badge-deactivated { background: #FFF5F5; color: #C53030; }


/* ============================================================
   PAPERLESS FORM
   ============================================================ */
.ui-heading-slider {
    background-color: #EDF2F7;
    padding: 10px;
    margin: -10px -10px 0;
    border-radius: 0.75rem 0.75rem 0 0;
}
.ui-heading-slider h4 { padding: 0; margin: 0; color: #1A202C; font-weight: 500; font-size: 1.125rem; padding-left: 2px; }

.container {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.container h2 { font-weight: 500; font-size: 1.125rem; margin-top: 1.5rem; }

.paperless-table { border: 1px solid #E2E8F0; width: 100%; box-sizing: border-box; border-radius: 0.5rem; overflow: hidden; }
.paperless-table th, .paperless-table td { padding: 0.5rem; border-left: 1px solid #E2E8F0; border-top: 1px solid #E2E8F0; border-bottom: none; border-right: none; vertical-align: top; }
.paperless-table th { color: #718096; font-size: 0.875rem; background: #F7FAFC; font-weight: 500; }

.paperless-photo { display: flex; box-sizing: border-box; flex-wrap: wrap; }
.paperless-photo img { margin: 10px 10px 0 0; box-sizing: border-box; border: 1px solid #E2E8F0; max-height: 100px; border-radius: 0.375rem; }

label.mobile-only { display: none; margin-top: 0; font-size: 0.875rem; }

.agree { width: 120px; margin: 10px auto; }
.switch { color: #A0AEC0 !important; text-decoration: none; padding: 5px 20px; border: 1px solid #E2E8F0; border-radius: 0 10px 10px 0; background: #fff; }
.switch.yes { border-radius: 10px 0 0 10px; }
.switch.selected { background: #0D9488; color: #fff !important; text-decoration: none; border: none; padding: 6px 21px; }

.feedback-row { display: none; }
.feedback-row div { border: 1px solid #E2E8F0; border-radius: 0.75rem; }
.feedback-row h5 { padding: 0.625rem 1rem; margin: 0; font-weight: 500; font-size: 0.9375rem; background: #F7FAFC; border-radius: 0.75rem 0.75rem 0 0; }
.feedback-row textarea { font-size: 0.9375rem; }

.terms h2 { font-size: 1.75rem; }
.terms h3 { border-top: none; margin-top: 10px; }
.terms p { text-align: justify; }

.client-details { text-align: center; background: #fff; border-radius: 0.75rem 0.75rem 0 0; padding: 1.25rem; }
.client-details.bottom-client-details { border-radius: 0.75rem !important; }
h1.paperless { text-align: center; background: #fff; border-radius: 0 0 0.75rem 0.75rem; padding: 1.25rem; border: none; margin: 0 0 2rem; }
.client-details .col-100 img { max-height: 150px !important; }
.client-details .col-100 .paperless-photo { text-align: center; display: block; width: 100%; }

.final-agree { background: #F0FFF4; border-radius: 0.75rem; padding: 0.75rem 1.25rem; margin-top: 0.75rem; font-weight: 700; }
.final-agree .agree { margin: 1.25rem 0; }
.final-agree .agree .switch { padding: 10px 21px; }
.final-agree .agree .switch.selected { padding: 11px 21px; }

.signature { text-align: center; }
.signature p { font-weight: 700; text-align: left; }
.signature a { float: right; }
.signature canvas { border: 1px solid #CBD5E0; border-radius: 0.75rem; max-width: 600px; min-width: 280px; min-height: 150px; max-height: 150px; width: 100%; margin: 0 auto; }

.status { color: #0D9488; text-align: center; margin-bottom: 0.75rem; font-size: 1.125rem; font-weight: 500; }


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    clear: both;
    background: transparent;
    font-size: 0.8125rem;
    color: #A0AEC0;
    padding: 1rem 1.5rem;
    border-top: none;
}


/* ============================================================
   KENDO UI OVERRIDES
   ============================================================ */

/* Notification badge in sidebar */
.nav-item-notifications .nav-link {
    position: relative;
}
.notification-badge {
    background: #E53E3E;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    padding: 0 4px;
    position: absolute;
    top: 4px;
    left: 22px;
}

/* Notification dropdown */
.notification-dropdown {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 64px;
    width: 360px;
    max-height: 480px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1050;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}
.notification-dropdown.show {
    display: flex;
    flex-direction: column;
}
.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}
.notification-dropdown-header h4 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1A202C;
    border: none;
    padding: 0;
}
.notification-view-all {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0D9488;
    text-decoration: none;
}
.notification-view-all:hover { text-decoration: underline; }
.notification-dropdown-body {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}
.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F7FAFC;
    text-decoration: none !important;
    transition: background 0.1s ease;
    color: #4A5568;
    cursor: pointer;
}
.notification-item:hover {
    background: #F7FAFC;
    color: #1A202C;
}
a.notification-item:link,
a.notification-item:visited { color: #4A5568; }
.notification-item-actionable { border-left: 3px solid #0D9488; }
.notification-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F7FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}
.notification-item-content { flex: 1; min-width: 0; }
.notification-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1A202C;
    line-height: 1.3;
}
.notification-item-summary {
    font-size: 0.75rem;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notification-item-time {
    font-size: 0.6875rem;
    color: #A0AEC0;
    margin-top: 2px;
}
.notification-empty,
.notification-loading {
    text-align: center;
    padding: 2rem 1rem;
    color: #718096;
    font-size: 0.875rem;
}
.notification-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Notifications page */
.notification-page-list .notification-item {
    background: #fff;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #E2E8F0;
    border-left: 3px solid transparent;
}
.notification-page-list .notification-item-actionable { border-left-color: #0D9488; }
.notification-page-list .notification-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.notification-filters {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.notification-filter-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #EDF2F7;
    color: #4A5568;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.15s ease;
}
.notification-filter-btn:hover { background: #E2E8F0; }
.notification-filter-btn.active {
    background: #0D9488;
    color: #fff;
    border-color: #0D9488;
}

/* Spinner animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; display: inline-block; }

/* Bulk action checkboxes in grids */
.k-grid .row-select,
.k-grid .select-all {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 3px;
}
.k-grid th:first-child,
.k-grid td:first-child {
    text-align: center;
}

/* Bulk action bar */
#bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #FFF5F5;
    border: 1px solid #FEB2B2;
    border-radius: 0.5rem;
}

/* TabStrip */
.k-tabstrip .k-tabstrip-items {
    border-bottom: 2px solid #E2E8F0;
    padding: 0;
}
.k-tabstrip .k-tabstrip-items .k-item {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    border-radius: 0.375rem 0.375rem 0 0;
}
.k-tabstrip .k-tabstrip-items .k-item .k-link {
    color: #718096;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
}
.k-tabstrip .k-tabstrip-items .k-state-active {
    border-bottom-color: #0D9488;
    background: #fff;
}
.k-tabstrip .k-tabstrip-items .k-state-active .k-link {
    color: #0D9488;
}
.k-tabstrip .k-tabstrip-items .k-item:hover .k-link {
    color: #4A5568;
}
.k-tabstrip .k-content {
    border: 1px solid #E2E8F0;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 1rem;
    background: #fff;
}

/* Grid */
.k-grid {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}
.k-grid .k-grid-header {
    background: #F7FAFC;
    border-bottom: 1px solid #E2E8F0;
}
.k-grid .k-grid-header th.k-header {
    background: #F7FAFC;
    color: #718096;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    padding: 0.75rem 1rem;
}
.k-grid .k-grid-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #EDF2F7;
    border-left: none;
    border-right: none;
    color: #4A5568;
    font-size: 0.875rem;
}
.k-grid .k-grid-content tr:hover td {
    background: #F7FAFC;
}
.k-grid .k-grid-content td a {
    color: #0D9488;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
}
.k-grid .k-grid-content td a:hover {
    color: #0F766E;
    background: none;
}
.k-grid .k-pager-wrap {
    background: #fff;
    border-top: 1px solid #E2E8F0;
    padding: 0.5rem;
}
.k-grid .k-pager-wrap .k-link {
    border-radius: 0.375rem;
}
.k-grid .k-pager-wrap .k-state-selected {
    background: #2D3748;
    color: #fff;
    border-color: #2D3748;
}

/* Dropdown */
.k-dropdown .k-dropdown-wrap {
    border: 1px solid #CBD5E0;
    border-radius: 0.375rem;
    background: #fff;
}
.k-dropdown .k-dropdown-wrap.k-state-focused {
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

/* PanelBar (side menu) */
.k-panelbar {
    border: none;
    background: transparent;
}
.k-panelbar > .k-item {
    border: none;
}
.k-panelbar > .k-item > .k-link {
    background: #2D3748;
    color: #CBD5E0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}
.k-panelbar > .k-item > .k-link:hover,
.k-panelbar > .k-item > .k-state-hover > .k-link {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.k-panelbar > .k-item > .k-state-selected {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.k-panelbar .k-group .k-item .k-link {
    background: #1A202C;
    color: #CBD5E0;
    padding: 0.5rem 1rem 0.5rem 2rem;
    font-size: 0.8125rem;
}
.k-panelbar .k-group .k-item .k-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

/* Window (modal) */
.k-window {
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #E2E8F0;
}
.k-window-titlebar {
    background: #2D3748;
    color: #fff;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.75rem 1rem;
}
.k-window-titlebar .k-window-title {
    font-weight: 600;
}
.k-window-content {
    padding: 1.5rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Sidebar responsive */
@media (max-width: 767.98px) {
    #sidebar.collapsed:hover { width: 64px; }
    #sidebar.collapsed:hover .sidebar-brand-text,
    #sidebar.collapsed:hover .nav-text { opacity: 0; }
    #main-content-wrapper > main { padding: 1rem; }
}

@media only screen and (max-width: 1000px) {
    #right-side-bar { width: 180px; }
    #right-side-bar .k-dropdown { width: 160px !important; }
    .content-area { margin-right: 200px; }
}

@media only screen and (max-width: 850px) {
    .main-content, .featured + .main-content {
        background-position: 10px 0;
    }
    .content-wrapper { padding-right: 10px; padding-left: 10px; }
}

@media only screen and (max-width: 800px) {
    ul#menu { font-size: 0.8rem; }

    .logo { width: 38px; }

    #side-bar {
        position: absolute;
        width: 160px;
    }
    #side-menu { width: 158px; }
    .content-area { margin-left: 180px; }
}

@media only screen and (max-width: 600px) {
    .content-area {
        margin-left: 160px;
        margin-right: 180px;
    }

    .paperless-table td { display: block; }
    .paperless-table th { font-size: 0; display: block; height: 0; padding: 0; border-top: none !important; }
    .hide-mobile { display: none !important; }
    label.mobile-only { display: block; }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    #sidebar, #top-bar,
    header, footer, #breadcrumb,
    #side-bar, #right-side-bar,
    .search-form, .button, .delete-button,
    #flash-message, #flash-error-message { display: none !important; }

    #app-wrapper { display: block !important; }
    #main-content-wrapper { margin-left: 0 !important; width: 100% !important; }
    html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
    .content-area { margin: 0 !important; padding: 0 !important; }
    .card-modern { box-shadow: none !important; border: 1px solid #ddd; }
    table { page-break-inside: auto; }
    tr { page-break-inside: avoid; }
    h1, h2, h3 { page-break-after: avoid; }
}
