/*
 * Care One OS — Brand Theme Override
 * ===================================
 * Single file that re-skins the entire app to match the Care One OS brand.
 * Drop this CSS AFTER developer.css — it overrides Bootstrap 3 + existing styles.
 * No HTML changes required.
 *
 * Brand colours from careoneos.ltd:
 *   Primary:  #3A7CA5
 *   Teal:     #54C3C5
 *   Orange:   #F28729
 *   Slate:    #3F5E6B
 *   Navy:     #1a2e3f
 *   Page BG:  #F5F7F8
 */

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    --brand-50: #f0f7fb;
    --brand-100: #dbedf6;
    --brand-200: #b8dbed;
    --brand-300: #85c2de;
    --brand-400: #4da3c9;
    --brand-500: #3A7CA5;
    --brand-600: #2E6A91;
    --brand-700: #265879;
    --brand-800: #224B65;
    --brand-900: #1D3F55;
    --brand-950: #142b3d;

    --teal: #54C3C5;
    --teal-600: #3E9EA0;
    --orange: #F28729;
    --orange-dark: #d97524;
    --rose: #B8557A;
    --lime: #86B73B;
    --purple: #8D4B84;

    --navy-800: #1a2e3f;
    --navy-900: #122231;
    --navy-950: #0b1722;

    --slate: #3F5E6B;
    --page-bg: #EEF4F8;
    --card-bg: #ffffff;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}


/* ===========================
   GLOBAL / TYPOGRAPHY
   =========================== */
body,
body.full-width {
    font-family: var(--font-family) !important;
    background: linear-gradient(165deg, #E8F0F6 0%, #EEF4F8 40%, #F2F6F4 100%) fixed !important;
    color: var(--slate);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.login-body {
    font-family: var(--font-family) !important;
    background-color: var(--page-bg) !important;
    color: var(--slate);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family) !important;
    font-weight: 700;
    color: var(--navy-800);
}

a {
    color: var(--brand-500);
}
a:hover, a:focus {
    color: var(--brand-600);
}

p, span, label, td, th, li, div {
    font-family: var(--font-family) !important;
}


/* ===========================
   TOP HEADER BAR
   =========================== */
.header.fixed-top,
header.header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
}

.header .navbar-header .brand a.logo img {
    max-height: 36px;
}

.header .top-nav .nav > li > a,
.header .cus-nav a,
.header .nav > li > a {
    color: var(--slate) !important;
}
.header .top-nav .nav > li > a:hover,
.header .cus-nav a:hover {
    color: var(--brand-500) !important;
}

.header .allBtnUseColor,
.header .btn.allBtnUseColor {
    background: var(--brand-500) !important;
    border-color: var(--brand-500) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.header .allBtnUseColor:hover {
    background: var(--brand-600) !important;
    border-color: var(--brand-600) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58,124,165,0.3);
}

.sel_design_layout {
    border-color: var(--brand-500) !important;
    background: var(--brand-500) !important;
    border-radius: var(--radius-sm) !important;
}

.coo-home-switcher {
    background-color: var(--lime) !important;
    color: #fff !important;
    border: 1px solid var(--lime) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}


/* ===========================
   SIDEBAR (roster pages)
   =========================== */
.sidebar-wrapper {
    background: #ffffff !important;
    box-shadow: 2px 0 15px rgba(0,0,0,0.06) !important;
    border-right: 1px solid var(--border-light) !important;
}

.sidebar-wrapper .sidebar-brand {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-wrapper .sidebar-header {
    background: var(--brand-50);
    border-bottom: 1px solid var(--border-light);
}

.sidebar-wrapper .sidebar-header .user-info > span {
    color: var(--navy-800);
}
.sidebar-wrapper .sidebar-header .user-info .user-role {
    color: var(--brand-500);
}

.sidebar-wrapper .sidebar-menu .header-menu span {
    color: #9ca3af !important;
    font-size: 11px !important;
    letter-spacing: 1px;
}

.sidebar-wrapper .sidebar-menu ul li a {
    color: var(--slate) !important;
    border-radius: var(--radius-sm);
    margin: 1px 8px;
    padding: 9px 16px 9px 12px !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sidebar-wrapper .sidebar-menu ul li a:hover {
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}
.sidebar-wrapper .sidebar-menu ul li a i {
    color: #9ca3af !important;
}
.sidebar-wrapper .sidebar-menu ul li a:hover i {
    color: var(--brand-500) !important;
}

.sidebar-wrapper .sidebar-menu ul li.active > a,
.sidebar-wrapper .sidebar-menu ul li a.active {
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--brand-500), var(--teal), var(--purple)) 1;
}
.sidebar-wrapper .sidebar-menu ul li.active > a i {
    color: var(--brand-500) !important;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a {
    color: #6b7280 !important;
    font-size: 12.5px !important;
}
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:hover {
    color: var(--brand-600) !important;
}
.sidebar-wrapper .sidebar-menu .sidebar-dropdown > a:after {
    color: #9ca3af !important;
}

#show-sidebar {
    background: var(--brand-500) !important;
    color: #fff !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    box-shadow: var(--shadow-md) !important;
}

#close-sidebar {
    color: #9ca3af !important;
}
#close-sidebar:hover {
    color: var(--slate) !important;
}


/* ===========================
   PAGE CONTENT AREA
   =========================== */
.page-content {
    background: var(--page-bg) !important;
}

.topHeaderCont h1 {
    color: var(--navy-800) !important;
    font-weight: 800 !important;
    font-size: 26px !important;
}
.topHeaderCont .header-subtitle {
    color: var(--slate) !important;
    opacity: 0.7;
}


/* ===========================
   CARDS / PANELS
   =========================== */
.panel,
.panel-default {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--card-bg) !important;
    overflow: hidden;
}

.panel-heading,
.panel-default > .panel-heading {
    background: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    padding: 14px 18px !important;
}

.panel-title,
.panel-heading h3,
.panel-heading h4 {
    font-weight: 700 !important;
    color: var(--navy-800) !important;
    font-size: 15px !important;
}

.panel-body {
    padding: 18px !important;
}

.panel-footer {
    background: var(--brand-50) !important;
    border-top: 1px solid var(--border-light) !important;
}


/* ===========================
   BUTTONS
   =========================== */
.btn {
    font-family: var(--font-family) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 16px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    letter-spacing: 0.01em;
}

.btn-primary,
.allBtnUseColor {
    background: var(--brand-500) !important;
    border-color: var(--brand-500) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.allBtnUseColor:hover {
    background: var(--brand-600) !important;
    border-color: var(--brand-600) !important;
    box-shadow: 0 4px 12px rgba(58,124,165,0.25) !important;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--lime) !important;
    border-color: var(--lime) !important;
}
.btn-success:hover, .btn-success:focus {
    background: #749e33 !important;
    box-shadow: 0 4px 12px rgba(134,183,59,0.25) !important;
}

.btn-danger {
    background: var(--rose) !important;
    border-color: var(--rose) !important;
}
.btn-danger:hover, .btn-danger:focus {
    background: #a04a6b !important;
    box-shadow: 0 4px 12px rgba(184,85,122,0.25) !important;
}

.btn-warning {
    background: var(--orange) !important;
    border-color: var(--orange) !important;
    color: #fff !important;
}
.btn-warning:hover, .btn-warning:focus {
    background: var(--orange-dark) !important;
    box-shadow: 0 4px 12px rgba(242,135,41,0.25) !important;
}

.btn-info {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    color: #fff !important;
}
.btn-info:hover, .btn-info:focus {
    background: var(--teal-600) !important;
    box-shadow: 0 4px 12px rgba(84,195,197,0.25) !important;
}

.btn-default {
    background: #fff !important;
    border: 1px solid var(--border-medium) !important;
    color: var(--slate) !important;
}
.btn-default:hover, .btn-default:focus {
    background: var(--brand-50) !important;
    border-color: var(--brand-200) !important;
    color: var(--brand-600) !important;
}


/* ===========================
   FORMS
   =========================== */
.form-control {
    font-family: var(--font-family) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: var(--slate) !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    height: auto !important;
}
.form-control:focus {
    border-color: var(--brand-400) !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.12) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #a0aab4;
}

label,
.control-label {
    font-weight: 600 !important;
    color: var(--navy-800) !important;
    font-size: 13px !important;
    margin-bottom: 4px !important;
}

.input-group-addon {
    background: var(--brand-50) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--brand-500) !important;
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233F5E6B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
    padding-right: 32px !important;
}


/* ===========================
   TABLES
   =========================== */
.table {
    font-family: var(--font-family) !important;
}

.table > thead > tr > th {
    background: var(--brand-50) !important;
    color: var(--navy-800) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--brand-200) !important;
    padding: 10px 14px !important;
}

.table > tbody > tr > td {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid var(--border-light) !important;
    vertical-align: middle !important;
}

.table > tbody > tr:hover > td {
    background: var(--brand-50) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: rgba(240,247,251,0.5) !important;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    font-family: var(--font-family) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-sm) !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--brand-400) !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.12) !important;
    outline: none !important;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-family: var(--font-family) !important;
    font-size: 13px !important;
    color: var(--slate) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-family) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--brand-500) !important;
    border-color: var(--brand-500) !important;
    color: #fff !important;
}


/* ===========================
   ALERTS (roster dashboard)
   =========================== */
.rota_alert {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-light) !important;
    background: var(--card-bg) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: box-shadow 0.2s ease !important;
}
.rota_alert:hover {
    box-shadow: var(--shadow-md) !important;
}
.rota_alert-badge {
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
}


/* ===========================
   MODALS
   =========================== */
.modal-content {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    overflow: hidden;
}

.modal-header {
    background: var(--brand-500) !important;
    border-bottom: none !important;
    padding: 16px 20px !important;
}
.modal-header .modal-title,
.modal-header h4 {
    color: #fff !important;
    font-weight: 700 !important;
}
.modal-header .close {
    color: #fff !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
}
.modal-header .close:hover {
    opacity: 1 !important;
}

.modal-body {
    padding: 20px !important;
}

.modal-footer {
    background: var(--brand-50) !important;
    border-top: 1px solid var(--border-light) !important;
    padding: 14px 20px !important;
}


/* ===========================
   TABS / NAV-TABS
   =========================== */
.nav-tabs {
    border-bottom: 2px solid var(--border-light) !important;
}
.nav-tabs > li > a {
    font-family: var(--font-family) !important;
    font-weight: 600 !important;
    color: var(--slate) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}
.nav-tabs > li > a:hover {
    background: transparent !important;
    border-bottom-color: var(--brand-300) !important;
    color: var(--brand-500) !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--brand-500) !important;
    color: var(--brand-500) !important;
}

.tab-content {
    padding: 18px 0 !important;
}


/* ===========================
   BADGES / LABELS
   =========================== */
.badge {
    font-family: var(--font-family) !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 3px 8px !important;
}

.label {
    font-family: var(--font-family) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
}

.label-primary, .badge-primary {
    background: var(--brand-500) !important;
}
.label-success, .badge-success {
    background: var(--lime) !important;
}
.label-danger, .badge-danger {
    background: var(--rose) !important;
}
.label-warning, .badge-warning {
    background: var(--orange) !important;
    color: #fff !important;
}
.label-info, .badge-info {
    background: var(--teal) !important;
}


/* ===========================
   DROPDOWNS
   =========================== */
.dropdown-menu {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 6px !important;
    font-family: var(--font-family) !important;
}
.dropdown-menu > li > a {
    padding: 8px 14px !important;
    font-size: 13px !important;
    color: var(--slate) !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.15s ease !important;
}
.dropdown-menu > li > a:hover {
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}


/* ===========================
   BREADCRUMBS
   =========================== */
.breadcrumb {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    font-size: 13px !important;
}
.breadcrumb > li + li:before {
    color: var(--border-medium) !important;
}
.breadcrumb > .active {
    color: var(--slate) !important;
}


/* ===========================
   PAGINATION
   =========================== */
.pagination > li > a,
.pagination > li > span {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px !important;
    border: 1px solid var(--border-light) !important;
    color: var(--slate) !important;
    font-family: var(--font-family) !important;
    font-size: 13px !important;
}
.pagination > li > a:hover {
    background: var(--brand-50) !important;
    border-color: var(--brand-200) !important;
    color: var(--brand-600) !important;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover {
    background: var(--brand-500) !important;
    border-color: var(--brand-500) !important;
    color: #fff !important;
}


/* ===========================
   TOASTR OVERRIDES
   =========================== */
.toast-success {
    background-color: var(--lime) !important;
}
.toast-error {
    background-color: var(--rose) !important;
}
.toast-info {
    background-color: var(--brand-500) !important;
}
.toast-warning {
    background-color: var(--orange) !important;
}


/* ===========================
   LOGIN PAGE — Split layout with SVG illustration
   =========================== */
.login-body {
    background: linear-gradient(165deg, #EEF4F8 0%, #E8F0F6 40%, #F2F6F4 100%) !important;
    min-height: 100vh;
    overflow: hidden;
}

.login-body .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Split layout */
.coo-login-split {
    display: flex;
    min-height: 100vh;
}

/* Left: form (30%) */
.coo-login-form {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    box-shadow: 4px 0 30px rgba(58,124,165,0.08);
    z-index: 2;
    animation: coo-slide-right 0.6s cubic-bezier(0.16,1,0.3,1);
}

@keyframes coo-slide-right {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.coo-login-form-inner {
    width: 100%;
    max-width: 380px;
}

.coo-login-logo {
    margin-bottom: 32px;
}

.coo-login-logo img {
    height: 40px;
    width: auto;
}

.coo-login-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-800);
    margin: 0 0 8px;
}

.coo-login-subtitle {
    font-size: 14px;
    color: var(--slate);
    margin: 0 0 32px;
}

.coo-field {
    margin-bottom: 18px;
}

.coo-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.coo-login-form .form-control {
    height: 46px !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    background: #fafbfc !important;
}

.coo-login-form .form-control:focus {
    border-color: var(--brand-500) !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.1) !important;
    background: #fff !important;
}

.coo-login-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.coo-login-form .form-signin {
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.coo-login-form .form-signin h2.form-signin-heading {
    display: none !important;
}

/* Home autocomplete */
.coo-autocomplete {
    position: relative;
}

.coo-autocomplete-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.coo-autocomplete-input-wrap > i {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: var(--slate);
    pointer-events: none;
    z-index: 1;
}

.coo-autocomplete-input-wrap .form-control {
    padding-left: 38px !important;
    padding-right: 36px !important;
}

.coo-autocomplete-clear {
    position: absolute;
    right: 10px;
    width: 22px;
    height: 22px;
    border: none;
    background: var(--border-light);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: var(--slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.15s ease;
}

.coo-autocomplete-clear:hover {
    background: var(--brand-200);
    color: var(--brand-700);
}

.coo-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 4px;
    animation: coo-dropdown-in 0.15s ease;
}

@keyframes coo-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.coo-ac-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--navy-800);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.coo-ac-item i {
    font-size: 16px;
    color: var(--brand-500);
    flex-shrink: 0;
}

.coo-ac-item:hover,
.coo-ac-item.coo-ac-hover {
    background: var(--brand-50);
}

.coo-ac-item strong {
    color: var(--brand-600);
    font-weight: 700;
}

.coo-ac-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--slate);
    font-style: italic;
}

.coo-home-field.inp-hide,
.coo-login-step.inp-hide {
    display: none;
}

.coo-login-step {
    animation: coo-field-reveal 0.3s ease both;
}

@keyframes coo-field-reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.coo-forgot-link {
    font-size: 13px;
    color: var(--brand-500) !important;
    font-weight: 600;
    text-decoration: none;
}

.coo-forgot-link:hover {
    color: var(--brand-700) !important;
}

.coo-login-btn {
    width: 100%;
    height: 48px;
    margin-top: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--teal-600) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(58,124,165,0.3) !important;
}

.coo-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58,124,165,0.4) !important;
}

.coo-login-btn i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.coo-login-btn:hover i {
    transform: translateX(4px);
}

/* Right: illustration */
/* Right: illustration (70%) */
.coo-login-art {
    flex: 0 0 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.coo-login-svg {
    width: 100%;
    max-width: 700px;
    height: auto;
    animation: coo-fade-up 0.8s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes coo-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animated background blobs */
.coo-art-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.coo-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: coo-blob-float 8s ease-in-out infinite;
}

.coo-blob-1 {
    width: 300px; height: 300px;
    background: rgba(84,195,197,0.15);
    top: 10%; left: 20%;
}

.coo-blob-2 {
    width: 250px; height: 250px;
    background: rgba(134,183,59,0.12);
    bottom: 15%; right: 10%;
    animation-delay: -2s;
}

.coo-blob-3 {
    width: 200px; height: 200px;
    background: rgba(242,135,41,0.1);
    top: 50%; left: 60%;
    animation-delay: -4s;
}

.coo-blob-4 {
    width: 180px; height: 180px;
    background: rgba(141,75,132,0.1);
    top: 20%; right: 20%;
    animation-delay: -6s;
}

@keyframes coo-blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Company error styling */
.coo-login-form .company_error {
    margin-top: -12px;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .coo-login-split { flex-direction: column; }
    .coo-login-form { flex: none; width: 100%; }
    .coo-login-art { min-height: 300px; }
}

@media (max-width: 600px) {
    .coo-login-form { padding: 24px; }
    .coo-login-art { display: none; }
}


/* ===========================
   CHAT / AI COPILOT
   =========================== */
.chat_opt,
.ai-copilot-toggle {
    background: var(--brand-500) !important;
    box-shadow: 0 4px 15px rgba(58,124,165,0.4) !important;
    transition: all 0.2s ease !important;
}
.chat_opt:hover,
.ai-copilot-toggle:hover {
    background: var(--brand-600) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58,124,165,0.5) !important;
}


/* ===========================
   FOOTER
   =========================== */
footer,
.footer-area {
    background: var(--navy-900) !important;
    color: rgba(255,255,255,0.6) !important;
    font-family: var(--font-family) !important;
}


/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--page-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-200);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-400);
}


/* ===========================
   MISC COMPONENT OVERRIDES
   =========================== */
.well {
    background: var(--brand-50) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}

.alert {
    border-radius: var(--radius-md) !important;
    border: none !important;
    font-family: var(--font-family) !important;
}
.alert-success {
    background: #f1f7ea !important;
    color: #4a6b1f !important;
}
.alert-danger {
    background: #fdf0f4 !important;
    color: #8b3a56 !important;
}
.alert-warning {
    background: #fef6ec !important;
    color: #8b5e1a !important;
}
.alert-info {
    background: var(--brand-50) !important;
    color: var(--brand-700) !important;
}

.progress {
    border-radius: 20px !important;
    height: 8px !important;
    background: var(--border-light) !important;
    box-shadow: none !important;
}
.progress-bar {
    border-radius: 20px !important;
    background: var(--brand-500) !important;
}
.progress-bar-success {
    background: var(--lime) !important;
}
.progress-bar-danger {
    background: var(--rose) !important;
}
.progress-bar-warning {
    background: var(--orange) !important;
}

.tooltip-inner {
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-family) !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    background: var(--navy-800) !important;
}

.popover {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: var(--font-family) !important;
}

/* Select2 overrides */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-sm) !important;
    min-height: 36px !important;
    font-family: var(--font-family) !important;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--brand-400) !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.12) !important;
}
.select2-dropdown {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}
.select2-results__option--highlighted {
    background: var(--brand-500) !important;
}


/* ===========================
   SWITCH HOME DROPDOWN (header)
   =========================== */
.select-dyslexia select {
    background-color: var(--lime) !important;
    border-color: var(--lime) !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-family) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}


/* ===========================
   NOTIFICATION BADGE
   =========================== */
#notification-badge {
    background: var(--rose) !important;
    font-family: var(--font-family) !important;
}


/* ===========================
   LOADER
   =========================== */
.loader-box .loader-inner {
    border-top-color: var(--brand-500) !important;
}


/* ╔══════════════════════════════════════════════════════════════╗
   ║  ANIMATIONS & MODERN EFFECTS                                ║
   ║  Pure CSS + jQuery (no React/Tailwind needed)                ║
   ╚══════════════════════════════════════════════════════════════╝ */


/* ===========================
   KEYFRAME DEFINITIONS
   =========================== */
@keyframes coo-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes coo-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes coo-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes coo-slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes coo-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes coo-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes coo-shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes coo-pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

@keyframes coo-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes coo-border-beam {
    0% {
        offset-distance: 0%;
    }
    100% {
        offset-distance: 100%;
    }
}

@keyframes coo-count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes coo-tab-slide {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes coo-ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes coo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}


/* ===========================
   SCROLL-TRIGGERED FADE IN
   Elements start invisible, fade in when scrolled into view.
   JS adds .coo-visible class via IntersectionObserver.
   =========================== */
.coo-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.coo-animate.coo-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children — add .coo-stagger to parent */
.coo-stagger > .coo-animate:nth-child(1) { transition-delay: 0ms; }
.coo-stagger > .coo-animate:nth-child(2) { transition-delay: 80ms; }
.coo-stagger > .coo-animate:nth-child(3) { transition-delay: 160ms; }
.coo-stagger > .coo-animate:nth-child(4) { transition-delay: 240ms; }
.coo-stagger > .coo-animate:nth-child(5) { transition-delay: 320ms; }
.coo-stagger > .coo-animate:nth-child(6) { transition-delay: 400ms; }
.coo-stagger > .coo-animate:nth-child(7) { transition-delay: 480ms; }
.coo-stagger > .coo-animate:nth-child(8) { transition-delay: 560ms; }

/* Slide-in variants */
.coo-animate-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.coo-animate-left.coo-visible {
    opacity: 1;
    transform: translateX(0);
}

.coo-animate-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.coo-animate-right.coo-visible {
    opacity: 1;
    transform: translateX(0);
}

.coo-animate-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.coo-animate-scale.coo-visible {
    opacity: 1;
    transform: scale(1);
}


/* ===========================
   AUTO-APPLIED ENTRANCE ANIMATIONS
   These target existing elements — no HTML changes needed.
   =========================== */
.topHeaderCont {
    animation: coo-fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rota_alert {
    animation: coo-fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.rota_alert:nth-child(1) { animation-delay: 0ms; }
.rota_alert:nth-child(2) { animation-delay: 100ms; }
.rota_alert:nth-child(3) { animation-delay: 200ms; }

.panel {
    animation: coo-fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal.in .modal-content {
    animation: coo-scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dropdown-menu {
    animation: coo-scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both !important;
    transform-origin: top center;
}

.tab-content > .tab-pane.active {
    animation: coo-fadeIn 0.3s ease both;
}


/* ===========================
   ENHANCED HOVER LIFT — Cards
   =========================== */
.panel,
.panel-default {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.panel:hover,
.panel-default:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(58,124,165,0.1),
                0 0 0 1px rgba(58,124,165,0.06) !important;
}

.rota_alert {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.rota_alert:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06),
                0 0 0 1px rgba(58,124,165,0.06) !important;
}


/* ===========================
   ENHANCED BUTTONS — Ripple + Glow
   =========================== */
.btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn:hover {
    transform: translateY(-1px) !important;
}
.btn:active {
    transform: translateY(0) !important;
    transition-duration: 0.1s !important;
}

/* Ripple effect — injected by JS on click */
.btn .coo-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    animation: coo-ripple 0.6s ease-out;
    pointer-events: none;
}

/* Glow on primary buttons */
.btn-primary:hover,
.allBtnUseColor:hover {
    box-shadow: 0 0 20px rgba(58,124,165,0.3),
                0 4px 12px rgba(58,124,165,0.2) !important;
}
.btn-success:hover {
    box-shadow: 0 0 20px rgba(134,183,59,0.3),
                0 4px 12px rgba(134,183,59,0.2) !important;
}
.btn-danger:hover {
    box-shadow: 0 0 20px rgba(184,85,122,0.3),
                0 4px 12px rgba(184,85,122,0.2) !important;
}
.btn-warning:hover {
    box-shadow: 0 0 20px rgba(242,135,41,0.3),
                0 4px 12px rgba(242,135,41,0.2) !important;
}


/* ===========================
   SHINE BORDER — Brand gradient glow
   Add .coo-shine to any element for animated border.
   Auto-applied to key dashboard cards via JS.
   =========================== */
.coo-shine {
    position: relative !important;
    overflow: hidden !important;
}
.coo-shine::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        var(--brand-500),
        var(--teal),
        var(--orange),
        var(--purple),
        var(--brand-500)
    );
    animation: coo-shine 4s linear infinite;
}
.coo-shine::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    z-index: -1;
    border-radius: inherit;
    background: var(--card-bg);
}

/* Subtle version — shine only on hover */
.coo-shine-hover {
    position: relative !important;
    overflow: hidden !important;
}
.coo-shine-hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        var(--brand-500),
        var(--teal),
        var(--orange),
        var(--purple),
        var(--brand-500)
    );
    animation: coo-shine 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.coo-shine-hover:hover::before {
    opacity: 1;
}
.coo-shine-hover::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    z-index: -1;
    border-radius: inherit;
    background: var(--card-bg);
}


/* ===========================
   SKELETON / SHIMMER LOADING
   Add .coo-skeleton to any placeholder element.
   =========================== */
.coo-skeleton {
    background: linear-gradient(
        90deg,
        var(--border-light) 25%,
        #f0f4f7 37%,
        var(--border-light) 63%
    ) !important;
    background-size: 200% 100% !important;
    animation: coo-shimmer 1.5s ease infinite !important;
    border-radius: var(--radius-sm) !important;
    color: transparent !important;
    pointer-events: none;
}
.coo-skeleton * {
    visibility: hidden !important;
}


/* ===========================
   NOTIFICATION BADGE PULSE
   =========================== */
#notification-badge {
    position: relative;
}
#notification-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--rose);
    animation: coo-pulse-ring 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    z-index: -1;
}


/* ===========================
   DIRECTION-AWARE TABS
   Active tab underline slides smoothly.
   =========================== */
.nav-tabs {
    position: relative !important;
}
.nav-tabs > li > a {
    transition: color 0.25s ease, border-color 0.25s ease !important;
    position: relative !important;
}
.nav-tabs > li.active > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-500), var(--teal), var(--lime), var(--orange), var(--purple));
    border-radius: 2px;
    animation: coo-tab-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: left center;
}


/* ===========================
   GLASSMORPHISM — Frosted glass
   =========================== */
.coo-glass {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

/* Auto-apply to dropdowns */
.dropdown-menu {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}


/* ===========================
   INPUT FOCUS GLOW
   =========================== */
.form-control {
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.15s ease !important;
}
.form-control:focus {
    transform: scale(1.005);
    border-color: var(--brand-400) !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.1),
                0 2px 8px rgba(58,124,165,0.08) !important;
}


/* ===========================
   ANIMATED NUMBER COUNTER
   JS applies count-up effect; this styles the transition.
   =========================== */
.coo-counter {
    display: inline-block;
    animation: coo-count-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}


/* ===========================
   SMOOTH SIDEBAR TRANSITIONS
   =========================== */
.sidebar-wrapper {
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease !important;
}

.sidebar-wrapper .sidebar-menu ul li a {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.sidebar-wrapper .sidebar-menu ul li a:hover {
    padding-left: 18px !important;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu {
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease !important;
}


/* ===========================
   FLOATING ACTION BUTTON
   =========================== */
.ai-copilot-toggle,
.chat_opt {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.ai-copilot-toggle:hover,
.chat_opt:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(58,124,165,0.25) !important;
}


/* ===========================
   TABLE ROW HOVER — Smooth highlight
   =========================== */
.table > tbody > tr {
    transition: background-color 0.2s ease !important;
}
.table > tbody > tr:hover > td {
    background: var(--brand-50) !important;
    transition: background-color 0.2s ease !important;
}


/* ===========================
   ALERT ENTRANCE
   =========================== */
.alert {
    animation: coo-fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}


/* ===========================
   TOOLTIP ANIMATION
   =========================== */
.tooltip.in {
    animation: coo-scaleIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* ===========================
   POPOVER ANIMATION
   =========================== */
.popover {
    animation: coo-scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: center top;
}


/* ===========================
   TOASTR ENTRANCE
   =========================== */
.toast {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: var(--font-family) !important;
    backdrop-filter: blur(10px) !important;
}


/* ===========================
   PROGRESS BAR ANIMATION
   =========================== */
.progress-bar {
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


/* ===========================
   HEADER TRANSITION ON SCROLL
   JS adds .coo-scrolled class when page scrolls.
   =========================== */
.header.fixed-top,
header.header {
    transition: background 0.3s ease,
                box-shadow 0.3s ease,
                backdrop-filter 0.3s ease !important;
}
header.header.coo-scrolled {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}


/* ===========================
   CHECKBOX / RADIO MODERNIZE
   =========================== */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--brand-500);
    transition: all 0.15s ease;
}


/* ===========================
   GRADIENT HOVER CARDS (sectionWhiteBgAllUse)
   Gradient border + lift on hover.
   =========================== */
.sectionWhiteBgAllUse,
.careTaskstbbg.sectionWhiteBgAllUse,
.profile-details-card,
.onboardingBox,
.leave-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease !important;
}
.sectionWhiteBgAllUse:hover,
.onboardingBox:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(20,43,61,0.08),
                0 0 0 1px rgba(58,124,165,0.06) !important;
}
.sectionWhiteBgAllUse:focus-within,
.onboardingBox:focus-within {
    border-color: var(--brand-300) !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.08) !important;
}


/* ===========================
   BORDER BEAM BUTTON
   Animated gradient beam orbiting the button border.
   Applied to .allBtnUseColor.coo-beam-btn
   =========================== */
@property --coo-beam-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.coo-beam-btn {
    position: relative !important;
    z-index: 0;
    overflow: visible !important;
}
.coo-beam-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: conic-gradient(
        from var(--coo-beam-angle, 0deg),
        transparent 0%,
        transparent 70%,
        var(--teal) 76%,
        var(--brand-400) 82%,
        var(--brand-500) 88%,
        transparent 94%
    );
    z-index: -2;
    animation: coo-beam-rotate 5s linear infinite;
}
.coo-beam-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: var(--brand-500);
    z-index: -1;
}
@keyframes coo-beam-rotate {
    from { --coo-beam-angle: 0deg; }
    to { --coo-beam-angle: 360deg; }
}


/* ===========================
   DIRECTION-AWARE TABS — calendarTabs
   Sliding indicator for .calendarTabs .tab
   =========================== */
.calendarTabs .clientOverTabs .tabs {
    position: relative !important;
}
.coo-tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--brand-500), var(--teal), var(--lime), var(--orange), var(--purple));
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    pointer-events: none;
}
.calendarTabs .tab.active {
    background: var(--brand-500) !important;
    color: #fff !important;
    border-color: var(--brand-500) !important;
    box-shadow: 0 4px 12px rgba(58,124,165,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.calendarTabs .tab {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.calendarTabs .tab:hover:not(.active) {
    background: var(--brand-50) !important;
    border-color: var(--brand-200) !important;
    color: var(--brand-600) !important;
    transform: translateY(-1px);
}


/* ===========================
   STATUS CHIP PULSE
   The green "active" badge gets a pulse glow.
   =========================== */
@keyframes coo-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(134,183,59,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(134,183,59,0); }
}
.greenBadges {
    position: relative;
}
.greenBadges::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    margin-right: 6px;
    vertical-align: middle;
    animation: coo-pulse-dot 2s ease-in-out infinite;
}


/* ===========================
   BREADCRUMB
   =========================== */
.coo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 0;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Back to client list button */
.coo-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-600);
    background: var(--card-bg);
    border: 1.5px solid var(--brand-200);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 50px;
}

.coo-back-btn:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-700);
    text-decoration: none;
}
.coo-breadcrumb a {
    color: var(--slate);
    text-decoration: none;
}
.coo-breadcrumb a:hover {
    color: var(--brand-500);
}
.coo-bc-sep {
    color: var(--border-medium);
}
.coo-bc-current {
    color: var(--brand-600);
    font-weight: 600;
}


/* ===========================
   CLIENT PROFILE AVATAR RING
   =========================== */
.coo-client-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.coo-client-ava {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.coo-ava-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 140deg, var(--teal), var(--brand-500), var(--purple), var(--orange), var(--lime), var(--teal));
    animation: coo-shine 8s linear infinite;
}
.coo-ava-inner {
    position: relative;
    z-index: 1;
    margin: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    background: var(--brand-700);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.02em;
}
.coo-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.coo-chip-la {
    background: var(--brand-50) !important;
    color: var(--brand-700) !important;
    border: 1px solid var(--brand-100) !important;
}


/* ===========================
   QUICK FACTS BAR
   =========================== */
.coo-facts {
    margin-top: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
}
.coo-facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-500), var(--teal), var(--lime), var(--orange), var(--purple));
}
.coo-fact {
    padding: 16px 20px;
    border-right: 1px solid var(--border-light);
}
.coo-fact:last-child {
    border-right: none;
}
.coo-fact-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.coo-fact-label i {
    font-size: 14px;
    color: var(--brand-400);
}
.coo-fact-value {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: -0.01em;
}
.coo-fact-value small {
    font-weight: 500;
    color: var(--slate);
    font-size: 12.5px;
}
@media (max-width: 980px) {
    .coo-facts { grid-template-columns: repeat(2, 1fr); }
    .coo-fact:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
    .coo-facts { grid-template-columns: 1fr; }
    .coo-fact { border-right: none; }
}


/* ===========================
   CARE-SETTING TAB FILTER
   =========================== */
.coo-tabs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.coo-setting-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate);
}
.coo-setting-label b {
    color: var(--brand-700);
}
.coo-care-toggle {
    display: flex;
    gap: 3px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 11px;
    padding: 4px;
}
.coo-care-toggle button {
    font-family: var(--font-family);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate);
    background: none;
    border: none;
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s, color 0.14s;
}
.coo-care-toggle button:hover {
    color: var(--brand-700);
}
.coo-care-toggle button.active {
    background: #fff;
    color: var(--brand-700);
    box-shadow: 0 1px 3px rgba(20,43,61,0.12);
}
.coo-tab-divider {
    flex: 0 0 auto;
    align-self: center;
    width: 1px;
    height: 18px;
    background: var(--border-medium);
    margin: 0 6px;
    display: inline-block;
}


/* ===========================
   SMOOTH TAB CONTENT TRANSITIONS
   =========================== */
.calendarTabs .tab-content .content {
    display: block !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none;
}
.calendarTabs .tab-content .content.active {
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
}


/* ===========================
   UNIFIED CARD ACCENT BAR
   3px gradient top bar on all card types.
   =========================== */
.sectionWhiteBgAllUse,
.panel,
.panel-default,
.profile-card,
.leave-card,
.onboardingBox {
    background-image: linear-gradient(90deg, var(--brand-500), var(--teal), var(--lime), var(--orange), var(--purple)) !important;
    background-size: 100% 3px !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-color: var(--card-bg) !important;
}


/* ===========================
   EMPTY STATE DESIGN SYSTEM
   =========================== */
.coo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    color: var(--slate);
    width: 100%;
    margin: 0 auto;
}
.coo-empty-state i {
    font-size: 40px;
    color: var(--brand-200);
    margin-bottom: 12px;
}
.coo-empty-state h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 8px;
}
.coo-empty-state p {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 16px;
}
.coo-empty-state a {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-500);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.coo-empty-state a:hover {
    color: var(--brand-600);
    text-decoration: underline;
}


/* ===========================
   SKELETON LOADER HELPERS
   =========================== */
.coo-skeleton-row {
    height: 18px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}
.coo-skeleton-row.w-80 { width: 80%; }
.coo-skeleton-row.w-60 { width: 60%; }
.coo-skeleton-row.w-40 { width: 40%; }
.coo-skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.coo-skeleton-card {
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}


/* ===========================
   STATUS BADGE VARIANTS
   =========================== */
.careBadg.redBadges {
    background: rgba(184,85,122,0.13) !important;
    color: var(--rose) !important;
}
@keyframes coo-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184,85,122,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(184,85,122,0); }
}
.redBadges::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose);
    margin-right: 6px;
    vertical-align: middle;
    animation: coo-pulse-red 2s ease-in-out infinite;
}


/* ===========================
   DASHBOARD STAT CARDS
   =========================== */
.rota_count {
    font-variant-numeric: tabular-nums !important;
    font-weight: 800 !important;
}
.rota_alert:nth-child(4) { animation-delay: 300ms; }
.rota_alert:nth-child(5) { animation-delay: 400ms; }
.rota_alert:nth-child(6) { animation-delay: 500ms; }


/* ===========================
   PROFILE CARDS (client listing)
   =========================== */
.profile-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease !important;
    overflow: hidden;
}
.profile-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}


/* ===========================
   SIDEBAR USER SECTION
   =========================== */
.coo-sidebar-ava {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    float: left;
    margin-right: 12px;
}
.coo-sidebar-ava .coo-ava-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.coo-sidebar-ava .coo-ava-inner {
    margin: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    font-size: 15px;
}
.sidebar-wrapper .sidebar-header .user-info .user-status i {
    color: var(--lime) !important;
    animation: coo-pulse-dot 2s ease-in-out infinite;
}


/* ===========================
   FORM REFINEMENTS
   =========================== */
.page-content .form-control,
.modal-body .form-control {
    min-height: 38px !important;
}
.form-group {
    position: relative;
}
.form-group label {
    transition: color 0.2s ease !important;
}
.form-group:focus-within label {
    color: var(--brand-500) !important;
}
.coo-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-light);
    border-top-color: var(--brand-500);
    border-radius: 50%;
    animation: coo-shine 0.8s linear infinite;
    display: inline-block;
}


/* ===========================
   MOBILE SIDEBAR OVERLAY
   =========================== */
@media (max-width: 767px) {
    .page-wrapper.toggled::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(26,46,63,0.5);
        backdrop-filter: blur(4px);
        z-index: 998;
        transition: opacity 0.3s ease;
    }
    .sidebar-wrapper {
        z-index: 999 !important;
        box-shadow: 4px 0 25px rgba(0,0,0,0.15) !important;
    }
}


/* ===========================
   FIGMA-INSPIRED AESTHETIC OVERHAUL
   Health dashboard style: spacious, rounded, calm
   =========================== */

/* --- Global card radius & shadow upgrade --- */
.sectionWhiteBgAllUse,
.panel,
.panel-default,
.profile-card,
.leave-card,
.onboardingBox,
.well {
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(58,124,165,0.08) !important;
    box-shadow: 0 2px 12px rgba(58,124,165,0.06) !important;
}

.modal-content {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(58,124,165,0.1) !important;
    box-shadow: 0 20px 60px rgba(26,46,63,0.15) !important;
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid var(--border-light) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.modal-footer {
    border-top: 1px solid var(--border-light) !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

/* --- Dashboard stat cards: Figma health-card style --- */
.rota_dashboard-cards {
    gap: 20px !important;
}
.rota_dash-card {
    border-radius: var(--radius-md) !important;
    padding: 22px 24px !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease !important;
}
.rota_dash-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.rota_dash-card .rota_count {
    font-size: 36px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px;
}
.rota_dash-card .rota_title {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.7;
    margin-bottom: 6px !important;
}
.rota_dash-card .rota_dash-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.rota_dash-card .rota_dash-icon i {
    font-size: 24px !important;
}

/* Kill the background blob from style.css */
.rota_dash-card::before {
    display: none !important;
}

/* Card accent colors — tinted backgrounds like Figma */
.rota_dash-card.blue {
    background: linear-gradient(135deg, #e8f2fa 0%, #ddeaf5 100%) !important;
    border-color: var(--brand-200) !important;
}
.rota_dash-card.blue .rota_dash-left .rota_count { color: var(--brand-600) !important; }
.rota_dash-card.blue .rota_dash-left .rota_title { color: var(--brand-600) !important; opacity: 0.85 !important; }
.rota_dash-card.blue .rota_dash-icon {
    background: rgba(58,124,165,0.15) !important;
    border-radius: 14px !important;
}
.rota_dash-card.blue .rota_dash-icon i {
    color: var(--brand-500) !important;
}

.rota_dash-card.green {
    background: linear-gradient(135deg, #e2f5f5 0%, #d6efef 100%) !important;
    border-color: #b3e5e6 !important;
}
.rota_dash-card.green .rota_dash-left .rota_count { color: var(--teal-600) !important; }
.rota_dash-card.green .rota_dash-left .rota_title { color: var(--teal-600) !important; opacity: 0.85 !important; }
.rota_dash-card.green .rota_dash-icon {
    background: rgba(84,195,197,0.15) !important;
    border-radius: 14px !important;
}
.rota_dash-card.green .rota_dash-icon i {
    color: var(--teal) !important;
}

.rota_dash-card.purple {
    background: linear-gradient(135deg, #f0e8f0 0%, #e8dce6 100%) !important;
    border-color: #d4bfd1 !important;
}
.rota_dash-card.purple .rota_dash-left .rota_count { color: var(--purple) !important; }
.rota_dash-card.purple .rota_dash-left .rota_title { color: var(--purple) !important; opacity: 0.85 !important; }
.rota_dash-card.purple .rota_dash-icon {
    background: rgba(141,75,132,0.15) !important;
    border-radius: 14px !important;
}
.rota_dash-card.purple .rota_dash-icon i {
    color: var(--purple) !important;
}

.rota_dash-card.orangeClr {
    background: linear-gradient(135deg, #fdf0e3 0%, #fbe8d4 100%) !important;
    border-color: #f5d4b3 !important;
}
.rota_dash-card.orangeClr .rota_dash-left .rota_count { color: var(--orange-dark) !important; }
.rota_dash-card.orangeClr .rota_dash-left .rota_title { color: var(--orange-dark) !important; opacity: 0.85 !important; }
.rota_dash-card.orangeClr .rota_dash-icon {
    background: rgba(242,135,41,0.15) !important;
    border-radius: 14px !important;
}

/* Phase 6 F5 — petty cash balance card (rose) */
.rota_dash-card.redClr {
    background: linear-gradient(135deg, #fbeaf1 0%, #f6dbe6 100%) !important;
    border-color: #eec4d5 !important;
}
.rota_dash-card.redClr .rota_dash-left .rota_count { color: var(--rose) !important; }
.rota_dash-card.redClr .rota_dash-left .rota_title { color: var(--rose) !important; opacity: 0.85 !important; }
.rota_dash-card.redClr .rota_dash-icon {
    background: rgba(184,85,122,0.15) !important;
    border-radius: 14px !important;
}
.rota_dash-card.redClr .rota_dash-icon i { color: var(--rose) !important; }
.rota_dash-card.orangeClr .rota_dash-icon i {
    color: var(--orange) !important;
}

/* --- Sidebar: modern, rounded icons, brand accent --- */
.chiller-theme .sidebar-wrapper {
    background: #ffffff !important;
    border-right: 1px solid rgba(58,124,165,0.08) !important;
    box-shadow: 2px 0 20px rgba(58,124,165,0.04) !important;
}
.sidebar-wrapper .sidebar-menu ul li a {
    margin: 2px 12px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--slate) !important;
    transition: all 0.2s ease !important;
}
.sidebar-wrapper .sidebar-menu ul li a:hover {
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}
.sidebar-wrapper .sidebar-menu ul li a:hover i {
    color: var(--brand-500) !important;
    text-shadow: none !important;
}
.sidebar-wrapper .sidebar-menu ul li a i {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 10px !important;
    background: var(--brand-50) !important;
    color: var(--brand-400) !important;
    font-size: 18px !important;
    margin-right: 12px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    text-shadow: none !important;
}
.sidebar-wrapper .sidebar-menu ul li a:hover i {
    background: var(--brand-100) !important;
    color: var(--brand-600) !important;
}
.chiller-theme .sidebar-wrapper ul li:hover a i {
    text-shadow: none !important;
}

/* Sidebar section headers */
.sidebar-wrapper .sidebar-menu .header-menu span {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    color: var(--brand-300) !important;
    padding: 18px 20px 6px 26px !important;
    text-transform: uppercase !important;
}

/* Sidebar brand area */
.sidebar-wrapper .sidebar-brand {
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(58,124,165,0.08) !important;
}

/* Sidebar search */
.sidebar-wrapper .sidebar-search input.search-menu {
    border-radius: 10px !important;
    background: var(--brand-50) !important;
    border: 1px solid transparent !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
}
.sidebar-wrapper .sidebar-search input.search-menu:focus {
    border-color: var(--brand-200) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.1) !important;
}

/* --- Buttons: rounded, colorful --- */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1) !important;
}
.btn-primary,
.allBtnUseColor {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--teal-600) 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(58,124,165,0.25) !important;
}
.btn-primary:hover,
.allBtnUseColor:hover {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--teal) 100%) !important;
    box-shadow: 0 6px 20px rgba(58,124,165,0.35) !important;
    transform: translateY(-1px);
}
.btn-success {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-600) 100%) !important;
    border: none !important;
    box-shadow: 0 3px 12px rgba(84,195,197,0.25) !important;
}
.btn-danger {
    background: linear-gradient(135deg, var(--rose) 0%, #9e4468 100%) !important;
    border: none !important;
    box-shadow: 0 3px 12px rgba(184,85,122,0.25) !important;
}
.btn-warning {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(242,135,41,0.25) !important;
}
.borderBtn {
    border-radius: 10px !important;
    border: 1.5px solid var(--border-medium) !important;
    background: #fff !important;
    color: var(--slate) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.borderBtn:hover {
    border-color: var(--brand-300) !important;
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}

/* --- Alerts: rounded, softer --- */
.rota_alert {
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(58,124,165,0.08) !important;
}

/* --- Tables: rounded container, softer rows --- */
.table-responsive {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}
.table > thead > tr > th {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--slate) !important;
    border-bottom: 2px solid var(--brand-100) !important;
    padding: 14px 16px !important;
}
.table > tbody > tr > td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(58,124,165,0.06) !important;
}
.table > tbody > tr:hover > td {
    background: rgba(58,124,165,0.04) !important;
}

/* --- Form inputs: rounded, brand focus --- */
.form-control {
    border-radius: 10px !important;
    border: 1.5px solid var(--border-light) !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    transition: all 0.2s ease !important;
}
.form-control:focus {
    border-color: var(--brand-300) !important;
    box-shadow: 0 0 0 3px rgba(58,124,165,0.1) !important;
}
select.form-control {
    border-radius: 10px !important;
}

/* --- Dropdown menus: rounded, shadow --- */
.dropdown-menu {
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(58,124,165,0.1) !important;
    box-shadow: 0 10px 40px rgba(26,46,63,0.12) !important;
    padding: 6px !important;
    overflow: hidden;
}
.dropdown-menu > li > a {
    border-radius: 8px !important;
    padding: 8px 14px !important;
    margin: 2px 0 !important;
    transition: background 0.15s ease !important;
}
.dropdown-menu > li > a:hover {
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}

/* --- Badge/pills: fully rounded --- */
.badge,
.label {
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
}

/* --- SOS Alert: rounded, brand rose --- */
.sectionWhiteBgAllUse[style*="d9534f"] {
    border-radius: var(--radius-md) !important;
}

/* --- Quick action cards --- */
.quick-actions .quick_action-btn {
    border-radius: 14px !important;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1) !important;
}
.quick-actions .quick_action-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
}

/* --- Section headers --- */
.section-header .section-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--navy-800) !important;
}

/* --- Tabs: match Figma spacing --- */
.calendarTabs .clientOverTabs .tabs {
    padding: 6px !important;
    background: var(--brand-50) !important;
    border-radius: 14px !important;
    gap: 4px !important;
}
.calendarTabs .clientOverTabs .tabs .tab {
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.calendarTabs .clientOverTabs .tabs .tab.active {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    color: var(--brand-600) !important;
}
.calendarTabs .clientOverTabs .tabs .tab:not(.active):hover {
    background: rgba(255,255,255,0.6) !important;
}

/* --- Page content spacing --- */
.page-content {
    padding-top: 24px !important;
    padding-right: 24px !important;
    padding-bottom: 24px !important;
}

/* --- Scrollbar: thin, brand-tinted --- */
.sidebar-content::-webkit-scrollbar,
.page-content::-webkit-scrollbar {
    width: 6px;
}
.sidebar-content::-webkit-scrollbar-track,
.page-content::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb,
.page-content::-webkit-scrollbar-thumb {
    background: var(--brand-200);
    border-radius: 10px;
}
.sidebar-content::-webkit-scrollbar-thumb:hover,
.page-content::-webkit-scrollbar-thumb:hover {
    background: var(--brand-300);
}


/* ===========================
   REDUCED MOTION — Respect user preference
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .coo-animate,
    .coo-animate-left,
    .coo-animate-right,
    .coo-animate-scale {
        opacity: 1 !important;
        transform: none !important;
    }
    .panel:hover,
    .sectionWhiteBgAllUse:hover,
    .onboardingBox:hover,
    .rota_dash-card:hover,
    .profile-card:hover,
    .btn:hover {
        transform: none !important;
    }
}


/* ===========================
   PRINT — Disable animations
   =========================== */
@media print {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ===========================
   HEBE FILING STRUCTURE — Two-level tabs
   Parent row: HEBE folder tabs (icon + label)
   Sub-row: Feature tabs within each folder
   =========================== */

/* On roster pages: collapse header to zero, pin EN + avatar top-right */
#container:has(.page-wrapper) > header.fixed-top {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    z-index: 999;
}

/* Hide the logo and hamburger from top header */
#container:has(.page-wrapper) > header.fixed-top .brand {
    display: none !important;
}
#container:has(.page-wrapper) > header.fixed-top .navbar-toggle {
    display: none !important;
}

/* Sidebar logo */
.coo-sidebar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Remove whitespace above sidebar logo */
.sidebar-wrapper {
    padding-top: 12px !important;
}

/* Hide the home switcher / left column */
#container:has(.page-wrapper) > header.fixed-top .header-dys .col-md-8,
#container:has(.page-wrapper) > header.fixed-top .header-dys .col-lg-8 {
    display: none !important;
}

/* Pin EN + avatar fixed top-right */
#container:has(.page-wrapper) > header.fixed-top .header-dys {
    position: fixed !important;
    top: 10px;
    right: 24px;
    left: auto !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1000;
}

#container:has(.page-wrapper) > header.fixed-top .header-dys .col-md-4,
#container:has(.page-wrapper) > header.fixed-top .header-dys .col-lg-4 {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
}

#container:has(.page-wrapper) > header.fixed-top .top-menu {
    float: none !important;
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
}

/* No header clearance — content starts at top */
.page-wrapper .page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-wrapper .page-content > div {
    padding-top: 10px !important;
}

@media screen and (min-width: 768px) {
    .page-wrapper.toggled .page-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Breathing room between client profile sections */
.coo-facts {
    margin-top: 28px !important;
    margin-bottom: 24px !important;
}

.calendarTabs.employeeDetailsTabs {
    margin-top: 8px !important;
}

/* Parent tab row — no background container, just spaced buttons */
.coo-hebe-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-image: none !important;
}

.coo-hebe-tabs .tab {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 10px !important;
    margin: 0 7px !important;
    font-size: 11px !important;
    flex-shrink: 0;
    font-weight: 600 !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: left;
    line-height: 1.3;
}

.coo-hebe-tabs .tab span {
    white-space: normal;
}

/* Default inactive state: each tab shows its brand color as text + border */
.coo-hebe-tabs .tab[data-hebe="keywork"] { color: var(--teal-600) !important; border-color: rgba(84,195,197,0.4) !important; background: rgba(84,195,197,0.06) !important; }
.coo-hebe-tabs .tab[data-hebe="consultation"] { color: var(--purple) !important; border-color: rgba(141,75,132,0.3) !important; background: rgba(141,75,132,0.04) !important; }
.coo-hebe-tabs .tab[data-hebe="daily"] { color: var(--brand-600) !important; border-color: rgba(58,124,165,0.3) !important; background: rgba(58,124,165,0.04) !important; }
.coo-hebe-tabs .tab[data-hebe="confidential"] { color: var(--rose) !important; border-color: rgba(184,85,122,0.3) !important; background: rgba(184,85,122,0.04) !important; }
.coo-hebe-tabs .tab[data-hebe="daily_records"] { color: #4a6a1a !important; border-color: rgba(134,183,59,0.4) !important; background: rgba(134,183,59,0.06) !important; }
.coo-hebe-tabs .tab[data-hebe="reg44"] { color: var(--orange-dark) !important; border-color: rgba(242,135,41,0.3) !important; background: rgba(242,135,41,0.04) !important; }
.coo-hebe-tabs .tab[data-hebe="consequence"] { color: var(--orange-dark) !important; border-color: rgba(217,117,36,0.3) !important; background: rgba(217,117,36,0.04) !important; }
.coo-hebe-tabs .tab[data-hebe="incident"] { color: var(--rose) !important; border-color: rgba(184,85,122,0.3) !important; background: rgba(184,85,122,0.04) !important; }
.coo-hebe-tabs .tab[data-hebe="health_safety"] { color: var(--teal-600) !important; border-color: rgba(62,158,160,0.4) !important; background: rgba(62,158,160,0.04) !important; }
.coo-hebe-tabs .tab[data-hebe="system"] { color: var(--purple) !important; border-color: rgba(141,75,132,0.3) !important; background: rgba(141,75,132,0.04) !important; }

/* Hover: stronger tint */
.coo-hebe-tabs .tab[data-hebe="keywork"]:hover { background: rgba(84,195,197,0.15) !important; }
.coo-hebe-tabs .tab[data-hebe="consultation"]:hover { background: rgba(141,75,132,0.12) !important; }
.coo-hebe-tabs .tab[data-hebe="daily"]:hover { background: rgba(58,124,165,0.12) !important; }
.coo-hebe-tabs .tab[data-hebe="confidential"]:hover { background: rgba(184,85,122,0.12) !important; }
.coo-hebe-tabs .tab[data-hebe="daily_records"]:hover { background: rgba(134,183,59,0.15) !important; }
.coo-hebe-tabs .tab[data-hebe="reg44"]:hover { background: rgba(242,135,41,0.12) !important; }
.coo-hebe-tabs .tab[data-hebe="consequence"]:hover { background: rgba(217,117,36,0.12) !important; }
.coo-hebe-tabs .tab[data-hebe="incident"]:hover { background: rgba(184,85,122,0.12) !important; }
.coo-hebe-tabs .tab[data-hebe="health_safety"]:hover { background: rgba(62,158,160,0.15) !important; }
.coo-hebe-tabs .tab[data-hebe="system"]:hover { background: rgba(141,75,132,0.12) !important; }

/* Active: solid brand color fill */
.coo-hebe-tabs .tab.active { color: #fff !important; }
.coo-hebe-tabs .tab[data-hebe="keywork"].active { background: var(--teal) !important; border-color: var(--teal) !important; box-shadow: 0 2px 8px rgba(84,195,197,0.3); }
.coo-hebe-tabs .tab[data-hebe="consultation"].active { background: var(--purple) !important; border-color: var(--purple) !important; box-shadow: 0 2px 8px rgba(141,75,132,0.3); }
.coo-hebe-tabs .tab[data-hebe="daily"].active { background: var(--brand-500) !important; border-color: var(--brand-500) !important; box-shadow: 0 2px 8px rgba(58,124,165,0.3); }
.coo-hebe-tabs .tab[data-hebe="confidential"].active { background: var(--rose) !important; border-color: var(--rose) !important; box-shadow: 0 2px 8px rgba(184,85,122,0.3); }
.coo-hebe-tabs .tab[data-hebe="daily_records"].active { background: var(--lime) !important; border-color: var(--lime) !important; color: #1a2e05 !important; box-shadow: 0 2px 8px rgba(134,183,59,0.3); }
.coo-hebe-tabs .tab[data-hebe="reg44"].active { background: var(--orange) !important; border-color: var(--orange) !important; box-shadow: 0 2px 8px rgba(242,135,41,0.3); }
.coo-hebe-tabs .tab[data-hebe="consequence"].active { background: var(--orange-dark) !important; border-color: var(--orange-dark) !important; box-shadow: 0 2px 8px rgba(217,117,36,0.3); }
.coo-hebe-tabs .tab[data-hebe="incident"].active { background: var(--rose) !important; border-color: var(--rose) !important; box-shadow: 0 2px 8px rgba(184,85,122,0.3); }
.coo-hebe-tabs .tab[data-hebe="health_safety"].active { background: var(--teal-600) !important; border-color: var(--teal-600) !important; box-shadow: 0 2px 8px rgba(62,158,160,0.3); }
.coo-hebe-tabs .tab[data-hebe="system"].active { background: var(--purple) !important; border-color: var(--purple) !important; box-shadow: 0 2px 8px rgba(141,75,132,0.3); }

.coo-hebe-tabs .tab i {
    font-size: 16px;
}

.coo-hebe-tabs .tab.active i {
    color: #fff !important;
}

.coo-hebe-tabs .tab[data-hebe="daily_records"].active i { color: #1a2e05 !important; }

/* Sub-tab row (below parent tabs) */
.coo-subtabs-row {
    display: none;
    background: var(--brand-50);
    border-left: 3px solid var(--brand-200);
    border-right: 1px solid var(--brand-100);
    padding: 10px 14px;
    margin-top: 0;
}

.coo-subtabs-row.active {
    display: block;
}

/* Sub-tab row left border color matches parent */
.coo-subtabs-row[data-hebe-content="keywork"] { border-left-color: var(--teal); }
.coo-subtabs-row[data-hebe-content="consultation"] { border-left-color: var(--purple); }
.coo-subtabs-row[data-hebe-content="daily"] { border-left-color: var(--brand-500); }
.coo-subtabs-row[data-hebe-content="confidential"] { border-left-color: var(--rose); }
.coo-subtabs-row[data-hebe-content="daily_records"] { border-left-color: var(--lime); }
.coo-subtabs-row[data-hebe-content="reg44"] { border-left-color: var(--orange); }
.coo-subtabs-row[data-hebe-content="consequence"] { border-left-color: var(--orange-dark); }
.coo-subtabs-row[data-hebe-content="incident"] { border-left-color: var(--rose); }
.coo-subtabs-row[data-hebe-content="health_safety"] { border-left-color: var(--teal-600); }
.coo-subtabs-row[data-hebe-content="system"] { border-left-color: var(--purple); }

.coo-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coo-subtab {
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--brand-600);
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.coo-subtab:hover {
    background: #fff;
    border-color: var(--brand-200);
}

.coo-subtab.active {
    background: #fff;
    border-color: var(--brand-400);
    color: var(--brand-700);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(58, 124, 165, 0.12);
}

/* Sub-tab active color matches parent HEBE tab */
[data-hebe-content="keywork"] .coo-subtab.active { border-color: var(--teal); color: var(--teal-600); }
[data-hebe-content="consultation"] .coo-subtab.active { border-color: var(--purple); color: var(--purple); }
[data-hebe-content="daily"] .coo-subtab.active { border-color: var(--brand-500); color: var(--brand-600); }
[data-hebe-content="confidential"] .coo-subtab.active { border-color: var(--rose); color: var(--rose); }
[data-hebe-content="daily_records"] .coo-subtab.active { border-color: var(--lime); color: #4a6a1a; }
[data-hebe-content="reg44"] .coo-subtab.active { border-color: var(--orange); color: var(--orange-dark); }
[data-hebe-content="consequence"] .coo-subtab.active { border-color: var(--orange-dark); color: var(--orange-dark); }
[data-hebe-content="incident"] .coo-subtab.active { border-color: var(--rose); color: var(--rose); }
[data-hebe-content="health_safety"] .coo-subtab.active { border-color: var(--teal-600); color: var(--teal-600); }
[data-hebe-content="system"] .coo-subtab.active { border-color: var(--purple); color: var(--purple); }

/* Spacing between sub-tabs and tab content */
.tab-content.carertabcontent {
    margin-top: 2px !important;
}

/* Breathing room inside tab content panels */
.tab-content.carertabcontent > .content {
    padding-top: 0;
}

/* Spacing between topHeaderCont and content below it */
.topHeaderCont {
    margin-bottom: 16px;
}

/* Spacing for the client header area */
.coo-breadcrumb {
    margin-bottom: 16px !important;
}

.topHeaderCont + .coo-facts {
    margin-top: 16px;
}

/* Empty state refinement for HEBE placeholder tabs */
.coo-empty-state {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-secondary);
    width: 100%;
}

.coo-empty-state i {
    font-size: 48px;
    color: var(--brand-200);
    margin-bottom: 12px;
    display: block;
}

.coo-empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.coo-empty-state p {
    font-size: 13px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Responsive: stack parent tabs on small screens */
@media (max-width: 768px) {
    .coo-hebe-tabs {
        gap: 2px;
        padding: 4px 4px !important;
    }
    .coo-hebe-tabs .tab {
        padding: 8px 10px !important;
        font-size: 11.5px !important;
    }
    .coo-hebe-tabs .tab i {
        font-size: 14px;
    }
    .coo-subtab {
        padding: 5px 10px;
        font-size: 11.5px;
    }
}


/* ===========================
   SIDEBAR ICON-ONLY MODE
   =========================== */
.page-wrapper.coo-sidebar-mini .sidebar-wrapper {
    width: 60px !important;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}

.page-wrapper.coo-sidebar-mini .sidebar-wrapper .sidebar-menu li a span,
.page-wrapper.coo-sidebar-mini .sidebar-wrapper .sidebar-menu .sidebar-submenu,
.page-wrapper.coo-sidebar-mini .sidebar-wrapper .sidebar-brand > a span,
.page-wrapper.coo-sidebar-mini .sidebar-wrapper .sidebar-brand .coo-sidebar-logo + span,
.page-wrapper.coo-sidebar-mini .sidebar-wrapper .sidebar-header {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.page-wrapper.coo-sidebar-mini .sidebar-wrapper .sidebar-menu li a {
    justify-content: center;
    padding: 12px 0 !important;
    text-align: center;
}

.page-wrapper.coo-sidebar-mini .sidebar-wrapper .sidebar-menu li a i {
    margin: 0 !important;
    font-size: 20px;
}

.page-wrapper.coo-sidebar-mini .sidebar-wrapper .coo-sidebar-logo {
    height: 24px;
    margin: 0 auto;
}

.page-wrapper.coo-sidebar-mini .page-content {
    margin-left: 60px !important;
    transition: margin-left 0.3s cubic-bezier(0.16,1,0.3,1);
}

/* Peek on hover */
.page-wrapper.coo-sidebar-peek .sidebar-wrapper {
    width: 260px !important;
    box-shadow: 8px 0 30px rgba(0,0,0,0.12);
    z-index: 9999;
}

.page-wrapper.coo-sidebar-peek .sidebar-wrapper .sidebar-menu li a span,
.page-wrapper.coo-sidebar-peek .sidebar-wrapper .sidebar-header {
    opacity: 1;
    visibility: visible;
}

.page-wrapper.coo-sidebar-peek .sidebar-wrapper .sidebar-menu li a {
    justify-content: flex-start;
    padding: 10px 20px !important;
    text-align: left;
}

.page-wrapper.coo-sidebar-peek .sidebar-wrapper .coo-sidebar-logo {
    height: 32px;
}


/* ===========================
   CONFETTI ANIMATION
   =========================== */
@keyframes cooConfettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}


/* ===========================
   DASHBOARD CHARTS
   =========================== */
.coo-chart-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.coo-chart-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-800);
    margin: 0 0 16px;
}

.coo-chart-wrap {
    position: relative;
    height: 220px;
}

.coo-charts-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .coo-charts-grid {
        grid-template-columns: 1fr;
    }
}


/* ===========================
   SIDEBAR COLORFUL ICONS
   =========================== */
.sidebar-menu .coo-sidebar-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}
.sidebar-menu li a {
    display: flex !important;
    align-items: center;
}

/* Collapsible sidebar sections */
.coo-sidebar-toggle {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px !important;
}
.coo-sidebar-toggle:hover {
    background: rgba(58,124,165,0.05);
}
.coo-toggle-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: var(--slate);
}
.coo-sidebar-toggle.open .coo-toggle-arrow {
    transform: rotate(180deg);
}
.coo-sidebar-group {
    overflow: hidden;
}

/* ===========================
   EMPTY STATE SVG STYLING
   =========================== */
.coo-empty-state svg,
.coo-empty-state img {
    width: 100%;
    max-width: 600px;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 16px;
    animation: coo-empty-float 4s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes coo-empty-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}


/* ===========================
   VIEW TOGGLE (List / Board)
   =========================== */
.coo-view-toggle {
    display: inline-flex;
    gap: 2px;
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 3px;
    margin-right: 8px;
}

.coo-view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.coo-view-btn.active {
    background: #fff;
    color: var(--brand-500);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}


/* ===========================
   KANBAN BOARD
   =========================== */
.coo-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 300px;
}

.coo-kanban-col {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.coo-kanban-header {
    padding: 14px 16px;
    border-top: 3px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.coo-kanban-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coo-kanban-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-subtle);
    font-size: 11px;
    font-weight: 700;
    color: var(--slate);
}

.coo-kanban-cards {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.coo-kanban-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: coo-fade-up 0.3s ease both;
}

.coo-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.coo-kanban-card-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-500);
    margin-bottom: 6px;
}

.coo-kanban-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 10px;
    line-height: 1.4;
}

.coo-kanban-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.coo-kanban-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--slate);
}

.coo-kanban-card-meta i {
    font-size: 13px;
}

.coo-kanban-badge {
    background: var(--purple);
    color: #fff !important;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px !important;
}

.coo-kanban-card-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.coo-kanban-card-actions button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 6px;
    color: var(--slate);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.coo-kanban-card-actions button:hover {
    background: var(--brand-50);
    color: var(--brand-500);
    border-color: var(--brand-200);
}

.coo-kanban-card-actions .delete_clientCareTask:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
}

.coo-kanban-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--slate);
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 900px) {
    .coo-kanban {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .coo-kanban {
        grid-template-columns: 1fr;
    }
}

/* ==================== KEYWORK SESSIONS ==================== */
.coo-keywork-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 4px solid #3A7CA5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.coo-keywork-card:hover {
    box-shadow: 0 6px 20px rgba(58,124,165,0.12);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.7);
}
.coo-keywork-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.coo-keywork-date {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}
.coo-keywork-date i { margin-right: 4px; color: #3A7CA5; }
.coo-keywork-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}
.coo-keywork-card-body { margin-bottom: 10px; }
.coo-keywork-field { font-size: 13px; color: #374151; margin-bottom: 6px; }
.coo-keywork-field strong { color: #1f2937; }
.coo-keywork-discussion {
    font-style: italic;
    color: #6b7280;
    border-left: 3px solid #e5e7eb;
    padding-left: 10px;
    margin-top: 8px;
}
.coo-keywork-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
}
.coo-keywork-actions { display: flex; gap: 4px; }

/* Quality Standard Chips (listing view) */
.coo-qs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.coo-qs-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Quality Standards Grid (modal) */
.coo-qs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.coo-qs-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fff;
    width: calc(20% - 8px);
    min-width: 120px;
}
.coo-qs-card:hover { border-color: #9ca3af; background: #f9fafb; transform: translateY(-1px); }
.coo-qs-card:active { transform: translateY(0); }
.coo-qs-card.selected { border-color: var(--qs-color, #3A7CA5); background: var(--qs-bg, #f0f9ff); }
.coo-qs-card .coo-qs-check {
    display: none;
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
    color: #16a34a;
}
.coo-qs-card.selected .coo-qs-check { display: block; }
.coo-qs-num { display: block; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.coo-qs-title { display: block; font-size: 11px; font-weight: 600; color: #374151; line-height: 1.3; margin-bottom: 4px; }
.coo-qs-desc { font-size: 10px; color: #6b7280; line-height: 1.35; margin: 0; }

/* Keywork tab — SVG background + glassmorphism cards (Gmail-style) */
.coo-keywork-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 12px;
}
.coo-keywork-bg-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7fa 30%, #eaf6f0 60%, #f5f0e8 100%);
}
.coo-keywork-bg-watermark img {
    width: 420px;
    height: auto;
    opacity: 0.45;
}
.coo-keywork-header-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.coo-keywork-glass {
    position: relative;
    z-index: 1;
    padding: 0;
    min-height: 120px;
}
.coo-keywork-glass .coo-empty-state {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px 20px;
    text-align: center;
}

#qs-card-1.selected { border-color: #3A7CA5; background: #3A7CA510; }
#qs-card-2.selected { border-color: #54C3C5; background: #54C3C510; }
#qs-card-3.selected { border-color: #86B73B; background: #86B73B10; }
#qs-card-4.selected { border-color: #F28729; background: #F2872910; }
#qs-card-5.selected { border-color: #B8557A; background: #B8557A10; }
#qs-card-6.selected { border-color: #8D4B84; background: #8D4B8410; }
#qs-card-7.selected { border-color: #d9534f; background: #d9534f10; }
#qs-card-8.selected { border-color: #3A7CA5; background: #3A7CA510; }
#qs-card-9.selected { border-color: #54C3C5; background: #54C3C510; }

/* Signature Pads */
.coo-signature-pad {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}
.coo-signature-pad canvas {
    width: 100%;
    height: 120px;
    display: block;
    cursor: crosshair;
}
.coo-signature-display {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
    margin-top: 4px;
}
.coo-signature-display img {
    max-width: 100%;
    max-height: 100px;
}

/* Detail View */
.coo-keywork-detail {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.coo-keywork-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.coo-keywork-detail-meta {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.coo-keywork-detail-meta label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 2px;
    display: block;
}
.coo-keywork-detail-meta p { font-size: 14px; color: #1f2937; margin-bottom: 0; }
.coo-keywork-detail-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.coo-keywork-detail-section h6 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.coo-keywork-detail-section p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .coo-qs-card { width: calc(33.33% - 8px); }
    .coo-keywork-card-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .coo-keywork-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
    .coo-qs-card { width: calc(50% - 8px); }
}

/* ==================== EDUCATION PLANNER ==================== */

/* Listing Cards */
.coo-ep-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #3A7CA5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.coo-ep-card:hover { box-shadow: 0 4px 16px rgba(58,124,165,0.1); transform: translateY(-1px); }
.coo-ep-card-current { border-left-color: #86B73B; background: #f7fdf4; }
.coo-ep-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.coo-ep-card-title { font-weight: 700; font-size: 15px; color: #1f2937; }
.coo-ep-card-title i { margin-right: 6px; color: #3A7CA5; }
.coo-ep-card-wc { font-size: 13px; color: #6b7280; margin-top: 2px; }
.coo-ep-card-creator { font-size: 12px; color: #9ca3af; }
.coo-ep-badge-current { display: inline-block; background: #86B73B; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; letter-spacing: 0.5px; vertical-align: middle; }

/* Mini weekday bar */
.coo-ep-mini-week { display: flex; gap: 4px; margin-bottom: 12px; }
.coo-ep-mini-day { flex: 1; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 4px; text-align: center; min-height: 60px; }
.coo-ep-mini-day.filled { border-color: #d1d5db; background: #fff; }
.coo-ep-mini-day-name { font-size: 11px; font-weight: 700; color: #374151; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.coo-ep-mini-activity { font-size: 10px; color: #3A7CA5; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coo-ep-mini-more { font-size: 9px; color: #9ca3af; }
.coo-ep-mini-empty { font-size: 11px; color: #d1d5db; }

/* Stats */
.coo-ep-card-stats { display: flex; gap: 16px; font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.coo-ep-card-stats span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3A7CA5; margin-right: 5px; vertical-align: middle; }

/* Card actions */
.coo-ep-card-actions { display: flex; gap: 6px; justify-content: flex-end; border-top: 1px solid #f3f4f6; padding-top: 10px; }

/* Timetable Grid */
.coo-ep-grid-scroll { overflow-x: auto; border-radius: 8px; }
.coo-ep-grid { border-collapse: collapse; width: 100%; font-size: 13px; }
.coo-ep-grid th { background: var(--brand-500, #1e3a5f); color: #fff; padding: 10px 8px; text-align: center; font-weight: 600; font-size: 13px; border: 1px solid #16325a; }
.coo-ep-grid th small { font-weight: 400; opacity: 0.8; }
.coo-ep-grid-time-th { width: 110px; text-align: left !important; }
.coo-ep-slot-header { text-align: left; padding: 10px 8px; font-weight: 600; border: 1px solid #ddd; vertical-align: middle; min-width: 100px; }
.coo-ep-slot-header.morning { background: #fefce8; border-left: 4px solid #F28729; }
.coo-ep-slot-header.midday { background: #f0fdfa; border-left: 4px solid #54C3C5; }
.coo-ep-slot-header.lunch { background: #f5f5f5; border-left: 4px solid #9ca3af; }
.coo-ep-slot-header.afternoon { background: #faf5ff; border-left: 4px solid #8D4B84; }
.coo-ep-slot-label { font-size: 12px; font-weight: 700; color: #374151; }
.coo-ep-slot-time { font-size: 11px; color: #6b7280; font-weight: 600; }

/* Grid cells */
.coo-ep-cell { border: 1px solid #e5e7eb; padding: 10px 8px; text-align: center; vertical-align: top; min-width: 120px; min-height: 70px; cursor: pointer; transition: box-shadow 0.15s, background 0.15s; }
.coo-ep-cell:hover { box-shadow: inset 0 0 0 2px rgba(58,124,165,0.3); }
.coo-ep-cell.empty { background: #fafafa; border-style: dashed; }
.coo-ep-cell.filled { background: #fff; }
.coo-ep-cell.lunch { background: #f5f5f5; color: #9ca3af; cursor: default; font-style: italic; }
.coo-ep-cell.lunch:hover { box-shadow: none; }
.coo-ep-cell.transitioned { background: #f3f4f6; color: #6b7280; font-style: italic; }
.coo-ep-cell-add { color: #d1d5db; font-size: 18px; display: inline-block; margin-top: 8px; }
.coo-ep-cell-add:hover { color: #3A7CA5; }
.coo-ep-cell-name { font-size: 12px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.coo-ep-cell-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; margin-top: 4px; }

/* View header */
.coo-ep-timetable-view { }
.coo-ep-view-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.coo-ep-view-title { font-size: 18px; font-weight: 700; color: #1f2937; margin: 0; }
.coo-ep-view-wc { font-size: 14px; color: #3A7CA5; font-weight: 600; margin-top: 2px; }
.coo-ep-view-notes { font-size: 13px; color: #6b7280; margin-top: 4px; font-style: italic; }
.coo-ep-view-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.coo-ep-view-footer { text-align: right; font-size: 12px; color: #9ca3af; margin-top: 12px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.coo-ep-view-grid th { font-size: 12px; }

/* Modal: slot definition rows */
.coo-ep-slot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.coo-ep-slot-num { width: 24px; text-align: center; font-weight: 700; color: #6b7280; font-size: 13px; }
.coo-ep-time-input { width: 110px !important; }
.coo-ep-lunch-toggle { display: flex; align-items: center; gap: 4px; font-size: 12px; margin: 0; cursor: pointer; white-space: nowrap; }

/* Quick fill */
.coo-ep-quickfill { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; }
.coo-ep-quickfill label { margin: 0; font-size: 12px; font-weight: 600; color: #374151; }

/* Print */
@media print {
    .coo-ep-view-actions, .coo-ep-view-footer, .coo-ep-quickfill, .coo-ep-card-actions { display: none !important; }
    .coo-ep-grid { font-size: 11px; }
    .coo-ep-cell-img { width: 40px; height: 40px; }
    @page { size: landscape; }
}

/* Responsive */
@media (max-width: 768px) {
    .coo-ep-card-header { flex-direction: column; gap: 6px; }
    .coo-ep-mini-week { flex-wrap: wrap; }
    .coo-ep-mini-day { min-width: calc(33% - 4px); }
    .coo-ep-view-header { flex-direction: column; }
    .coo-ep-slot-row { flex-wrap: wrap; }
}

/* ==================== ACTIVITY PLANNERS ==================== */

/* List Cards */
.coo-ap-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 16px 20px; margin-bottom: 14px; border: 1px solid #e5e7eb; transition: box-shadow 0.2s, transform 0.2s; }
.coo-ap-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.coo-ap-card-current { border-left: 4px solid var(--brand-500, #3A7CA5); }
.coo-ap-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.coo-ap-wc { font-weight: 700; font-size: 15px; color: #1e293b; }
.coo-ap-we { font-size: 13px; color: #6b7280; }
.coo-ap-creator { font-size: 12px; color: #6b7280; }

/* Mini Activity Bar */
.coo-ap-mini-bar { display: flex; gap: 4px; margin-bottom: 10px; }
.coo-ap-mini-day { flex: 1; text-align: center; border-radius: 6px; padding: 4px 2px; min-width: 38px; }
.coo-ap-mini-day.high { background: #dcfce7; color: #166534; }
.coo-ap-mini-day.medium { background: #fef3c7; color: #92400e; }
.coo-ap-mini-day.low { background: #f3f4f6; color: #9ca3af; }
.coo-ap-mini-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.coo-ap-mini-count { display: block; font-size: 16px; font-weight: 700; }

.coo-ap-card-stats { font-size: 13px; color: #4b5563; margin-bottom: 10px; }
.coo-ap-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Weekly Grid */
.coo-ap-grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.coo-ap-grid { width: 100%; border-collapse: collapse; min-width: 700px; border-radius: 8px; overflow: hidden; }
.coo-ap-grid th { padding: 10px 6px; text-align: center; font-weight: 600; font-size: 13px; }
.coo-ap-day-header { background: var(--brand-500, #3A7CA5); color: #fff; }
.coo-ap-day-header.weekend { background: #2d6a8f; }
.coo-ap-day-header small { font-weight: 400; opacity: 0.85; }
.coo-ap-corner { background: #f8fafc; width: 100px; }

/* Row Headers */
.coo-ap-row-header { text-align: left; padding: 10px 8px; font-weight: 600; font-size: 13px; white-space: nowrap; width: 100px; }
.coo-ap-row-header.appointment { background: #fef2f2; border-left: 4px solid #d9534f; color: #991b1b; }
.coo-ap-row-header.morning { background: #fefce8; border-left: 4px solid #F28729; color: #92400e; }
.coo-ap-row-header.afternoon { background: #faf5ff; border-left: 4px solid #8D4B84; color: #6b21a8; }
.coo-ap-row-header.evening { background: #eff6ff; border-left: 4px solid #3A7CA5; color: #1e40af; }

/* Grid Cells */
.coo-ap-cell { padding: 8px 6px; vertical-align: top; text-align: center; min-height: 60px; border: 1px solid #e5e7eb; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; }
.coo-ap-cell:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-color: var(--brand-400, #54a9d4); }
.coo-ap-cell.empty { background: #fafafa; }
.coo-ap-cell.filled { background: #fff; }
.coo-ap-cell.coo-ap-weekend { background: #f9fafb; }
.coo-ap-cell.filled.coo-ap-weekend { background: #fefefe; }
.coo-ap-cell-add { color: #d1d5db; font-size: 16px; display: inline-block; padding: 8px; }
.coo-ap-cell-add:hover { color: var(--brand-500, #3A7CA5); }
.coo-ap-cell-name { font-size: 12px; font-weight: 500; color: #1e293b; line-height: 1.3; word-wrap: break-word; }
.coo-ap-cell-time { font-size: 11px; color: #d9534f; margin-top: 3px; font-weight: 600; }
.coo-ap-cell-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; margin-top: 4px; display: block; margin-left: auto; margin-right: auto; }

/* Edit Grid */
.coo-ap-grid-edit .coo-ap-cell.empty { border-style: dashed; border-color: #d1d5db; }

/* View Wrapper */
.coo-ap-view-wrapper { padding: 4px 0; }
.coo-ap-view-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.coo-ap-view-notes { font-size: 13px; color: #6b7280; margin-top: 4px; }
.coo-ap-view-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.coo-ap-view-footer { margin-top: 12px; font-size: 12px; color: #9ca3af; }

/* Mobile Day Cards */
.coo-ap-mobile-cards { display: none; }
.coo-ap-day-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 12px; overflow: hidden; border: 1px solid #e5e7eb; }
.coo-ap-day-card-title { padding: 10px 14px; font-weight: 700; font-size: 14px; background: var(--brand-500, #3A7CA5); color: #fff; }
.coo-ap-day-card-row { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; }
.coo-ap-day-card-row:last-child { border-bottom: none; }
.coo-ap-day-card-row.appointment { border-left: 3px solid #d9534f; }
.coo-ap-day-card-row.morning { border-left: 3px solid #F28729; }
.coo-ap-day-card-row.afternoon { border-left: 3px solid #8D4B84; }
.coo-ap-day-card-row.evening { border-left: 3px solid #3A7CA5; }
.coo-ap-day-card-row strong { font-size: 12px; color: #6b7280; display: block; margin-bottom: 4px; }

/* Print */
@media print {
    .coo-ap-view-actions, .coo-ap-view-footer, .coo-ap-card-actions, .coo-ap-quickfill { display: none !important; }
    .coo-ap-grid { font-size: 11px; }
    .coo-ap-cell-img { width: 40px; height: 40px; }
    @page { size: landscape; }
}

/* Responsive */
@media (max-width: 767px) {
    .coo-ap-grid-scroll { display: none; }
    .coo-ap-mobile-cards { display: block; }
    .coo-ap-card-header { flex-direction: column; gap: 6px; }
    .coo-ap-mini-bar { flex-wrap: wrap; }
    .coo-ap-mini-day { min-width: calc(25% - 4px); }
    .coo-ap-view-header { flex-direction: column; }
}

/* ==================== BEHAVIOUR REWARD CHARTS ==================== */

.coo-br-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.coo-br-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.coo-br-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.coo-br-card-stats { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: #374151; margin-bottom: 10px; }
.coo-br-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.coo-br-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
.coo-br-status-active { background: #dcfce7; color: #166534; }
.coo-br-status-completed { background: #dbeafe; color: #1e40af; }
.coo-br-status-archived { background: #f3f4f6; color: #6b7280; }

.coo-br-mini-week { display: flex; gap: 3px; margin-bottom: 12px; }
.coo-br-mini-day { flex: 1; text-align: center; padding: 6px 2px; border-radius: 6px; background: #f9fafb; border: 1px solid #e5e7eb; min-width: 0; }
.coo-br-mini-day.none { background: #f9fafb; }
.coo-br-mini-day.low { background: #fef2f2; border-color: #fecaca; }
.coo-br-mini-day.medium { background: #fefce8; border-color: #fde68a; }
.coo-br-mini-day.high { background: #dcfce7; border-color: #86efac; }
.coo-br-mini-label { display: block; font-size: 10px; font-weight: 600; color: #6b7280; text-transform: uppercase; }
.coo-br-mini-pts { display: block; font-size: 13px; font-weight: 700; color: #111827; }
.coo-br-mini-cash { display: block; font-size: 10px; color: #16a34a; }

/* Scoring Grid */
.coo-br-grid-wrapper { }
.coo-br-grid-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.coo-br-grid-actions { display: flex; gap: 6px; }
.coo-br-grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.coo-br-grid { width: 100%; border-collapse: collapse; min-width: 600px; }
.coo-br-grid th { background: var(--brand-500, #2563eb); color: #fff; text-align: center; padding: 8px 6px; font-size: 13px; border: 1px solid #ddd; }
.coo-br-goal-header { text-align: left !important; min-width: 160px; white-space: nowrap; }
.coo-br-day-header { min-width: 70px; }
.coo-br-goal-cell { padding: 8px 10px; font-size: 13px; font-weight: 500; border: 1px solid #e5e7eb; background: #f9fafb; white-space: nowrap; }
.coo-br-cash-badge { display: inline-block; background: #dbeafe; color: #1e40af; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; margin-left: 4px; }

.coo-br-score-cell { text-align: center; padding: 10px 6px; border: 1px solid #e5e7eb; cursor: pointer; min-height: 42px; min-width: 50px; transition: all 0.15s; position: relative; }
.coo-br-score-cell:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); transform: translateY(-1px); }
.coo-br-score-cell.empty { background: #f9fafb; border-style: dashed; }
.coo-br-score-cell.score-1 { background: #fef2f2; color: #dc2626; }
.coo-br-score-cell.score-2 { background: #fff7ed; color: #ea580c; }
.coo-br-score-cell.score-3 { background: #fefce8; color: #ca8a04; }
.coo-br-score-cell.score-4 { background: #f0fdf4; color: #16a34a; }
.coo-br-score-cell.score-5 { background: #ecfdf5; color: #059669; }
.coo-br-score-num { font-size: 16px; font-weight: 700; }
.coo-br-score-placeholder { color: #d1d5db; font-size: 14px; }

.coo-br-total-row td { background: #f8fafc; font-weight: 600; }
.coo-br-total-cell { text-align: center; padding: 8px 6px; border: 1px solid #e5e7eb; font-size: 15px; }
.coo-br-reward-row td { background: #eff6ff; }
.coo-br-reward-cell { text-align: center; padding: 8px 6px; border: 1px solid #e5e7eb; color: #1e40af; font-size: 14px; }

/* Score Popover */
.coo-br-popover { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); padding: 6px; display: flex; gap: 4px; z-index: 1050; white-space: nowrap; }
.coo-br-popover-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.coo-br-popover-btn:hover { transform: scale(1.15); }
.coo-br-popover-btn.score-1 { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.coo-br-popover-btn.score-1:hover { background: #fee2e2; border-color: #dc2626; }
.coo-br-popover-btn.score-2 { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.coo-br-popover-btn.score-2:hover { background: #ffedd5; border-color: #ea580c; }
.coo-br-popover-btn.score-3 { background: #fefce8; color: #ca8a04; border-color: #fde68a; }
.coo-br-popover-btn.score-3:hover { background: #fef9c3; border-color: #ca8a04; }
.coo-br-popover-btn.score-4 { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.coo-br-popover-btn.score-4:hover { background: #dcfce7; border-color: #16a34a; }
.coo-br-popover-btn.score-5 { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.coo-br-popover-btn.score-5:hover { background: #d1fae5; border-color: #059669; }

/* Scoring Key */
.coo-br-key { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 14px; background: #f9fafb; border-radius: 8px; margin-bottom: 14px; font-size: 12px; }
.coo-br-key-item { display: flex; align-items: center; gap: 5px; }
.coo-br-key-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.coo-br-key-dot.score-1 { background: #fca5a5; }
.coo-br-key-dot.score-2 { background: #fdba74; }
.coo-br-key-dot.score-3 { background: #fde047; }
.coo-br-key-dot.score-4 { background: #86efac; }
.coo-br-key-dot.score-5 { background: #34d399; }

/* Reward Tiers */
.coo-br-tiers { display: flex; flex-wrap: wrap; gap: 0; padding: 10px 14px; background: #eff6ff; border-radius: 8px; margin: 14px 0; font-size: 13px; }
.coo-br-tier { padding: 4px 12px; border-right: 1px solid #bfdbfe; }
.coo-br-tier:last-child { border-right: none; }

/* Weekly Summary */
.coo-br-summary { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px; background: #f9fafb; border-radius: 8px; margin: 14px 0; }
.coo-br-stat { text-align: center; }
.coo-br-stat-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.coo-br-stat-value { font-size: 18px; font-weight: 700; color: #111827; }

/* Explanations */
.coo-br-explanation-entry { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.coo-br-exp-day { font-weight: 600; min-width: 40px; color: #374151; }
.coo-br-exp-text { flex: 1; color: #4b5563; }
.coo-br-exp-staff { color: #6b7280; white-space: nowrap; }

/* Consequence Cards */
.coo-br-consequence-card { background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #16a34a; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.coo-br-consequence-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.coo-br-consequence-review { background: #f0fdf4; padding: 8px 12px; border-radius: 6px; margin-top: 8px; font-size: 13px; }

/* Goal/Tier Rows in Modal */
.coo-br-goal-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.coo-br-goal-num { min-width: 24px; text-align: center; font-weight: 600; color: #6b7280; }
.coo-br-goal-row .form-control { font-size: 13px; }
.coo-br-tier-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.coo-br-tier-row .form-control { font-size: 13px; max-width: 140px; }

/* Print Styles */
@media print {
    .coo-br-no-print { display: none !important; }
    .coo-br-grid { min-width: auto; }
    .coo-br-grid th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .coo-br-score-cell { -webkit-print-color-adjust: exact; print-color-adjust: exact; min-width: 60px; }
    .coo-br-grid-wrapper { page-break-inside: avoid; }
    .coo-br-card, .coo-br-summary, .coo-br-tiers, .coo-br-key { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Responsive */
@media (max-width: 767px) {
    .coo-br-grid-header { flex-direction: column; }
    .coo-br-mini-week { flex-wrap: wrap; }
    .coo-br-mini-day { min-width: calc(25% - 3px); }
    .coo-br-card-header { flex-direction: column; }
    .coo-br-summary { flex-direction: column; gap: 8px; }
    .coo-br-tiers { flex-direction: column; }
    .coo-br-tier { border-right: none; border-bottom: 1px solid #bfdbfe; padding: 4px 0; }
    .coo-br-popover { bottom: auto; top: 100%; }
    .coo-br-goal-row { flex-wrap: wrap; }
    .coo-br-tier-row { flex-wrap: wrap; }
    .coo-br-tier-row .form-control { max-width: none; }
}

/* ========== BSP — Behaviour Support Plans (PRICE) ========== */

/* BSP Cards */
.coo-bsp-card { background:#fff; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.08); margin-bottom:16px; overflow:hidden; border:1px solid #e5e7eb; transition:box-shadow .2s; }
.coo-bsp-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.12); }
.coo-bsp-card-header { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid #f3f4f6; }
.coo-bsp-card-actions { padding:10px 16px; border-top:1px solid #f3f4f6; display:flex; gap:6px; flex-wrap:wrap; }

/* Status badges */
.coo-bsp-status-draft { display:inline-block; padding:2px 10px; border-radius:4px; font-size:11px; font-weight:600; background:#f3f4f6; color:#6b7280; }
.coo-bsp-status-active { display:inline-block; padding:2px 10px; border-radius:4px; font-size:11px; font-weight:600; background:#dcfce7; color:#16a34a; }
.coo-bsp-status-archived { display:inline-block; padding:2px 10px; border-radius:4px; font-size:11px; font-weight:600; background:#dbeafe; color:#2563eb; }
.coo-bsp-version { display:inline-block; padding:1px 8px; border-radius:4px; font-size:11px; font-weight:600; background:#ede9fe; color:#7c3aed; margin-left:8px; }

/* Mini stage summary */
.coo-bsp-mini-stages { display:flex; gap:8px; padding:8px 16px; flex-wrap:wrap; }
.coo-bsp-mini-stage { flex:1; min-width:110px; padding:8px 10px; background:#f9fafb; border-radius:6px; }

/* Document view */
.coo-bsp-document { max-width:900px; margin:0 auto; }
.coo-bsp-header { padding:24px; background:linear-gradient(135deg, #ede9fe, #e0e7ff); border-radius:8px; margin-bottom:20px; }

/* Section nav */
.coo-bsp-nav { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:20px; padding:8px 0; border-bottom:1px solid #e5e7eb; position:sticky; top:0; background:#fff; z-index:10; }
.coo-bsp-nav-item { padding:6px 12px; border-radius:4px; font-size:12px; cursor:pointer; color:#4b5563; transition:background .15s; }
.coo-bsp-nav-item:hover { background:#f3f4f6; color:#1e293b; text-decoration:none; }

/* Sections */
.coo-bsp-section { border:1px solid #e5e7eb; border-radius:8px; margin-bottom:12px; overflow:hidden; }
.coo-bsp-section-header { padding:12px 16px; background:#f9fafb; font-weight:600; font-size:14px; cursor:pointer; user-select:none; display:flex; align-items:center; gap:8px; }
.coo-bsp-section-header:hover { background:#f3f4f6; }
.coo-bsp-section-body { padding:16px; }
.coo-bsp-quote { background:#fefce8; padding:16px; border-radius:6px; border-left:4px solid #eab308; font-style:italic; white-space:pre-wrap; line-height:1.6; }

/* Stage sections */
.coo-bsp-stage.stage-1 { border-left:4px solid #86B73B; }
.coo-bsp-stage.stage-2 { border-left:4px solid #F28729; }
.coo-bsp-stage.stage-3 { border-left:4px solid #d9534f; }
.coo-bsp-stage.stage-4 { border-left:4px solid #54C3C5; }

/* Indicators */
.coo-bsp-indicators { list-style:none; padding:0; margin:0 0 16px 0; }
.coo-bsp-indicator { padding:6px 12px; margin-bottom:4px; background:#f9fafb; border-radius:4px; border-left:3px solid #6366f1; font-size:13px; }

/* Strategies table */
.coo-bsp-strategies { display:flex; gap:16px; margin-top:16px; }
.coo-bsp-helpful, .coo-bsp-unhelpful { flex:1; min-width:200px; }
.coo-bsp-helpful { background:#f0fdf4; border-radius:6px; padding:12px; }
.coo-bsp-unhelpful { background:#fef2f2; border-radius:6px; padding:12px; }
.coo-bsp-strategy-item { padding:4px 0; font-size:13px; border-bottom:1px solid rgba(0,0,0,.05); }

/* Signatures */
.coo-bsp-signatures { font-size:13px; }
.coo-bsp-sig-img { max-width:120px; max-height:50px; }

/* Wizard */
.coo-bsp-wizard-progress { margin-bottom:16px; }
.coo-bsp-wizard-step { width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; border:2px solid #e5e7eb; color:#9ca3af; background:#fff; }
.coo-bsp-wizard-step.active { border-color:#6366f1; color:#fff; background:#6366f1; }
.coo-bsp-wizard-step.complete { border-color:#16a34a; color:#fff; background:#16a34a; }

/* Print */
@media print {
    .sidebar-wrapper, #show-sidebar, #close-sidebar, .topHeaderCont, .coo-bsp-no-print, .coo-bsp-nav, .modal-backdrop, .header-actions, .btn, .coo-bsp-card-actions { display:none !important; }
    .page-wrapper { padding-left:0 !important; }
    .page-content { margin-left:0 !important; padding:0 !important; width:100% !important; }
    .coo-bsp-document { max-width:100%; box-shadow:none; margin:0; }
    .coo-bsp-section { break-inside:avoid; page-break-inside:avoid; border:1px solid #ccc; }
    .coo-bsp-section-body { display:block !important; }
    .coo-bsp-header { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .coo-bsp-stage { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .coo-bsp-helpful, .coo-bsp-unhelpful { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .sectionWhiteBgAllUse { box-shadow:none !important; border:none !important; padding:0 !important; }
    .carePlanTabCont { display:none !important; }
    @page { size:portrait; margin:15mm; }
}

/* Responsive */
@media (max-width: 767px) {
    .coo-bsp-strategies { flex-direction:column; }
    .coo-bsp-mini-stages { flex-direction:column; }
    .coo-bsp-nav { flex-direction:column; gap:2px; }
    .coo-bsp-wizard-progress { text-align:center; }
}

/* ==================== CONTACT RECORDS ==================== */

.coo-contact-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; margin-bottom:20px; }
.coo-contact-tab { background:none; border:none; padding:10px 20px; cursor:pointer; font-size:14px; font-weight:500; color:#6b7280; border-bottom:3px solid transparent; transition:all 0.2s; }
.coo-contact-tab:hover { color:#374151; background:#f9fafb; }
.coo-contact-tab.active.education { color:#9B59B6; border-bottom-color:#9B59B6; }
.coo-contact-tab.active.professional { color:#3A7CA5; border-bottom-color:#3A7CA5; }
.coo-contact-tab.active.family { color:#54C3C5; border-bottom-color:#54C3C5; }
.coo-contact-tab .badge { font-size:11px; padding:2px 7px; border-radius:10px; margin-left:5px; background:#e5e7eb; color:#374151; }
.coo-contact-tab.active.education .badge { background:#F3E8FF; color:#9B59B6; }
.coo-contact-tab.active.professional .badge { background:#E8F4FD; color:#3A7CA5; }
.coo-contact-tab.active.family .badge { background:#E8FAFA; color:#54C3C5; }
.coo-contact-tab i { margin-right:4px; }

.coo-contact-month-header { font-size:14px; font-weight:600; color:#6b7280; text-transform:uppercase; letter-spacing:0.5px; padding:12px 0 8px; margin-top:10px; border-bottom:1px solid #e5e7eb; }
.coo-contact-month-header .badge { font-size:11px; background:#e5e7eb; color:#6b7280; }

.coo-contact-card { background:#fff; border-radius:8px; padding:16px; margin:10px 0; border:1px solid #e5e7eb; border-left:4px solid #e5e7eb; transition:box-shadow 0.2s; }
.coo-contact-card:hover { box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.coo-contact-card.education { border-left-color:#9B59B6; }
.coo-contact-card.professional { border-left-color:#3A7CA5; }
.coo-contact-card.family { border-left-color:#54C3C5; }

.coo-contact-card-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.coo-contact-card-header strong { font-size:13px; }
.coo-contact-card-person { font-size:13px; color:#6b7280; margin-bottom:8px; }
.coo-contact-card-details { font-size:13px; color:#374151; line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.coo-contact-card-actions { margin-top:10px; text-align:right; opacity:0; transition:opacity 0.2s; }
.coo-contact-card:hover .coo-contact-card-actions { opacity:1; }

.coo-contact-method { display:inline-block; width:24px; height:24px; line-height:24px; text-align:center; border-radius:50%; font-size:12px; margin-right:6px; color:#fff; }
.coo-contact-method.phone_call { background:#9B59B6; }
.coo-contact-method.email { background:#3A7CA5; }
.coo-contact-method.text { background:#54C3C5; }
.coo-contact-method.visit { background:#E67E22; }
.coo-contact-method.video_call { background:#2ECC71; }
.coo-contact-method.other { background:#95A5A6; }

@media (max-width:767px) {
    .coo-contact-tabs { overflow-x:auto; }
    .coo-contact-tab { white-space:nowrap; font-size:13px; padding:8px 14px; }
    .coo-contact-card-actions { opacity:1; }
}

/* ================================================
   PLACEMENT PLANS
   ================================================ */

.coo-pp-wizard-progress {
    display:flex; justify-content:center; gap:0; margin-bottom:20px; position:relative;
}
.coo-pp-wizard-step {
    display:flex; flex-direction:column; align-items:center; position:relative; flex:1; text-align:center;
}
.coo-pp-wizard-step span {
    width:32px; height:32px; border-radius:50%; background:#e5e7eb; color:#6b7280;
    display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px; z-index:1;
    transition: all 0.2s;
}
.coo-pp-wizard-step small { font-size:11px; color:#9ca3af; margin-top:4px; }
.coo-pp-wizard-step.active span { background:#f97316; color:#fff; box-shadow:0 0 0 3px rgba(249,115,22,0.2); }
.coo-pp-wizard-step.active small { color:#f97316; font-weight:600; }
.coo-pp-wizard-step.complete span { background:#16a34a; color:#fff; }
.coo-pp-wizard-step.complete small { color:#16a34a; }
.coo-pp-wizard-step:not(:last-child)::after {
    content:''; position:absolute; top:16px; left:calc(50% + 16px); right:calc(-50% + 16px);
    height:2px; background:#e5e7eb; z-index:0;
}
.coo-pp-wizard-step.complete:not(:last-child)::after { background:#16a34a; }

.coo-pp-sidebar {
    width:200px; min-width:200px; position:sticky; top:0; max-height:80vh;
    overflow-y:auto; padding:8px 0; border-right:1px solid #e5e7eb;
}
.coo-pp-sidebar-item {
    display:block; padding:6px 12px; font-size:12px; text-decoration:none;
    border-radius:4px; margin:1px 4px; transition:background 0.15s;
}
.coo-pp-sidebar-item:hover { background:#f3f4f6; text-decoration:none; }
.coo-pp-sidebar-item i { width:16px; text-align:center; margin-right:4px; }

.coo-pp-content { flex:1; min-width:0; }

.coo-pp-table { width:100%; border-collapse:collapse; margin:8px 0; font-size:13px; }
.coo-pp-table th, .coo-pp-table td { border:1px solid #e5e7eb; padding:8px 10px; vertical-align:top; }
.coo-pp-table th { background:#f9fafb; font-weight:600; font-size:12px; }

.coo-pp-narrative { line-height:1.7; font-size:13px; }

.coo-pp-section-header:hover { opacity:0.9; }

@media print {
    .coo-pp-sidebar, .coo-pp-no-print { display:none !important; }
    .coo-pp-document { box-shadow:none !important; max-width:100% !important; }
    .coo-pp-section-body { display:block !important; }
    .coo-pp-section { page-break-inside:avoid; }
    #ppDocLayout { display:block !important; }
    .coo-pp-content { width:100% !important; }
}

@media (max-width:767px) {
    .coo-pp-sidebar { display:none; }
    .coo-pp-wizard-progress { flex-wrap:wrap; gap:5px; }
    .coo-pp-wizard-step small { font-size:9px; }
    .coo-pp-wizard-step:not(:last-child)::after { display:none; }
    .coo-pp-table { display:block; overflow-x:auto; }
}

/* ===== WEEKLY MENUS ===== */
.coo-menu-week-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; padding:8px 0; }
.coo-menu-week-label { font-size:14px; text-align:center; }

.coo-menu-grid-wrap { overflow-x:auto; margin:8px 0; }
.coo-menu-grid { width:100%; border-collapse:collapse; font-size:12px; min-width:700px; }
.coo-menu-grid th, .coo-menu-grid td { border:1px solid #e5e7eb; padding:8px; vertical-align:top; }
.coo-menu-grid th { font-size:12px; }
.coo-menu-meal-label { width:80px; min-width:80px; }
.coo-menu-meal-time { font-size:10px; color:#6b7280; font-weight:400; margin-top:2px; }
.coo-menu-cell { min-width:90px; }
.coo-menu-transitioned { text-align:center; }

.coo-menu-editor { background:#fff; border:1px solid #e5e7eb; border-radius:6px; padding:16px; }
.coo-menu-editor-grid textarea { font-size:11px !important; }

.coo-menu-actual { display:flex; flex-wrap:wrap; gap:10px; }
.coo-menu-actual-day { flex:1 1 calc(50% - 10px); min-width:280px; border-radius:6px; overflow:hidden; border:1px solid #e5e7eb; }
.coo-menu-actual-day-header { padding:8px 12px; font-size:13px; }
.coo-menu-actual-row { display:flex; gap:8px; padding:6px 12px; border-bottom:1px solid #f3f4f6; }
.coo-menu-actual-planned { flex:1; font-size:12px; color:#374151; line-height:1.4; }
.coo-menu-actual-input { flex:1; position:relative; }
.coo-menu-actual-input textarea { font-size:12px !important; }
.coo-menu-actual-filled { border-color:#16a34a !important; }
.coo-menu-actual-filled textarea { border-color:#16a34a !important; }

.coo-menu-history-card { background:#fff; border:1px solid #e5e7eb; border-radius:6px; padding:8px 12px; cursor:pointer; min-width:130px; transition:border-color 0.15s; }
.coo-menu-history-card:hover { border-color:#2563eb; }

@media print {
    .coo-menu-no-print, .coo-menu-history, .coo-menu-week-nav button { display:none !important; }
    .coo-menu-grid { min-width:0; }
    .coo-menu-grid th, .coo-menu-grid td { padding:4px 6px; }
    @page { size:landscape; margin:10mm; }
}

@media (max-width:767px) {
    .coo-menu-grid-wrap { margin:0 -16px; padding:0 16px; }
    .coo-menu-actual-day { flex:1 1 100%; }
    .coo-menu-actual-row { flex-direction:column; gap:4px; }
    .coo-menu-editor-grid { font-size:10px; }
}

/* ── Admission Checklist ── */
.coo-ac-table th { font-size:12px; font-weight:600; vertical-align:middle; }
.coo-ac-table td { vertical-align:top; }
.coo-ac-table .form-control { border:1px solid #e5e7eb; border-radius:4px; }
.coo-ac-table .form-control:focus { border-color:#2c3e50; box-shadow:0 0 0 2px rgba(44,62,80,0.1); }
.coo-ac-table select.coo-ac-answer { text-align:center; }
.coo-ac-table textarea { min-height:40px; }
.coo-ac-header .form-control { background:#fff; }
@media print {
    .coo-ac-header { break-inside:avoid; }
    .coo-ac-table { font-size:10px; }
    .coo-ac-file-upload, .coo-ac-doc-delete, .btn { display:none !important; }
}
