@import url('https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&family=Manrope:wght@200..800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.min.css');

:root {
    --primary: #006C57;
    /* --primary: #9EE0D3; */
    --primary-dark: #044639;
    --secondary: #9EE0D3;
    --accent: #F8EC33;
    --dark: #080808;
    --rail: #dfe5e2;        /* tree-rail guide — matches the existing scrollbar-thumb grey */
    --sectionlbl: #5f6b66;  /* muted section-header label grey; darkened for >= 4.5:1 on white */
}

.btn-secondary {
    color: var(--primary);
    background-color: #fff;
    border-color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary.focus,
.btn-secondary:active {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary-dark);
}

.btn-secondary:focus,
.btn-secondary.focus {
    box-shadow: 0 0 0 .2rem rgba(0, 108, 87, .35);
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    color: var(--primary);
    background-color: #fff;
    border-color: var(--primary);
    opacity: .65;
}

.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary-dark);
}

/* Beat the vendor purple focus ring on pressed/open states (higher specificity). */
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
    box-shadow: 0 0 0 .2rem rgba(0, 108, 87, .35);
}

/* Placeholder text: the vendor theme forces #ddd !important (unreadable); !important is
   required to beat it. One rule per selector: a list containing a pseudo-element the browser
   does not recognise is dropped whole. */
::placeholder {
    color: #6c757d !important;
}

::-webkit-input-placeholder {
    color: #6c757d !important;
}

::-moz-placeholder {
    color: #6c757d !important;
}

:-ms-input-placeholder {
    color: #6c757d !important;
}

:-moz-placeholder {
    color: #6c757d !important;
}

.text-primary {
    color: var(--primary) !important;
}

h1,
h2,
.h1,
.h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--primary);
}

h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
}

p {
    color: #080808;
    font-size: 1em;
    letter-spacing: 0px;
    font-weight: 300;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #faf9f6;
}

.content-body .container-fluid {
    padding: 1rem 2rem;
}

.gradient-2 {
    background-image: linear-gradient(270deg, #d12a56, #ea9d9d);
}


/* .btn-primary {
    background: rgba(12 12 12 /.95);
    border-color: rgba(12 12 12 /.95);
} */

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.nk-sidebar {
    border-right: 1px solid #EBEBEB;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 5rem;
    bottom: 0;
    height: auto;
}

[data-sidebar-position="fixed"][data-layout="vertical"] .menu-toggle .nk-sidebar {
    left: 20px;
    height: calc(100svh - 100px);
    border-radius: 1rem;
    overflow: hidden;
    border-right: 1px solid #ebebeb;
}

.nk-sidebar .metismenu>li a>i {
    font-size: 1.1rem;
    color: #181818;
}

.nk-sidebar .metismenu>li:not(.active):hover>a,
.nk-sidebar .metismenu>li:not(.active):hover span,
.nk-sidebar .metismenu>li:not(.active):hover i {
    background: #fbfbfb;
    color: var(--primary) !important;
}


.nk-sidebar .metismenu a {
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #181818;
}

.nav-header .brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

[data-nav-headerbg="color_1"] .nav-header {
    background: #fff;
    box-shadow: none;
    border-right: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

@media screen and (max-width:1200px) {
    [data-nav-headerbg="color_1"] .nav-header {
    background: transparent;
    /* backdrop-filter: blur(2rem); */
    border: 0;
}
}

[data-headerbg="color_1"] .header {
    background: transparent;
    /* backdrop-filter: blur(10px); */
    box-shadow: none;
    padding: .5rem 1rem;
    height: 5rem;
    /* box-shadow: 0px 3px 20px -18px rgba(25 69 157 /.55); */
    /* border-bottom: 1px solid rgba(255, 255, 255, .55); */
}

[data-headerbg="color_1"] .header .header-content {
    border: 1px solid #ebebeb;
    background-color: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    padding: .5rem 1rem;
    border-radius: 100px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

@media screen and (max-width:1200px) {
    [data-nav-headerbg="color_1"] .nav-header {
    background: rgba(255, 255, 255, .75);    /* backdrop-filter: blur(2rem); */
    border: 0;
        backdrop-filter: blur(2rem);

    }

    [data-headerbg="color_1"] .header {
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(2rem);
}

    [data-headerbg="color_1"] .header .header-content {
    background-color: transparent;
    border: 0;
    backdrop-filter: blur(0px);
    }
}

[data-headerbg="color_1"] .header .header-content .nav-control {
    left: 2rem;
    top: auto;
    position: static;
    display: grid;
    place-content: center;
    transform: translateY(-3px);
}

.header-content .header-right {
    float: none;
}

/* ==========================================================================
   TOP BAR — page-title block + presentational search (shell polish, Task 6)
   Scoped under .header-content so nothing leaks onto other pages. Brand tokens
   only (--primary focus ring, #1c1b19 / #8c8b88 text pair used across the
   dashboard reskin). The search input is presentational: no form, no name, so
   Enter is inert and there is nothing to submit (no 403 / navigation).
   ========================================================================== */
.header-content .header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-left: 0;   /* vendor .header-left sets margin-left:50px — neutralise */
    float: none;      /* vendor float:left is inert inside the flex pill — state it */
}
/* Beat the vendor contexts that re-apply margin-left (overlay mode ≤1200px via
   settings.js, and .menu-toggle after a hamburger click) with higher specificity. */
[data-sidebar-style="overlay"] .header-content .header-left,
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .header .header-content .header-left {
    margin-left: 0;
}

.header-content .header-page-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 300px;
    line-height: 1.3;
}

.header-content .header-page-title .header-page-title__text {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1c1b19;
    letter-spacing: -0.2px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-content .header-page-title .header-page-title__subline {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #5f5e5b;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media screen and (max-width: 767px) {
    .header-content .header-page-title {
        max-width: 180px;
    }
}


.slimScrollDiv {
    flex: 1;
    height: auto !important;
    min-height: 0;
    padding-bottom: 10px;
}

@media screen and (max-width:1200px) {
    .slimScrollDiv {
        height: calc(100% - 9.5em) !important;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    /* Below the drawer (1045) but above page content, so the menu stays clickable
       and only the content area behind the drawer is dimmed/dismiss-on-tap. */
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .nk-sidebar {
    width: 0px;
    overflow: hidden;
}

[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .content-body {
    margin-left: 0;
}

.user-profile {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    padding: 12px 7px;
    box-shadow: 0 -3px 9px -3px rgba(52, 154, 123, 0.55);
}

.user-profile .user-profile__img .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 40px;
    background: var(--primary);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, .5);
}

.user-profile .user-profile__img img {
    width: 50px;
    height: 50px;
    border-radius: 40px;
    overflow: hidden;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .5);
}

.user-profile .user-profile__details {
    padding: 0 7px 0 12px;
    display: flex;
    flex-direction: column;
    /* Shell polish: let the text column shrink inside the card so a long branch
       name truncates inside its own column instead of overlapping the avatar. */
    min-width: 0;
    flex: 1 1 auto;
}

.user-profile .user-profile__details>h5,
.user-profile .user-profile__details>p,
.user-profile .user-profile__details>a {
    margin-bottom: 0px;
}

.user-profile .user-profile__details>h5 {
    font-size: 16px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 1);
}

.user-profile .user-profile__details>p {
    font-size: 14px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, .75);
}

.user-profile .user-profile__details>a {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.user-profile .user-profile__details>a:hover {
    color: rgba(255, 255, 255, 1);
}

.card {
    /* box-shadow: 0px 7px 20px -15px rgba(25 69 157 /.55); */
    border-radius: 1rem;
    box-shadow: none;
    border: 1px solid #ebebeb;
    margin-bottom: 1.5rem;
}

.card>.card-body {
    padding: 1.75em;
    border-radius: 2rem;
}

.card-title {
    font-family: 'Monsterrat', sans-serif;
    font-size: 20px;
    font-weight: 400 !important;
}

.card.quick-look {
    overflow: hidden;
}

.quick-look .card-body {
    padding: 1.25rem 1.5rem;
}

.quick-look .stats {
    gap: .5rem;
    align-items: center;
}

.quick-look .stats .icon-img {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background-color: var(--primary);
    border-radius: .35rem;
    color: white;
}

.quick-look .stats .icon-img img {
    filter: invert(1);
}

.quick-look .stats h4 {
    font-size: 2rem;
    color: var(--primary);
}

.quick-look .card-footer {
    /* background-color: #fbfbfb; */
}

.quick-look .card-footer a {
    font-weight: 500;
    color: var(--secondary);
}

.card-title__container h3 {
    font-size: 1.5rem;
}

.card-title__container span {
    font-size: .85rem;
    line-height: 110%;
}

.card-title__container {
    display: flex;
    flex-direction: column;
    align-items: start;
    /* justify-content: space-between; */
    margin-bottom: 15px;
}

.card-title__container>h3 {
    margin-bottom: 0;
}

.card-title__container span>i {
    font-size: 1.35em;
}


/* .card-title__container span {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
} 



.card-title__container h3 {
    flex-grow: 1;
    margin-bottom: 0;
}*/


/* @media screen and (max-width:575px) {
    .card-title__container span>i {
        font-size: 4em;
        position: absolute;
    }
} */

.card-title {
    line-height: 1.38em;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--dark);
}

.gradient-1 {
    background: rgb(25, 69, 157);
    background: -moz-linear-gradient(180deg, rgba(180, 74, 155, 1) 9%, rgba(25, 69, 157, 1) 100%);
    background: -webkit-linear-gradient(60deg, rgba(180, 74, 155, 1) 9%, rgba(25, 69, 157, 1) 100%);
    background: linear-gradient(0deg, rgba(180, 74, 155, 1) 0%, rgba(25, 69, 157, 1) 100%);
}

.icons>a i {
    font-size: 22px;
    color: #7b7b7b;
}

.cs-box h6 {
    color: #767676;
}

.cs-box {
    border-color: #ebebeb;
}

#main-wrapper {
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-body {
    min-height: auto !important;
    flex: 1;
}

.footer {
    padding-left: 0;
}

.footer .copyright {
    padding-left: 15.1875rem;
}

.menu-toggle .footer .copyright {
    padding-left: 1.2375rem;
}

.google-visualization-orgchart-linenode {
    border-color: #ababab !important;
    border-width: 2px;
}

.tree-node {
    width: 100%;
    border-radius: 8px;
    background: #f4f4f4;
}

.tree-node div {
    width: 200px;
    padding: 1em 1.5em;
}

.tree-node img {
    width: 80px;
    height: 80px;
    overflow: hidden;
    -o-object-fit: fill;
    object-fit: fill;
    border-radius: 50%;
    margin-bottom: 1em;
}

.tree-node h3 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
    font-family: helvetica;
}

.tree-node p {
    font-size: 14px;
    margin-bottom: 0.5em;
}

.tree-node .flexing-box {
    display: flex;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}

.tree-node .flexing-box p {
    font-size: 15px;
    font-weight: 600;
}

.node-selected {
    background: #f0f7f7;
}

@media screen and (max-width:767px) {
    #chart_div {
        overflow-x: scroll;
        touch-action: auto;
    }
}

.bar-chart {
    background-color: var(--secondary);
    color: #fff;
    border-radius: 1rem;
}

.application-list {
    padding: .85rem;
    gap: .5rem;
}

.application-list>div {
    background-color: #f7f7f7;
    padding: .85rem;
    border-radius: .5rem;
}

.application-title {
    flex: 1 0 70%
}

.application-title h6 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .85rem;
}

.application-title span {
    font-size: .85rem;
    margin-bottom: 0;
    line-height: 100%;
}

.application-title p {
    font-size: .9rem;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 0;
}


.page-login {
    min-height: 100svh;
    background: linear-gradient(to left, var(--primary) 22%, white 22%);
    display: flex;
    align-items: stretch;
}

/* @media screen and (max-width:992px) {
    .page-login {
        background-image: url('../images/mobile-login-bg.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
} 

.page-login .logo {
    width: 160px;
    position: absolute;
    top: 1rem;
    left: 1rem;
}
    */

.page-login .login-section {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    min-height: 48px;
    border-radius: .35rem;
}

.form-control:focus {
    border-color: var(--accent);
}

@media screen and (max-width:992px) {
    .page-login {
        background-image: url('/images/login-visual-16b219b53b8f0752602640d04797a594.jpg');
        background-image: image-set(url('/images/login-visual-9b7e4d29d9f6def9d45434eab557cb1d.webp') type("image/webp"), url('/images/login-visual-16b219b53b8f0752602640d04797a594.jpg') type("image/jpeg"));
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;

        justify-content: center;
    }

    .login-container {
        background: rgba(255, 255, 255, .75);
        backdrop-filter: blur(.35rem);
        padding: 2rem;
        border-radius: .5rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

.scroll-nowrap {
    white-space: nowrap;
}

.dataTable thead th {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    background: var(--primary);
}


.dataTable tbody td {
    background: #ffffff;
}

main.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    --accent: #f7a6c2;
    /* soft pink */
    --accent-2: #ffd9e6;
    /* pale pink */
    --muted: #6b6b6b;
    --card-bg: rgba(255, 255, 255, 0.95);
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    background: linear-gradient(135deg, rgba(255, 245, 248, 1) 0%, rgba(255, 255, 255, 1) 100%)
}

.login-visual {
    flex: 1;
    background-image: linear-gradient(135deg, rgba(247, 166, 194, 0.12), rgba(255, 217, 230, 0.06)), url('/images/login-visual-16b219b53b8f0752602640d04797a594.jpg');
    background-image: linear-gradient(135deg, rgba(247, 166, 194, 0.12), rgba(255, 217, 230, 0.06)), image-set(url('/images/login-visual-9b7e4d29d9f6def9d45434eab557cb1d.webp') type("image/webp"), url('/images/login-visual-16b219b53b8f0752602640d04797a594.jpg') type("image/jpeg"));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px
}

.login-visual .overlay {
    max-width: 420px;
    background-color: rgba(255, 255, 255, .5);
    padding: 24px 32px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 13px
}

.hero-title {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -.75px;
    color: #555353;
    margin: 12px 0 8px
}

.hero-sub {
    /* color: rgba(255, 255, 255, .75); */
    color: var(--muted);
    line-height: 1.4
}

.auth-card {
    flex: 0 0 420px;
    padding: 36px;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 16px
}

.auth-card .logo {
    position: static;
    height: 64px;
    object-fit: contain;
    margin-bottom: 6px
}

.auth-card h2 {
    margin: 6px 0 6px;
    font-weight: 700;
    color: #333
}

.form-control {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #eee
}

.form-group label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    display: block
}

.btn-primary {
    /* background: var(--accent); */
    border: none;
    color: white;
    padding: 10px 16px;
    /* border-radius: 10px; */
    font-weight: 600
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.muted-link {
    color: var(--muted);
    font-size: 14px
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px
}

.small-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px
}

@media(max-width:900px) {
    .login-wrapper {
        flex-direction: column
    }

    .auth-card {
        width: 100%;
        padding: 28px
    }

    .login-visual {
        display: none
    }
}

/* subtle input focus */
.form-control:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(247, 166, 194, 0.12);
    border-color: var(--accent)
}

/* Force Select2 single select to look like Bootstrap 5 .form-control */
.select2-container--default .select2-selection--single {
    height: 48px !important;              /* match input height */
    border: 1px solid #ced4da !important; /* Bootstrap border */
    border-radius: 10px !important;   /* Bootstrap rounding */
    padding: 12px 14px !important;   /* same as .form-control */
    font-size: 0.875rem !important;       /* match input font-size */
    line-height: 1.5 !important;          /* keep text centered */
    background-color: #fff !important;    /* same as input */
}

/* Align rendered text inside */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
    line-height: 1.5 !important;
    font-size: 0.875rem !important;
    color: #212529 !important;           /* Bootstrap text color */
}

/* Align dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.5rem !important;            /* align arrow like input padding */
}

/* Custom Appointment Styles */
.appointments-list-container {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.appointments-list-container::-webkit-scrollbar {
    width: 6px;
}

.appointments-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.appointments-list-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.appointments-list-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.appointment-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.appointment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 108, 87, 0.08);
    border-color: rgba(0, 108, 87, 0.15);
}

.appointment-item.pending {
    border-left-color: #ffc107;
}

.appointment-item.confirmed {
    border-left-color: var(--primary);
}

.appointment-item.completed {
    border-left-color: #28a745;
}

.appointment-item.cancelled {
    border-left-color: #dc3545;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.appointment-time-badge {
    background-color: rgba(0, 108, 87, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.35rem;
}

.appointment-edit-btn {
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    background: none;
    border: none;
    padding: 4px 8px;
    color: var(--primary);
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.appointment-edit-btn:hover {
    opacity: 1;
    background-color: rgba(0, 108, 87, 0.05);
    transform: scale(1.1);
}

.appointment-cust-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.appointment-service-pill {
    font-size: 12px;
    font-weight: 600;
    background: #f5f5f5;
    color: #555;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.appointment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.appointment-beautician-badge {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.appointment-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-status-pill.pending {
    background-color: #fff3cd;
    color: #856404;
}

.appointment-status-pill.confirmed {
    background-color: #d4edda;
    color: #155724;
}

.appointment-status-pill.completed {
    background-color: #e2f0d9;
    color: #385723;
}

.appointment-status-pill.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   SCANDINAVIAN MODERN DASHBOARD REDESIGN
   ========================================================================== */

/* Warm neutral background override for content area */
.content-body {
    background-color: #faf9f6 !important;
}

/* Beautiful Scandi Title Bar */
.welcome-scandi-section {
    padding: 16px 4px 28px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 108, 87, 0.04);
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.welcome-scandi-title {
    font-size: 26px;
    font-weight: 800;
    color: #1c1b19;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.welcome-scandi-subtitle {
    font-size: 14px;
    color: #8c8b88;
    font-weight: 400;
}

.welcome-scandi-badge {
    background-color: #e2ebe5;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 108, 87, 0.02);
}

.welcome-scandi-badge i {
    font-size: 14px;
}

/* Welcome bar action row — holds compact widgets next to the admin badge */
.welcome-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Compact Clock In/Out pill — sits inline with the welcome bar, matches .welcome-scandi-badge */
.welcome-clock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e2ebe5;
    color: var(--primary);
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    line-height: inherit;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background-color 0.18s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 108, 87, 0.02);
}
.welcome-clock-btn:hover {
    background-color: #d3dfd6;
}
.welcome-clock-btn i {
    font-size: 14px;
}
.welcome-clock-btn .welcome-clock-time {
    font-weight: 700;
    letter-spacing: 0.4px;
}
.welcome-clock-btn .welcome-clock-dur {
    font-weight: 500;
    opacity: 0.75;
    font-size: 11px;
}
.welcome-clock-btn .welcome-clock-cta {
    color: var(--primary);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-left: 1px solid rgba(0, 108, 87, 0.2);
    padding-left: 10px;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Clocked-in: inverted fill so the active state reads distinctly */
.welcome-clock-btn.in {
    background-color: var(--primary);
    color: #fff;
}
.welcome-clock-btn.in:hover {
    background-color: #005a48;
}
.welcome-clock-btn.in .welcome-clock-cta {
    color: #fff;
    border-left-color: rgba(255, 255, 255, 0.3);
}
.welcome-clock-btn.in .welcome-clock-dur {
    opacity: 0.85;
    color: #fff;
}
.welcome-clock-btn[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

/* Scandi Card Base Style */
.scandi-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 108, 87, 0.01) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 24px !important;
}

.scandi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 108, 87, 0.03) !important;
}

.scandi-card .card-body {
    padding: 24px !important;
}

/* KPI Scandi Style */
.kpi-scandi-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 108, 87, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.kpi-scandi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 108, 87, 0.03);
}

.kpi-scandi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.kpi-scandi-label {
    font-size: 11px;
    font-weight: 700;
    color: #8c8b88;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.kpi-scandi-icon {
    font-size: 18px;
    color: var(--primary);
    opacity: 0.7;
    background-color: rgba(0, 108, 87, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.kpi-scandi-value {
    font-size: 32px;
    font-weight: 800;
    color: #1c1b19;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.kpi-scandi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
}

.kpi-scandi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
}

.kpi-scandi-trend.up {
    background-color: rgba(40, 167, 69, 0.08);
    color: #198754;
}

.kpi-scandi-trend.down {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.kpi-scandi-trend.neutral {
    background-color: rgba(108, 117, 125, 0.08);
    color: #6c757d;
}

/* Visual Sparkline Indicators using Pure CSS */
.kpi-scandi-sparkline {
    height: 24px;
    width: 60px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.kpi-scandi-sparkbar {
    flex-grow: 1;
    background-color: rgba(0, 108, 87, 0.1);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.kpi-scandi-card:hover .kpi-scandi-sparkbar {
    background-color: var(--primary);
}

.kpi-scandi-sparkbar:nth-child(1) { height: 40%; }
.kpi-scandi-sparkbar:nth-child(2) { height: 60%; }
.kpi-scandi-sparkbar:nth-child(3) { height: 35%; }
.kpi-scandi-sparkbar:nth-child(4) { height: 80%; }
.kpi-scandi-sparkbar:nth-child(5) { height: 95%; }

/* Quick Action Tiles */
.action-scandi-card {
    background: #faf7f2;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 190px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.action-scandi-card:hover {
    background: #ffffff;
    border-color: rgba(0, 108, 87, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 108, 87, 0.03);
}

.action-scandi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}

.action-scandi-card:hover .action-scandi-icon {
    background-color: var(--primary);
    color: #ffffff;
}

.action-scandi-title {
    font-size: 16px;
    font-weight: 700;
    color: #1c1b19;
    margin-bottom: 6px;
}

.action-scandi-desc {
    font-size: 13px;
    color: #6b6a67;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 20px;
}

.action-scandi-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
}

.action-scandi-btn.btn-solid {
    background-color: var(--primary);
    color: #ffffff;
}

.action-scandi-btn.btn-solid:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 108, 87, 0.15);
}

.action-scandi-btn.btn-outline {
    background-color: transparent;
    border-color: rgba(0, 108, 87, 0.2);
    color: var(--primary);
}

.action-scandi-btn.btn-outline:hover {
    background-color: rgba(0, 108, 87, 0.04);
    border-color: var(--primary);
    color: var(--primary);
}

/* Today's Appointments Timeline-List */
.timeline-scandi-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.timeline-scandi-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f2eff7;
    transition: all 0.2s ease;
}

.timeline-scandi-item:last-child { border-bottom: none; }
.timeline-scandi-item:hover { transform: translateX(4px); }

.avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.avatar-badge.peach { background-color: #f6b5a3; color: #61362b; }
.avatar-badge.sage { background-color: #b1cfbe; color: #2e4c3b; }
.avatar-badge.lilac { background-color: #cbbed9; color: #433352; }
.avatar-badge.sand { background-color: #dfd5c2; color: #524734; }
.avatar-badge.rose { background-color: #f2afc6; color: #6e2f45; }

.timeline-scandi-content { flex-grow: 1; min-width: 0; }

.timeline-scandi-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 4px;
}

.timeline-scandi-name { font-size: 14px; font-weight: 700; color: #1c1b19; }

.timeline-scandi-time {
    font-size: 11px;
    color: #8c8b88;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-scandi-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.timeline-scandi-service {
    font-size: 11px;
    font-weight: 600;
    background-color: #f7f6f2;
    color: #6b6a67;
    padding: 2px 8px;
    border-radius: 20px;
}

.timeline-scandi-beautician {
    font-size: 11px;
    color: #8c8b88;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.timeline-scandi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-dot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 20px;
}

.status-dot-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-pill.confirmed { background-color: #e2f0ea; color: #1e6c4b; }
.status-dot-pill.confirmed::before { background-color: #28a745; }
.status-dot-pill.pending { background-color: #fef4e0; color: #8a650d; }
.status-dot-pill.pending::before { background-color: #ffc107; }
.status-dot-pill.completed { background-color: #e7effb; color: #2457a3; }
.status-dot-pill.completed::before { background-color: #007bff; }
.status-dot-pill.cancelled { background-color: #fbebed; color: #922b37; }
.status-dot-pill.cancelled::before { background-color: #dc3545; }

.timeline-scandi-edit-btn {
    opacity: 0.5;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 2px 6px;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.timeline-scandi-edit-btn:hover {
    opacity: 1;
    background-color: rgba(0, 108, 87, 0.05);
}

/* FullCalendar Borderless Scandi overrides */
.calendar-medi.fc { font-family: 'Manrope', sans-serif !important; }

.calendar-medi .fc-toolbar {
    margin-bottom: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-medi .fc-toolbar h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1c1b19 !important;
    letter-spacing: -0.3px !important;
    text-transform: capitalize !important;
    margin: 0 !important;
}

.calendar-medi .fc-button {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #6b6a67 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    height: auto !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.calendar-medi .fc-button:hover {
    background: #f7f6f2 !important;
    color: #1c1b19 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.calendar-medi .fc-state-active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.calendar-medi .fc-state-disabled { opacity: 0.4 !important; cursor: not-allowed !important; }

.calendar-medi .fc-view-container {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.calendar-medi th.fc-day-header {
    background-color: #faf9f6 !important;
    border: none !important;
    padding: 12px 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #8c8b88 !important;
    border-bottom: 1px solid #f2eff7 !important;
}

.calendar-medi td.fc-day,
.calendar-medi td.fc-widget-content { border: 1px solid #f2eff7 !important; }
.calendar-medi .fc-head-container.fc-widget-header { border: none !important; }
.calendar-medi .fc-bg { background: #ffffff !important; }

.calendar-medi .fc-day-number {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b6a67 !important;
    padding: 8px 10px !important;
    float: right !important;
}

.calendar-medi .fc-today { background-color: rgba(0, 108, 87, 0.02) !important; }
.calendar-medi .fc-today .fc-day-number { color: var(--primary) !important; font-weight: 800 !important; }

.calendar-medi .fc-event {
    background-color: rgba(0, 108, 87, 0.05) !important;
    color: var(--primary) !important;
    border: none !important;
    border-left: 3px solid var(--primary) !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 2px 4px !important;
    box-shadow: none !important;
}

.calendar-medi .fc-event .fc-content { color: var(--primary) !important; }
.calendar-medi .fc-event:hover { background-color: rgba(0, 108, 87, 0.08) !important; }

/* ==========================================
   SCANDINAVIAN SPLIT-SCREEN LAYOUT & SIDEBAR
   ========================================== */

@media (min-width: 992px) {
    .scandi-right-sidebar {
        max-height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        position: sticky;
        top: 100px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .scandi-right-sidebar .scandi-right-card.appointments-card { flex: 1; min-height: 300px; }
    /* stock-card hosts the (optional) HQ branch picker AND the Low Stock / Expiring tabs.
       Picker + label takes ~60px; raised from 200px so 3-4 alert rows are visible without
       scrolling and the empty state has breathing room. */
    .scandi-right-sidebar .scandi-right-card.stock-card { min-height: 360px; }
    .scandi-right-sidebar .scandi-right-card.beautician-card { min-height: 180px; }
}

@media (max-width: 991px) {
    .scandi-right-sidebar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .scandi-right-sidebar .scandi-right-card.appointments-card { min-height: 450px; width: 100%; }
    .scandi-right-sidebar .scandi-right-card.stock-card { min-height: 360px; width: calc(50% - .75rem); }
    .scandi-right-sidebar .scandi-right-card.beautician-card { min-height: 220px; width: calc(50% - .75rem); }
}

@media (max-width:767px) {
    .scandi-right-sidebar .scandi-right-card.stock-card { min-height: 360px; width: 100%; }
    .scandi-right-sidebar .scandi-right-card.beautician-card { width: 100%; }
}

.scandi-right-sidebar::-webkit-scrollbar { width: 0; background: transparent; }

.scandi-right-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scandi-right-card .card-body-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.card-body-scrollable::-webkit-scrollbar { width: 6px; }
.card-body-scrollable::-webkit-scrollbar-track { background: transparent; }
.card-body-scrollable::-webkit-scrollbar-thumb { background: #e2ebe5; border-radius: 3px; transition: background-color 0.2s ease; }
.card-body-scrollable::-webkit-scrollbar-thumb:hover { background: #006C57; }

/* ==========================================
   STOCK SUPPLIES WIDGET COMPONENT
   ========================================== */

.stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s ease;
}
.stock-item:last-child { border-bottom: none; }
.stock-item:hover { background-color: #faf9f6; border-radius: 8px; }

.stock-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s ease;
}
.stock-item:hover .stock-icon-wrapper { transform: scale(1.05); }
.stock-icon-wrapper.low { background-color: #fcece8; color: #dd5e40; }
.stock-icon-wrapper.good { background-color: #e3efea; color: #006C57; }

.stock-name { font-size: 13px; font-weight: 700; color: #1c1b19; letter-spacing: -0.01em; }
.stock-category { font-size: 11px; color: #8a8880; }
.stock-badge { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 10px; display: inline-block; }
.stock-badge.low { background-color: #fcece8; color: #dd5e40; }
.stock-badge.good { background-color: #e3efea; color: #006C57; }

.stock-progress { width: 60px; height: 4px; background-color: rgba(0, 0, 0, 0.04); border-radius: 2px; overflow: hidden; margin-left: auto; }
.stock-progress-bar { height: 100%; border-radius: 2px; }
.stock-progress-bar.low { background-color: #dd5e40; }
.stock-progress-bar.good { background-color: #006C57; }

/* ==========================================
   BEAUTICIAN STATUS COMPONENT
   ========================================== */

.beautician-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s ease;
}
.beautician-item:last-child { border-bottom: none; }
.beautician-item:hover { background-color: #faf9f6; border-radius: 8px; }

.beautician-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    transition: transform 0.2s ease;
}
.beautician-item:hover .beautician-avatar { transform: scale(1.05); }
.beautician-avatar.active { background-color: #e3efea; color: #006C57; border: 2px solid #ffffff; box-shadow: 0 0 0 1px #e3efea; }
.beautician-avatar.busy { background-color: #e5f0fa; color: #0056b3; border: 2px solid #ffffff; box-shadow: 0 0 0 1px #e5f0fa; }
.beautician-avatar.leave { background-color: #fcece8; color: #dd5e40; border: 2px solid #ffffff; box-shadow: 0 0 0 1px #fcece8; }

.beautician-name { font-size: 13px; font-weight: 700; color: #1c1b19; letter-spacing: -0.01em; }
.beautician-role { font-size: 11px; color: #8a8880; }

.beautician-status-badge { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; }
.beautician-status-badge.active { background-color: #e3efea; color: #006C57; }
.beautician-status-badge.active::before { content: ""; width: 6px; height: 6px; background-color: #006C57; border-radius: 50%; display: inline-block; }
.beautician-status-badge.busy { background-color: #e5f0fa; color: #0056b3; }
.beautician-status-badge.busy::before { content: ""; width: 6px; height: 6px; background-color: #0056b3; border-radius: 50%; display: inline-block; }
.beautician-status-badge.leave { background-color: #fcece8; color: #dd5e40; }
.beautician-status-badge.leave::before { content: ""; width: 6px; height: 6px; background-color: #dd5e40; border-radius: 50%; display: inline-block; }

.libertinus-sans-regular { font-family: "Libertinus Sans", sans-serif; font-weight: 400; font-style: normal; }
.libertinus-sans-bold { font-family: "Libertinus Sans", sans-serif; font-weight: 700; font-style: normal; }
.libertinus-sans-regular-italic { font-family: "Libertinus Sans", sans-serif; font-weight: 400; font-style: italic; }

.cat-grouping .btn { min-width: 80px; }

.commission-row .input-group-append .input-group-text {
    border-radius: 0 6px 6px 0;
    border: 1px solid #ccc;
    background-color: #fafbfd;
    color: #555;
    font-size: 11px;
    height: 100%;
}

.btn {
    border-radius: 100px;
    padding-inline: 1.5rem !important;
}

.custom-scandi-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    padding: 10px 15px !important;
    border-radius: 0 !important;
    color: #6c757d !important;
    font-weight: 700 !important;
    border-bottom: 2px solid transparent !important;
}
.custom-scandi-tabs .nav-link.active { color: var(--primary) !important; border-bottom: 2px solid var(--primary) !important; }
.custom-scandi-tabs .nav-link:hover { color: var(--primary) !important; opacity: 0.8; }

/* Edit Appointment Modal Styles */
.modal-dialog-1140 { max-width: 1140px; }
.edit-appointment-modal-content { border-radius: 15px; overflow: hidden; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.edit-appointment-modal-header { background-color: var(--primary); border-bottom: none; padding: 18px 24px; }
.edit-appointment-modal-title { color: white; font-family: 'Manrope', sans-serif; }
.edit-appointment-modal-close { color: white; opacity: 0.8; outline: none; border: none; background: none; font-size: 24px; }
.edit-appointment-modal-body { padding: 24px; }
.modal-label-text { letter-spacing: 0.5px; font-size: 11px; }
.modal-input-field { border-radius: 8px; border: 1px solid #eee; padding: 10px 14px; min-height: 44px; }
.modal-section-title { color: #1c1b19; }
.appointment-status-box { height: 44px; display: flex; align-items: center; }
.appointment-status-badge { font-size: 11px; padding: 6px 12px; border-radius: 6px; font-weight: 700; letter-spacing: 0.5px; }
.service-duration-box { background-color: #f8f9fa; border-radius: 10px; padding: 12px 16px; border: 1px solid #eee; }
.flex-1 { flex: 1; }
.duration-icon-wrapper-start { background-color: rgba(117, 113, 249, 0.1); color: var(--primary); border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-right: 12px; }
.duration-icon-wrapper-end { background-color: rgba(252, 108, 142, 0.1); color: #fc6c8e; border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-right: 12px; }
.duration-icon { font-size: 18px; }
.duration-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.duration-value { color: #333; font-size: 15px; }
.duration-arrow { padding: 0 15px; color: #ccc; }
.custom-scandi-tabs-container { border-bottom: 1px solid #eee; display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.custom-scandi-tab-content { min-height: 150px; padding: 15px; border: 1px solid #eee; border-top: none; border-radius: 0 0 8px 8px; background: #fafafa; }
.service-history-timeline-box { max-height: 520px; overflow-y: auto; padding-right: 5px; padding-left: 10px; border-left: 2px dashed #f0f0f0; }
.timeline-circle-primary { position: absolute; left: -16px; top: 0; width: 10px; height: 10px; border-radius: 50%; background-color: var(--primary); border: 2px solid #fff; }
.timeline-circle-gray { position: absolute; left: -16px; top: 0; width: 10px; height: 10px; border-radius: 50%; background-color: #ddd; border: 2px solid #fff; }
.timeline-item-card { background-color: #fff; border: 1px solid #f0f0f0; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.timeline-badge-completed { background-color: #e6f4ea; color: #1e8e3e; border-radius: 4px; }
.timeline-notes-box { background-color: #faf7f2; border-radius: 6px; border-left: 3px solid #d4a373; }
.timeline-attachment-link { background: #f0f7ff; padding: 4px 8px; border-radius: 4px; text-decoration: none; }
.timeline-attachment-box { width: 45px; height: 45px; background-color: #f5f5f5; border-radius: 6px; display: flex; align-items: center; justify-content: center; border: 1px dashed #ccc; cursor: pointer; transition: all 0.2s; }
.timeline-attachment-box:hover { border-color: var(--primary); }
.edit-appointment-modal-footer { padding: 16px 24px; border-top: 1px solid #eee; background-color: #fafafa; }
.gap-15 { gap: 15px; }
.modal-footer-buttons-wrapper { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-btn-light { border-radius: 8px; padding: 8px 18px; font-weight: 600; background-color: #fff; border: 1px solid #ddd; color: #555; }
.modal-btn-warning { border-radius: 8px; padding: 8px 18px; font-weight: 600; color: white; }
.modal-btn-success { border-radius: 8px; padding: 8px 18px; font-weight: 600; }
.modal-btn-primary { background-color: var(--primary); border: none; border-radius: 8px; padding: 8px 18px; font-weight: 600; color: white; }

/* Status Badges */
.badge-warning-custom { background-color: #fff3cd !important; color: #856404 !important; }
.badge-primary-custom { background-color: #cce5ff !important; color: #004085 !important; }
.badge-success-custom { background-color: #d4edda !important; color: #155724 !important; }
.badge-danger-custom { background-color: #f8d7da !important; color: #721c24 !important; }
.badge-secondary-custom { background-color: #e2e3e5 !important; color: #383d41 !important; }

/* Sales Payment Page CSS */
.payment-card { border: 1px solid #ebebeb; border-radius: 1rem !important; box-shadow: none !important; }

.purchase-order-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.purchase-order-table th { background-color: #fafbfd; color: #006c57; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 14px 16px; border-bottom: 1px solid #ebebeb; border-top: 1px solid #ebebeb; white-space: nowrap; }
.purchase-order-table th:first-child { border-left: 1px solid #ebebeb; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.purchase-order-table th:last-child { border-right: 1px solid #ebebeb; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.purchase-order-table td { padding: 18px 16px; vertical-align: middle; border-bottom: 1px solid #f2f2f2; color: #333; font-size: 13px; }

.offset-input { width: 110px; border: 1px solid #d0d0d0; border-radius: 6px; padding: 7px 10px; text-align: center; font-weight: 500; font-size: 13px; color: #333; outline: none; transition: border-color 0.2s; background: #fff; }
.offset-input:focus { border-color: #006c57; box-shadow: 0 0 0 3px rgba(0, 108, 87, 0.08); }
.offset-input::placeholder { color: #bbb; }

.summary-panel { background-color: #fafbfd; border: 1px solid #ebebeb; border-radius: 10px; padding: 20px 24px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.summary-row + .summary-row { border-top: 1px solid #f2f2f2; }
.summary-label { color: #6b6b6b; font-weight: 500; }
.summary-value { color: #1a1a1a; font-weight: 600; }
.summary-value.text-discount { color: #d9534f; }
.summary-divider { border: none; border-top: 1px solid #e0e0e0; margin: 10px 0; }
.summary-grand-label { color: #006c57; font-weight: 700; font-size: 14px; }
.summary-grand-value { color: #1a1a1a; font-weight: 800; font-size: 18px; }

.payment-options-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.payment-options-table th { background-color: #fafbfd; color: #555; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; padding: 12px 14px; border-bottom: 1px solid #ebebeb; border-top: 1px solid #ebebeb; }
.payment-options-table th:first-child { border-left: 1px solid #ebebeb; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.payment-options-table th:last-child { border-right: 1px solid #ebebeb; border-top-right-radius: 8px; border-bottom-right-radius: 8px; width: 48px; }
.payment-options-table td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid #f2f2f2; font-size: 13px; }
.payment-options-table td:first-child { width: 48px; color: #888; font-weight: 600; }
.payment-options-table .form-control { border-radius: 6px; border-color: #d0d0d0; font-size: 13px; height: 38px; }
.payment-options-table .form-control:focus { border-color: #006c57; box-shadow: 0 0 0 3px rgba(0, 108, 87, 0.08); }
.payment-options-table select.form-control { color: #555; }

.delete-payment-btn { background: none; border: 1px solid #e0e0e0; color: #bbb; border-radius: 6px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; transition: all 0.2s; }
.delete-payment-btn:hover { border-color: #d9534f; color: #d9534f; background-color: rgba(217, 83, 79, 0.05); }

.add-payment-btn { border: 1px solid #006c57; color: #006c57; background: none; border-radius: 20px; padding: 6px 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.add-payment-btn:hover { background-color: #006c57; color: #fff; }

.payment-remark-textarea { border: 1px solid #d0d0d0; border-radius: 8px; font-size: 13px; resize: vertical; padding: 10px 14px; }
.payment-remark-textarea:focus { border-color: #006c57; box-shadow: 0 0 0 3px rgba(0, 108, 87, 0.08); outline: none; }

.payment-info-panel { border: 1px solid #ebebeb; border-radius: 10px; padding: 24px; background: #fff; }
.payment-info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; }
.payment-info-label { color: #6b6b6b; font-weight: 500; }
.payment-info-value { font-weight: 600; color: #1a1a1a; }
.payment-info-value.value-paid { color: #7571f9; }
.payment-info-value.value-remaining { color: #d9534f; }
.payment-info-value.value-offset { color: #7571f9; }
.payment-info-divider { border: none; border-top: 1px solid #f0f0f0; margin: 4px 0; }
.payment-info-amount-label { color: #333; font-weight: 600; font-size: 14px; }
.payment-info-amount-value { color: #006c57; font-weight: 700; font-size: 15px; }

.section-heading { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 18px; }

/* ============================================================
   Sidebar — "Spa Minimal" redesign
   Restyles the server-generated metismenu (fragments/sidebar.html).
   Overrides the earlier sidebar rules in this file by cascade order.
   ============================================================ */

/* Menu container breathing room */
.nk-sidebar .nk-nav-scroll .metismenu,
.nk-sidebar .metismenu#menu {
    padding: 6px 10px;
    margin: 0;
}

/* Section headers — quiet uppercase labels (ModuleType.S rows). Non-interactive:
   plain text only — no chip, no hover card, no pointer affordance, no background. */
.nk-sidebar .metismenu li.menu-section .section-label {
    display: block;
    padding: 18px 12px 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--sectionlbl);
    cursor: default;
}

/* Top-level rows: flex row, rounded, touch-friendly */
.nk-sidebar .metismenu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #2d3a36;
    position: relative;
}

/* Icon chip — styles the <span class="menu-icon"> wrapper (also covers the legacy
   <i class="… menu-icon"> element; the inline <svg> inside uses currentColor). */
.nk-sidebar .metismenu > li > a > .menu-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef3f1;
    color: var(--primary);
    margin: 0;
    transition: background .15s ease, color .15s ease;
}
/* Inline SVG icon: fixed 18px box centred in the 32px chip (overrides the SVG's own
   24px attributes). stroke="currentColor" picks up the chip's colour automatically —
   teal on the mint chip, white on the active teal chip. */
.nk-sidebar .metismenu > li > a > .menu-icon > svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nk-sidebar .metismenu > li > a .nav-text {
    flex: 1 1 auto;
}

/* Hover (inactive rows) */
.nk-sidebar .metismenu > li:not(.active):hover > a,
.nk-sidebar .metismenu > li:not(.active):hover > a span,
.nk-sidebar .metismenu > li:not(.active):hover > a i {
    background: transparent;
    color: var(--primary-dark) !important;
}
.nk-sidebar .metismenu > li:not(.active):hover > a {
    background: #f0f4f2 !important;
}
.nk-sidebar .metismenu > li:not(.active):hover > a > .menu-icon {
    background: #e3ece8;
}

/* Active item — floating white card (replaces the solid-teal full-width row) */
.nk-sidebar .metismenu > li.active > a {
    background: #ffffff;
    color: var(--primary-dark) !important;
    font-weight: 700;
    box-shadow: 0 6px 16px -8px rgba(4, 70, 57, .4);
}
.nk-sidebar .metismenu > li.active > a span,
.nk-sidebar .metismenu > li.active > a i {
    color: var(--primary-dark) !important;
}
.nk-sidebar .metismenu > li.active > a > .menu-icon {
    background: var(--primary);
    color: #ffffff !important;
}

/* Sub-menu (group children) — no grey block (override base .nk-sidebar ul { background:#fafafa }) */
.nk-sidebar .metismenu ul {
    background: transparent;
    position: relative;
}
.nk-sidebar .metismenu ul a {
    display: block;
    padding: 8px 12px 8px 56px;
    margin: 1px 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #5a6460;
}
/* Deeper levels step right so the tree reads down to admin depth (group→subgroup→leaf) */
.nk-sidebar .metismenu ul ul a {
    padding: 8px 12px 8px 76px;
}
.nk-sidebar .metismenu ul ul ul a {
    padding: 8px 12px 8px 96px;
}

/* Tree-rail: a vertical guide down each child list + a 1px connector tick per row.
   Rail/tick offsets step right with depth (27 → 47 → 67); each tick is ~24px wide,
   1px tall and ends just short of the row's text (text sits at 56 → 76 → 96).
   The pseudo elements carry z-index so the rail/tick stay visible above the row's
   hover and active-pill backgrounds. */
.nk-sidebar .metismenu ul li {
    position: relative;
}
.nk-sidebar .metismenu ul::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 27px;
    width: 1px;
    background: var(--rail);
    z-index: 1;
}
.nk-sidebar .metismenu ul li::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 27px;
    width: 24px;
    height: 1px;
    background: var(--rail);
    z-index: 1;
}
.nk-sidebar .metismenu ul ul::before {
    left: 47px;
}
.nk-sidebar .metismenu ul ul li::before {
    left: 47px;
}
.nk-sidebar .metismenu ul ul ul::before {
    left: 67px;
}
.nk-sidebar .metismenu ul ul ul li::before {
    left: 67px;
}

.nk-sidebar .metismenu ul a:hover {
    background: #f0f4f2;
    color: var(--primary-dark) !important;
}

/* Active child — mint pill. The client script marks the current <li> AND its ancestor
   group <li>s with .active (a child link may carry .active directly too), so both
   shapes are styled identically; a single selector covers every nesting depth. */
.nk-sidebar .metismenu ul a.active,
.nk-sidebar .metismenu ul li.active > a {
    background: #eef3f1;
    color: var(--primary-dark) !important;
    font-weight: 700;
}
/* Emphasised connector tick on the active row */
.nk-sidebar .metismenu ul li.active::before {
    background: var(--primary);
    height: 2px;
}

/* Profile card — rounded teal gradient */
.user-profile {
    margin: 8px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: none;
    align-items: center;
}
.user-profile .user-profile__img img,
.user-profile .user-profile__img .avatar-initials {
    width: 44px;
    height: 44px;
}

/* Subtle scrollbar for the nav (native fallback; slimscroll handles the runtime bar) */
.nk-sidebar .nk-nav-scroll::-webkit-scrollbar {
    width: 6px;
}
.nk-sidebar .nk-nav-scroll::-webkit-scrollbar-thumb {
    background: #dfe5e2;
    border-radius: 10px;
}

/* ------------------------------------------------------------
   Tablet & mobile (≤1200px). The theme forces data-sidebar-style="overlay"
   here (settings.js :: manageResponsiveSidebar) and owns the off-canvas slide
   itself via left:0 / left:-100% on .nk-sidebar, toggled by the hamburger
   adding/removing #main-wrapper.menu-toggle — where .menu-toggle = OPEN and its
   absence = CLOSED. Default (no .menu-toggle) is closed, so content is usable on
   load. We only (a) lift the open drawer above our backdrop and (b) reveal the
   backdrop while the drawer is open. NEVER gate these on data-sidebar-style="full"
   — that value never applies on small viewports.
   ------------------------------------------------------------ */
@media screen and (max-width: 1200px) {
    /* Lift the drawer above .sidebar-overlay (z-index 1040) so the menu stays
       tappable instead of being buried under the backdrop. */
    [data-sidebar-style="overlay"][data-layout="vertical"] .nk-sidebar {
        z-index: 1045;
        box-shadow: 6px 0 28px -10px rgba(4, 70, 57, .4);
    }
    /* Backdrop visible only while the drawer is OPEN (theme: .menu-toggle = open) */
    #main-wrapper.menu-toggle .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Rebuild marker: core-libs ModuleType gained S(SECTION) — force backoffice rebuild against updated core-libs. */

/* ==========================================================================
   MEMBER VIEW PAGE RESKIN  (admin/member/viewMember.html + memberDisplayContent.html)
   Ported from the MediBeaute-Static prototype (commits 4e3aa05, bc8b32a).
   Every selector is scoped to a member-view component class so it cannot
   leak onto other admin pages. Do NOT promote any of these to bare global
   selectors (.nav-tabs, .stat-row, .card).
   ========================================================================== */

/* ── Profile Hero ── */
.profile-hero {
    background: linear-gradient(135deg, rgba(0,108,87,0.05) 0%, rgba(158,224,211,0.14) 100%);
    border: 1px solid #ebebeb;
    border-radius: 1rem;
    padding: 32px 36px;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}
.profile-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,108,87,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006c57 0%, #9EE0D3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,108,87,0.22);
    letter-spacing: -1px;
}
.profile-hero-name {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.profile-hero-id {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.profile-hero-meta {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.profile-hero-meta i {
    font-size: 14px;
    color: #006c57;
}

.profile-hero-meta + .tier-badge {
    margin-top: 7px;
}

/* Status / customer-type badge (reuses prototype tier-badge look) */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.tier-gold    { background: linear-gradient(90deg, #f6d365, #fda085); color: #7a3f00; }
.tier-silver  { background: linear-gradient(90deg, #d0d0d0, #e8e8e8); color: #444; }
.tier-diamond { background: linear-gradient(90deg, #a8edea, #fed6e3); color: #004d5c; }

/* Stat chips — scoped under .profile-hero so the global .stat-row is untouched */
.profile-hero .stat-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.profile-hero .stat-chip {
    text-align: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
}
.profile-hero .stat-chip-value {
    font-size: 20px;
    font-weight: 800;
    color: #006c57;
    line-height: 1;
}
.profile-hero .stat-chip-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-top: 4px;
}
/* Clickable chips (e.g. Total Pending Payment -> filtered sales listing) */
.profile-hero a.stat-chip {
    display: block;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.profile-hero a.stat-chip:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
/* Soft red variant — same tasteful tone as the green value chips, not a harsh solid red */
.profile-hero .stat-chip.stat-chip-danger {
    background: #fdecec;
    border-color: #f5c2c7;
}
.profile-hero .stat-chip.stat-chip-danger .stat-chip-value { color: #d64550; }
.profile-hero .stat-chip.stat-chip-danger .stat-chip-label { color: #b23b46; }

/* Hero-independent stat cards (e.g. the Appointment History summary strip inside a
   tab-pane). Mirrors the hero chip look but is NOT scoped under .profile-hero, so the
   global .stat-row and the hero rules above stay untouched. */
.stat-row-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.stat-row-cards .stat-chip {
    text-align: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
}
.stat-row-cards .stat-chip-value {
    font-size: 20px;
    font-weight: 800;
    color: #006c57;
    line-height: 1;
}
.stat-row-cards .stat-chip-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-top: 4px;
}
/* Semantic accents — soft tints, same tasteful tone as the hero danger variant */
.stat-row-cards .stat-chip.stat-chip-success {
    background: #e9f6f1;
    border-color: #bfe3d6;
}
.stat-row-cards .stat-chip.stat-chip-success .stat-chip-value { color: #006c57; }
.stat-row-cards .stat-chip.stat-chip-success .stat-chip-label { color: #3f8c78; }
.stat-row-cards .stat-chip.stat-chip-info {
    background: #fff6e8;
    border-color: #f3ddb3;
}
.stat-row-cards .stat-chip.stat-chip-info .stat-chip-value { color: #b8791a; }
.stat-row-cards .stat-chip.stat-chip-info .stat-chip-label { color: #9a6a1f; }
.stat-row-cards .stat-chip.stat-chip-danger {
    background: #fdecec;
    border-color: #f5c2c7;
}
.stat-row-cards .stat-chip.stat-chip-danger .stat-chip-value { color: #d64550; }
.stat-row-cards .stat-chip.stat-chip-danger .stat-chip-label { color: #b23b46; }

/* ── Tab navigation (ported from static .profile-tabs-nav / .profile-tab-btn).
      Applied on top of the existing Bootstrap nav-tabs; the .profile-tab-btn
      rules are qualified with the .profile-tabs-nav ancestor so they win over
      Bootstrap's `.nav-tabs .nav-link` / `.nav-link.active` styling. ── */
.profile-tabs-nav {
    display: flex;
    gap: 6px;
    background: #fafbfd;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.profile-tabs-nav::-webkit-scrollbar { display: none; }
.profile-tabs-nav .nav-item { margin: 0; }
.profile-tabs-nav .profile-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    margin-bottom: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.profile-tabs-nav .profile-tab-btn i { font-size: 16px; }
.profile-tabs-nav .profile-tab-btn:hover:not(.active) {
    background: rgba(0,108,87,0.07);
    color: #006c57;
}
.profile-tabs-nav .profile-tab-btn.active {
    background: #006c57;
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,108,87,0.28);
}

/* ── Shared profile card + sections ── */
.profile-card {
    border: 1px solid #ebebeb;
    border-radius: 1rem;
    background: #fff;
    box-shadow: none;
}
.card-section {
    padding: 22px 24px 24px;
    border-bottom: 1px solid #f2f2f2;
}
.card-section:last-child { border-bottom: none; }
.card-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #006c57;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.card-section-title i { font-size: 15px; }

/* ── Detail rows ── */
.field-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f5f5f5;
}
.field-row:last-child { border-bottom: none; }
.field-label {
    min-width: 148px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.field-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    flex: 1;
}
.field-value.muted { color: #aaa; font-style: italic; font-weight: 400; }

/* ── Status pills ── */
.spill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.spill-green  { background: #e8f5e9; color: #2e7d32; }
.spill-amber  { background: #fff3e0; color: #e65100; }
.spill-red    { background: #ffebee; color: #c62828; }
.spill-blue   { background: #e3f2fd; color: #1565c0; }
.spill-purple { background: #f3e8ff; color: #7c3aed; }
.spill-gray   { background: #f5f5f5; color: #666; }

/* ── Beneficiary / emergency-contact card ── */
.ec-card {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 16px 18px;
    background: #fafbfd;
    display: flex;
    gap: 14px;
    align-items: center;
}
.ec-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,108,87,0.1);
    color: #006c57;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ec-name  { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.ec-rel   { font-size: 11px; color: #888; }
.ec-phone { font-size: 12px; color: #006c57; font-weight: 600; margin-top: 3px; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .profile-hero               { padding: 24px 20px; }
    .profile-hero .stat-row     { grid-template-columns: repeat(2, 1fr); }
    .profile-hero .stat-chip    { padding: 10px 12px; }
    .profile-hero .stat-chip-value { font-size: 16px; }
    .stat-row-cards             { grid-template-columns: 1fr; }
    .stat-row-cards .stat-chip  { padding: 10px 12px; }
    .stat-row-cards .stat-chip-value { font-size: 16px; }
    .field-label                { min-width: 110px; font-size: 11px; }
}

/* ── Hero action button ── */
.btn-brand {
    background: #006c57;
    border-color: #006c57;
    color: #fff;
}
.btn-brand:hover {
    background: #044639;
    border-color: #044639;
    color: #fff;
}
/* (.btn-rounded is already defined in style.css — reused, not redefined) */

/* Card/section action button (ported from static .card-action-btn) —
   used for the hero Edit action and card-section toolbars */
.card-action-btn {
    font-size: 12px;
    font-weight: 600;
    color: #006c57;
    background: none;
    border: 1px solid rgba(0, 108, 87, 0.22);
    border-radius: 20px;
    cursor: pointer;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.18s, border-color 0.18s;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    line-height: 1.5;
    text-decoration: none;
}
.card-action-btn:hover {
    background-color: rgba(0, 108, 87, 0.06);
    border-color: #006c57;
    color: #006c57;
    text-decoration: none;
}

/* ── Inner tables (Change Log / Forms / Redemption tab content) ── */
.inner-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.inner-table thead th {
    background: #fafbfd;
    color: #006c57;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 11px 14px;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    white-space: nowrap;
}
.inner-table thead th:first-child {
    border-left: 1px solid #ebebeb;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}
.inner-table thead th:last-child {
    border-right: 1px solid #ebebeb;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}
.inner-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}
.inner-table tbody tr:last-child td { border-bottom: none; }
.inner-table tbody tr:hover td { background: rgba(0,108,87,0.02); }

/* Row-level action button — used inside inner-table rows */
.tbl-action-btn {
    border: 1px solid #ebebeb;
    background: #fff;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    display: inline-block;
    text-decoration: none;
}
.tbl-action-btn:hover { border-color: #006c57; color: #006c57; text-decoration: none; }
.tbl-action-btn.primary { border-color: #006c57; color: #006c57; }
.tbl-action-btn.primary:hover { background-color: rgba(0, 108, 87, 0.05); }
.tbl-action-btn.danger { color: #d9534f; }
.tbl-action-btn.danger:hover { border-color: #d9534f; color: #d9534f; }

/* Change-log actor chip */
.clog-actor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #006c57;
}
.clog-actor-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,108,87,0.1);
    color: #006c57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Service Package cards (Redemption tab — ported from static .pkg-*) ── */
.pkg-card {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 18px 20px;
    background: #fff;
    transition: border-color 0.2s;
}
.pkg-card:hover { border-color: #9EE0D3; }
.pkg-name { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.pkg-ref  { font-size: 11px; color: #aaa; margin-top: 2px; }
.pkg-bar-bg {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0 6px;
}
.pkg-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #006c57, #9EE0D3);
}
.pkg-session-label {
    font-size: 11px;
    color: #888;
    display: flex;
    justify-content: space-between;
}
.pkg-session-used { font-weight: 700; color: #006c57; }

/* ============================================================
   Dashboard viewport-fit  (home.html: #main-wrapper.dashboard-fit)
   The shell is exactly one viewport tall; the header and footer are
   fixed bands and only the content area scrolls when it overflows —
   so the whole page (and the footer) no longer scrolls off the fold.
   Scoped to the dashboard so every other page keeps normal document
   flow. #main-wrapper is already display:flex (column) in the theme.
   ============================================================ */
#main-wrapper.dashboard-fit {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}
#main-wrapper.dashboard-fit .content-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
#main-wrapper.dashboard-fit .footer {
    flex: 0 0 auto;
}
/* Compact welcome bar — less vertical whitespace above and below the greeting.
   Also trim the dashboard content-body top padding (theme default clears the 80px
   fixed header with a wide 96px gap) down to a 4px breathing space. */
#main-wrapper.dashboard-fit .content-body { padding-top: 84px; }
.welcome-scandi-compact { padding: 2px 4px 8px 4px; margin-bottom: 12px; }

/* ============================================================
   Dashboard 2×2 grid (home.html .dashboard-grid)
   Row 1: quick actions + KPI cards (left) | Inventory Alerts (right)
   Row 2: Today's Appointments (left)      | Beautician Status (right)
   Rows stretch, so each right-rail card is exactly as tall as the left
   block beside it: Inventory Alerts == actions+KPIs, Beautician == Appointments.
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    /* row-gap matches the vertical gap between the left blocks so the right-rail
       cards (stock -> beautician) sit apart by the same amount; column-gap kept
       tight so the cards are wider and sit closer together. */
    gap: 16px 16px;
    align-items: stretch;
}
/* Tighten the Bootstrap gutters between the action/KPI cards (default 30px) so the
   cards are a little wider and the gaps match the rest of the dashboard (16px). */
.dashboard-grid .dg-actions > .row { margin-left: -8px; margin-right: -8px; }
.dashboard-grid .dg-actions > .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.dashboard-grid > .dg-actions    { grid-column: 1; grid-row: 1; }
.dashboard-grid > .dg-stock      { grid-column: 2; grid-row: 1; }
/* Row-2 min-height guarantees at least ~5 beautician rows (row ~71px + header +
   pager + padding) on any screen; both row-2 cards share this height. */
.dashboard-grid > .dg-appts      { grid-column: 1; grid-row: 2; min-height: 500px; }
.dashboard-grid > .dg-beautician { grid-column: 2; grid-row: 2; }

.dashboard-grid .scandi-right-card { margin-bottom: 0; }
/* The last card row inside the actions block sits flush against the cell edge, so the
   only separation to the appointments card below is the grid row-gap (no double gap). */
.dashboard-grid > .dg-actions > .row:last-child > [class*="col-"] { margin-bottom: 0 !important; }

/* Desktop: the LEFT cell of each row (actions+KPIs, then appointments) defines the
   row height. The right-rail card is taken out of flow (absolute, inset:0) so its own
   content never grows the track — it fills the height the left block set and scrolls
   internally. Result: Inventory Alerts == actions+KPIs, Beautician == Appointments. */
@media (min-width: 992px) {
    .dashboard-grid > .dg-stock,
    .dashboard-grid > .dg-beautician { position: relative; }
    .dashboard-grid > .dg-stock > .scandi-right-card,
    .dashboard-grid > .dg-beautician > .scandi-right-card {
        position: absolute;
        inset: 0;
    }
    /* Appointments card (in flow) fills its row-2 cell so it matches the beautician height. */
    .dashboard-grid > .dg-appts > .scandi-right-card { height: 100%; }
}
/* The list flexes to fill the card and scrolls when it overflows (pagination keeps
   the appointments/beautician lists to one page; the stock list scrolls as needed). */
.dashboard-grid .card-body-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

/* Collapse to a single column on tablet/mobile. */
@media (max-width: 991.98px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .dashboard-grid > .dg-actions,
    .dashboard-grid > .dg-stock,
    .dashboard-grid > .dg-appts,
    .dashboard-grid > .dg-beautician { grid-column: 1; grid-row: auto; margin-bottom: 1rem; }
    /* Keep the same ~5-row minimum for the list cards when stacked. */
    .dashboard-grid .stock-card,
    .dashboard-grid .appointments-card,
    .dashboard-grid .beautician-card { min-height: 500px; }
}

/* Shared pager control for the appointments + beautician cards (10 rows/page). */
.dash-pager-slot { margin-top: 6px; }
.dash-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0 2px;
}
.dash-pager-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--primary);
    font-size: 14px; line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
.dash-pager-btn:hover:not([disabled]) { background: #e2ebe5; }
.dash-pager-btn[disabled] { opacity: 0.4; cursor: default; }
.dash-pager-info { font-size: 12px; font-weight: 700; color: #6b6a67; }

/* ---- Customer quick-find (dashboard, fragments/customerQuickFind.html) ---- */
.customer-quick-find { position: relative; }
.customer-quick-find-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--primary); font-size: 18px; pointer-events: none;
}
.customer-quick-find-input {
    width: 100%; min-height: 44px; padding-left: 40px;
    border-radius: 10px; font-family: 'Manrope', sans-serif;
}
.customer-quick-find-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 108, 87, 0.15); }
.customer-quick-find-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1030;
    margin: 4px 0 0; padding: 4px 0; list-style: none;
    max-height: 320px; overflow-y: auto;
    background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.customer-quick-find-list[hidden] { display: none; }
.customer-quick-find-item,
.customer-quick-find-empty {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px;
}
.customer-quick-find-item { cursor: pointer; }
.customer-quick-find-item:hover,
.customer-quick-find-item.active { background: #e2ebe5; }
.customer-quick-find-item .cqf-name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-quick-find-item .cqf-code { color: var(--primary); font-weight: 600; white-space: nowrap; }
.customer-quick-find-item .cqf-phone { color: #6b6a67; white-space: nowrap; }
.customer-quick-find-empty { color: #6b6a67; }

/* ==== Phone layout (<= 767.98px, WS5 5.5 / design D6) ====
   One block, desktop rules untouched. Tap targets >= 44px, footer on one line, logo uncropped,
   filters/pager reflow so the PAGE never scrolls sideways (tables scroll inside their cards). */
@media (max-width: 767.98px) {
    /* Footer: drop the 15.1875rem sidebar indent and keep it to one short line */
    .footer .copyright {
        padding-left: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .footer .copyright p {
        letter-spacing: 0;
    }

    /* Logo: the nav-header collapses to a 3.75rem box; fit the favicon inside it */
    .nav-header .brand-logo {
        overflow: visible;
    }
    .nav-header .brand-logo img {
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }

    /* Header: no date/time, icons and menu toggle are 44px tap targets */
    .header-right li.date-time {
        display: none;
    }
    .header-right > ul {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    .header-right .icons > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    .nav-control {
        min-width: 44px;
        min-height: 44px;
    }

    /* Filters: one column; keep the date-picker addon beside its input */
    .search-form {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .search-form .input-group {
        flex-wrap: nowrap;
    }
    .search-form .input-group > .form-control {
        min-width: 0;
    }

    /* Pager and list info: wrap instead of overflowing (inline nowrap needs !important) */
    .pagination {
        flex-wrap: wrap;
    }
    .bottom {
        float: none;
    }
    .pagination .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    .dataTables_info,
    .dataTables_length label {
        white-space: normal !important;
    }

    /* Tap targets */
    .btn,
    .metismenu a {
        min-height: 44px;
    }
    .btn:not(.btn-block) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
