@font-face {
    font-family: 'LeagueSpartan';
    src: url('LeagueSpartan.ttf') format('truetype');
    font-display: swap;
}


/* ============================================================
   CORE VARIABLES
============================================================ */

:root {

    /* HOPS BRAND */

    --hops-dark: #343140;
    --hops-blue: #343140;
    --hops-pink: #e84f7b;

    --hops-green: #687a47;
    --hops-green-light: #a9bb75;
    --hops-green-dark: #465334;
    --hops-gold: #c7b477;


    /* CORE SURFACES */

    --core-header: rgba(16, 24, 39, 0.86);
    --core-panel: rgba(16, 24, 39, 0.86);
    --core-panel-soft: rgba(16, 24, 39, 0.70);

    --core-glass: rgba(52, 49, 64, 0.60);
    --core-glass-strong: rgba(52, 49, 64, 0.82);

    --core-input: rgba(255, 255, 255, 0.045);
    --core-input-focus: rgba(255, 255, 255, 0.065);

    --core-hover: rgba(255, 255, 255, 0.04);


    /* TEXT */

    --core-text: #f8fafc;
    --core-text-soft: rgba(255, 255, 255, 0.81);
    --core-text-muted: rgba(255, 255, 255, 0.62);
    --core-text-faint: rgba(255, 255, 255, 0.30);

    --hops-text: #e3e4df;
    --hops-muted: #a9aaa6;


    /* BORDERS */

    --core-border: rgba(255, 255, 255, 0.08);
    --core-border-soft: rgba(255, 255, 255, 0.055);

    --hops-border: rgba(255, 255, 255, 0.10);
    --hops-border-soft: rgba(255, 255, 255, 0.06);


    /* DIMENSIONS */

    --core-radius: 14px;
    --core-radius-sm: 9px;


    /* SHADOWS */

    --core-shadow:
        0 14px 36px rgba(0, 0, 0, 0.16);

    --core-shadow-large:
        0 18px 45px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   GLOBAL
============================================================ */

html,
body {
    min-height: 100%;
}


body {
    margin: 0;

    background: #ffffff;

    font-family:
        'LeagueSpartan',
        sans-serif;
}


.bg-hops-blue {
    background-color:
        var(--hops-dark) !important;
}


.bg-hops-pink {
    background-color:
        var(--hops-pink) !important;
}


.text-light-grey {
    color:
        lightgray !important;
}


.text-small {
    font-size: 12px;
}


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


.min-w-0 {
    min-width: 0;
}


.badge {
    line-height: 1.6 !important;
}

.text-secondary {
    color:
        var(--hops-muted) !important;
}

/* ============================================================
   MAIN APPLICATION LAYOUT
============================================================ */

.main {
    min-width: 0;

    background-image:
        var(
            --core-user-background,
            url('/core/uploads/corebg3.jpg')
        );

    background-size:
        cover;

    background-position:
        var(
            --core-user-background-position,
            center
        );

    background-repeat:
        no-repeat;

    background-attachment:
        fixed;
}


.content {
    padding: 30px;
}


.content-header {
    padding:
        10px
        30px
        0;
}


/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
    width: 260px;
    height: 100vh;

    min-height: 0;

    flex-shrink: 0;

    overflow: hidden;
}


.logo img {
    max-width: 180px;
}


.main-nav-scroll {
    flex:
        1
        1
        0;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    flex-wrap:
        nowrap !important;
}


.sidebar .nav {
    flex-wrap: nowrap;
}


.nav-link {
    padding:
        12px
        20px;

    margin:
        3px
        10px;

    border-radius: 8px;

    color:
        var(--hops-text);

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


.nav-link:hover,
.nav-link.active {
    background:
        var(--hops-pink);

    color: #ffffff;
}


/* ============================================================
   TOP BAR
============================================================ */

.topbar {
    height: 60px;

    background:
        rgba(52, 49, 64, 0.70);

    border-bottom:
        1px solid var(--hops-border);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.transparent-hops {
    background:
        var(--core-glass);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


/* ============================================================
   CORE PAGE HEADERS
============================================================ */

.core-page-header,
.tasks-page-header,
.tasks-dashboard-header,
.winequotes-page-header,
.wine-builder-header,
.wine-admin-header,
.wine-tag-header,
.core-home-hero {

    padding:
        1.35rem
        1.5rem;

    background:
        var(--core-header);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


.core-page-kicker,
.tasks-page-kicker,
.tasks-panel-kicker,
.dashboard-panel-kicker,
.winequotes-page-kicker,
.winequotes-card-kicker,
.wine-builder-kicker,
.wine-builder-panel-kicker,
.wine-admin-kicker,
.wine-admin-panel-kicker,
.wine-admin-section-kicker,
.wine-tag-kicker,
.wine-tag-panel-kicker,
.wine-tag-section-kicker,
.core-modal-kicker,
.customer-header-kicker,
.timeline-card-kicker,
.customers-page-kicker,
.customers-card-kicker {

    color:
        var(--core-text-muted);

    font-size:
        0.68rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.10em;

    margin-bottom:
        0.15rem;
}


.core-page-header h1,
.core-page-header h2,
.core-page-header h3,
.tasks-page-header h2,
.tasks-dashboard-header h2,
.winequotes-page-header h2,
.wine-builder-header h2,
.wine-admin-header h2,
.wine-tag-header h2 {

    margin-top: 0;

    color:
        var(--core-text);

    font-weight: 700;
}


.core-page-subtitle,
.tasks-page-subtitle,
.tasks-dashboard-header-subtitle,
.winequotes-page-subtitle,
.wine-builder-subtitle,
.wine-admin-subtitle,
.wine-tag-subtitle,
.customers-page-subtitle {

    color:
        var(--core-text-soft);

    font-size:
        0.88rem;
}


/* ============================================================
   CORE PANELS / CARDS
============================================================ */

.card,
.core-panel,
.tasks-panel,
.tasks-stat-card,
.dashboard-panel,
.dashboard-kpi-card,
.winequotes-card,
.wine-builder-customer-card,
.wine-products-panel,
.wine-list-panel,
.wine-admin-products,
.wine-admin-detail,
.wine-tag-panel,
.customer-header,
.customer-tabs,
.timeline-card,
.customers-page-header,
.customers-card,
.customer-info-card,
.customer-contacts-card {

    color:
        var(--core-text);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);

    overflow: hidden;
}


.card,
.core-panel,
.tasks-panel,
.tasks-stat-card,
.dashboard-panel,
.dashboard-kpi-card,
.winequotes-card,
.wine-builder-customer-card,
.wine-products-panel,
.wine-list-panel,
.wine-admin-products,
.wine-admin-detail,
.wine-tag-panel {

    background:
        var(--core-panel);
}


/* ============================================================
   WINE BUILDER PANELS
============================================================ */

.wine-builder-customer-card,
.wine-products-panel,
.wine-list-panel {

    background:
        var(--core-panel);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);

    overflow:
        hidden;

    color:
        var(--core-text);
}


.wine-builder-customer-body {

    padding:
        1.25rem;
}


.wine-products-body {

    background:
        transparent;
}


/* ============================================================
   ACTIVE QUOTE WINE LISTS
============================================================ */

.wine-category-list {

    margin:
        0;

    padding:
        0;

    background:
        transparent;

    border:
        0;

    border-radius:
        0;

    color:
        var(--core-text);

    overflow:
        visible;
}


/*
|--------------------------------------------------------------------------
| KILL BOOTSTRAP WHITE LIST ITEMS
|--------------------------------------------------------------------------
*/

.wine-category-list .list-group-item {

    background:
        rgba(255, 255, 255, 0.035) !important;

    color:
        var(--core-text) !important;

    border:
        1px solid
        var(--core-border-soft) !important;

    border-radius:
        10px !important;

    margin-bottom:
        0.55rem;

    padding:
        0.85rem
        1rem;

    box-shadow:
        none !important;
}


.wine-category-list .list-group-item:hover {

    background:
        rgba(255, 255, 255, 0.055) !important;

    border-color:
        rgba(255, 255, 255, 0.10) !important;
}


/*
|--------------------------------------------------------------------------
| BOOTSTRAP FIRST/LAST CHILD ROUNDING
|--------------------------------------------------------------------------
*/

.wine-category-list .list-group-item:first-child,
.wine-category-list .list-group-item:last-child {

    border-radius:
        10px !important;
}


/*
|--------------------------------------------------------------------------
| TEXT INSIDE GENERATED WINE ROWS
|--------------------------------------------------------------------------
*/

.wine-category-list .list-group-item,
.wine-category-list .list-group-item label,
.wine-category-list .list-group-item span,
.wine-category-list .list-group-item div {

    color:
        inherit;
}


/*
|--------------------------------------------------------------------------
| INPUTS INSIDE WINE ROWS
|--------------------------------------------------------------------------
*/

.wine-category-list .form-control,
.wine-category-list .form-select {

    background:
        rgba(0, 0, 0, 0.14);

    border-color:
        var(--core-border);

    color:
        var(--core-text);
}


.wine-category-list .form-control:focus,
.wine-category-list .form-select:focus {

    background:
        rgba(0, 0, 0, 0.20);

    border-color:
        rgba(255, 255, 255, 0.16);

    color:
        #ffffff;
}


/*
|--------------------------------------------------------------------------
| PRODUCT CATALOGUE
|--------------------------------------------------------------------------
*/

.wine-product-list .list-group-item {

    background:
        transparent !important;

    color:
        var(--core-text) !important;

    border-color:
        var(--core-border-soft) !important;
}


.wine-product-list .list-group-item:hover {

    background:
        var(--core-hover) !important;
}
.customer-header,
.customer-tabs,
.timeline-card,
.customers-page-header,
.customers-card,
.customer-info-card,
.customer-contacts-card {

    background:
        var(--core-panel);
}


.card-header,
.core-panel-header,
.tasks-panel-header,
.dashboard-panel-header,
.winequotes-card-header,
.wine-builder-panel-header,
.wine-admin-panel-header,
.wine-tag-panel-header {

    padding:
        1rem
        1.15rem;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--core-text);

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.card-body {
    color:
        var(--core-text);
}


.dashboard-panel h5,
.winequotes-card-header h5,
.wine-builder-panel-header h5,
.wine-admin-panel-header h5,
.wine-tag-panel-header h5 {

    color: #ffffff;
}


/* ============================================================
   BUTTONS
============================================================ */

.btn-hops-primary {

    background:
        rgba(52, 49, 64, 0.75);

    color: #ffffff;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.btn-hops-primary:hover,
.btn-hops-primary:focus {

    background:
        var(--hops-pink);

    border-color:
        rgba(217, 119, 145, 0.60);

    color: #ffffff;
}


.btn-hops-pink {

    background:
        var(--hops-pink);

    color: #ffffff;

    border:
        1px solid transparent;
}


.btn-hops-pink:hover,
.btn-hops-pink:focus {

    background:
        var(--hops-dark);

    color:
        var(--hops-pink);
}


.btn-core-primary,
.btn-core-secondary,
.btn-core-tertiary {

    border-radius:
        var(--core-radius-sm);
}


.btn-core-primary {

    background:
        var(--hops-pink);

    border-color:
        var(--hops-pink);

    color: #ffffff;

    font-weight: 600;
}


.btn-core-primary:hover {

    background:
        #d9446f;

    border-color:
        #d9446f;

    color: #ffffff;
}


.btn-core-secondary {

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid
        rgba(255, 255, 255, 0.20);

    color:
        rgba(255, 255, 255, 0.85);
}


.btn-core-secondary:hover {

    background:
        rgba(255, 255, 255, 0.10);

    color: #ffffff;
}


.btn-core-tertiary {

    background:
        rgba(40, 167, 69, 0.15);

    border:
        1px solid
        rgba(40, 167, 69, 0.40);

    color:
        #8bd49d;
}


.btn-core-tertiary:hover {

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(40, 167, 69, 0.70);

    color:
        #8bd49d;
}


.border-hops {
    border-color:
        rgba(169, 187, 117, 0.45) !important;
}


/* ============================================================
   CORE FORMS
============================================================ */

.form-control,
.form-select {

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius-sm);

    color:
        var(--core-text);

    box-shadow: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.form-control::placeholder {

    color:
        var(--core-text-faint);

    opacity: 1;
}


.form-control:focus,
.form-select:focus {

    background:
        var(--core-input-focus);

    border-color:
        rgba(255, 255, 255, 0.16);

    color:
        #ffffff;

    box-shadow: none;
}


.form-select option {

    background:
        #151b26;

    color:
        #ffffff;
}


.form-label {

    color:
        var(--core-text-soft);

    font-size:
        0.8rem;
}


/* ============================================================
   CORE SEARCH INPUTS
============================================================ */

.core-search,
.winequotes-search,
.wine-product-search,
.wine-admin-search,
.wine-admin-food-search,
.wine-tag-search,
.wine-tag-icon-search {

    position:
        relative;
}


.winequotes-search {
    width: 300px;
    max-width: 100%;
}


.winequotes-search i,
.wine-product-search i,
.wine-admin-search i,
.wine-admin-food-search i,
.wine-tag-search i,
.wine-tag-icon-search > i {

    position:
        absolute;

    top:
        50%;

    transform:
        translateY(-50%);

    color:
        var(--core-text-muted);

    pointer-events:
        none;
}


.winequotes-search i,
.wine-admin-food-search i,
.wine-tag-icon-search > i {

    left:
        0.9rem;
}


.wine-product-search i,
.wine-admin-search i,
.wine-tag-search i {

    left:
        1.9rem;
}


.winequotes-search .form-control,
.wine-product-search .form-control,
.wine-admin-search .form-control,
.wine-admin-food-search .form-control,
.wine-tag-search .form-control,
.wine-tag-icon-search .form-control {

    padding-left:
        2.5rem;
}


/* ============================================================
   CORE MODALS
============================================================ */

.modal-content,
.core-modal {

    background:
        var(--core-panel);

    color:
        var(--core-text);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.35);

    overflow:
        hidden;
}


.modal-header,
.core-modal .modal-header {

    padding:
        1.25rem
        1.5rem;

    background:
        var(--core-header);

    border-bottom:
        1px solid
        var(--core-border);
}


.modal-footer,
.core-modal .modal-footer {

    padding:
        1rem
        1.5rem;

    border-top:
        1px solid
        var(--core-border);
}


.core-modal .modal-body {
    padding: 1.5rem;
}


.core-modal .modal-title {

    margin: 0;

    color: #ffffff;

    font-size: 1.3rem;

    font-weight: 700;
}


.core-modal .form-label {

    color:
        var(--core-text-soft);

    font-size:
        0.82rem;

    font-weight: 600;
}


.core-modal .form-text {

    color:
        var(--core-text-muted);

    font-size:
        0.75rem;
}


/* ============================================================
   QUICK ACTIONS
============================================================ */

.quick-actions-title {

    color:
        var(--core-text-muted);

    font-size:
        0.8rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.quick-actions .btn {

    min-height: 42px;

    white-space: nowrap;
}


/* ============================================================
   TASKS / ACTIVITIES PAGE
============================================================ */

#tasksActivitiesApp {

    color:
        rgba(255, 255, 255, 0.88);
}


#tasksActivitiesApp .container-fluid {
    padding: 0;
}


#tasksActivitiesApp h3 {

    color:
        rgba(255, 255, 255, 0.94);

    font-weight: 700;

    letter-spacing:
        -0.02em;
}


#tasksActivitiesApp small {

    color:
        var(--core-text-muted) !important;
}


#tasksActivitiesApp .card {

    background:
        var(--core-panel-soft);

    border-color:
        var(--core-border);
}


#tasksActivitiesApp .card-header {

    color:
        var(--core-text-soft);

    font-size:
        0.78rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


#tasksActivitiesApp .btn-hops-primary {

    border-radius:
        var(--core-radius-sm);

    background:
        rgba(255, 255, 255, 0.075);

    border:
        1px solid
        var(--core-border);

    font-size:
        0.8rem;

    font-weight:
        600;

    padding:
        0.55rem
        0.8rem;
}


#tasksActivitiesApp .btn-hops-primary:hover {

    background:
        rgba(255, 255, 255, 0.12);

    color: #ffffff;
}


#tasksActivitiesApp .card-body hr {

    border-color:
        var(--core-border-soft);

    opacity: 1;
}


#tasksActivitiesApp .badge {

    min-width: 30px;

    padding:
        0.32rem
        0.5rem;

    border-radius: 7px;

    font-size:
        0.7rem;

    font-weight: 700;
}


/* TASK SUMMARY */

#taskSummaryOpen {

    background:
        rgba(116, 192, 252, 0.13) !important;

    color:
        #74c0fc;
}


#taskSummaryToday {

    background:
        rgba(255, 212, 59, 0.13) !important;

    color:
        #ffd43b !important;
}


#taskSummaryOverdue {

    background:
        rgba(255, 135, 135, 0.13) !important;

    color:
        #ff8787;
}


#taskSummaryCompleted {

    background:
        rgba(105, 219, 124, 0.13) !important;

    color:
        #69db7c;
}


#taskList {

    background:
        transparent;
}


#taskList .list-group-item {

    background:
        transparent;

    color:
        var(--core-text-soft);

    border-color:
        var(--core-border-soft);

    padding:
        0.95rem
        1rem;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


#taskList .list-group-item:hover {

    background:
        var(--core-hover);

    transform:
        translateX(2px);
}


#taskList .task-title {

    color:
        rgba(255, 255, 255, 0.92);

    font-weight: 600;

    font-size:
        0.9rem;
}


#taskList .task-meta {

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    margin-top:
        0.2rem;
}


#taskList .priority-low {
    color: #74c0fc;
}


#taskList .priority-normal {
    color: rgba(255, 255, 255, 0.55);
}


#taskList .priority-high {
    color: #ffa94d;
}


#taskList .priority-urgent {
    color: #ff8787;
}


/* ============================================================
   TODAY ACTIVITIES
============================================================ */

#todayActivitiesList {
    background: transparent;
}


#todayActivitiesList .list-group-item {

    background:
        transparent;

    color:
        var(--core-text);

    border-color:
        var(--core-border);

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


#todayActivitiesList .list-group-item:hover {

    background:
        rgba(104, 122, 71, 0.22);

    color: #ffffff;
}


#todayActivitiesCount {

    background:
        var(--hops-pink) !important;

    color:
        #ffffff !important;
}


.task-list-item {

    background:
        var(--core-panel-soft);

    color:
        var(--core-text);

    border-color:
        var(--core-border);
}


/* ============================================================
   ACTIVITY CALENDAR
============================================================ */

#calendarTitle {
    color: #d4dda9;
}


.activity-calendar-table {

    width: 100%;

    table-layout: fixed;

    margin: 0;

    --bs-table-bg:
        transparent;

    --bs-table-color:
        var(--core-text);

    --bs-table-border-color:
        var(--core-border);

    --bs-table-striped-bg:
        rgba(255, 255, 255, 0.02);

    --bs-table-striped-color:
        var(--core-text);

    --bs-table-hover-bg:
        rgba(104, 122, 71, 0.18);

    --bs-table-hover-color:
        #ffffff;

    background:
        transparent;
}


.activity-calendar-table thead th {

    width: 14.2857%;

    padding:
        13px
        8px;

    background:
        var(--core-panel);

    color:
        #cad5a2;

    border-color:
        var(--core-border);

    font-size:
        0.78rem;

    font-weight: 600;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.activity-calendar-table th,
.activity-calendar-table td {

    width:
        14.2857%;

    max-width:
        14.2857%;

    overflow: hidden;

    border-color:
        var(--core-border);
}


.activity-calendar-table td {

    height: 140px;

    padding: 8px;

    vertical-align: top;

    background:
        rgba(16, 24, 39, 0.52);

    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}


.activity-calendar-table td:hover {

    background:
        rgba(104, 122, 71, 0.28);
}


.activity-calendar-table td.calendar-today {

    background:
        rgba(104, 122, 71, 0.30);

    box-shadow:
        inset
        0
        0
        0
        1px
        rgba(199, 217, 137, 0.35);
}


.activity-calendar-table td.calendar-other-month {

    background:
        rgba(16, 24, 39, 0.28);

    color:
        rgba(255, 255, 255, 0.30);
}


.activity-calendar-table .calendar-day-number {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-width: 28px;

    height: 28px;

    margin-bottom: 6px;

    border-radius: 8px;

    color:
        #d8ddce;

    font-size:
        0.8rem;

    font-weight: 600;
}


.activity-calendar-table td.calendar-today .calendar-day-number {

    background:
        var(--hops-green);

    color:
        #ffffff;
}


.activity-calendar-table td.table-primary {

    --bs-table-bg:
        rgba(217, 119, 145, 0.20) !important;

    --bs-table-color:
        #ffffff !important;

    --bs-table-border-color:
        rgba(217, 119, 145, 0.45) !important;

    background:
        rgba(217, 119, 145, 0.20) !important;

    color:
        #ffffff !important;

    box-shadow:
        inset
        0
        0
        0
        2px
        rgba(217, 119, 145, 0.65);
}


.activity-calendar-table td.table-primary .badge.bg-primary {

    background:
        var(--hops-pink) !important;

    color:
        #ffffff !important;
}


.activity-calendar-item {

    display: block;

    width: 100%;

    min-width: 0;

    margin-bottom: 5px;

    padding:
        6px
        8px;

    overflow: hidden;

    background:
        rgba(104, 122, 71, 0.8);

    border-left:
        3px solid
        var(--hops-green-light);

    border-radius: 6px;

    color:
        #f3f4ed;

    cursor: pointer;
}


.activity-calendar-item:hover {

    background:
        rgba(121, 143, 80, 0.78);

    transform:
        translateX(2px);
}


.activity-calendar-item .fw-semibold,
.activity-calendar-item .small {

    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow:
        ellipsis;
}


/* ============================================================
   TASKS ISSUES / COMPLAINTS
============================================================ */

.tasks-issues-page {

    color:
        var(--core-text);
}


.tasks-stat-card {

    padding: 1rem;
}


.tasks-stat-label {

    margin-bottom:
        0.4rem;

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    font-weight: 600;
}


.tasks-stat-value {

    color:
        var(--core-text);

    font-size:
        1.9rem;

    font-weight: 700;

    line-height: 1;
}


.tasks-stat-danger {
    color: #ff8787;
}


.tasks-stat-warning {
    color: #ffd43b;
}


.tasks-stat-success {
    color: #69db7c;
}


.tasks-panel-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;
}


.tasks-panel-title {

    margin:
        0.15rem
        0
        0;

    color:
        var(--core-text);

    font-size:
        1rem;

    font-weight: 700;
}


.tasks-panel-body {
    padding: 1rem;
}


.tasks-issues-table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        #dce3eb;

    --bs-table-border-color:
        var(--core-border-soft);

    margin: 0;
}


.tasks-issues-table thead th {

    background:
        rgba(255, 255, 255, 0.025);

    color:
        #aeb7c4;

    padding:
        0.8rem
        0.9rem;

    font-size:
        0.69rem;

    font-weight: 700;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.tasks-issues-table tbody td {

    padding:
        0.8rem
        0.9rem;

    background:
        transparent;

    color:
        #dce3eb;

    border-color:
        var(--core-border-soft);
}


.tasks-issues-table tbody tr:hover td {

    background:
        var(--core-hover);
}


/* ============================================================
   TASKS DASHBOARD
============================================================ */

.tasks-dashboard-page {

    color:
        var(--core-text);
}


.tasks-dashboard-header-icon {

    width: 50px;
    height: 50px;

    flex:
        0
        0
        50px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size:
        1.15rem;
}


.tasks-dashboard-date {

    min-height: 40px;

    display:
        flex;

    align-items:
        center;

    padding:
        0.45rem
        0.85rem;

    background:
        rgba(0, 0, 0, 0.12);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 7px;

    color:
        rgba(255, 255, 255, 0.75);

    font-size:
        0.82rem;

    white-space:
        nowrap;
}


.tasks-dashboard-action {

    min-height: 40px;

    padding:
        0.45rem
        0.9rem;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.20);

    color:
        #ffffff;

    font-weight: 500;
}


.tasks-dashboard-action:hover {

    background:
        rgba(255, 255, 255, 0.18);

    color:
        #ffffff;
}


.tasks-dashboard-action:first-of-type {

    background:
        var(--hops-pink);

    border-color:
        var(--hops-pink);
}


.dashboard-kpi-card .card-body {

    padding:
        1.15rem
        1.25rem;
}


.dashboard-kpi-icon {

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    width: 46px;
    height: 46px;

    flex:
        0
        0
        46px;

    border-radius: 12px;

    background:
        rgba(232, 79, 123, 0.14);

    color:
        var(--hops-pink);

    font-size:
        1.05rem;
}


.dashboard-kpi-icon-danger {

    background:
        rgba(220, 53, 69, 0.14);

    color:
        #dc3545;
}


.dashboard-kpi-icon-success {

    background:
        rgba(25, 135, 84, 0.14);

    color:
        #42c98a;
}


.dashboard-kpi-icon-warning {

    background:
        rgba(255, 193, 7, 0.14);

    color:
        #ffc107;
}


.dashboard-kpi-label {

    color:
        var(--core-text-muted);

    font-size:
        0.78rem;
}


.dashboard-kpi-value {

    color:
        #ffffff;

    font-size:
        1.8rem;

    font-weight:
        700;
}


.dashboard-list {

    --bs-list-group-bg:
        transparent;

    --bs-list-group-color:
        #ffffff;

    --bs-list-group-border-color:
        var(--core-border-soft);
}


.dashboard-list-item {

    background:
        transparent !important;

    color:
        #ffffff !important;

    border-color:
        var(--core-border-soft) !important;

    padding:
        0.95rem
        1.15rem;
}


.dashboard-list-item:hover {

    background:
        var(--core-hover) !important;
}


.dashboard-item-title {

    color:
        #ffffff;

    font-weight: 600;
}


.dashboard-item-meta,
.dashboard-issue-ref {

    color:
        var(--core-text-muted);

    font-size:
        0.78rem;
}


.dashboard-empty {

    color:
        var(--core-text-muted);

    text-align:
        center;

    padding:
        2rem
        1rem;

    font-size:
        0.85rem;
}


.dashboard-week {
    padding: 0;
}


.dashboard-week-row {

    display: flex;

    min-height: 64px;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.dashboard-week-date {

    width: 76px;

    flex:
        0
        0
        76px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        0.45rem;

    border-right:
        1px solid
        var(--core-border-soft);
}


.dashboard-week-day {

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    text-transform:
        uppercase;
}


.dashboard-week-number {

    color:
        #ffffff;

    font-size:
        1.2rem;

    font-weight:
        700;
}


.dashboard-week-content {

    flex: 1;

    display: flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        0.55rem
        1rem;

    padding:
        0.75rem
        1rem;
}


.dashboard-week-line {

    color:
        var(--core-text-soft);

    font-size:
        0.8rem;
}


.dashboard-week-line i {

    color:
        var(--hops-pink);
}


.dashboard-week-clear {

    color:
        var(--core-text-faint);

    font-size:
        0.8rem;
}


/* ============================================================
   OOS
============================================================ */

.oos-product-results {

    position:
        absolute;

    top:
        calc(100% + 4px);

    left: 0;
    right: 0;

    z-index: 1060;

    max-height:
        320px;

    overflow-y:
        auto;

    background:
        rgba(16, 24, 39, 0.98);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius-sm);

    box-shadow:
        var(--core-shadow);
}


.oos-product-result {

    padding:
        10px
        12px;

    cursor:
        pointer;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.oos-product-result:hover {

    background:
        var(--core-hover);
}


.oos-product-code,
.oos-product-stock {

    font-size:
        0.75rem;

    opacity:
        0.65;
}


.tasks-oos-table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        #f1f1f1;

    --bs-table-border-color:
        var(--core-border);

    --bs-table-hover-bg:
        var(--core-hover);

    --bs-table-hover-color:
        #ffffff;

    background:
        transparent;
}


.tasks-oos-table > :not(caption) > * > * {

    background:
        transparent;

    color:
        inherit;

    border-color:
        var(--core-border);
}


.tasks-oos-table thead th {

    background:
        rgba(255, 255, 255, 0.025);

    color:
        #ffffff;
}


/* ============================================================
   DOCUMENT DROPZONE
============================================================ */

.document-dropzone {

    display: flex;

    align-items:
        center;

    gap: 1rem;

    padding: 1rem;

    background:
        var(--core-input);

    border:
        1px dashed
        rgba(255, 255, 255, 0.18);

    border-radius:
        12px;
}


.document-dropzone:hover {

    background:
        var(--core-input-focus);

    border-color:
        rgba(232, 79, 123, 0.55);
}


.document-dropzone-icon {

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    width: 44px;
    height: 44px;

    flex:
        0
        0
        44px;

    border-radius: 10px;

    background:
        rgba(232, 79, 123, 0.14);

    color:
        var(--hops-pink);

    font-size:
        1.1rem;
}


.document-dropzone-content {

    flex: 1;

    min-width: 0;
}


.document-dropzone-title {

    font-weight: 600;

    margin-bottom:
        0.15rem;
}


.document-dropzone-filename {

    color:
        var(--core-text-muted);

    font-size:
        0.78rem;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


/* ============================================================
   CORE HOME
============================================================ */

.core-home {

    min-height: 100%;

    display: flex;

    flex-direction:
        column;

    justify-content:
        center;

    padding-left:
        3rem !important;

    padding-right:
        3rem !important;
}


.core-home-hero {

    width: 100%;

    padding: 3rem;
}


.core-home-content {

    display: flex;

    align-items:
        center;

    gap: 1.5rem;
}


.core-home-mark {

    width: 72px;
    height: 72px;

    flex:
        0
        0
        72px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        16px;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    color:
        #ffffff;

    font-size:
        1.7rem;

    padding: 10px;
}


.core-home-eyebrow {

    color:
        var(--core-text-muted);

    font-size:
        0.75rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.16em;
}


.core-home-title {

    margin: 0;

    color:
        #ffffff;

    font-size:
        3.2rem;

    font-weight:
        700;

    line-height: 1;
}


.core-home-subtitle {

    margin-top:
        0.45rem;

    color:
        var(--core-text-soft);

    font-size:
        1rem;
}


.core-home-message {

    margin-top:
        2rem;

    padding-top:
        1.25rem;

    border-top:
        1px solid
        var(--core-border);

    color:
        var(--core-text-soft);

    font-size:
        0.9rem;
}


.core-home-message i {

    color:
        var(--hops-pink);
}


.core-home-footer {

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        0.8rem;

    margin-top:
        1.5rem;

    color:
        var(--core-text-faint);

    font-size:
        0.75rem;
}


.core-home-dot {

    width: 3px;
    height: 3px;

    border-radius:
        50%;

    background:
        var(--hops-pink);
}


/* ============================================================
   CUSTOMERS
============================================================ */

.customer-header {

    padding:
        1.5rem;
}


.customer-name,
.customers-page-title,
.customers-card-title {

    color:
        #ffffff;

    font-weight:
        700;
}


.customer-meta {

    color:
        var(--core-text-muted);
}


.customer-tabs {

    display: flex;

    flex-wrap:
        wrap;

    gap:
        0.4rem;

    padding:
        0.5rem;
}


.customer-tab {

    border: 0;

    background:
        transparent;

    color:
        var(--core-text-muted);

    padding:
        0.7rem
        1rem;

    border-radius:
        var(--core-radius-sm);
}


.customer-tab:hover {

    background:
        var(--core-hover);

    color:
        #ffffff;
}


.customer-tab.active {

    background:
        rgba(232, 79, 123, 0.15);

    color:
        var(--hops-pink);
}


.customers-page-header {

    padding:
        1.5rem;
}


.customers-card-body {

    padding:
        1.25rem;
}


.customers-card-header {

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap: 1rem;

    padding:
        1.25rem
        1.35rem;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customers-card-title {

    margin: 0;

    font-size:
        1.15rem;
}


.customers-count {

    color:
        var(--core-text-muted);

    font-size:
        0.85rem;
}


.customers-table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        rgba(255, 255, 255, 0.82);

    --bs-table-border-color:
        var(--core-border-soft);

    --bs-table-hover-bg:
        var(--core-hover);

    --bs-table-hover-color:
        #ffffff;

    margin: 0;
}


.customers-table > :not(caption) > * > * {

    background:
        transparent;

    color:
        inherit;

    border-color:
        var(--core-border-soft);
}


.customers-table thead th {

    background:
        rgba(255, 255, 255, 0.025) !important;

    color:
        var(--core-text-muted);

    font-size:
        0.75rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;

    padding:
        0.9rem
        1rem;
}


.customers-table tbody td {

    padding:
        0.9rem
        1rem;
}


.customer-list-name {

    color:
        #ffffff;

    font-weight: 600;

    text-decoration:
        none;
}


.customer-list-name:hover {

    color:
        var(--hops-pink);
}


.customer-status-active {

    background:
        rgba(40, 167, 69, 0.15);

    color:
        #8bd49d;

    border:
        1px solid
        rgba(40, 167, 69, 0.20);
}


.customer-status-inactive {

    background:
        rgba(255, 255, 255, 0.07);

    color:
        var(--core-text-muted);

    border:
        1px solid
        var(--core-border);
}


.customers-pagination {

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        1rem;

    padding:
        1rem
        1.35rem;

    border-top:
        1px solid
        var(--core-border-soft);
}


.customers-pagination-info {

    color:
        var(--core-text-muted);

    font-size:
        0.82rem;
}


/* ============================================================
   CUSTOMER INFO / CONTACTS
============================================================ */

.customer-info-card {

    height: 100%;

    padding:
        1.2rem;
}


.customer-info-label {

    color:
        var(--core-text-muted);

    font-size:
        0.7rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.1em;
}


.customer-info-value {

    color:
        #ffffff;

    font-weight:
        600;
}


.customer-info-meta {

    color:
        var(--core-text-muted);

    font-size:
        0.82rem;
}


.customer-status-pill {

    display:
        inline-block;

    padding:
        0.3rem
        0.55rem;

    border-radius:
        999px;

    font-size:
        0.76rem;

    font-weight:
        600;
}


.customer-group-badge {

    display:
        inline-block;

    padding:
        0.35rem
        0.6rem;

    border-radius:
        8px;

    background:
        rgba(232, 79, 123, 0.14);

    color:
        var(--hops-pink);

    font-size:
        0.82rem;
}


.customer-contacts-header {

    padding:
        1.2rem
        1.3rem;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-contacts-title {

    margin: 0;

    color:
        #ffffff;

    font-size:
        1.1rem;
}


.customer-contacts-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 1rem;

    padding: 1.2rem;
}


.customer-contact-card {

    padding:
        1rem;

    border-radius:
        12px;

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border-soft);
}


.customer-contact-card.is-erp {
    opacity: 0.68;
}


.customer-contact-card.is-core {
    opacity: 1;
}


.customer-contact-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        0.75rem;
}


.customer-contact-type {

    color:
        var(--hops-pink);

    text-transform:
        capitalize;

    font-size:
        0.72rem;

    font-weight:
        600;
}


.customer-contact-name {

    color:
        #ffffff;

    font-weight:
        600;
}


.customer-contact-link {

    display:
        block;

    color:
        var(--core-text-muted);

    font-size:
        0.82rem;

    text-decoration:
        none;

    margin-top:
        0.3rem;
}


.customer-contact-link:hover {

    color:
        var(--hops-pink);
}


.customer-contact-source {

    display:
        inline-block;

    padding:
        0.12rem
        0.35rem;

    border-radius:
        5px;

    background:
        var(--core-hover);

    color:
        var(--core-text-faint);

    font-size:
        0.58rem;
}


/* ============================================================
   CUSTOMER OVERVIEW / GROUPS
============================================================ */

.customer-overview-stat {

    font-size:
        1.35rem;

    font-weight:
        700;

    color:
        rgba(255, 255, 255, 0.92);
}


.customer-overview-section {
    padding: 1rem;
}


.customer-overview-order {

    display: flex;

    width: 100%;

    justify-content:
        space-between;

    align-items:
        center;

    border: 0;

    border-radius:
        10px;

    padding:
        0.85rem;

    background:
        var(--core-hover);

    color:
        inherit;

    text-align:
        left;
}


.customer-overview-order:hover {

    background:
        rgba(255, 255, 255, 0.065);
}


.customer-overview-order-type {

    color:
        var(--core-text-faint);

    font-size:
        0.67rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.customer-overview-order-reference,
.customer-overview-order-value {

    color:
        rgba(255, 255, 255, 0.90);

    font-weight:
        600;
}


.customer-overview-order-date {

    color:
        var(--core-text-faint);

    font-size:
        0.7rem;
}


.customer-group-account {

    display: flex;

    justify-content:
        space-between;

    gap: 1rem;

    padding:
        0.6rem
        0;

    border-bottom:
        1px solid
        var(--core-border-soft);

    color:
        var(--core-text-soft);

    text-decoration:
        none;
}


.customer-group-account:hover {

    color:
        #ffffff;
}


.customer-group-code {

    font-weight:
        700;

    color:
        rgba(255, 255, 255, 0.82);
}


.customer-group-name-input {

    min-width:
        240px;
}


.customer-group-name-input.is-unnamed {

    border-color:
        rgba(255, 255, 255, 0.14);

    background:
        rgba(255, 255, 255, 0.025);
}


.customer-group-unnamed {

    background:
        rgba(255, 255, 255, 0.015);
}


.customer-group-member-count {

    display:
        inline-flex;

    min-width: 34px;

    justify-content:
        center;

    padding:
        0.25rem
        0.5rem;

    border-radius:
        7px;

    background:
        var(--core-input);

    color:
        var(--core-text-soft);

    font-weight:
        600;
}


.customer-group-examples {

    display: flex;

    flex-wrap:
        wrap;

    gap:
        0.3rem;
}


.customer-group-examples span {

    padding:
        0.2rem
        0.4rem;

    border-radius:
        6px;

    background:
        var(--core-hover);

    color:
        var(--core-text-muted);

    font-size:
        0.7rem;
}


/* ============================================================
   CUSTOMER DOCUMENTS
============================================================ */

.customer-documents-list {

    display:
        flex;

    flex-direction:
        column;
}


.customer-document-item {

    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;

    gap:
        0.9rem;

    align-items:
        center;

    padding:
        0.95rem
        1.1rem;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-document-item:hover {

    background:
        var(--core-hover);
}


.customer-document-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        10px;

    background:
        rgba(116, 192, 252, 0.12);

    border:
        1px solid
        var(--core-border);

    color:
        #74c0fc;
}


.customer-document-title {

    color:
        rgba(255, 255, 255, 0.90);

    font-size:
        0.88rem;

    font-weight:
        600;
}


.customer-document-description {

    color:
        rgba(255, 255, 255, 0.65);

    font-size:
        0.88rem;
}


.customer-document-meta {

    display: flex;

    flex-wrap:
        wrap;

    gap:
        0.5rem;

    color:
        var(--core-text-faint);

    font-size:
        0.7rem;
}


/* ============================================================
   CUSTOMER TIMELINE
============================================================ */

.timeline-toolbar,
.timeline-card-header,
.timeline-month-controls {

    display: flex;

    align-items:
        center;
}


.timeline-toolbar,
.timeline-card-header {

    justify-content:
        space-between;
}


.timeline-filter-group {

    display: flex;

    flex-wrap:
        wrap;

    gap:
        0.45rem;
}


.timeline-filter {

    border:
        1px solid
        var(--core-border);

    background:
        var(--core-input);

    color:
        var(--core-text-soft);

    padding:
        0.45rem
        0.75rem;

    border-radius:
        8px;

    font-size:
        0.82rem;
}


.timeline-filter:hover {

    background:
        var(--core-hover);

    color:
        #ffffff;
}


.timeline-filter.active {

    background:
        var(--hops-pink);

    border-color:
        var(--hops-pink);

    color:
        #ffffff;
}


.timeline-card-header {

    gap:
        1rem;

    padding:
        1.25rem
        1.35rem;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.timeline-card-title {

    margin: 0;

    color:
        #ffffff;

    font-size:
        1.15rem;
}


.timeline-month-controls {

    gap:
        0.7rem;
}


.timeline-month-title {

    min-width:
        130px;

    text-align:
        center;

    color:
        #ffffff;

    font-weight:
        600;
}


.timeline-calendar {

    min-height:
        650px;

    padding: 1rem;
}


.timeline-list {

    display:
        flex;

    flex-direction:
        column;
}


.timeline-list-item {

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;

    gap:
        0.85rem;

    align-items:
        center;

    padding:
        0.9rem
        1rem;

    border-bottom:
        1px solid
        var(--core-border-soft);

    background:
        transparent;

    cursor:
        pointer;
}


.timeline-list-item:hover {

    background:
        var(--core-hover);

    transform:
        translateX(2px);
}


.timeline-list-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        10px;

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border-soft);

    color:
        var(--core-text-soft);
}


.timeline-list-title {

    color:
        rgba(255, 255, 255, 0.92);

    font-size:
        0.88rem;

    font-weight:
        600;

    overflow:
        hidden;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;
}


.timeline-list-description {

    color:
        var(--core-text-muted);

    font-size:
        0.76rem;

    display:
        -webkit-box;

    -webkit-line-clamp:
        2;

    -webkit-box-orient:
        vertical;

    overflow:
        hidden;
}


.timeline-list-meta {

    display: flex;

    flex-wrap:
        wrap;

    gap:
        0.4rem;

    color:
        var(--core-text-faint);

    font-size:
        0.68rem;
}


.timeline-list-meta span {

    padding:
        0.12rem
        0.35rem;

    border-radius:
        5px;

    background:
        var(--core-hover);
}


.timeline-list-date {

    min-width:
        72px;

    text-align:
        right;

    color:
        var(--core-text-muted);

    font-size:
        0.7rem;
}


.timeline-empty {

    padding:
        2rem;

    text-align:
        center;

    color:
        var(--core-text-muted);

    font-size:
        0.82rem;
}


/* TIMELINE TYPE COLOURS */

.timeline-type-order {
    --timeline-accent: #74c0fc;
    --timeline-bg: rgba(116, 192, 252, 0.12);
    --timeline-border: rgba(116, 192, 252, 0.20);
}


.timeline-type-invoice {
    --timeline-accent: #66d9e8;
    --timeline-bg: rgba(102, 217, 232, 0.12);
    --timeline-border: rgba(102, 217, 232, 0.20);
}


.timeline-type-credit {
    --timeline-accent: #ffa94d;
    --timeline-bg: rgba(255, 169, 77, 0.12);
    --timeline-border: rgba(255, 169, 77, 0.20);
}


.timeline-type-task {
    --timeline-accent: #b197fc;
    --timeline-bg: rgba(177, 151, 252, 0.12);
    --timeline-border: rgba(177, 151, 252, 0.20);
}


.timeline-type-activity {
    --timeline-accent: #69db7c;
    --timeline-bg: rgba(105, 219, 124, 0.12);
    --timeline-border: rgba(105, 219, 124, 0.20);
}


.timeline-type-complaint {
    --timeline-accent: #ff8787;
    --timeline-bg: rgba(255, 135, 135, 0.12);
    --timeline-border: rgba(255, 135, 135, 0.20);
}


.timeline-type-document {
    --timeline-accent: #ced4da;
    --timeline-bg: rgba(206, 212, 218, 0.10);
    --timeline-border: rgba(206, 212, 218, 0.18);
}


.timeline-type-quote {
    --timeline-accent: #ffd43b;
    --timeline-bg: rgba(255, 212, 59, 0.11);
    --timeline-border: rgba(255, 212, 59, 0.20);
}


.timeline-list-icon[class*="timeline-type-"] {

    color:
        var(--timeline-accent);

    background:
        var(--timeline-bg);

    border-color:
        var(--timeline-border);
}


.timeline-calendar-table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        var(--core-text-soft);

    margin: 0;
}


.timeline-calendar-table > :not(caption) > * > * {

    background:
        transparent;

    border-color:
        var(--core-border-soft);
}


.timeline-calendar-table thead th {

    color:
        var(--core-text-muted);

    font-size:
        0.7rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.timeline-calendar-day {

    height: 110px;

    padding:
        0.55rem;

    vertical-align:
        top;
}


.timeline-calendar-day.outside-month {

    opacity:
        0.28;
}


.timeline-day-number {

    color:
        var(--core-text-soft);

    font-size:
        0.75rem;

    font-weight:
        600;
}


.timeline-calendar-item {

    display: flex;

    width: 100%;

    align-items:
        center;

    gap:
        0.35rem;

    color:
        var(--timeline-accent);

    background:
        var(--timeline-bg);

    border:
        1px solid
        var(--timeline-border);

    border-radius:
        6px;

    padding:
        0.3rem
        0.4rem;

    margin-bottom:
        0.25rem;

    font-size:
        0.7rem;
}

/* ============================================================
   WINE QUOTE DASHBOARD - RECENT QUOTES
============================================================ */

.dashboard-quotes-panel {
    overflow: hidden;
}


.dashboard-quotes-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--core-text-soft);
    --bs-table-border-color: var(--core-border-soft);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.035);
    --bs-table-hover-color: #ffffff;
}


.dashboard-quotes-table thead th {
    padding: 0.8rem 1rem;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        rgba(255, 255, 255, 0.48);

    border-bottom:
        1px solid var(--core-border);

    font-size:
        0.7rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;

    white-space:
        nowrap;
}


.dashboard-quotes-table tbody td {
    padding: 0.9rem 1rem;

    border-color:
        var(--core-border-soft);

    color:
        rgba(255, 255, 255, 0.78);
}


.dashboard-quotes-table tbody tr {
    transition:
        background 0.15s ease;
}


.dashboard-quotes-table tbody tr:hover > * {
    background:
        rgba(255, 255, 255, 0.035) !important;
}


.dashboard-quotes-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   WINE QUOTE DASHBOARD - QUICK ACTIONS
============================================================ */

.dashboard-quick-actions {
    padding: 0.65rem;
}


.dashboard-quick-action {
    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 0.8rem;

    padding:
        0.85rem
        0.8rem;

    border-radius:
        10px;

    color:
        inherit;

    text-decoration:
        none;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.dashboard-quick-action:hover {
    background:
        rgba(255, 255, 255, 0.045);

    transform:
        translateX(2px);

    color:
        #ffffff;
}


.dashboard-quick-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius:
        11px;

    background:
        rgba(232, 79, 123, 0.12);

    border:
        1px solid rgba(232, 79, 123, 0.16);

    color:
        var(--hops-pink);

    font-size:
        1rem;
}


.dashboard-quick-content {
    min-width: 0;
}


.dashboard-quick-title {
    color:
        rgba(255, 255, 255, 0.92);

    font-size:
        0.88rem;

    font-weight:
        700;
}


.dashboard-quick-text {
    margin-top:
        0.15rem;

    color:
        rgba(255, 255, 255, 0.42);

    font-size:
        0.72rem;

    line-height:
        1.3;
}


.dashboard-quick-chevron {
    color:
        rgba(255, 255, 255, 0.25);

    font-size:
        0.75rem;
}


.dashboard-quick-action:hover .dashboard-quick-chevron {
    color:
        var(--hops-pink);
}
/* ============================================================
   SAVED WINE QUOTES
============================================================ */

.winequotes-list-page {

    color:
        #ffffff;
}


.winequotes-card {

    overflow:
        hidden;
}


.winequotes-table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        #ffffff;

    --bs-table-border-color:
        var(--core-border-soft);
}


.winequotes-table thead th {

    padding:
        0.85rem
        1rem;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.05em;

    white-space:
        nowrap;
}


.winequotes-table tbody td {

    padding:
        0.9rem
        1rem;

    border-color:
        var(--core-border-soft);
}


.winequotes-table tbody tr:hover {

    background:
        var(--core-hover);
}


.winequotes-pagination {

    color:
        var(--core-text-muted);
}


.winequotes-pagination .pagination {

    margin-bottom: 0;
}


.winequotes-pagination .page-link {

    background:
        var(--core-panel);

    border-color:
        var(--core-border);

    color:
        var(--core-text-soft);
}


.winequotes-pagination .page-link:hover {

    background:
        var(--core-hover);

    color:
        #ffffff;
}


.winequotes-pagination .page-item.active .page-link {

    background:
        var(--hops-pink);

    border-color:
        var(--hops-pink);

    color:
        #ffffff;
}


/* ============================================================
   WINE BUILDER
============================================================ */

.wine-builder-page {

    color:
        #ffffff;
}


.wine-builder-header-action,
.wine-builder-header-danger {

    min-height: 40px;

    padding:
        0.45rem
        0.9rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    color:
        #ffffff;
}


.wine-builder-header-action {

    background:
        rgba(255, 255, 255, 0.10);
}


.wine-builder-header-action:hover {

    background:
        rgba(255, 255, 255, 0.18);

    color:
        #ffffff;
}


.wine-builder-header-danger {

    background:
        rgba(220, 53, 69, 0.16);
}


.wine-builder-header-danger:hover {

    background:
        rgba(220, 53, 69, 0.28);

    color:
        #ffffff;
}


.wine-builder-customer-select {

    max-width:
        600px;
}


.wine-builder-empty,
.wine-admin-empty {

    min-height:
        300px;

    display: flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    padding:
        3rem;

    color:
        var(--core-text-muted);
}


.wine-builder-empty-icon,
.wine-admin-empty-icon {

    width: 72px;
    height: 72px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        1.25rem;

    border-radius:
        18px;

    background:
        rgba(232, 79, 123, 0.12);

    color:
        var(--hops-pink);

    font-size:
        1.7rem;
}


.wine-builder-empty h4,
.wine-admin-empty h4 {

    color:
        #ffffff;
}


.wine-product-search,
.wine-admin-search,
.wine-tag-search {

    padding:
        1rem;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.wine-product-list,
.wine-admin-product-list,
.wine-tag-list {

    overflow-y:
        auto;

    --bs-list-group-bg:
        transparent;

    --bs-list-group-color:
        #ffffff;

    --bs-list-group-border-color:
        var(--core-border-soft);
}


.wine-product-list {

    max-height:
        calc(100vh - 330px);
}


.wine-admin-product-list {

    max-height:
        calc(100vh - 290px);
}


.wine-tag-list {

    max-height:
        calc(100vh - 310px);
}


.wine-product-list .list-group-item,
.wine-admin-product-list .list-group-item,
.wine-tag-list .list-group-item {

    background:
        transparent;

    color:
        #ffffff;

    border-color:
        var(--core-border-soft);
}


.wine-product-list .list-group-item:hover,
.wine-admin-product-list .list-group-item:hover,
.wine-tag-list .list-group-item:hover {

    background:
        var(--core-hover);
}


.wine-admin-product-list .list-group-item.active,
.wine-tag-list .list-group-item.active {

    background:
        rgba(232, 79, 123, 0.13);

    border-color:
        rgba(232, 79, 123, 0.25);

    color:
        #ffffff;
}


.wine-list-body {

    padding:
        1.25rem;
}


.wine-builder-list-actions {

    display: flex;

    gap:
        0.5rem;
}


.wine-category {

    margin-bottom:
        2rem;
}


.wine-category-heading {

    display: flex;

    align-items:
        center;

    gap:
        0.65rem;

    margin-bottom:
        0.85rem;

    padding-bottom:
        0.65rem;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.wine-category-heading h5 {

    color:
        #ffffff;

    font-size:
        1rem;
}


.wine-category-dot {

    width: 9px;
    height: 9px;

    border-radius:
        50%;
}


.wine-category-red {
    background: #8f2b3e;
}


.wine-category-white {
    background: #e8ddad;
}


.wine-category-rose {
    background: #df8797;
}


.wine-category-sparkling {
    background: #d8ba63;
}


.wine-category-other {
    background: #7b8794;
}


/* ============================================================
   WINE ADMIN
============================================================ */

.wine-admin-page {

    color:
        #ffffff;
}


.wine-admin-save-status {

    color:
        var(--core-text-muted);

    font-size:
        0.8rem;
}


.wine-admin-empty {

    min-height:
        440px;

    background:
        var(--core-panel-soft);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);
}


.wine-admin-product-header {

    padding:
        1.4rem;

    background:
        rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid
        var(--core-border);
}


.wine-admin-product-header h3 {

    color:
        #ffffff;
}


.wine-admin-muted {

    color:
        var(--core-text-muted);

    font-size:
        0.8rem;
}


.wine-admin-image-holder {

    width: 160px;
    height: 150px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0
        0
        160px;

    padding:
        0.75rem;

    background:
        rgb(255, 255, 255, 0.45);

    border:
        1px solid
        var(--core-border);

    border-radius:
        10px;
}


.wine-admin-image-holder img {

    max-width:
        100%;

    max-height:
        100%;

    object-fit:
        contain;
}


.wine-admin-body {

    padding:
        1.4rem;
}


.wine-admin-section,
.wine-tag-section {

    padding-bottom:
        2rem;

    margin-bottom:
        2rem;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.wine-admin-section:last-child {

    border-bottom: 0;

    margin-bottom: 0;
}


.wine-admin-section-heading,
.wine-tag-section-heading {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        1rem;

    margin-bottom:
        1.25rem;
}


.wine-admin-section-heading h5,
.wine-tag-section-heading h5 {

    margin: 0;

    color:
        #ffffff;
}


.wine-admin-readonly-badge {

    padding:
        0.3rem
        0.55rem;

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border);

    border-radius:
        20px;

    color:
        var(--core-text-muted);

    font-size:
        0.68rem;

    text-transform:
        uppercase;
}


.wine-admin-readonly,
.wine-tag-readonly {

    background:
        rgba(255, 255, 255, 0.025) !important;

    color:
        var(--core-text-muted) !important;
}


.wine-admin-dietary {

    display: flex;

    flex-wrap:
        wrap;

    gap:
        0.75rem;
}


.wine-admin-check {

    display: flex;

    align-items:
        center;

    gap:
        0.55rem;

    padding:
        0.65rem
        0.85rem;

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border);

    border-radius:
        8px;

    color:
        var(--core-text-soft);

    cursor:
        pointer;
}


.wine-admin-check:hover {

    background:
        var(--core-hover);
}


.wine-admin-food-suggestions {

    --bs-list-group-bg:
        var(--core-panel);

    --bs-list-group-color:
        #ffffff;

    --bs-list-group-border-color:
        var(--core-border);
}


.wine-admin-selected-foods {

    display: flex;

    flex-wrap:
        wrap;

    gap:
        0.5rem;
}


/* ============================================================
   WINE TAG MANAGER
============================================================ */

.wine-tag-page {

    color:
        #ffffff;
}


.wine-tag-editor {

    padding:
        1.4rem;
}


.wine-tag-colour-control {

    display: flex;

    align-items:
        center;

    gap:
        0.75rem;

    padding:
        0.65rem
        0.8rem;

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border);

    border-radius:
        8px;
}


.wine-tag-colour-control span {

    color:
        var(--core-text-muted);

    font-size:
        0.78rem;
}


.wine-tag-colour-control .form-control-color {

    width: 42px;
    height: 34px;

    padding: 0;

    border: 0;

    background:
        transparent;
}


.wine-tag-icon-search {

    display: flex;

    align-items:
        center;
}


.wine-tag-icon-search .form-control {

    padding-right:
        4.5rem;
}


.wine-tag-selected-icon {

    position:
        absolute;

    right: 0;

    width: 54px;
    height: 100%;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-left:
        1px solid
        var(--core-border);

    color:
        var(--hops-pink);
}


.wine-tag-icon-results {

    max-height:
        250px;

    overflow-y:
        auto;

    --bs-list-group-bg:
        var(--core-panel);

    --bs-list-group-color:
        #ffffff;

    --bs-list-group-border-color:
        var(--core-border);
}


.wine-tag-preview-section {

    border-bottom: 0;
}


.wine-tag-preview-holder {

    min-height:
        100px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        1.5rem;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px dashed
        var(--core-border);

    border-radius:
        10px;
}


#tagPreview {

    font-size:
        0.9rem;

    border-radius:
        999px;
}


.wine-tag-footer {

    padding-top:
        0.5rem;
}


.wine-tag-save-status {

    color:
        var(--core-text-muted);

    font-size:
        0.8rem;
}


/* ============================================================
   WINEQUOTE LEGACY
============================================================ */

.winecolumn {

    max-height:
        70vh;

    overflow-y:
        auto;
}



/* ============================================================
   CORE LOGIN
============================================================ */

.core-login-page {

    min-height: 100vh;

    margin: 0;

    background-image:
        url('https://hopscrm.co.uk/core/uploads/corebg3.jpg');

    background-size:
        cover;

    background-position:
        center;

    background-repeat:
        no-repeat;

    background-attachment:
        fixed;

    color:
        var(--core-text);
}


.core-login-overlay {

    position:
        fixed;

    inset: 0;

    background:
        rgba(7, 11, 18, 0.48);

    backdrop-filter:
        blur(2px);

    -webkit-backdrop-filter:
        blur(2px);
}


.core-login-shell {

    position:
        relative;

    z-index: 1;

    min-height:
        100vh;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        2rem;
}


/* ============================================================
   LOGIN CARD
============================================================ */

.core-login-card {

    width:
        100%;

    max-width:
        430px;

    padding:
        2.75rem;

    background:
        var(--core-panel);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.35);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);
}


/* ============================================================
   BRAND
============================================================ */

.core-login-brand {

    margin-bottom:
        2rem;

    text-align:
        center;
}


.core-login-logo {

    width:
        190px;

    max-width:
        70%;
}


.core-login-kicker {

    margin-bottom:
        0.2rem;

    color:
        var(--core-text-muted);

    font-size:
        0.68rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.12em;
}


.core-login-title {

    margin:
        0;

    color:
        var(--core-text);

    font-size:
        2rem;

    font-weight:
        700;
}


.core-login-subtitle {

    margin-top:
        0.35rem;

    margin-bottom:
        2rem;

    color:
        var(--core-text-muted);

    font-size:
        0.88rem;
}


/* ============================================================
   LOGIN INPUTS
============================================================ */

.core-login-input {

    position:
        relative;
}


.core-login-input > i {

    position:
        absolute;

    z-index:
        2;

    top:
        50%;

    left:
        1rem;

    transform:
        translateY(-50%);

    color:
        var(--core-text-muted);

    pointer-events:
        none;

    transition:
        color 0.15s ease;
}


.core-login-input .form-control {

    min-height:
        48px;

    padding-left:
        2.8rem;

    background:
        rgba(255, 255, 255, 0.055);
}


.core-login-input:focus-within > i {

    color:
        var(--hops-pink);
}


.core-login-input:focus-within .form-control {

    border-color:
        rgba(232, 79, 123, 0.55);
}


/* ============================================================
   LOGIN OPTIONS
============================================================ */

.core-login-page .form-check-label {

    color:
        var(--core-text-muted);

    font-size:
        0.8rem;
}


.core-login-page .form-check-input {

    background-color:
        var(--core-input);

    border-color:
        rgba(255, 255, 255, 0.20);
}


.core-login-page .form-check-input:checked {

    background-color:
        var(--hops-pink);

    border-color:
        var(--hops-pink);
}


.core-login-page .form-check-input:focus {

    border-color:
        var(--hops-pink);

    box-shadow:
        0 0 0
        0.15rem
        rgba(232, 79, 123, 0.15);
}


.core-login-link {

    color:
        var(--core-text-muted);

    font-size:
        0.8rem;

    text-decoration:
        none;

    transition:
        color 0.15s ease;
}


.core-login-link:hover {

    color:
        var(--hops-pink);
}


/* ============================================================
   LOGIN BUTTON
============================================================ */

.core-login-button {

    min-height:
        48px;

    font-size:
        0.9rem;
}


.core-login-button:hover {

    box-shadow:
        0 8px 24px
        rgba(232, 79, 123, 0.18);
}


/* ============================================================
   LOGIN FOOTER
============================================================ */

.core-login-footer {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        0.65rem;

    margin-top:
        1.75rem;

    color:
        var(--core-text-faint);

    font-size:
        0.7rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.core-login-dot {

    width:
        3px;

    height:
        3px;

    border-radius:
        50%;

    background:
        var(--hops-pink);
}


/* ============================================================
   LOGIN MOBILE
============================================================ */

@media (max-width: 575.98px) {

    .core-login-shell {

        padding:
            1rem;
    }


    .core-login-card {

        padding:
            2rem
            1.5rem;
    }


    .core-login-title {

        font-size:
            1.7rem;
    }


    .core-login-brand {

        margin-bottom:
            1.5rem;
    }


    .core-login-logo {

        width:
            165px;
    }

}

/* ============================================================
   CUSTOMER HEADER ACTIONS
============================================================ */

.customer-header-actions .customer-action-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 0.45rem;

    min-height: 34px;

    white-space: nowrap;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .customer-header-actions {

        width: 100%;
    }


    .customer-header-actions > .d-flex {

        display: grid !important;

        grid-template-columns:
            repeat(5, 1fr);

        gap: 0.4rem !important;

        width: 100%;
    }


    .customer-header-actions .customer-action-btn {

        width: 100%;

        min-width: 0;

        min-height: 42px;

        padding:
            0.5rem;

        font-size: 0.9rem;
    }


    .customer-header-actions .customer-action-btn span {

        display: none;
    }


    .customer-header-actions .customer-action-btn i {

        margin: 0 !important;

        font-size: 0.95rem;
    }

}


/* ============================================================
   TOPBAR BUTTONS
============================================================ */

.topbar-icon-btn,
.topbar-user-btn {

    min-height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    color:
        var(--core-text-soft);

    border-radius:
        var(--core-radius-sm);

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.topbar-icon-btn {

    width: 38px;

    padding: 0;
}


.topbar-user-btn {

    gap: 0.45rem;

    padding:
        0.45rem
        0.75rem;
}


.topbar-icon-btn:hover,
.topbar-user-btn:hover {

    background:
        rgba(255, 255, 255, 0.12);

    border-color:
        rgba(255, 255, 255, 0.16);

    color:
        #ffffff;
}


.topbar-user-btn {

    background:
        rgba(232, 79, 123, 0.12);

    border-color:
        rgba(232, 79, 123, 0.20);

    color:
        var(--hops-pink);
}


.topbar-user-btn:hover {

    background:
        var(--hops-pink);

    border-color:
        var(--hops-pink);

    color:
        #ffffff;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .topbar {

        padding-left:
            0.65rem !important;

        padding-right:
            0.65rem !important;
    }


    .topbar-icon-btn,
    .topbar-user-btn {

        width: 36px;

        min-width: 36px;

        height: 36px;

        min-height: 36px;

        padding: 0;
    }




    #page-title {

        max-width:
            calc(100vw - 150px);

        font-size:
            1rem;
    }

}

/* =========================================================
   PRODUCTS & PURCHASING
   ========================================================= */



.products-purchasing-page {
    color: #e5e7eb;
}

.products-purchasing-module-nav {
    padding: 0.75rem;
    background: rgba(16, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.products-purchasing-dashboard-stat {
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.products-purchasing-dashboard-stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.products-purchasing-stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.15rem;
}

.products-purchasing-depot-card {
    position: relative;
}

/* =========================================================
   PRODUCTS & PURCHASING - SUPPLIER
   ========================================================= */

.products-purchasing-supplier-summary {
    background: rgba(16, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}


.products-purchasing-supplier-stat {
    padding: 1.15rem 1.25rem;
    min-height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}


.products-purchasing-supplier-summary .col-lg-3:last-child
.products-purchasing-supplier-stat {
    border-right: 0;
}


.products-purchasing-supplier-icon,
.products-purchasing-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}


.products-purchasing-supplier-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
}


.products-purchasing-detail-row {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.products-purchasing-detail-row:last-child {
    border-bottom: 0;
}


.products-purchasing-detail-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
}


/* =========================================================
   PRODUCTS & PURCHASING - PRODUCT DETAIL
   ========================================================= */

.products-purchasing-product-summary {
    background: rgba(16, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}

.products-purchasing-product-stat {
    padding: 1.15rem 1.25rem;
    min-height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.products-purchasing-product-summary .col-lg-3:last-child
.products-purchasing-product-stat {
    border-right: 0;
}

.products-purchasing-product-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.1rem;
}

.products-purchasing-product-page .card {
    background: rgba(16, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.products-purchasing-product-page .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.035);
}

.products-purchasing-product-page .table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.products-purchasing-product-page .table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}


/* Product detail - top customers */

#productsPurchasingProductCustomers {
    color: var(--bs-light);
}

#productsPurchasingProductCustomers td {
    color: var(--bs-light);
}

#productsPurchasingProductCustomers .fw-semibold {
    color: var(--bs-light);
}

#productsPurchasingProductCustomers .text-secondary {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Product customer links */

.products-purchasing-customer-row {
    cursor: pointer;
    color:
        var(--hops-text) !important;
}


.products-purchasing-customer-row:hover .fw-semibold {
    text-decoration: underline;
}


@media (max-width: 767.98px) {

    .products-purchasing-product-stat {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.06);
    }

}


/* CALENDAR */

.products-purchasing-calendar {
    padding: 1rem;
}


.products-purchasing-calendar-month {
    min-width: 140px;
    text-align: center;
    font-weight: 600;
}


.products-purchasing-calendar-weekdays,
.products-purchasing-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}


.products-purchasing-calendar-weekdays {
    margin-bottom: 0.4rem;
}


.products-purchasing-calendar-weekdays > div {
    padding: 0.6rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}


.products-purchasing-calendar-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}


.products-purchasing-calendar-day {
    position: relative;
    min-height: 105px;
    padding: 0.7rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background-color 0.15s ease;
}


.products-purchasing-calendar-day:hover {
    background: rgba(255, 255, 255, 0.045);
}


.products-purchasing-calendar-day.is-outside-month {
    opacity: 0.3;
}


.products-purchasing-calendar-day.is-selected {
    background: rgba(255, 255, 255, 0.07);
}


.products-purchasing-calendar-day-number {
    font-weight: 600;
}


.products-purchasing-calendar-input-count {
    display: inline-flex;
    margin-top: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.18);
    color: #75d7a4;
    font-size: 0.72rem;
    font-weight: 700;
}


.products-purchasing-calendar-detail {
    padding: 1rem;
    min-height: 100%;
}


.products-purchasing-calendar-input {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.products-purchasing-calendar-input:last-child {
    border-bottom: 0;
}


@media (max-width: 991.98px) {

    .products-purchasing-supplier-stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

}


@media (max-width: 1199.98px) {

    .products-purchasing-calendar-detail {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

}


@media (max-width: 767.98px) {

    .products-purchasing-calendar {
        overflow-x: auto;
    }


    .products-purchasing-calendar-weekdays,
    .products-purchasing-calendar-grid {
        min-width: 700px;
    }


    .products-purchasing-calendar-day {
        min-height: 90px;
    }

}

/* PAGE HEADER */

.products-purchasing-page .core-page-header {
    background: rgba(16, 24, 39, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}


.products-purchasing-page .core-page-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.2rem;
}


.products-purchasing-page .core-page-subtitle {
    color: rgba(255, 255, 255, 0.65);
}


/* CARDS */

.products-purchasing-page .card {
    background: rgba(16, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px;
    overflow: hidden;
}


.products-purchasing-page .card-body {
    color: #e5e7eb;
}


/* FILTERS */

.products-purchasing-page .form-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}


.products-purchasing-page .form-control,
.products-purchasing-page .form-select,
.products-purchasing-page .input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    color: #f3f4f6;
}


.products-purchasing-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}


.products-purchasing-page .form-control:focus,
.products-purchasing-page .form-select:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}


.products-purchasing-page .form-select option {
    background: #1f2937;
    color: #f9fafb;
}

.products-purchasing-page .form-select:disabled {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.45);
}


/* TABLE */

.products-purchasing-page .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e5e7eb;
    --bs-table-border-color: rgba(255, 255, 255, 0.06);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.045);
    --bs-table-hover-color: #fff;
    margin-bottom: 0;
}


.products-purchasing-page .table thead th {
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    padding: 0.85rem 0.9rem;
}


.products-purchasing-page .table tbody td {
    padding: 0.85rem 0.9rem;
    vertical-align: middle;
}


.products-purchasing-page .table tbody tr {
    transition: background-color 0.15s ease;
}


.products-purchasing-page .products-purchasing-purchasing-row:hover,
.products-purchasing-page .products-purchasing-product-row:hover,
.products-purchasing-page .products-purchasing-supplier-row:hover {
    background: rgba(255, 255, 255, 0.045);
}


/* PRODUCT NAME */

.products-purchasing-page .table .fw-semibold {
    color: #f9fafb;
}


/* RESULT COUNT */

#productsPurchasingPurchasingResultCount,
#productsPurchasingResultCount,
#productsPurchasingSupplierResultCount {
    color: #fff;
}


/* BADGES */

.products-purchasing-page .badge {
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 0.38rem 0.6rem;
}


.products-purchasing-page .text-bg-success {
    background: rgba(25, 135, 84, 0.2) !important;
    color: #75d7a4 !important;
    border: 1px solid rgba(117, 215, 164, 0.16);
}


.products-purchasing-page .text-bg-danger {
    background: rgba(220, 53, 69, 0.18) !important;
    color: #ff9aa5 !important;
    border: 1px solid rgba(255, 154, 165, 0.16);
}


.products-purchasing-page .text-bg-secondary {
    background: rgba(108, 117, 125, 0.22) !important;
    color: #c7cdd4 !important;
    border: 1px solid rgba(199, 205, 212, 0.12);
}


/* RECOMMENDED ORDER COLUMN */

.products-purchasing-page table th:nth-child(7),
.products-purchasing-page table td:nth-child(7) {
    background: rgba(255, 255, 255, 0.025);
}


.products-purchasing-page table td:nth-child(7) .badge {
    min-width: 44px;
}


/* SHORTAGES SWITCH */

.products-purchasing-page .form-check-input {
    cursor: pointer;
}


.products-purchasing-page .form-check-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    cursor: pointer;
}


/* BUTTONS */

.products-purchasing-page .btn-core-tertiary {
    border-radius: 9px;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .products-purchasing-page .core-page-header {
        padding: 1rem;
    }


    .products-purchasing-page .table thead th,
    .products-purchasing-page .table tbody td {
        padding: 0.7rem;
    }


    .products-purchasing-page .table {
        font-size: 0.85rem;
    }


    .products-purchasing-page .badge {
        padding: 0.3rem 0.5rem;
    }

}


/* ============================================================
   CUSTOMER ANALYSIS
============================================================ */

.customer-analysis {
    color:
        var(--core-text);
}


/* KPI GRID */

.customer-analysis-kpis {

    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap:
        0.8rem;
}


.customer-analysis-kpi,
.customer-analysis-panel {

    background:
        var(--core-panel);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);

    overflow:
        hidden;
}


.customer-analysis-kpi {

    padding:
        1rem
        1.05rem;
}


.customer-analysis-kpi-top {

    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        0.75rem;
}


.customer-analysis-kpi-label {

    color:
        var(--core-text-muted);

    font-size:
        0.68rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.05em;
}


.customer-analysis-kpi-value {

    margin-top:
        0.25rem;

    color:
        #ffffff;

    font-size:
        1.55rem;

    font-weight:
        700;
}


.customer-analysis-kpi-icon {

    width: 38px;
    height: 38px;

    flex:
        0
        0
        38px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(232, 79, 123, 0.14);

    color:
        var(--hops-pink);
}


.customer-analysis-change {

    margin-top:
        0.55rem;

    color:
        var(--core-text-faint);

    font-size:
        0.72rem;

    font-weight:
        600;
}


.customer-analysis-change.is-positive,
.customer-analysis-movement-change.is-positive {

    color:
        #69db7c;
}


.customer-analysis-change.is-negative,
.customer-analysis-movement-change.is-negative {

    color:
        #ff8787;
}


/* PANEL */

.customer-analysis-panel-header {

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        1rem;

    padding:
        1rem
        1.15rem;

    background:
        rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-analysis-title {

    margin:
        0.12rem
        0
        0;

    color:
        #ffffff;

    font-size:
        1rem;

    font-weight:
        700;
}


/* CHART */

.customer-analysis-chart {

    min-height:
        280px;

    padding:
        1rem;
}


.customer-analysis-svg {

    display: block;

    width: 100%;

    height:
        260px;
}


.customer-analysis-chart-axis {

    stroke:
        rgba(255, 255, 255, 0.08);

    stroke-width:
        1;
}

.customer-analysis-chart-line {

    fill:
        none;

    stroke-width:
        3;

    stroke-linejoin:
        round;

    stroke-linecap:
        round;
}


/* CURRENT YEAR */

.customer-analysis-chart-line.is-current {

    stroke:
        var(--hops-pink);
}


.customer-analysis-chart-point.is-current {

    fill:
        var(--hops-pink);

    stroke:
        #ffffff;

    stroke-width:
        1.5;
}


/* PREVIOUS YEAR */

.customer-analysis-chart-line.is-prior {

    stroke:
        #74c0fc;

    stroke-width:
        2.5;

    stroke-dasharray:
        7 5;

    opacity:
        0.8;
}


.customer-analysis-chart-point.is-prior {

    fill:
        #74c0fc;

    stroke:
        #ffffff;

    stroke-width:
        1.25;

    opacity:
        0.85;
}


/* MONTH LABELS */

.customer-analysis-chart-label {

    fill:
        rgba(
            255,
            255,
            255,
            0.45
        );

    font-size:
        12px;
}


/* LEGEND */

.customer-analysis-chart-legend {

    display:
        flex;

    justify-content:
        flex-end;

    align-items:
        center;

    gap:
        1rem;

    margin-bottom:
        0.25rem;

    padding:
        0 0.35rem;

    color:
        rgba(
            255,
            255,
            255,
            0.6
        );

    font-size:
        0.72rem;

    font-weight:
        600;
}


.customer-analysis-chart-legend span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        0.4rem;
}


.customer-analysis-legend-line {

    display:
        inline-block;

    width:
        22px;

    height:
        3px;

    border-radius:
        999px;
}


.customer-analysis-legend-line.is-current {

    background:
        var(--hops-pink);
}


.customer-analysis-legend-line.is-prior {

    background:
        repeating-linear-gradient(
            to right,
            #74c0fc 0,
            #74c0fc 6px,
            transparent 6px,
            transparent 10px
        );
}


/* ORDERING */

.customer-analysis-metrics {

    padding:
        0.35rem
        1rem;
}


.customer-analysis-metric {

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        1rem;

    padding:
        0.85rem
        0;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-analysis-metric:last-child {

    border-bottom: 0;
}


.customer-analysis-metric span {

    color:
        var(--core-text-muted);

    font-size:
        0.78rem;
}


.customer-analysis-metric strong {

    color:
        #ffffff;

    font-size:
        0.84rem;
}


/* ALERTS */

.customer-analysis-alerts {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap:
        0.75rem;

    padding:
        1rem;
}


.customer-analysis-alert {

    display: flex;

    align-items:
        flex-start;

    gap:
        0.75rem;

    padding:
        0.85rem;

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border-soft);

    border-radius:
        10px;
}


.customer-analysis-alert-icon {

    width: 32px;
    height: 32px;

    flex:
        0
        0
        32px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        8px;
}


.customer-analysis-alert.is-success
.customer-analysis-alert-icon {

    color:
        #69db7c;

    background:
        rgba(105, 219, 124, 0.10);
}


.customer-analysis-alert.is-warning
.customer-analysis-alert-icon {

    color:
        #ffd43b;

    background:
        rgba(255, 212, 59, 0.10);
}


.customer-analysis-alert.is-danger
.customer-analysis-alert-icon {

    color:
        #ff8787;

    background:
        rgba(255, 135, 135, 0.10);
}


.customer-analysis-alert.is-info
.customer-analysis-alert-icon {

    color:
        #74c0fc;

    background:
        rgba(116, 192, 252, 0.10);
}


.customer-analysis-alert-title {

    color:
        #ffffff;

    font-size:
        0.82rem;

    font-weight:
        600;
}


.customer-analysis-alert-detail {

    margin-top:
        0.15rem;

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    line-height:
        1.35;
}


/* TABLES */

.customer-analysis-table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        var(--core-text-soft);

    --bs-table-border-color:
        var(--core-border-soft);

    margin:
        0;
}


.customer-analysis-table
> :not(caption)
> *
> * {

    background:
        transparent;

    color:
        inherit;

    border-color:
        var(--core-border-soft);
}


.customer-analysis-table thead th {

    padding:
        0.75rem
        1rem;

    color:
        var(--core-text-muted);

    background:
        rgba(255, 255, 255, 0.015);

    font-size:
        0.67rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.05em;
}


.customer-analysis-table tbody td {

    padding:
        0.8rem
        1rem;

    vertical-align:
        middle;
}


.customer-analysis-table tbody tr:hover td {

    background:
        var(--core-hover);
}


.customer-analysis-product-name {

    color:
        rgba(255, 255, 255, 0.90);

    font-size:
        0.8rem;

    font-weight:
        600;
}


.customer-analysis-product-code {

    margin-top:
        0.08rem;

    color:
        var(--core-text-faint);

    font-size:
        0.65rem;
}


/* MOVEMENT */

.customer-analysis-movement {

    padding:
        0.8rem
        1rem
        1rem;
}


.customer-analysis-movement-heading {

    margin:
        0.4rem
        0
        0.45rem;

    font-size:
        0.7rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.customer-analysis-movement-heading.is-growing {

    color:
        #69db7c;
}


.customer-analysis-movement-heading.is-declining {

    margin-top:
        1.2rem;

    color:
        #ff8787;
}


.customer-analysis-movement-row {

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        1rem;

    padding:
        0.6rem
        0;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-analysis-movement-row:last-child {

    border-bottom: 0;
}


.customer-analysis-movement-change {

    margin-top:
        0.1rem;

    font-size:
        0.7rem;

    font-weight:
        700;
}


.customer-analysis-movement-empty {

    color:
        var(--core-text-faint);

    font-size:
        0.75rem;

    padding:
        0.6rem
        0;
}


/* RESPONSIVE */

@media (
    max-width: 1199.98px
) {

    .customer-analysis-kpis {

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


@media (
    max-width: 767.98px
) {

    .customer-analysis-kpis {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .customer-analysis-kpi-value {

        font-size:
            1.25rem;
    }


    .customer-analysis-svg {

        min-width:
            620px;
    }


    .customer-analysis-chart {

        overflow-x:
            auto;
    }

}


/* ============================================================
   CUSTOMER GROUP WORKSPACE
============================================================ */

.customer-group-view {

    color:
        var(--core-text);
}


.customer-group-view-header {

    padding:
        1.5rem;

    background:
        var(--core-header);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


.customer-group-view-title {

    color:
        #ffffff;

    font-weight:
        700;
}


.customer-group-view-meta {

    color:
        var(--core-text-muted);

    font-size:
        0.84rem;
}


.customer-group-name-editor {

    margin-top:
        1rem;

    padding-top:
        1rem;

    border-top:
        1px solid
        var(--core-border-soft);
}


.customer-group-directory-name {

    color:
        #ffffff;

    font-weight:
        600;
}


.customer-group-directory-meta {

    margin-top:
        0.1rem;

    color:
        var(--core-text-faint);

    font-size:
        0.68rem;
}


/* ============================================================
   GROUP PRODUCTS
============================================================ */

.customer-group-products {

    padding:
        0.35rem
        1rem;
}


.customer-group-product-row {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        1rem;

    padding:
        0.75rem
        0;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-group-product-row:last-child {

    border-bottom:
        0;
}


.customer-group-product-row strong {

    color:
        #ffffff;

    font-size:
        0.82rem;
}


/* ============================================================
   PRODUCT PENETRATION
============================================================ */

.customer-group-penetration {

    padding:
        1rem;
}


.customer-group-penetration-row {

    padding:
        0.7rem
        0;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-group-penetration-row:last-child {

    border-bottom:
        0;
}


.customer-group-penetration-heading {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        1rem;
}


.customer-group-penetration-track {

    height:
        7px;

    margin-top:
        0.45rem;

    overflow:
        hidden;

    background:
        rgba(255, 255, 255, 0.055);

    border-radius:
        999px;
}


.customer-group-penetration-bar {

    height:
        100%;

    background:
        var(--hops-pink);

    border-radius:
        inherit;
}


.customer-group-penetration-missing {

    margin-top:
        0.3rem;

    color:
        var(--core-text-faint);

    font-size:
        0.68rem;
}


/* ============================================================
   GROUP TABLE CHANGE COLOURS
============================================================ */

.customer-group-view td.is-positive {

    color:
        #69db7c;
}


.customer-group-view td.is-negative {

    color:
        #ff8787;
}


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

@media (
    max-width: 767.98px
) {

    .customer-group-view-header {

        padding:
            1.1rem;
    }


    .customer-group-name-editor .row {

        align-items:
            stretch !important;
    }


    .customer-group-name-editor .col-auto {

        width:
            100%;
    }


    .customer-group-name-editor .btn {

        width:
            100%;
    }


    .customer-group-tabs {

        overflow-x:
            auto;

        flex-wrap:
            nowrap;
    }


    .customer-group-tabs .customer-tab {

        flex:
            0 0 auto;
    }

}

/* ============================================================
   CUSTOMER ANALYSIS - CATEGORY MIX
============================================================ */

.customer-analysis-category-mix {

    display:
        grid;

    grid-template-columns:
        minmax(220px, 0.85fr)
        minmax(280px, 1.15fr);

    gap:
        1.5rem;

    align-items:
        center;

    padding:
        1.25rem;
}


/* CHART */

.customer-analysis-category-chart {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        280px;
}


.customer-analysis-category-svg {

    width:
        min(100%, 280px);

    height:
        auto;

    overflow:
        visible;
}


.customer-analysis-category-segment {

    transition:
        opacity 0.15s ease,
        stroke-width 0.15s ease;
}


.customer-analysis-category-segment:hover {

    opacity:
        0.82;

    stroke-width:
        30;
}


/* CENTRE LABEL */

.customer-analysis-category-total-label {

    fill:
        var(--core-text-muted);

    font-size:
        10px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


.customer-analysis-category-total-value {

    fill:
        #ffffff;

    font-size:
        15px;

    font-weight:
        700;
}


/* LEGEND */

.customer-analysis-category-legend {

    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;
}


.customer-analysis-category-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        1rem;

    padding:
        0.7rem
        0;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.customer-analysis-category-row:last-child {

    border-bottom:
        0;
}


.customer-analysis-category-name {

    display:
        flex;

    align-items:
        center;

    gap:
        0.55rem;

    min-width:
        0;

    color:
        rgba(255, 255, 255, 0.90);

    font-size:
        0.8rem;

    font-weight:
        600;
}


.customer-analysis-category-dot {

    width:
        10px;

    height:
        10px;

    flex:
        0 0 10px;

    border-radius:
        50%;

    box-shadow:
        0 0 0 3px
        rgba(255, 255, 255, 0.025);
}


.customer-analysis-category-value {

    color:
        #ffffff;

    font-size:
        0.78rem;

    font-weight:
        600;
}


.customer-analysis-category-percent {

    margin-top:
        0.08rem;

    color:
        var(--core-text-faint);

    font-size:
        0.68rem;

    font-weight:
        600;
}


/* ============================================================
   CATEGORY COLOURS
============================================================ */

.customer-analysis-category-segment.category-0 {

    stroke:
        var(--hops-pink);
}

.customer-analysis-category-dot.category-0 {

    background:
        var(--hops-pink);
}


.customer-analysis-category-segment.category-1 {

    stroke:
        #74c0fc;
}

.customer-analysis-category-dot.category-1 {

    background:
        #74c0fc;
}


.customer-analysis-category-segment.category-2 {

    stroke:
        #69db7c;
}

.customer-analysis-category-dot.category-2 {

    background:
        #69db7c;
}


.customer-analysis-category-segment.category-3 {

    stroke:
        #ffd43b;
}

.customer-analysis-category-dot.category-3 {

    background:
        #ffd43b;
}


.customer-analysis-category-segment.category-4 {

    stroke:
        #b197fc;
}

.customer-analysis-category-dot.category-4 {

    background:
        #b197fc;
}


.customer-analysis-category-segment.category-5 {

    stroke:
        #ffa94d;
}

.customer-analysis-category-dot.category-5 {

    background:
        #ffa94d;
}


.customer-analysis-category-segment.category-6 {

    stroke:
        #63e6be;
}

.customer-analysis-category-dot.category-6 {

    background:
        #63e6be;
}


.customer-analysis-category-segment.category-7 {

    stroke:
        #f783ac;
}

.customer-analysis-category-dot.category-7 {

    background:
        #f783ac;
}

/* ============================================================
   USER MANAGEMENT
============================================================ */

.users-page {

    color:
        var(--core-text);
}


.users-name {

    color:
        #ffffff;

    font-size:
        0.88rem;

    font-weight:
        700;
}


.users-email {

    margin-top:
        0.1rem;

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;
}


.users-role {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        0.28rem
        0.55rem;

    background:
        rgba(116, 192, 252, 0.10);

    border:
        1px solid
        rgba(116, 192, 252, 0.16);

    border-radius:
        7px;

    color:
        #74c0fc;

    font-size:
        0.7rem;

    font-weight:
        600;
}


.users-rep-code {

    color:
        var(--core-text-soft);

    font-size:
        0.78rem;

    font-weight:
        600;
}


.users-status {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        0.4rem;

    padding:
        0.28rem
        0.55rem;

    border-radius:
        999px;

    font-size:
        0.7rem;

    font-weight:
        600;
}


.users-status i {

    font-size:
        0.42rem;
}


.users-status.is-active {

    background:
        rgba(105, 219, 124, 0.10);

    border:
        1px solid
        rgba(105, 219, 124, 0.18);

    color:
        #69db7c;
}


.users-status.is-disabled {

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        var(--core-border);

    color:
        var(--core-text-muted);
}


.users-actions {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        0.35rem;
}


.users-disable-btn {

    background:
        rgba(255, 135, 135, 0.10);

    border:
        1px solid
        rgba(255, 135, 135, 0.20);

    color:
        #ff8787;
}


.users-disable-btn:hover {

    background:
        rgba(255, 135, 135, 0.18);

    border-color:
        rgba(255, 135, 135, 0.35);

    color:
        #ff8787;
}


.users-enable-btn {

    background:
        rgba(105, 219, 124, 0.10);

    border:
        1px solid
        rgba(105, 219, 124, 0.20);

    color:
        #69db7c;
}


.users-enable-btn:hover {

    background:
        rgba(105, 219, 124, 0.18);

    color:
        #69db7c;
}


.users-password-user {

    padding:
        0.75rem
        0.85rem;

    background:
        var(--core-input);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius-sm);

    color:
        #ffffff;

    font-weight:
        600;
}


.users-page .input-group-text {

    background:
        var(--core-input);

    border-color:
        var(--core-border);

    color:
        var(--core-text-muted);
}


@media (
    max-width: 767.98px
) {

    .users-table {

        min-width:
            720px;
    }


    .users-actions {

        gap:
            0.25rem;
    }

}

.core-notification-menu {
    width: min(420px, calc(100vw - 24px));

    background:
        rgba(16, 24, 39, 0.98);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        14px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35);

    color:
        #f8f9fa;

    overflow:
        hidden;

    z-index:
        9999;
}


.core-notification-menu .border-bottom,
.core-notification-menu .border-top {
    border-color:
        rgba(255, 255, 255, 0.08)
        !important;
}


.core-notification-list {
    max-height:
        min(420px, 60vh);

    overflow-y:
        auto;
}


.core-notification-item {
    background:
        transparent;

    color:
        #f8f9fa;

    transition:
        background-color 0.15s ease;
}


.core-notification-item + .core-notification-item {
    border-top:
        1px solid rgba(255, 255, 255, 0.05)
        !important;
}


.core-notification-item:hover {
    background:
        rgba(255, 255, 255, 0.06);
}


.core-notification-unread {
    background:
        rgba(13, 110, 253, 0.12);
}


.core-notification-unread:hover {
    background:
        rgba(13, 110, 253, 0.18);
}


.core-notification-icon {
    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, 0.08);

    color:
        #ffffff;

    font-size:
        1rem;
}


.core-notification-message {
    color:
        rgba(255, 255, 255, 0.74);

    line-height:
        1.4;
}


.core-notification-dot {
    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        #0d6efd;

    margin-top:
        6px;
}


.core-notification-menu .btn-link {
    color:
        #9ec5fe;

    text-decoration:
        none;
}


.core-notification-menu .btn-link:hover {
    color:
        #ffffff;
}


#coreNotificationBadge {
    z-index:
        2;

    min-width:
        18px;

    height:
        18px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0 5px;

    font-size:
        0.65rem;
}
/* ============================================================
   RESPONSIVE
============================================================ */

@media (
    max-width: 991.98px
) {

    .customer-analysis-category-mix {

        grid-template-columns:
            1fr;
    }


    .customer-analysis-category-chart {

        min-height:
            240px;
    }


    .customer-analysis-category-svg {

        width:
            min(100%, 240px);
    }

}


@media (
    max-width: 575.98px
) {

    .customer-analysis-category-mix {

        padding:
            1rem;
    }


    .customer-analysis-category-row {

        align-items:
            flex-start;
    }


    .customer-analysis-category-name {

        font-size:
            0.74rem;
    }


    .customer-analysis-category-value {

        font-size:
            0.72rem;
    }

}

/* ============================================================
   SCROLLBARS
============================================================ */

.main-nav-scroll,
.winecolumn,
.wine-product-list,
.wine-admin-product-list,
.wine-tag-list,
.wine-tag-icon-results {

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(169, 187, 117, 0.45)
        transparent;
}


.main-nav-scroll::-webkit-scrollbar,
.winecolumn::-webkit-scrollbar,
.wine-product-list::-webkit-scrollbar,
.wine-admin-product-list::-webkit-scrollbar,
.wine-tag-list::-webkit-scrollbar,
.wine-tag-icon-results::-webkit-scrollbar {

    width: 7px;
}


.main-nav-scroll::-webkit-scrollbar-track,
.winecolumn::-webkit-scrollbar-track,
.wine-product-list::-webkit-scrollbar-track,
.wine-admin-product-list::-webkit-scrollbar-track,
.wine-tag-list::-webkit-scrollbar-track,
.wine-tag-icon-results::-webkit-scrollbar-track {

    background:
        transparent;
}


.main-nav-scroll::-webkit-scrollbar-thumb,
.winecolumn::-webkit-scrollbar-thumb,
.wine-product-list::-webkit-scrollbar-thumb,
.wine-admin-product-list::-webkit-scrollbar-thumb,
.wine-tag-list::-webkit-scrollbar-thumb,
.wine-tag-icon-results::-webkit-scrollbar-thumb {

    background:
        rgba(169, 187, 117, 0.40);

    border-radius:
        10px;
}


/* ============================================================
   CORE BOOTSTRAP OVERRIDES
   KEEP NEAR BOTTOM
============================================================ */

/* PRIMARY */

body .btn-primary {

    background:
        var(--hops-dark);

    border-color:
        var(--hops-dark);

    color:
        #ffffff;
}


body .btn-primary:hover,
body .btn-primary:focus {

    background:
        var(--hops-pink);

    border-color:
        var(--hops-pink);

    color:
        #ffffff;
}


body .bg-primary {

    background-color:
        var(--hops-dark) !important;
}


/* DANGER */

body .btn-danger {

    background:
        #b83b52;

    border-color:
        #b83b52;

    color:
        #ffffff;
}


body .btn-danger:hover,
body .btn-danger:focus {

    background:
        #9f3045;

    border-color:
        #9f3045;

    color:
        #ffffff;
}


body .bg-danger {

    background-color:
        #b83b52 !important;
}


/* SUCCESS */

body .btn-success {

    background:
        #497a62;

    border-color:
        #497a62;

    color:
        #ffffff;
}


body .btn-success:hover,
body .btn-success:focus {

    background:
        #3d6853;

    border-color:
        #3d6853;

    color:
        #ffffff;
}


body .bg-success {

    background-color:
        #497a62 !important;
}


/* WARNING */

body .btn-warning {

    background:
        #b88a3b;

    border-color:
        #b88a3b;

    color:
        #ffffff;
}


body .btn-warning:hover,
body .btn-warning:focus {

    background:
        #9f7733;

    border-color:
        #9f7733;

    color:
        #ffffff;
}


body .bg-warning {

    background-color:
        #b88a3b !important;
}


/* INFO */

body .btn-info {

    background:
        #486f83;

    border-color:
        #486f83;

    color:
        #ffffff;
}


body .bg-info {

    background-color:
        #486f83 !important;
}


/* SECONDARY */

body .btn-secondary {

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.12);

    color:
        #ffffff;
}


body .bg-secondary {

    background-color:
        rgba(255, 255, 255, 0.12) !important;
}


/* LIGHT */

body .bg-light {

    background:
        rgba(255, 255, 255, 0.04) !important;

    color:
        var(--core-text) !important;
}


/* TABLE LIGHT */

body .table-light {

    --bs-table-bg:
        rgba(255, 255, 255, 0.025);

    --bs-table-color:
        var(--core-text-soft);

    --bs-table-border-color:
        var(--core-border-soft);
}


/* LIST GROUP */

body .list-group-item {

    border-color:
        var(--core-border-soft);
}

/* ============================================================
   INSTALLS
============================================================ */

.installs-page {
    color:
        var(--core-text);
}


/* ============================================================
   INSTALLS STATS
============================================================ */

.installs-stat-card {

    height: 100%;

    padding:
        1rem;

    background:
        var(--core-panel);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);
}


.installs-stat-label {

    margin-bottom:
        0.4rem;

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    font-weight:
        600;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.installs-stat-value {

    color:
        var(--core-text);

    font-size:
        1.9rem;

    font-weight:
        700;

    line-height:
        1;
}


.installs-stat-value.is-warning {
    color: #ffd43b;
}


.installs-stat-value.is-danger {
    color: #ff8787;
}


.installs-stat-value.is-success {
    color: #69db7c;
}


/* ============================================================
   INSTALLS PANEL
============================================================ */

.installs-panel {

    background:
        var(--core-panel);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);

    overflow:
        hidden;
}


.installs-panel-header {

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        1rem;

    padding:
        1rem
        1.15rem;

    background:
        rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.installs-panel-title {

    margin: 0;

    color:
        var(--core-text);

    font-size:
        1rem;

    font-weight:
        700;
}


/* ============================================================
   INSTALLS TABLE
============================================================ */

.installs-table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        var(--core-text-soft);

    --bs-table-border-color:
        var(--core-border-soft);

    --bs-table-hover-bg:
        var(--core-hover);

    --bs-table-hover-color:
        #ffffff;

    margin: 0;
}


.installs-table > :not(caption) > * > * {

    background:
        transparent;

    color:
        inherit;

    border-color:
        var(--core-border-soft);
}


.installs-table thead th {

    padding:
        0.8rem
        0.9rem;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--core-text-muted);

    font-size:
        0.69rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;

    white-space:
        nowrap;
}


.installs-table tbody td {

    padding:
        0.85rem
        0.9rem;

    vertical-align:
        middle;
}


.installs-table tbody tr:hover > * {

    background:
        var(--core-hover) !important;
}


/* ============================================================
   INSTALL STATUS
============================================================ */

.install-status {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        0.25rem
        0.55rem;

    border-radius:
        999px;

    border:
        1px solid
        var(--core-border);

    font-size:
        0.7rem;

    font-weight:
        600;
}


.install-status-planned {

    background:
        rgba(116, 192, 252, 0.12);

    color:
        #74c0fc;

    border-color:
        rgba(116, 192, 252, 0.20);
}


.install-status-ordered {

    background:
        rgba(255, 212, 59, 0.12);

    color:
        #ffd43b;

    border-color:
        rgba(255, 212, 59, 0.20);
}


.install-status-ready {

    background:
        rgba(177, 151, 252, 0.12);

    color:
        #b197fc;

    border-color:
        rgba(177, 151, 252, 0.20);
}


.install-status-completed {

    background:
        rgba(105, 219, 124, 0.12);

    color:
        #69db7c;

    border-color:
        rgba(105, 219, 124, 0.20);
}


.install-status-cancelled {

    background:
        rgba(255, 135, 135, 0.12);

    color:
        #ff8787;

    border-color:
        rgba(255, 135, 135, 0.20);
}


/* ============================================================
   INSTALL PRODUCT SEARCH
============================================================ */

.install-product-results,
.install-customer-results {

    position:
        absolute;

    top:
        calc(100% + 4px);

    left: 0;
    right: 0;

    z-index:
        1060;

    max-height:
        320px;

    overflow-y:
        auto;

    background:
        rgba(16, 24, 39, 0.98);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius-sm);

    box-shadow:
        var(--core-shadow);
}


.install-product-result,
.install-customer-result {

    padding:
        0.7rem
        0.8rem;

    cursor:
        pointer;

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.install-product-result:last-child,
.install-customer-result:last-child {

    border-bottom: 0;
}


.install-product-result:hover,
.install-customer-result:hover {

    background:
        var(--core-hover);
}


.install-result-title {

    color:
        var(--core-text);

    font-size:
        0.85rem;

    font-weight:
        600;
}


.install-result-meta {

    margin-top:
        0.1rem;

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;
}


.users-permissions-section {
    margin-top: 1.5rem;
}

.users-permissions-holder {
    display: grid;
    gap: 1rem;
}

.users-permission-group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.users-permission-group-title {
    padding: 0.8rem 1rem;
    background: rgba(16, 24, 39, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--core-text-soft);
}

.users-permission-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 1rem;
    align-items: center;

    padding: 0.9rem 1rem;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}

.users-permission-row:first-of-type {
    border-top: 0;
}

.users-permission-info {
    min-width: 0;
}

.users-permission-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.users-permission-description {
    margin-top: 0.2rem;

    font-size: 0.8rem;
    line-height: 1.35;

    color: var(--bs-secondary-color);
}

.users-permission-effective {
    display: inline-flex;
    align-items: center;

    margin-top: 0.45rem;
    padding: 0.2rem 0.5rem;

    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 600;
}

.users-permission-effective.is-allowed {
    color: var(--bs-success);
    background: rgba(25, 135, 84, 0.12);
}

.users-permission-effective.is-denied {
    color: var(--bs-danger);
    background: rgba(108, 117, 125, 0.12);
}

.users-permission-control {
    width: 100%;
}

.users-permission-control .form-select {
    min-height: 36px;
}

@media (max-width: 767.98px) {

    .users-permission-row {
        grid-template-columns: 1fr;
    }

    .users-permission-control {
        width: 100%;
    }
}
/* ============================================================
   INSTALL ITEMS
============================================================ */

.install-items {

    border:
        1px solid
        var(--core-border-soft);

    border-radius:
        var(--core-radius-sm);

    overflow:
        hidden;
}


.install-item {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items:
        center;

    gap:
        1rem;

    padding:
        0.8rem
        0.9rem;

    background:
        var(--core-input);

    border-bottom:
        1px solid
        var(--core-border-soft);
}


.install-item:last-child {
    border-bottom: 0;
}


.install-item-name {

    color:
        var(--core-text);

    font-weight:
        600;
}


.install-item-meta {

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;
}


/* ============================================================
   INSTALLS MOBILE
============================================================ */

@media (max-width: 767.98px) {

    .installs-panel-header {

        align-items:
            stretch;

        flex-direction:
            column;
    }


    .install-item {

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap:
            0.65rem;
    }

}

/* ============================================================
   INSTALLS SEARCH RESULTS
============================================================ */

.installs-search-results {

    position: absolute;

    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;

    z-index: 1060;

    max-height: 320px;

    overflow-y: auto;

    padding: 0.35rem;

    background:
        rgba(16, 24, 39, 0.98);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius-sm);

    box-shadow:
        var(--core-shadow);
}


.installs-search-result {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    width: 100%;

    padding:
        0.7rem
        0.8rem;

    margin: 0;

    background:
        transparent;

    color:
        var(--core-text-soft);

    border: 0;

    border-radius:
        var(--core-radius-sm);

    text-align: left;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.installs-search-result:hover,
.installs-search-result:focus {

    background:
        var(--core-hover);

    color:
        var(--core-text);

    outline: none;
}


.installs-search-result + .installs-search-result {

    border-top:
        1px solid
        var(--core-border-soft);
}


.installs-search-result .fw-semibold {

    color:
        var(--core-text);

    font-size:
        0.84rem;

    line-height:
        1.3;
}


.installs-search-result .small {

    margin-top:
        0.18rem;

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    line-height:
        1.25;
}


.installs-search-result:hover .small,
.installs-search-result:focus .small {

    color:
        var(--core-text-soft);
}


/* Loading / no results */

.installs-search-empty {

    padding:
        0.8rem;

    color:
        var(--core-text-muted);

    font-size:
        0.78rem;

    text-align:
        center;
}

.btn-link
{
    color:var(--hops-text);
    text-decoration: none;
}

/* ============================================================
   INSTALL MODAL SCROLLING
============================================================ */

#installModal .modal-dialog {

    height:
        calc(100vh - 2rem);

    margin-top:
        1rem;

    margin-bottom:
        1rem;
}


#installModal .modal-content {

    max-height:
        calc(100vh - 2rem);

    overflow:
        hidden;
}


#installModal .modal-body {

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}


/*
|--------------------------------------------------------------------------
| COMMUNICATIONS SETTINGS
|--------------------------------------------------------------------------
*/

.communication-settings-page {
    --communications-panel: rgba(16, 24, 39, 0.86);
    --communications-panel-soft: rgba(16, 24, 39, 0.58);
    --communications-border: rgba(255, 255, 255, 0.08);
    --communications-muted: rgba(226, 232, 240, 0.66);
}


/*
|--------------------------------------------------------------------------
| HELP / LIST SHELLS
|--------------------------------------------------------------------------
*/

.communication-settings-page .communications-help-card,
.communication-settings-page .communications-list-shell {
    background: rgba(16, 24, 39, 0.72);
    border: 1px solid var(--communications-border);
    border-radius: 14px;
}


.communication-settings-page .communications-help-card {
    overflow: hidden;
}


.communication-settings-page .communications-help-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    border-radius: 12px;

    background: rgba(59, 130, 246, 0.12);

    font-size: 1.2rem;
}


.communication-settings-page .communications-section-title {
    color: #f8fafc;
}


.communication-settings-page .communications-muted {
    color: var(--communications-muted);
}


.communication-settings-page .communications-list-header {
    padding: 1rem 1.25rem;

    border-bottom: 1px solid var(--communications-border);
}


.communication-settings-page #communicationsTemplatesList {
    padding: 1rem;
}


/*
|--------------------------------------------------------------------------
| TEMPLATE CARDS
|--------------------------------------------------------------------------
*/

.communication-settings-page .communication-template-card {
    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.075) !important;

    border-radius: 12px;

    color: #e5e7eb;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}


.communication-settings-page .communication-template-card:hover {
    background: rgba(255, 255, 255, 0.055);

    border-color: rgba(255, 255, 255, 0.14) !important;

    transform: translateY(-1px);
}


.communication-settings-page .communication-template-card h5,
.communication-settings-page .communication-template-card .fw-semibold {
    color: #f8fafc;
}


.communication-settings-page .communication-template-card .text-secondary {
    color: rgba(226, 232, 240, 0.62) !important;
}


/*
|--------------------------------------------------------------------------
| TEMPLATE MODAL
|--------------------------------------------------------------------------
*/

.communication-template-modal .modal-content {
    background: #111827;

    color: #e5e7eb;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    overflow: hidden;
}


.communication-template-modal .modal-header,
.communication-template-modal .modal-footer {
    background: rgba(16, 24, 39, 0.96);

    border-color: rgba(255, 255, 255, 0.08);
}


.communication-template-modal .modal-body {
    background: #0f172a;
}


.communication-template-modal .modal-title {
    color: #f8fafc;
}


.communication-template-modal .form-label {
    color: #e5e7eb;
}


.communication-template-modal .form-text,
.communication-template-modal .text-secondary {
    color: rgba(226, 232, 240, 0.58) !important;
}


/*
|--------------------------------------------------------------------------
| FORM CONTROLS
|--------------------------------------------------------------------------
*/

.communication-template-modal .form-control,
.communication-template-modal .form-select {
    color: #f8fafc;

    background-color: rgba(255, 255, 255, 0.045);

    border-color: rgba(255, 255, 255, 0.1);
}


.communication-template-modal .form-control:focus,
.communication-template-modal .form-select:focus {
    color: #ffffff;

    background-color: rgba(255, 255, 255, 0.065);

    border-color: rgba(96, 165, 250, 0.65);

    box-shadow:
        0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}


.communication-template-modal .form-control::placeholder {
    color: rgba(226, 232, 240, 0.35);
}


.communication-template-modal .form-select option {
    background: #111827;

    color: #f8fafc;
}


.communication-template-modal textarea {
    min-height: 260px;

    resize: vertical;
}


/*
|--------------------------------------------------------------------------
| EDITOR PANELS
|--------------------------------------------------------------------------
*/

.communication-template-modal .communication-editor-panel,
.communication-template-modal .communication-placeholder-panel {
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.075);

    border-radius: 14px;
}


.communication-template-modal .communication-editor-panel {
    padding: 1.25rem;
}


.communication-template-modal .communication-placeholder-panel {
    height: 100%;

    overflow: hidden;
}


.communication-template-modal .communication-placeholder-header {
    padding: 1rem 1.1rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.075);

    background: rgba(255, 255, 255, 0.025);
}


.communication-template-modal .communication-placeholder-body {
    padding: 1rem;
}


.communication-template-modal .communication-placeholder-heading {
    color: rgba(226, 232, 240, 0.48);

    font-size: 0.72rem;

    letter-spacing: 0.08em;
}


/*
|--------------------------------------------------------------------------
| PLACEHOLDER BUTTONS
|--------------------------------------------------------------------------
*/

.communication-template-modal .communication-template-placeholder {
    color: #e5e7eb;

    border-color: rgba(255, 255, 255, 0.09);

    background: rgba(255, 255, 255, 0.025);

    border-radius: 10px;

    padding: 0.7rem 0.8rem;
}


.communication-template-modal .communication-template-placeholder:hover {
    color: #ffffff;

    border-color: rgba(96, 165, 250, 0.5);

    background: rgba(59, 130, 246, 0.09);
}


.communication-template-modal .communication-template-placeholder .small {
    color: rgba(226, 232, 240, 0.52);
}
/*
|--------------------------------------------------------------------------
| COMMUNICATIONS - SHARED LIST BODY
|--------------------------------------------------------------------------
*/

.communication-settings-page .communications-list-body {
    padding: 1rem;
}


/*
|--------------------------------------------------------------------------
| COMMUNICATION SCHEDULE CARDS
|--------------------------------------------------------------------------
*/

.communication-settings-page .communication-schedule-card {
    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.075) !important;

    border-radius: 12px;

    color: #e5e7eb;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}


.communication-settings-page .communication-schedule-card:hover {
    background: rgba(255, 255, 255, 0.055);

    border-color: rgba(255, 255, 255, 0.14) !important;

    transform: translateY(-1px);
}


.communication-settings-page .communication-schedule-card h5,
.communication-settings-page .communication-schedule-card .fw-semibold {
    color: #f8fafc;
}


.communication-settings-page .communication-schedule-card .text-secondary {
    color: rgba(226, 232, 240, 0.62) !important;
}


/*
|--------------------------------------------------------------------------
| SCHEDULE MODAL
|--------------------------------------------------------------------------
*/

.communication-schedule-modal .modal-content {
    background: #111827;

    color: #e5e7eb;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    overflow: hidden;
}


.communication-schedule-modal .modal-header,
.communication-schedule-modal .modal-footer {
    background: rgba(16, 24, 39, 0.96);

    border-color: rgba(255, 255, 255, 0.08);
}


.communication-schedule-modal .modal-body {
    background: #0f172a;
}


.communication-schedule-modal .modal-title,
.communication-schedule-modal .form-label,
.communication-schedule-modal .fw-semibold {
    color: #f8fafc;
}


.communication-schedule-modal .text-secondary,
.communication-schedule-modal .form-text {
    color: rgba(226, 232, 240, 0.58) !important;
}


/*
|--------------------------------------------------------------------------
| SCHEDULE FORM CONTROLS
|--------------------------------------------------------------------------
*/

.communication-schedule-modal .form-control,
.communication-schedule-modal .form-select {
    color: #f8fafc;

    background-color: rgba(255, 255, 255, 0.045);

    border-color: rgba(255, 255, 255, 0.1);
}


.communication-schedule-modal .form-control:focus,
.communication-schedule-modal .form-select:focus {
    color: #ffffff;

    background-color: rgba(255, 255, 255, 0.065);

    border-color: rgba(96, 165, 250, 0.65);

    box-shadow:
        0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}


.communication-schedule-modal .form-control::placeholder {
    color: rgba(226, 232, 240, 0.35);
}


.communication-schedule-modal .form-select option {
    background: #111827;

    color: #f8fafc;
}


/*
|--------------------------------------------------------------------------
| COMMUNICATION EDITOR PANELS
|--------------------------------------------------------------------------
*/

.communication-schedule-modal .communication-editor-panel,
.communication-schedule-modal .communication-placeholder-panel {
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.075);

    border-radius: 14px;
}


.communication-schedule-modal .communication-editor-panel {
    padding: 1.25rem;
}


.communication-schedule-modal .communication-placeholder-panel {
    overflow: hidden;
}


.communication-schedule-modal .communication-placeholder-header {
    padding: 1rem 1.1rem;

    background: rgba(255, 255, 255, 0.025);

    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}


.communication-schedule-modal .communication-placeholder-body {
    padding: 1rem;
}


/*
|--------------------------------------------------------------------------
| FORM SECTION HEADINGS
|--------------------------------------------------------------------------
*/

.communication-form-section-heading {
    display: flex;

    align-items: center;

    gap: 0.75rem;

    padding-bottom: 0.75rem;

    margin-bottom: 0.25rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


.communication-form-section-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #60a5fa;

    background: rgba(59, 130, 246, 0.1);
}


/*
|--------------------------------------------------------------------------
| CHANNEL OPTIONS
|--------------------------------------------------------------------------
*/

.communication-channel-option {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 1rem;

    padding: 0.9rem 1rem;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.075);

    border-radius: 10px;
}


.communication-channel-option > div:first-child {
    min-width: 0;
}


.communication-section-divider {
    width: 100%;

    height: 1px;

    background: rgba(255, 255, 255, 0.07);

    margin: 0.25rem 0;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .communications-schedules-page .core-page-header .btn {
        width: 100%;
    }


    .communication-schedule-modal .communication-editor-panel {
        padding: 1rem;
    }


    .communication-channel-option {
        align-items: flex-start;
    }

}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .communication-settings-page .core-page-header .btn {
        width: 100%;
    }


    .communication-settings-page .core-page-header > div {
        align-items: stretch !important;
    }


    .communication-template-modal .communication-editor-panel {
        padding: 1rem;
    }
}

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

@media (max-width: 1199.98px) {

    .wine-product-list,
    .wine-admin-product-list,
    .wine-tag-list {

        max-height:
            360px;
    }

}


@media (max-width: 991.98px) {

    #tasksActivitiesApp .col-lg-3 {

        margin-bottom:
            1rem;
    }

}


@media (max-width: 767.98px) {

    .content {

        padding:
            15px;
    }


    .content-header {

        padding:
            10px
            15px
            0;
    }


    /* CORE HEADERS */

    .core-page-header,
    .tasks-page-header,
    .tasks-dashboard-header,
    .winequotes-page-header,
    .wine-builder-header,
    .wine-admin-header,
    .wine-tag-header {

        padding:
            1.1rem;
    }


    /* QUICK ACTIONS */

    .quick-actions .btn {

        text-align:
            left;

        padding-left:
            1rem;
    }


    /* HOME */

    .core-home {

        justify-content:
            flex-start;

        padding:
            1.25rem !important;
    }


    .core-home-hero {

        padding:
            1.5rem;
    }


    .core-home-mark {

        width: 52px;
        height: 52px;

        flex-basis:
            52px;

        font-size:
            1.25rem;
    }


    .core-home-title {

        font-size:
            2.3rem;
    }


    .core-home-footer {

        justify-content:
            flex-start;
    }


    /* TASK DASHBOARD */

    .tasks-dashboard-header-icon {

        display:
            none;
    }


    .tasks-dashboard-date {

        width:
            100%;
    }


    .dashboard-kpi-card .card-body {

        align-items:
            flex-start !important;

        flex-direction:
            column;

        gap:
            0.7rem !important;
    }


    .dashboard-kpi-value {

        font-size:
            1.5rem;
    }


    .dashboard-week-date {

        width:
            66px;

        flex-basis:
            66px;
    }


    /* CUSTOMERS */

    .customers-card-header,
    .customers-pagination {

        align-items:
            stretch;

        flex-direction:
            column;
    }


    /* TIMELINE */

    .timeline-list-item {

        grid-template-columns:
            34px
            minmax(0, 1fr);

        padding:
            0.8rem;
    }


    .timeline-list-date {

        grid-column:
            2;

        min-width:
            0;

        text-align:
            left;
    }


    /* SAVED QUOTES */

    .winequotes-search {

        width:
            100%;
    }


    .winequotes-table {

        min-width:
            850px;
    }


    .winequotes-pagination {

        align-items:
            flex-start !important;

        flex-direction:
            column;
    }


    /* WINE BUILDER */

    .wine-builder-customer-select {

        width:
            100%;

        max-width:
            none;
    }


    .wine-builder-customer-card .d-flex {

        align-items:
            stretch !important;

        flex-direction:
            column;
    }


    #startQuoteBtn {

        width:
            100%;
    }


    .wine-builder-list-actions {

        width:
            100%;
    }


    .wine-builder-list-actions .btn {

        flex:
            1;
    }


    .wine-list-body {

        padding:
            1rem;
    }


    /* WINE ADMIN */

    .wine-admin-header > .d-flex {

        align-items:
            flex-start !important;
    }


    .wine-admin-header .btn {

        width:
            100%;
    }


    .wine-admin-image-holder {

        width:
            100px;

        height:
            110px;

        flex-basis:
            100px;
    }


    .wine-admin-body,
    .wine-tag-editor {

        padding:
            1rem;
    }


    .wine-admin-product-header {

        padding:
            1rem;
    }


    .wine-admin-dietary {

        flex-direction:
            column;
    }


    .wine-admin-check {

        width:
            100%;
    }


    /* TAG MANAGER */

    .wine-tag-header .btn {

        width:
            100%;
    }


    .wine-tag-footer {

        align-items:
            stretch !important;

        flex-direction:
            column;
    }


    .wine-tag-footer .btn {

        width:
            100%;
    }


    /* MODALS */

    .core-modal .modal-footer {

        flex-direction:
            column-reverse;

        align-items:
            stretch;
    }


    .core-modal .modal-footer .btn {

        width:
            100%;
    }


    /* ACTIVITY CALENDAR */

    .activity-calendar-table td {

        height:
            110px;

        padding:
            5px;
    }


    .activity-calendar-item {

        padding:
            5px;

        font-size:
            0.8rem;
    }

}


/* ============================================================
   COMMUNICATIONS - DELIVERY LOG
============================================================ */

.communications-deliveries-page {

    --delivery-panel:
        rgba(16, 24, 39, 0.86);

    --delivery-panel-soft:
        rgba(16, 24, 39, 0.72);

    --delivery-border:
        rgba(255, 255, 255, 0.08);

    --delivery-border-soft:
        rgba(255, 255, 255, 0.055);

    --delivery-muted:
        rgba(226, 232, 240, 0.62);

    color:
        var(--core-text);
}


/* CARD */

.communications-deliveries-page > .card {

    background:
        var(--delivery-panel);

    border:
        1px solid
        var(--delivery-border) !important;

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);

    overflow:
        hidden;
}


.communications-deliveries-page > .card > .card-body {

    padding: 0;

    color:
        var(--core-text);
}


/* FILTER TOOLBAR */

.communications-deliveries-page
> .card
> .card-body
> .d-flex:first-child {

    margin: 0 !important;

    padding:
        0.9rem
        1rem;

    background:
        var(--core-header);

    border-bottom:
        1px solid
        var(--delivery-border);

    gap:
        0.5rem !important;
}


.communications-deliveries-page
.communication-delivery-filter {

    min-width:
        78px;

    padding:
        0.45rem
        0.8rem;

    border-radius:
        var(--core-radius-sm);

    font-size:
        0.8rem;

    font-weight:
        600;

    box-shadow:
        none;
}


.communications-deliveries-page
.communication-delivery-filter.btn-core-tertiary {

    background:
        rgba(255, 255, 255, 0.055);

    border-color:
        rgba(255, 255, 255, 0.10);

    color:
        var(--core-text-soft);
}


.communications-deliveries-page
.communication-delivery-filter.btn-core-tertiary:hover {

    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 255, 255, 0.16);

    color:
        #ffffff;
}


.communications-deliveries-page
.communication-delivery-filter.btn-hops-primary,
.communications-deliveries-page
.communication-delivery-filter.active {

    background:
        var(--hops-pink);

    border-color:
        var(--hops-pink);

    color:
        #ffffff;
}


/* DELIVERY BODY */

.communications-deliveries-page
#communicationsDeliveriesList {

    padding:
        1rem;
}


/* TABLE SHELL */

.communications-deliveries-page
.table-responsive {

    border:
        1px solid
        var(--delivery-border);

    border-radius:
        12px;

    overflow:
        hidden;

    background:
        rgba(255, 255, 255, 0.018);
}


/* TABLE */

.communications-deliveries-page
.table {

    --bs-table-bg:
        transparent;

    --bs-table-color:
        var(--core-text-soft);

    --bs-table-border-color:
        var(--delivery-border-soft);

    --bs-table-hover-bg:
        var(--core-hover);

    --bs-table-hover-color:
        #ffffff;

    margin: 0;

    color:
        var(--core-text-soft);
}


.communications-deliveries-page
.table > :not(caption) > * > * {

    background:
        transparent;

    color:
        inherit;

    border-color:
        var(--delivery-border-soft);
}


/* TABLE HEADER */

.communications-deliveries-page
.table thead th {

    padding:
        0.8rem
        0.85rem;

    background:
        rgba(255, 255, 255, 0.035) !important;

    color:
        var(--core-text-muted) !important;

    border-bottom:
        1px solid
        var(--delivery-border);

    font-size:
        0.68rem;

    font-weight:
        700;

    letter-spacing:
        0.06em;

    text-transform:
        uppercase;

    white-space:
        nowrap;
}


/* TABLE ROWS */

.communications-deliveries-page
.table tbody td {

    padding:
        0.72rem
        0.85rem;

    vertical-align:
        middle;

    color:
        var(--core-text-soft);
}


.communications-deliveries-page
.table tbody tr:hover > * {

    background:
        var(--core-hover) !important;
}


.communications-deliveries-page
.table .fw-semibold {

    color:
        #ffffff;
}


.communications-deliveries-page
.table .text-secondary {

    color:
        var(--delivery-muted) !important;
}


/* STATUS PILLS */

.communications-deliveries-page
.table .badge {

    min-width:
        68px;

    padding:
        0.34rem
        0.55rem;

    border-radius:
        999px;

    font-size:
        0.67rem;

    font-weight:
        700;

    line-height:
        1.35 !important;
}


.communications-deliveries-page
.table .text-bg-success {

    background:
        rgba(25, 135, 84, 0.14) !important;

    border:
        1px solid rgba(127, 215, 170, 0.16);

    color:
        #7fd7aa !important;
}


.communications-deliveries-page
.table .text-bg-warning {

    background:
        rgba(255, 193, 7, 0.13) !important;

    border:
        1px solid rgba(255, 216, 106, 0.16);

    color:
        #ffd86a !important;
}


.communications-deliveries-page
.table .text-bg-danger {

    background:
        rgba(220, 53, 69, 0.13) !important;

    border:
        1px solid rgba(255, 154, 165, 0.16);

    color:
        #ff9aa5 !important;
}


.communications-deliveries-page
.table .text-bg-info {

    background:
        rgba(13, 202, 240, 0.12) !important;

    border:
        1px solid rgba(116, 192, 252, 0.18);

    color:
        #74c0fc !important;
}


.communications-deliveries-page
.table .text-bg-secondary {

    background:
        rgba(108, 117, 125, 0.14) !important;

    border:
        1px solid rgba(184, 190, 197, 0.14);

    color:
        #b8bec5 !important;
}


/* ERROR / RETRY ACTIONS */

.communications-deliveries-page
.communication-delivery-error,
.communications-deliveries-page
.communication-delivery-retry {

    min-width:
        34px;

    border-radius:
        8px;

    font-size:
        0.75rem;

    font-weight:
        600;
}


.communications-deliveries-page
.communication-delivery-error-row > td {

    padding:
        0
        0.85rem
        0.8rem;

    background:
        rgba(220, 53, 69, 0.025) !important;
}


.communications-deliveries-page
.communication-delivery-error-row .alert {

    margin: 0;

    padding:
        0.7rem
        0.85rem;

    background:
        rgba(220, 53, 69, 0.10);

    border:
        1px solid rgba(220, 53, 69, 0.20);

    border-radius:
        9px;

    color:
        #ffb3bc;
}


/* PAGINATION */

.communications-deliveries-page
#communicationsDeliveriesList
> .d-flex.border-top {

    margin-top:
        0.9rem !important;

    padding-top:
        0.9rem !important;

    border-color:
        var(--delivery-border) !important;
}


.communications-deliveries-page
.communication-delivery-page {

    border-radius:
        var(--core-radius-sm);

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(255, 255, 255, 0.10);

    color:
        var(--core-text-soft);

    font-size:
        0.78rem;

    font-weight:
        600;
}


.communications-deliveries-page
.communication-delivery-page:hover:not(:disabled) {

    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 255, 255, 0.16);

    color:
        #ffffff;
}


.communications-deliveries-page
.communication-delivery-page:disabled {

    opacity:
        0.38;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .communications-deliveries-page
    > .card
    > .card-body
    > .d-flex:first-child {

        padding:
            0.75rem;
    }


    .communications-deliveries-page
    .communication-delivery-filter {

        min-width:
            auto;

        padding:
            0.4rem
            0.65rem;
    }


    .communications-deliveries-page
    #communicationsDeliveriesList {

        padding:
            0.75rem;
    }


    .communications-deliveries-page
    .table {

        font-size:
            0.82rem;
    }


    .communications-deliveries-page
    .table thead th,
    .communications-deliveries-page
    .table tbody td {

        padding:
            0.65rem
            0.55rem;
    }


    .communications-deliveries-page
    .table .badge {

        min-width:
            60px;

        font-size:
            0.62rem;
    }

}



/*
|--------------------------------------------------------------------------
| COMMUNICATIONS - REPORTS
|--------------------------------------------------------------------------
*/

.communications-reports-page {

    --report-border:
        rgba(148, 163, 184, 0.22);

    --report-border-strong:
        rgba(148, 163, 184, 0.35);

    --report-panel:
        rgba(255, 255, 255, 0.035);

    --report-panel-strong:
        rgba(15, 23, 42, 0.28);

    --report-input:
        rgba(255, 255, 255, 0.06);

    --report-muted:
        rgba(203, 213, 225, 0.7);

}


/*
|--------------------------------------------------------------------------
| MAIN CARDS
|--------------------------------------------------------------------------
*/

.communications-reports-page .core-report-card {

    background:
        rgba(16, 24, 39, 0.86);

    border:
        1px solid var(--report-border);

    border-radius:
        14px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);

    overflow:
        hidden;

}


.communications-reports-page .core-report-card-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        1rem;

    padding:
        1.15rem 1.25rem;

    border-bottom:
        1px solid var(--report-border);

    background:
        rgba(255, 255, 255, 0.025);

}


.communications-reports-page .core-report-card-body {

    padding:
        1.25rem;

}


.communications-reports-page .core-report-card-kicker {

    margin-bottom:
        0.2rem;

    font-size:
        0.72rem;

    font-weight:
        700;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;

    color:
        var(--report-muted);

}


.communications-reports-page .core-report-count {

    min-width:
        34px;

    padding:
        0.35rem 0.6rem;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid var(--report-border);

    text-align:
        center;

    font-weight:
        700;

}


/*
|--------------------------------------------------------------------------
| LABELS + INPUTS
|--------------------------------------------------------------------------
*/

.communications-reports-page .form-label {

    margin-bottom:
        0.4rem;

    font-size:
        0.8rem;

    font-weight:
        700;

    color:
        rgba(226, 232, 240, 0.9);

}


.communications-reports-page .form-control,
.communications-reports-page .form-select,
.communications-reports-page .input-group-text {

    min-height:
        42px;

    background-color:
        var(--report-input);

    border-color:
        var(--report-border-strong);

    color:
        #f1f5f9;

}


.communications-reports-page .form-control::placeholder {

    color:
        rgba(203, 213, 225, 0.45);

}


.communications-reports-page .form-control:focus,
.communications-reports-page .form-select:focus {

    background-color:
        rgba(255, 255, 255, 0.085);

    color:
        #ffffff;

    border-color:
        rgba(96, 165, 250, 0.7);

    box-shadow:
        0 0 0 0.2rem rgba(59, 130, 246, 0.12);

}


.communications-reports-page .input-group-text {

    color:
        var(--report-muted);

}


/*
|--------------------------------------------------------------------------
| SELECTS
|--------------------------------------------------------------------------
*/

.communications-reports-page .core-report-select {

    cursor:
        pointer;

    font-weight:
        500;

}


.communications-reports-page .core-report-select option {

    background:
        #111827;

    color:
        #f8fafc;

}


.communications-reports-page .form-select:disabled {

    background-color:
        rgba(255, 255, 255, 0.025);

    color:
        rgba(203, 213, 225, 0.5);

    opacity:
        1;

    cursor:
        not-allowed;

}


.communications-reports-page .core-report-source-select {

    border-color:
        rgba(96, 165, 250, 0.45);

}


/*
|--------------------------------------------------------------------------
| FORM TEXT
|--------------------------------------------------------------------------
*/

.communications-reports-page .form-text {

    margin-top:
        0.4rem;

    font-size:
        0.75rem;

    color:
        rgba(203, 213, 225, 0.58);

}


/*
|--------------------------------------------------------------------------
| REPORT LIBRARY
|--------------------------------------------------------------------------
*/

.communications-reports-page .core-report-filter-block {

    margin-bottom:
        1rem;

}


.communications-reports-page .core-report-list {

    min-height:
        220px;

    max-height:
        620px;

    overflow-y:
        auto;

    padding:
        0.35rem;

    border:
        1px solid var(--report-border);

    border-radius:
        10px;

    background:
        rgba(2, 6, 23, 0.22);

}


.communications-reports-page .core-report-loading {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        180px;

    gap:
        0.6rem;

    color:
        var(--report-muted);

}


.communications-reports-page .core-report-loading-icon {

    font-size:
        1.25rem;

}


/*
|--------------------------------------------------------------------------
| DYNAMIC REPORT LIST ITEMS
|--------------------------------------------------------------------------
|
| These will also catch most of the elements generated by the existing JS.
|
|--------------------------------------------------------------------------
*/

.communications-reports-page .communications-reports-list > * {

    border-radius:
        8px;

}


.communications-reports-page .communications-reports-list .list-group-item,
.communications-reports-page .communications-reports-list .report-item {

    margin-bottom:
        0.45rem;

    padding:
        0.85rem 0.9rem;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid transparent;

    color:
        #e5e7eb;

    cursor:
        pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;

}


.communications-reports-page .communications-reports-list .list-group-item:hover,
.communications-reports-page .communications-reports-list .report-item:hover {

    background:
        rgba(255, 255, 255, 0.075);

    border-color:
        var(--report-border-strong);

    transform:
        translateY(-1px);

}


.communications-reports-page .communications-reports-list .active,
.communications-reports-page .communications-reports-list .report-item.active {

    background:
        rgba(59, 130, 246, 0.15);

    border-color:
        rgba(96, 165, 250, 0.5);

    color:
        #ffffff;

}


/*
|--------------------------------------------------------------------------
| EMPTY STATE
|--------------------------------------------------------------------------
*/

.communications-reports-page .core-report-empty-state {

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    align-items:
        center;

    min-height:
        420px;

    padding:
        3rem 1.5rem;

    text-align:
        center;

    border:
        1px dashed var(--report-border-strong);

    border-radius:
        12px;

    background:
        rgba(2, 6, 23, 0.18);

}


.communications-reports-page .core-report-empty-icon {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        68px;

    height:
        68px;

    margin-bottom:
        1rem;

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid var(--report-border);

    font-size:
        1.65rem;

    color:
        rgba(203, 213, 225, 0.75);

}


/*
|--------------------------------------------------------------------------
| BUILDER SECTIONS
|--------------------------------------------------------------------------
*/

.communications-reports-page .core-report-section {

    margin-bottom:
        1.25rem;

    border:
        1px solid var(--report-border);

    border-radius:
        12px;

    background:
        var(--report-panel);

    overflow:
        hidden;

}


.communications-reports-page .core-report-section-header {

    display:
        flex;

    align-items:
        center;

    gap:
        0.85rem;

    padding:
        0.9rem 1rem;

    border-bottom:
        1px solid var(--report-border);

    background:
        rgba(255, 255, 255, 0.025);

}


.communications-reports-page .core-report-section-icon {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 auto;

    width:
        34px;

    height:
        34px;

    border-radius:
        8px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid var(--report-border);

    color:
        rgba(226, 232, 240, 0.85);

}


.communications-reports-page .core-report-section-body {

    padding:
        1rem;

}


/*
|--------------------------------------------------------------------------
| OUTPUT / CONFIGURATION AREAS
|--------------------------------------------------------------------------
*/

.communications-reports-page .core-report-output-area {

    min-height:
        76px;

    background:
        rgba(2, 6, 23, 0.24);

}


.communications-reports-page .core-report-placeholder {

    display:
        flex;

    align-items:
        center;

    min-height:
        44px;

    padding:
        0.75rem 0.85rem;

    border:
        1px dashed var(--report-border-strong);

    border-radius:
        8px;

    color:
        rgba(203, 213, 225, 0.62);

    background:
        rgba(255, 255, 255, 0.018);

}


/*
|--------------------------------------------------------------------------
| DYNAMIC BUILDER ROWS
|--------------------------------------------------------------------------
|
| Styles rows generated by report JS without requiring us to rewrite
| the JS immediately.
|
|--------------------------------------------------------------------------
*/

.communications-reports-page #communicationsReportFields > .row,
.communications-reports-page #communicationsReportFilters > .row,
.communications-reports-page #communicationsReportGroups > .row,
.communications-reports-page #communicationsReportSort > .row {

    margin-left:
        0;

    margin-right:
        0;

    margin-bottom:
        0.65rem;

    padding:
        0.75rem;

    border:
        1px solid var(--report-border);

    border-radius:
        8px;

    background:
        rgba(255, 255, 255, 0.045);

}


.communications-reports-page #communicationsReportFields > .row:last-child,
.communications-reports-page #communicationsReportFilters > .row:last-child,
.communications-reports-page #communicationsReportGroups > .row:last-child,
.communications-reports-page #communicationsReportSort > .row:last-child {

    margin-bottom:
        0;

}


/*
|--------------------------------------------------------------------------
| PREVIEW
|--------------------------------------------------------------------------
*/

.communications-reports-page .core-report-preview-section {

    border-color:
        rgba(96, 165, 250, 0.25);

}


.communications-reports-page .core-report-preview-count {

    padding:
        0.3rem 0.6rem;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(226, 232, 240, 0.8);

    font-size:
        0.75rem;

    font-weight:
        700;

}


.communications-reports-page .core-report-preview-body {

    padding:
        1rem;

    background:
        rgba(2, 6, 23, 0.34);

}


.communications-reports-page .core-report-preview-table-wrap {

    min-height:
        140px;

    border:
        1px solid var(--report-border);

    border-radius:
        9px;

    background:
        rgba(255, 255, 255, 0.025);

}


.communications-reports-page #communicationsReportPreviewTable {

    color:
        #e5e7eb;

}


.communications-reports-page #communicationsReportPreviewTable thead th {

    padding:
        0.8rem;

    background:
        rgba(255, 255, 255, 0.07);

    border-bottom:
        1px solid var(--report-border-strong);

    color:
        #f8fafc;

    font-size:
        0.78rem;

    font-weight:
        700;

    white-space:
        nowrap;

}


.communications-reports-page #communicationsReportPreviewTable tbody td {

    padding:
        0.8rem;

    border-color:
        var(--report-border);

    color:
        rgba(226, 232, 240, 0.88);

}


.communications-reports-page #communicationsReportPreviewTable tbody tr:hover td {

    background:
        rgba(255, 255, 255, 0.035);

}


.communications-reports-page .core-report-preview-empty {

    height:
        135px;

    text-align:
        center;

    vertical-align:
        middle;

    color:
        rgba(203, 213, 225, 0.6) !important;

}


/*
|--------------------------------------------------------------------------
| BUTTON STATES
|--------------------------------------------------------------------------
*/

.communications-reports-page .btn:disabled {

    opacity:
        0.38;

    cursor:
        not-allowed;

}


.communications-reports-page #communicationsReportRunBtn:not(:disabled) {

    border-color:
        rgba(96, 165, 250, 0.45);

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .communications-reports-page .core-report-card-header {

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    .communications-reports-page #communicationsReportActions {

        width:
            100%;

    }


    .communications-reports-page #communicationsReportActions .btn {

        flex:
            1 1 auto;

    }


    .communications-reports-page .core-report-section-header {

        flex-wrap:
            wrap;

    }


    .communications-reports-page .core-report-section-header .btn {

        margin-left:
            auto;

    }


    .communications-reports-page .core-report-empty-state {

        min-height:
            300px;

    }

}

.core-subtle-panel {
    background: rgba(16, 24, 39, 0.55);
    border-color: rgba(255, 255, 255, 0.12) !important;
}


.communication-settings-page .badge,
.communication-template-modal .badge,
.communication-automation-card .badge,
.communication-template-card .badge,
.communication-schedule-card .badge,
.communication-delivery-card .badge {
    border-radius: 999px;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    box-shadow: none;
}


.communication-settings-page .text-bg-primary,
.communication-template-modal .text-bg-primary,
.communication-automation-card .text-bg-primary,
.communication-template-card .text-bg-primary,
.communication-schedule-card .text-bg-primary,
.communication-delivery-card .text-bg-primary {
    background: rgba(13, 110, 253, 0.12) !important;
    color: #8fb8ff !important;
    border: 1px solid rgba(13, 110, 253, 0.28) !important;
}


.communication-settings-page .text-bg-success,
.communication-template-modal .text-bg-success,
.communication-automation-card .text-bg-success,
.communication-template-card .text-bg-success,
.communication-schedule-card .text-bg-success,
.communication-delivery-card .text-bg-success {
    background: rgba(25, 135, 84, 0.12) !important;
    color: #7fd7aa !important;
    border: 1px solid rgba(25, 135, 84, 0.28) !important;
}


.communication-settings-page .text-bg-secondary,
.communication-template-modal .text-bg-secondary,
.communication-automation-card .text-bg-secondary,
.communication-template-card .text-bg-secondary,
.communication-schedule-card .text-bg-secondary,
.communication-delivery-card .text-bg-secondary {
    background: rgba(108, 117, 125, 0.12) !important;
    color: #b8bec5 !important;
    border: 1px solid rgba(108, 117, 125, 0.28) !important;
}


.communication-settings-page .text-bg-warning,
.communication-template-modal .text-bg-warning,
.communication-automation-card .text-bg-warning,
.communication-template-card .text-bg-warning,
.communication-schedule-card .text-bg-warning,
.communication-delivery-card .text-bg-warning {
    background: rgba(255, 193, 7, 0.12) !important;
    color: #ffd86a !important;
    border: 1px solid rgba(255, 193, 7, 0.28) !important;
}


.communication-settings-page .text-bg-danger,
.communication-template-modal .text-bg-danger,
.communication-automation-card .text-bg-danger,
.communication-template-card .text-bg-danger,
.communication-schedule-card .text-bg-danger,
.communication-delivery-card .text-bg-danger {
    background: rgba(220, 53, 69, 0.12) !important;
    color: #ff9aa5 !important;
    border: 1px solid rgba(220, 53, 69, 0.28) !important;
}


.communication-settings-page .text-bg-light,
.communication-template-modal .text-bg-light,
.communication-automation-card .text-bg-light,
.communication-template-card .text-bg-light,
.communication-schedule-card .text-bg-light,
.communication-delivery-card .text-bg-light {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #c9ced4 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/*
|--------------------------------------------------------------------------
| COMMUNICATIONS OVERVIEW
|--------------------------------------------------------------------------
*/

.communications-settings-page {
    color: #f8fafc;
}


/*
|--------------------------------------------------------------------------
| KPI CARDS
|--------------------------------------------------------------------------
*/

.communications-settings-page .communication-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 112px;
    padding: 18px 20px;

    background: rgba(16, 24, 39, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}


.communications-settings-page .communication-stat-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255, 255, 255, 0.16);

    background:
        rgba(20, 30, 48, 0.94);
}


.communications-settings-page .communication-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    font-size: 1.25rem;
}


.communications-settings-page .communication-stat-content {
    min-width: 0;
}


.communications-settings-page .communication-stat-label {
    margin-bottom: 6px;

    color:
        rgba(255, 255, 255, 0.56);

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}


.communications-settings-page .communication-stat-value {
    color: #ffffff;

    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| SYSTEM HEALTH PANEL
|--------------------------------------------------------------------------
*/

.communications-settings-page .communication-health-panel {
    padding: 22px;

    background:
        rgba(16, 24, 39, 0.86);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        14px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);
}


.communications-settings-page .communication-health-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


.communications-settings-page .communication-health-header h4 {
    color: #ffffff;
    font-weight: 650;
}


.communications-settings-page .communication-health-message {
    margin-top: 7px;

    color:
        rgba(255, 255, 255, 0.56);

    font-size: 0.82rem;
}


/*
|--------------------------------------------------------------------------
| HEALTH CARDS
|--------------------------------------------------------------------------
*/

.communications-settings-page .communication-health-card {
    position: relative;

    height: 100%;
    min-height: 172px;

    padding: 16px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        12px;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}


.communications-settings-page .communication-health-card:hover {
    background:
        rgba(255, 255, 255, 0.055);

    border-color:
        rgba(255, 255, 255, 0.14);
}


.communications-settings-page .communication-health-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 14px;
}


.communications-settings-page .communication-health-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    color:
        rgba(255, 255, 255, 0.9);

    font-size: 1rem;
}


.communications-settings-page .communication-health-card-title {
    margin-bottom: 8px;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 650;
}


.communications-settings-page .communication-health-card-meta {
    color:
        rgba(255, 255, 255, 0.52);

    font-size: 0.78rem;
    line-height: 1.55;
}


.communications-settings-page .communication-health-delivery {
    margin-top: 10px;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| QUEUE MINI STATS
|--------------------------------------------------------------------------
*/

.communications-settings-page .communication-queue-stats {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;

    margin-top: 10px;
}


.communications-settings-page .communication-queue-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 7px 9px;

    background:
        rgba(0, 0, 0, 0.14);

    border:
        1px solid rgba(255, 255, 255, 0.05);

    border-radius:
        8px;

    color:
        rgba(255, 255, 255, 0.52);

    font-size:
        0.74rem;
}


.communications-settings-page .communication-queue-stats strong {
    color: #ffffff;

    font-size: 0.82rem;
}


/*
|--------------------------------------------------------------------------
| KILL BOOTSTRAP BADGE LOOK
|--------------------------------------------------------------------------
*/

.communications-settings-page .badge {
    padding:
        5px 9px !important;

    border-radius:
        999px !important;

    border:
        1px solid transparent;

    font-size:
        0.68rem !important;

    font-weight:
        700 !important;

    letter-spacing:
        0.02em;

    box-shadow:
        none !important;
}


.communications-settings-page .badge.text-bg-success {
    color:
        #86efac !important;

    background:
        rgba(34, 197, 94, 0.13) !important;

    border-color:
        rgba(34, 197, 94, 0.28);
}


.communications-settings-page .badge.text-bg-warning {
    color:
        #fde68a !important;

    background:
        rgba(245, 158, 11, 0.13) !important;

    border-color:
        rgba(245, 158, 11, 0.28);
}


.communications-settings-page .badge.text-bg-danger {
    color:
        #fca5a5 !important;

    background:
        rgba(239, 68, 68, 0.13) !important;

    border-color:
        rgba(239, 68, 68, 0.28);
}


.communications-settings-page .badge.text-bg-secondary {
    color:
        rgba(255, 255, 255, 0.68) !important;

    background:
        rgba(255, 255, 255, 0.07) !important;

    border-color:
        rgba(255, 255, 255, 0.1);
}


/*
|--------------------------------------------------------------------------
| REFRESH BUTTON
|--------------------------------------------------------------------------
*/

.communications-settings-page #communicationsHealthRefresh {
    padding:
        7px 12px;

    color:
        rgba(255, 255, 255, 0.82);

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius:
        9px;

    box-shadow:
        none;
}


.communications-settings-page #communicationsHealthRefresh:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.11);

    border-color:
        rgba(255, 255, 255, 0.16);
}


/*
|--------------------------------------------------------------------------
| ERROR PANEL
|--------------------------------------------------------------------------
*/

.communications-settings-page #communicationsHealthError {
    color:
        #fecaca;

    background:
        rgba(127, 29, 29, 0.22);

    border:
        1px solid rgba(239, 68, 68, 0.28);

    border-radius:
        10px;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .communications-settings-page .communication-stat-card {
        min-height: 92px;

        padding:
            14px;

        gap:
            11px;
    }


    .communications-settings-page .communication-stat-icon {
        width:
            40px;

        height:
            40px;

        flex-basis:
            40px;
    }


    .communications-settings-page .communication-stat-label {
        font-size:
            0.65rem;
    }


    .communications-settings-page .communication-stat-value {
        font-size:
            1.6rem;
    }


    .communications-settings-page .communication-health-panel {
        padding:
            15px;
    }


    .communications-settings-page .communication-health-card {
        min-height:
            auto;
    }

}


/*
|--------------------------------------------------------------------------
| COMMUNICATIONS AUTOMATIONS
|--------------------------------------------------------------------------
*/

.communications-automations-page {
    color: #f8fafc;
}


/*
|--------------------------------------------------------------------------
| LIST PANEL
|--------------------------------------------------------------------------
*/

.communications-automations-page > .card {
    background: rgba(16, 24, 39, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

.communications-automations-page > .card > .card-body {
    padding: 0;
}

.communications-automations-page #communicationsAutomationsList {
    min-height: 120px;
}

.communications-automations-page #communicationsAutomationsList .text-secondary {
    color: rgba(255, 255, 255, 0.52) !important;
}


/*
|--------------------------------------------------------------------------
| AUTOMATION MODAL
|--------------------------------------------------------------------------
*/

#communicationAutomationModal .modal-dialog {
    max-width: 860px;
}

#communicationAutomationModal .modal-content {
    overflow: hidden;

    color: #f8fafc;

    background: rgba(16, 24, 39, 0.98);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48);
}

#communicationAutomationModal .modal-header {
    padding: 18px 20px;

    background: rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

#communicationAutomationModal .modal-title {
    color: #ffffff;

    font-weight: 650;
}

#communicationAutomationModal .modal-body {
    padding: 20px;
}

#communicationAutomationModal .modal-footer {
    padding: 14px 20px;

    background: rgba(0, 0, 0, 0.12);

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}


/*
|--------------------------------------------------------------------------
| CLOSE BUTTON
|--------------------------------------------------------------------------
*/

#communicationAutomationModal .btn-close {
    opacity: 0.7;
    filter: invert(1) grayscale(1);
}

#communicationAutomationModal .btn-close:hover {
    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| LABELS
|--------------------------------------------------------------------------
*/

#communicationAutomationModal .form-label {
    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.045em;
}

#communicationAutomationModal .form-text {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.42) !important;

    font-size: 0.74rem;
}


/*
|--------------------------------------------------------------------------
| FORM CONTROLS
|--------------------------------------------------------------------------
*/

#communicationAutomationModal .form-control,
#communicationAutomationModal .form-select {
    min-height: 42px;

    color: #f8fafc;

    background-color:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius:
        9px;

    box-shadow:
        none;
}

#communicationAutomationModal .form-control:hover,
#communicationAutomationModal .form-select:hover {
    border-color:
        rgba(255, 255, 255, 0.18);
}

#communicationAutomationModal .form-control:focus,
#communicationAutomationModal .form-select:focus {
    color: #ffffff;

    background-color:
        rgba(255, 255, 255, 0.065);

    border-color:
        rgba(255, 255, 255, 0.28);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.04);
}

#communicationAutomationModal .form-control::placeholder {
    color:
        rgba(255, 255, 255, 0.28);
}

#communicationAutomationModal .form-select option {
    color: #111827;
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| CONFIGURATION SECTIONS
|--------------------------------------------------------------------------
*/

#communicationAutomationModal .card.border {
    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.08) !important;

    border-radius:
        12px;
}

#communicationAutomationModal .card.border .card-body {
    padding:
        16px;
}

#communicationAutomationModal .card.border h6 {
    color:
        #ffffff;

    font-size:
        0.9rem;

    font-weight:
        650;
}


/*
|--------------------------------------------------------------------------
| CHANNELS
|--------------------------------------------------------------------------
*/

#communicationAutomationModal
#communicationAutomationNotificationEnabled,
#communicationAutomationModal
#communicationAutomationEmailEnabled,
#communicationAutomationModal
#communicationAutomationActive {
    cursor: pointer;
}

#communicationAutomationModal .form-check {
    min-height: 0;
}

#communicationAutomationModal .form-check-label {
    color:
        rgba(255, 255, 255, 0.78);

    font-size:
        0.84rem;
}

#communicationAutomationModal .form-switch {
    display: flex;
    align-items: center;

    gap:
        10px;

    padding:
        10px 12px 10px 44px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius:
        9px;
}

#communicationAutomationModal .form-switch:hover {
    background:
        rgba(255, 255, 255, 0.055);
}

#communicationAutomationModal .form-switch .form-check-input {
    width:
        34px;

    height:
        18px;

    margin-left:
        -34px;

    cursor:
        pointer;

    background-color:
        rgba(255, 255, 255, 0.14);

    border-color:
        rgba(255, 255, 255, 0.16);

    box-shadow:
        none;
}

#communicationAutomationModal .form-switch .form-check-input:checked {
    background-color:
        #d63384;

    border-color:
        #d63384;
}


/*
|--------------------------------------------------------------------------
| CONDITION SECTION
|--------------------------------------------------------------------------
*/

#communicationAutomationModal
#communicationConditionOperator {
    text-align: center;
}

#communicationAutomationModal
#communicationConditionLeft,
#communicationAutomationModal
#communicationConditionRight {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size:
        0.82rem;
}


/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

#communicationAutomationModal .modal-footer .btn {
    min-width:
        120px;

    border-radius:
        9px;
}

.communications-automations-page #communicationAutomationNew {
    border-radius:
        9px;

    box-shadow:
        none;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    #communicationAutomationModal .modal-dialog {
        margin:
            0.5rem;
    }

    #communicationAutomationModal .modal-content {
        border-radius:
            13px;
    }

    #communicationAutomationModal .modal-header,
    #communicationAutomationModal .modal-body,
    #communicationAutomationModal .modal-footer {
        padding-left:
            15px;

        padding-right:
            15px;
    }

    #communicationAutomationModal .modal-footer {
        flex-direction:
            column-reverse;

        align-items:
            stretch;
    }

    #communicationAutomationModal .modal-footer .btn {
        width:
            100%;

        margin:
            0;
    }

}

/*
|--------------------------------------------------------------------------
| COMMUNICATIONS TEMPLATES
|--------------------------------------------------------------------------
*/

.communication-settings-page {
    color: #f8fafc;
}


/*
|--------------------------------------------------------------------------
| HELP / EXPLAINER
|--------------------------------------------------------------------------
*/

.communication-settings-page .communications-help-card {
    overflow: hidden;

    background:
        rgba(16, 24, 39, 0.86);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        14px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);
}


.communication-settings-page .communications-help-icon {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        42px;

    height:
        42px;

    flex:
        0 0 42px;

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    font-size:
        1.05rem;
}


.communication-settings-page .communications-section-title {
    color:
        #ffffff;

    font-size:
        1rem;

    font-weight:
        650;
}


.communication-settings-page .communications-muted {
    color:
        rgba(255, 255, 255, 0.52) !important;

    line-height:
        1.55;
}


/*
|--------------------------------------------------------------------------
| COMMUNICATION FLOW
|--------------------------------------------------------------------------
*/

.communication-settings-page .communications-flow {
    padding-top:
        18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);
}


.communication-settings-page .communications-flow-step {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    height:
        100%;

    min-height:
        74px;

    padding:
        12px 14px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius:
        10px;
}


.communication-settings-page .communications-flow-icon {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        34px;

    height:
        34px;

    flex:
        0 0 34px;

    border-radius:
        8px;

    background:
        rgba(255, 255, 255, 0.065);

    border:
        1px solid rgba(255, 255, 255, 0.06);
}


/*
|--------------------------------------------------------------------------
| TEMPLATE LIST
|--------------------------------------------------------------------------
*/

.communication-settings-page .communications-list-shell {
    overflow:
        hidden;

    background:
        rgba(16, 24, 39, 0.86);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        14px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);
}


.communication-settings-page .communications-list-header {
    padding:
        14px 18px;

    background:
        rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


.communication-settings-page #communicationsTemplatesList {
    min-height:
        120px;
}


/*
|--------------------------------------------------------------------------
| TEMPLATE MODAL
|--------------------------------------------------------------------------
*/

#communicationTemplateModal .modal-dialog {
    max-width:
        1180px;
}


#communicationTemplateModal .modal-content {
    overflow:
        hidden;

    color:
        #f8fafc;

    background:
        rgba(16, 24, 39, 0.985);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius:
        16px;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.5);
}


#communicationTemplateModal .modal-header {
    background:
        rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}


#communicationTemplateModal .modal-title {
    color:
        #ffffff;

    font-weight:
        650;
}


#communicationTemplateModal .modal-footer {
    background:
        rgba(0, 0, 0, 0.12);

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}


/*
|--------------------------------------------------------------------------
| EDITOR PANEL
|--------------------------------------------------------------------------
*/

#communicationTemplateModal .communication-editor-panel {
    padding:
        18px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        12px;
}


/*
|--------------------------------------------------------------------------
| LABELS / HELP TEXT
|--------------------------------------------------------------------------
*/

#communicationTemplateModal .form-label {
    margin-bottom:
        6px;

    color:
        rgba(255, 255, 255, 0.7);

    font-size:
        0.74rem;

    font-weight:
        700 !important;

    text-transform:
        uppercase;

    letter-spacing:
        0.045em;
}


#communicationTemplateModal .form-text,
#communicationTemplateModal .text-secondary {
    color:
        rgba(255, 255, 255, 0.43) !important;
}


/*
|--------------------------------------------------------------------------
| FORM CONTROLS
|--------------------------------------------------------------------------
*/

#communicationTemplateModal .form-control,
#communicationTemplateModal .form-select {
    min-height:
        42px;

    color:
        #f8fafc;

    background-color:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius:
        9px;

    box-shadow:
        none;
}


#communicationTemplateModal textarea.form-control {
    min-height:
        320px;

    resize:
        vertical;

    line-height:
        1.55;
}


#communicationTemplateModal .form-control:hover,
#communicationTemplateModal .form-select:hover {
    border-color:
        rgba(255, 255, 255, 0.18);
}


#communicationTemplateModal .form-control:focus,
#communicationTemplateModal .form-select:focus {
    color:
        #ffffff;

    background-color:
        rgba(255, 255, 255, 0.065);

    border-color:
        rgba(255, 255, 255, 0.28);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.04);
}


#communicationTemplateModal .form-control::placeholder {
    color:
        rgba(255, 255, 255, 0.27);
}


#communicationTemplateModal .form-select option {
    color:
        #111827;

    background:
        #ffffff;
}


/*
|--------------------------------------------------------------------------
| CHANNEL / REPORT INFO
|--------------------------------------------------------------------------
*/

#communicationTemplateModal .communications-channel-info,
#communicationTemplateModal
#communicationTemplateReportInfo > div {
    padding:
        14px;

    background:
        rgba(255, 255, 255, 0.035) !important;

    border:
        1px solid rgba(255, 255, 255, 0.08) !important;

    border-radius:
        10px !important;
}


#communicationTemplateModal .communications-channel-info-icon {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        38px;

    height:
        38px;

    flex:
        0 0 38px;

    border-radius:
        9px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.07);
}


/*
|--------------------------------------------------------------------------
| ACTIVE SWITCH PANEL
|--------------------------------------------------------------------------
*/

#communicationTemplateModal
#communicationTemplateActive
    {
    cursor:
        pointer;
}


#communicationTemplateModal
.col-12.pt-2 > .d-flex {
    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.08) !important;

    border-radius:
        10px !important;
}


#communicationTemplateModal .form-switch .form-check-input {
    width:
        36px;

    height:
        19px;

    cursor:
        pointer;

    background-color:
        rgba(255, 255, 255, 0.14);

    border-color:
        rgba(255, 255, 255, 0.16);

    box-shadow:
        none;
}


#communicationTemplateModal .form-switch .form-check-input:checked {
    background-color:
        #d63384;

    border-color:
        #d63384;
}


/*
|--------------------------------------------------------------------------
| PLACEHOLDER PANEL
|--------------------------------------------------------------------------
*/

#communicationTemplateModal .communication-placeholder-panel {
    position:
        sticky;

    top:
        0;

    overflow:
        hidden;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius:
        12px;
}


#communicationTemplateModal .communication-placeholder-header {
    padding:
        14px 16px;

    background:
        rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


#communicationTemplateModal .communication-placeholder-body {
    max-height:
        620px;

    overflow-y:
        auto;

    padding:
        14px;
}


#communicationTemplateModal .communication-placeholder-heading {
    color:
        rgba(255, 255, 255, 0.5);

    font-size:
        0.68rem;

    letter-spacing:
        0.07em;
}


/*
|--------------------------------------------------------------------------
| PLACEHOLDER BUTTONS
|--------------------------------------------------------------------------
*/

#communicationTemplateModal .communication-template-placeholder {
    width:
        100%;

    padding:
        10px 12px;

    color:
        rgba(255, 255, 255, 0.88);

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius:
        9px;

    box-shadow:
        none;
}


#communicationTemplateModal .communication-template-placeholder:hover {
    color:
        #ffffff;

    background:
        rgba(255, 255, 255, 0.065);

    border-color:
        rgba(255, 255, 255, 0.14);
}


#communicationTemplateModal
.communication-template-placeholder .small {
    margin-top:
        2px;

    color:
        rgba(255, 255, 255, 0.42);
}


/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.communication-settings-page #communicationTemplateNew,
#communicationTemplateModal .modal-footer .btn {
    border-radius:
        9px;

    box-shadow:
        none;
}


#communicationTemplateModal .modal-footer .btn {
    min-width:
        120px;
}


/*
|--------------------------------------------------------------------------
| SCROLLBARS
|--------------------------------------------------------------------------
*/

#communicationTemplateModal
.communication-placeholder-body::-webkit-scrollbar {
    width:
        8px;
}


#communicationTemplateModal
.communication-placeholder-body::-webkit-scrollbar-track {
    background:
        transparent;
}


#communicationTemplateModal
.communication-placeholder-body::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.12);

    border-radius:
        999px;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    #communicationTemplateModal .communication-placeholder-panel {
        position:
            static;
    }


    #communicationTemplateModal .communication-placeholder-body {
        max-height:
            none;
    }

}


@media (max-width: 767.98px) {

    .communication-settings-page .communications-flow-step {
        min-height:
            auto;
    }


    #communicationTemplateModal .modal-dialog {
        margin:
            0.5rem;
    }


    #communicationTemplateModal .modal-content {
        border-radius:
            13px;
    }


    #communicationTemplateModal .communication-editor-panel {
        padding:
            14px;
    }


    #communicationTemplateModal .modal-footer {
        flex-direction:
            column-reverse;

        align-items:
            stretch;
    }


    #communicationTemplateModal .modal-footer .btn {
        width:
            100%;

        margin:
            0;
    }

}

#communicationTemplateModal .communications-report-info {
    padding: 14px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;
}

#communicationTemplateModal .communication-template-active-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 1rem;

    padding: 14px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;
}


/*
|--------------------------------------------------------------------------
| COMMUNICATIONS AUTOMATIONS PAGE
|--------------------------------------------------------------------------
*/

.communications-automations-page {
    color: #f8fafc;
}


/*
|--------------------------------------------------------------------------
| LIST SHELL
|--------------------------------------------------------------------------
*/

.communications-automations-page > .card {
    overflow: hidden;

    background: rgba(16, 24, 39, 0.86) !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    border-radius: 14px !important;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18) !important;
}


.communications-automations-page > .card > .card-body {
    padding: 0 !important;
}


/*
|--------------------------------------------------------------------------
| AUTOMATION LIST
|--------------------------------------------------------------------------
*/

#communicationsAutomationsList {
    min-height: 120px;
}


#communicationsAutomationsList > .card {
    margin: 0 !important;

    background: transparent !important;

    border: 0 !important;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07) !important;

    border-radius: 0 !important;

    box-shadow: none !important;
}


#communicationsAutomationsList > .card:last-child {
    border-bottom: 0 !important;
}


#communicationsAutomationsList > .card > .card-body {
    padding: 18px 20px !important;

    background: transparent;
}


#communicationsAutomationsList > .card:hover > .card-body {
    background: rgba(255, 255, 255, 0.025);
}


/*
|--------------------------------------------------------------------------
| AUTOMATION TITLE
|--------------------------------------------------------------------------
*/

#communicationsAutomationsList h5 {
    color: #ffffff;

    font-size: 0.98rem;

    font-weight: 650;

    letter-spacing: 0;
}


/*
|--------------------------------------------------------------------------
| AUTOMATION DETAILS
|--------------------------------------------------------------------------
*/

#communicationsAutomationsList .small.text-secondary {
    color: rgba(255, 255, 255, 0.48) !important;

    font-size: 0.76rem;

    line-height: 1.45;
}


#communicationsAutomationsList .small.text-secondary strong {
    color: rgba(255, 255, 255, 0.72);

    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| ACTIVE BADGE
|--------------------------------------------------------------------------
*/

#communicationsAutomationsList .badge.text-bg-success {
    padding: 4px 8px;

    color: #86efac !important;

    background:
        rgba(34, 197, 94, 0.12) !important;

    border:
        1px solid rgba(34, 197, 94, 0.24);

    border-radius: 999px;

    font-size: 0.65rem;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| CONDITION BADGES
|--------------------------------------------------------------------------
*/

#communicationsAutomationsList
.badge.text-bg-light {
    padding: 5px 8px;

    color:
        rgba(255, 255, 255, 0.72) !important;

    background:
        rgba(255, 255, 255, 0.055) !important;

    border:
        1px solid rgba(255, 255, 255, 0.09) !important;

    border-radius:
        7px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size:
        0.69rem;
}


/*
|--------------------------------------------------------------------------
| ACTION BUTTONS
|--------------------------------------------------------------------------
*/

#communicationsAutomationsList
.communication-automation-edit,
#communicationsAutomationsList
.communication-automation-toggle {
    min-width: 82px;

    padding: 6px 10px;

    border-radius: 8px;

    font-size: 0.75rem;

    box-shadow: none;
}


#communicationsAutomationsList
.communication-automation-toggle {
    color:
        rgba(255, 255, 255, 0.62);

    background:
        transparent;

    border:
        1px solid rgba(255, 255, 255, 0.12);
}


#communicationsAutomationsList
.communication-automation-toggle:hover {
    color:
        #ffffff;

    background:
        rgba(255, 255, 255, 0.06);

    border-color:
        rgba(255, 255, 255, 0.2);
}


/*
|--------------------------------------------------------------------------
| LOADING
|--------------------------------------------------------------------------
*/

#communicationsAutomationsList
.text-center.text-secondary {
    color:
        rgba(255, 255, 255, 0.42) !important;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    #communicationsAutomationsList
    > .card
    > .card-body {
        padding:
            15px !important;
    }


    #communicationsAutomationsList
    .communication-automation-edit,
    #communicationsAutomationsList
    .communication-automation-toggle {
        flex:
            1;
    }

}


/* =========================================================
   TOPBAR USER MENU
   ========================================================= */

.topbar .dropdown-menu {
    --bs-dropdown-min-width: 220px;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0.4rem;
    --bs-dropdown-bg: #1f252d;
    --bs-dropdown-border-color: rgba(255, 255, 255, 0.08);
    --bs-dropdown-border-radius: 12px;
    --bs-dropdown-box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28);
}

.topbar .dropdown-menu-end {
    margin-top: 0.65rem !important;
}


/* =========================================================
   USER BUTTON
   ========================================================= */

.topbar-user-btn {
    border: 0;
    background: transparent;
    color: #d8dde3;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.topbar-user-btn:hover,
.topbar-user-btn:focus,
.topbar-user-btn.show {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);

    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;

    flex-shrink: 0;
}


/* =========================================================
   DROPDOWN ITEMS
   ========================================================= */

.topbar .dropdown-item {
    display: flex;
    align-items: center;

    gap: 0.6rem;

    padding: 0.65rem 0.9rem;

    color: #cfd5dc;

    font-size: 0.9rem;

    border-radius: 8px;

    margin: 0 0.35rem;
    width: calc(100% - 0.7rem);

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.topbar .dropdown-item i {
    width: 18px;

    color: #8f99a5;

    font-size: 1rem;

    text-align: center;
}

.topbar .dropdown-item:hover,
.topbar .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.topbar .dropdown-item:hover i,
.topbar .dropdown-item:focus i {
    color: #ffffff;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.topbar .dropdown-divider {
    margin: 0.35rem 0.75rem;

    border-color: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   LOGOUT
   ========================================================= */

.topbar .dropdown-item.text-danger {
    color: #ff8f8f !important;
}

.topbar .dropdown-item.text-danger i {
    color: #ff8f8f;
}

.topbar .dropdown-item.text-danger:hover,
.topbar .dropdown-item.text-danger:focus {
    background: rgba(220, 53, 69, 0.12);
    color: #ffaaaa !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .topbar .dropdown-menu {
        min-width: 200px;
    }

    .topbar-user-btn {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
}


/* =========================================================
   CORE STACKING / Z-INDEX
   ========================================================= */

.topbar {
    position: relative;
    z-index: 1050;
}

.topbar .dropdown {
    position: relative;
    z-index: 1060;
}

.topbar .dropdown-menu {
    z-index: 1070;
}


/*
 * Keep normal SPA content underneath topbar overlays.
 */

#app-content {
    position: relative;
    z-index: 1;
}


.core-settings-avatar img,
.topbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


    .core-settings-avatar {
        width: 88px;
        height: 88px;
        flex: 0 0 88px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;
        overflow: hidden;

        background:
            rgba(
                var(--bs-primary-rgb),
                0.15
            );

        border:
            1px solid
            rgba(
                var(--bs-primary-rgb),
                0.25
            );

        font-size: 1.35rem;
        font-weight: 700;
    }


    .core-settings-avatar-small {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        font-size: 1rem;
    }


    .core-settings-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


    .core-settings-profile-preview {
        min-height: 100%;

        padding: 1.25rem;

        border-radius: 0.85rem;

        border:
            1px solid
            rgba(
                var(--bs-body-color-rgb),
                0.1
            );

        background:
            rgba(
                var(--bs-body-bg-rgb),
                0.4
            );
    }


    .core-settings-info {
        height: 100%;

        padding: 1rem 1.1rem;

        border-radius: 0.75rem;

        border:
            1px solid
            rgba(
                var(--bs-body-color-rgb),
                0.1
            );

        background:
            rgba(
                var(--bs-body-bg-rgb),
                0.25
            );
    }


    .core-settings-info-label {
        margin-bottom: 0.25rem;

        font-size: 0.75rem;
        font-weight: 600;

        text-transform: uppercase;
        letter-spacing: 0.04em;

        color:
            var(--bs-secondary-color);
    }


    .core-settings-info-value {
        font-weight: 600;
        word-break: break-word;
    }


    .core-settings-favourite {
        position: relative;

        display: flex;
        align-items: center;
        gap: 0.9rem;

        width: 100%;
        height: 100%;

        padding: 1rem;

        border-radius: 0.75rem;

        border:
            1px solid
            rgba(
                var(--bs-body-color-rgb),
                0.1
            );

        background:
            rgba(
                var(--bs-body-bg-rgb),
                0.25
            );

        cursor: pointer;

        transition:
            border-color 0.15s ease,
            background-color 0.15s ease,
            transform 0.15s ease;
    }


    .core-settings-favourite:hover {
        border-color:
            rgba(
                var(--bs-primary-rgb),
                0.35
            );

        background:
            rgba(
                var(--bs-primary-rgb),
                0.05
            );
    }


    .core-settings-favourite:has(
        .form-check-input:checked
    ) {
        border-color:
            rgba(
                var(--bs-primary-rgb),
                0.5
            );

        background:
            rgba(
                var(--bs-primary-rgb),
                0.08
            );
    }


    .core-settings-favourite .form-check-input {
        flex: 0 0 auto;
        margin: 0;
    }


    .core-settings-favourite-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 0.65rem;

        background:
            rgba(
                var(--bs-primary-rgb),
                0.12
            );

        color:
            var(--bs-primary);

        font-size: 1.1rem;
    }


    .core-settings-background-preview {
        width: 100%;

        aspect-ratio: 16 / 6;

        min-height: 220px;

        border-radius: 0.85rem;

        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;

        border:
            1px solid
            rgba(
                var(--bs-body-color-rgb),
                0.1
            );
    }


    @media (
        max-width: 767.98px
    ) {

        .core-settings-background-preview {
            aspect-ratio: 16 / 9;
            min-height: 180px;
        }

    }


    /* ============================================================
   MY SETTINGS
============================================================ */

#coreMySettings {
    max-width: 1180px;
}


/*
|--------------------------------------------------------------------------
| SECTION CARDS
|--------------------------------------------------------------------------
*/

#coreMySettings .core-card {
    background:
        var(--core-panel);

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);
}


#coreMySettings .core-card > .card-body {
    padding:
        1.35rem !important;
}


#coreMySettings .core-card h5 {
    color:
        var(--core-text);

    font-weight:
        700;
}


/*
|--------------------------------------------------------------------------
| AVATAR
|--------------------------------------------------------------------------
*/

.core-settings-avatar {

    width: 92px;
    height: 92px;

    flex:
        0 0 92px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid
        var(--core-border);

    border-radius:
        50%;

    color:
        var(--core-text-soft);

    font-size:
        1.6rem;

    font-weight:
        700;
}


.core-settings-avatar img {

    width: 100%;
    height: 100%;

    object-fit:
        cover;
}


.core-settings-avatar-small {

    width: 44px;
    height: 44px;

    flex:
        0 0 44px;

    font-size:
        0.85rem;
}


/*
|--------------------------------------------------------------------------
| PROFILE PREVIEW
|--------------------------------------------------------------------------
*/

.core-settings-profile-preview {

    padding:
        1rem;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid
        var(--core-border-soft);

    border-radius:
        var(--core-radius-sm);
}


/*
|--------------------------------------------------------------------------
| ACCOUNT INFORMATION
|--------------------------------------------------------------------------
*/

.core-settings-info {

    min-height:
        62px;

    padding:
        0.75rem
        0.9rem;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid
        var(--core-border-soft);

    border-radius:
        var(--core-radius-sm);
}


.core-settings-info-label {

    margin-bottom:
        0.15rem;

    color:
        var(--core-text-muted);

    font-size:
        0.7rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.core-settings-info-value {

    color:
        var(--core-text);

    font-size:
        0.9rem;

    font-weight:
        600;
}


/*
|--------------------------------------------------------------------------
| FAVOURITES
|--------------------------------------------------------------------------
*/

.core-settings-favourite {

    min-height:
        70px;

    display:
        flex;

    align-items:
        center;

    gap:
        0.75rem;

    padding:
        0.7rem
        0.85rem;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid
        var(--core-border-soft);

    border-radius:
        var(--core-radius-sm);

    cursor:
        pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}


.core-settings-favourite:hover {

    background:
        rgba(255, 255, 255, 0.05);

    border-color:
        rgba(255, 255, 255, 0.11);

    transform:
        translateY(-1px);
}


.core-settings-favourite:has(
    .form-check-input:checked
) {

    background:
        rgba(232, 79, 123, 0.10);

    border-color:
        rgba(232, 79, 123, 0.38);
}


.core-settings-favourite .form-check-input {

    flex:
        0 0 auto;

    margin:
        0;
}


.core-settings-favourite-icon {

    width: 34px;
    height: 34px;

    flex:
        0 0 34px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(255, 255, 255, 0.05);

    border-radius:
        8px;

    color:
        var(--core-text-soft);

    font-size:
        0.95rem;
}


.core-settings-favourite:has(
    .form-check-input:checked
)
.core-settings-favourite-icon {

    background:
        rgba(232, 79, 123, 0.16);

    color:
        var(--hops-pink);
}


/*
|--------------------------------------------------------------------------
| BACKGROUND
|--------------------------------------------------------------------------
*/

.core-settings-background-preview {

    width:
        320px;

    max-width:
        100%;

    aspect-ratio:
        2 / 1;

    background-size:
        cover;

    background-position:
        center;

    background-repeat:
        no-repeat;

    border:
        1px solid
        var(--core-border);

    border-radius:
        var(--core-radius-sm);

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.16);
}


/*
|--------------------------------------------------------------------------
| STATUS
|--------------------------------------------------------------------------
*/

#mySettingsStatus {
    min-height:
        20px;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    #coreMySettings .core-card > .card-body {

        padding:
            1rem !important;
    }


    .core-settings-avatar {

        width:
            76px;

        height:
            76px;

        flex-basis:
            76px;
    }


    .core-settings-background-preview {

        width:
            100%;
    }


    .core-settings-favourite {

        min-height:
            62px;
    }

}


.topbar-user-avatar {

    width:
        26px;

    height:
        26px;

    flex:
        0 0 26px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, 0.10);

    color:
        currentColor;

    font-size:
        0.72rem;

    font-weight:
        700;
}


.topbar-user-avatar img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}

/* ==========================================================================
   MY SETTINGS - BUTTONS
   ========================================================================== */

#coreMySettings .btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding:
        0.45rem
        0.85rem;

    border-radius:
        8px;

    font-size:
        0.875rem;

    font-weight:
        600;

    line-height:
        1.2;

    box-shadow:
        none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


#coreMySettings .btn:hover {

    transform:
        translateY(-1px);
}


#coreMySettings .btn:active {

    transform:
        translateY(0);
}


/*
|--------------------------------------------------------------------------
| STANDARD ACTION
|--------------------------------------------------------------------------
*/

#coreMySettings .btn-outline-primary {

    background:
        rgba(25, 135, 84, 0.12);

    border:
        1px solid rgba(25, 135, 84, 0.55);

    color:
        #198754;

    font-weight:
        600;
}


#coreMySettings .btn-outline-primary:hover,
#coreMySettings .btn-outline-primary:focus {

    background:
        #198754;

    border-color:
        #198754;

    color:
        #ffffff;

    box-shadow:
        0 4px 12px rgba(25, 135, 84, 0.20);
}

/*
|--------------------------------------------------------------------------
| SECONDARY ACTION
|--------------------------------------------------------------------------
*/

#coreMySettings .btn-outline-secondary {

    background:
        #495057;

    border-color:
        #495057;

    color:
        #ffffff;
}


#coreMySettings .btn-outline-secondary:hover,
#coreMySettings .btn-outline-secondary:focus {

    background:
        #343a40;

    border-color:
        #343a40;

    color:
        #ffffff;
}


/*
|--------------------------------------------------------------------------
| DESTRUCTIVE ACTION
|--------------------------------------------------------------------------
*/

#coreMySettings .btn-outline-danger {

    background:
        rgba(220, 53, 69, 0.06);

    border-color:
        rgba(220, 53, 69, 0.20);

    color:
        #dc3545;
}


#coreMySettings .btn-outline-danger:hover,
#coreMySettings .btn-outline-danger:focus {

    background:
        rgba(220, 53, 69, 0.12);

    border-color:
        rgba(220, 53, 69, 0.35);

    color:
        #dc3545;
}


/*
|--------------------------------------------------------------------------
| SAVE SETTINGS
|--------------------------------------------------------------------------
*/

#coreMySettings #mySettingsSave {

    background:
        #198754;

    border-color:
        #198754;

    color:
        #ffffff;

    font-weight:
        600;
}


#coreMySettings #mySettingsSave:hover,
#coreMySettings #mySettingsSave:focus {

    background:
        #157347;

    border-color:
        #157347;

    color:
        #ffffff;

    box-shadow:
        0 4px 14px rgba(25, 135, 84, 0.25);
}


/*
|--------------------------------------------------------------------------
| ICONS
|--------------------------------------------------------------------------
*/

#coreMySettings .btn i {

    font-size:
        0.9rem;
}


#coreMySettings .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.08);
    --bs-accordion-btn-bg: rgba(255, 255, 255, 0.04);
    --bs-accordion-active-bg: rgba(25, 135, 84, 0.10);
    --bs-accordion-active-color: #ffffff;
    --bs-accordion-btn-color: #ffffff;
    --bs-accordion-color: #ffffff;
    --bs-accordion-btn-focus-box-shadow: none;
}


#coreMySettings .accordion-item {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}


#coreMySettings .accordion-item:last-child {
    margin-bottom: 0;
}


#coreMySettings .accordion-button {
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
    font-weight: 600;
    padding: 16px 18px;
    border: 0;
    box-shadow: none;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}


#coreMySettings .accordion-button:hover {
    background: rgba(255, 255, 255, 0.075);
}


#coreMySettings .accordion-button:not(.collapsed) {
    background: rgba(25, 135, 84, 0.14);
    color: #ffffff;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}


#coreMySettings .accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.75;
}


#coreMySettings .accordion-button:not(.collapsed)::after {
    opacity: 1;
}


#coreMySettings .accordion-button > span > i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    border-radius: 7px;
    background: rgba(25, 135, 84, 0.15);
    color: #43b581;
    font-size: 0.95rem;
}


#coreMySettings .accordion-button .badge {
    margin-left: auto !important;
    margin-right: 12px;
    background: rgba(108, 117, 125, 0.35) !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 5px 8px;
}


#coreMySettings .accordion-body {
    background: rgba(0, 0, 0, 0.12);
    padding: 18px;
}


/*
|--------------------------------------------------------------------------
| FAVOURITE CARDS
|--------------------------------------------------------------------------
*/

#coreMySettings .core-settings-favourite {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


#coreMySettings .core-settings-favourite:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(25, 135, 84, 0.38);
    transform: translateY(-1px);
}


#coreMySettings .core-settings-favourite:has(
    input:checked
) {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.58);
    box-shadow:
        0 0 0 1px rgba(25, 135, 84, 0.06);
}


#coreMySettings .core-settings-favourite:has(
    input:disabled
) {
    opacity: 0.48;
    cursor: not-allowed;
}


#coreMySettings .core-settings-favourite .form-check-input {
    margin-top: 4px;
    flex: 0 0 auto;
}


#coreMySettings .core-settings-favourite-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
}


#coreMySettings .core-settings-favourite:has(
    input:checked
) .core-settings-favourite-icon {
    background: rgba(25, 135, 84, 0.22);
    color: #49c287;
}


/*
|--------------------------------------------------------------------------
| SELECTED FAVOURITES
|--------------------------------------------------------------------------
*/

#coreMySettings .core-settings-selected-favourites {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(25, 135, 84, 0.20);
    background: rgba(25, 135, 84, 0.07);
}


#coreMySettings #mySettingsFavouriteSelected .badge {
    background: rgba(25, 135, 84, 0.18);
    border: 1px solid rgba(25, 135, 84, 0.38);
    color: #ffffff;
    font-weight: 500;
    padding: 7px 10px;
}


/*
|--------------------------------------------------------------------------
| FAVOURITES HEADER
|--------------------------------------------------------------------------
*/

#coreMySettings #mySettingsFavouriteCount {
    color: rgba(255, 255, 255, 0.85);
}


#coreMySettings #mySettingsFavouriteClear {
    color: #dc3545;
    text-decoration: none;
}


#coreMySettings #mySettingsFavouriteClear:hover {
    color: #ff6b78;
    text-decoration: underline;
}


/* CORE topbar favourites */
.core-favourites-menu {
    width: 300px;
    max-width: calc(100vw - 24px);
    border-radius: 12px;
    overflow: hidden;
}

.core-favourite-menu-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border-radius: 8px;
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}

.core-favourites-menu .dropdown-item {
    white-space: normal;
}

.core-favourites-menu .dropdown-item:hover,
.core-favourites-menu .dropdown-item.active {
    background: rgba(25, 135, 84, 0.08);
    color: inherit;
}

#coreFavouriteCurrentToggle .bi-star-fill,
#coreFavouritesMenuButton .bi-star-fill {
    color: #ffc107;
}

.core-favourites-menu > .border-bottom:first-child {
    color: #ffffff;
}

.core-favourites-menu > .border-bottom:first-child .text-secondary {
    color: rgba(255, 255, 255, 0.65) !important;
}

.modal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1050;
}

.offcanvas {
    z-index: 1045;
}

.offcanvas-backdrop {
    z-index: 1040;
}

/* ==========================================================================
   CORE KNOWLEDGE BASE
   Uses CORE's shared surfaces, typography, borders and controls.
   ========================================================================== */

.kb-shell,
.kb-article-shell,
.kb-admin-shell,
.kb-editor-shell {
    color: var(--core-text);
}

.kb-shell,
.kb-admin-shell,
.kb-editor-shell,
.kb-article-shell {
    padding: 0;
}

/* Shared surfaces */
.kb-hero,
.kb-panel,
.kb-article-card,
.kb-admin-hero,
.kb-admin-panel,
.kb-admin-stat,
.kb-editor-topbar,
.kb-editor-panel {
    background: var(--core-panel);
    border: 1px solid var(--core-border);
    border-radius: var(--core-radius);
    box-shadow: var(--core-shadow);
    color: var(--core-text);
}

/* Shared small headings */
.kb-eyebrow,
.kb-panel-kicker,
.kb-admin-eyebrow,
.kb-editor-eyebrow {
    margin-bottom: 0.15rem;
    color: var(--core-text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.kb-title,
.kb-panel-title,
.kb-admin-title,
.kb-editor-heading,
.kb-article-header h1,
.kb-article-content h2,
.kb-article-content h3 {
    color: var(--core-text);
    font-weight: 700;
}

.kb-subtitle,
.kb-admin-subtitle,
.kb-article-summary,
.kb-search-meta,
.kb-admin-date,
.kb-updated-date {
    color: var(--core-text-muted);
}

/* --------------------------------------------------------------------------
   PUBLIC HELP
   -------------------------------------------------------------------------- */

.kb-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.kb-hero-glow {
    display: none;
}

.kb-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
}

.kb-subtitle {
    max-width: 760px;
    margin-top: 0.45rem;
    font-size: 0.9rem;
}

.kb-hero-badge,
.kb-mini-badge,
.kb-count-pill,
.kb-admin-type-badge,
.kb-admin-status,
.kb-editor-status-badge,
.kb-tip-chip,
.kb-editor-save-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--core-border);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
}

.kb-hero-badge,
.kb-mini-badge,
.kb-count-pill,
.kb-tip-chip {
    padding: 0.35rem 0.6rem;
    background: var(--core-input);
    color: var(--core-text-soft);
}

.kb-search-wrap,
.kb-admin-search-wrap {
    position: relative;
}

.kb-search-icon,
.kb-admin-search-wrap > i {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--core-text-muted);
    pointer-events: none;
}

.kb-search-input,
.kb-admin-search-wrap .form-control {
    padding-left: 2.5rem;
}

.kb-search-input {
    min-height: 46px;
}

.kb-search-clear {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    z-index: 2;
    transform: translateY(-50%);
}

.kb-panel {
    overflow: hidden;
}

.kb-panel-header,
.kb-admin-panel > .kb-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--core-border-soft);
}

.kb-panel-icon,
.kb-category-icon,
.kb-article-list-icon,
.kb-admin-stat-icon,
.kb-admin-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(232, 79, 123, 0.12);
    border: 1px solid rgba(232, 79, 123, 0.16);
    color: var(--hops-pink);
}

.kb-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

#knowledgeBaseCategories {
    padding: 1rem;
}

.kb-category-card,
.kb-article-list-item,
.kb-quick-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    background: var(--core-input);
    border: 1px solid var(--core-border-soft);
    border-radius: var(--core-radius-sm);
    color: var(--core-text-soft);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.kb-category-card {
    min-height: 76px;
    padding: 0.85rem;
}

.kb-category-card:hover,
.kb-article-list-item:hover,
.kb-quick-step:hover {
    background: var(--core-hover);
    border-color: var(--core-border);
    color: #fff;
    transform: translateY(-1px);
}

.kb-category-icon,
.kb-article-list-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 10px;
}

.kb-category-copy,
.kb-article-list-copy {
    min-width: 0;
    flex: 1;
}

.kb-category-copy strong,
.kb-article-list-title {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
}

.kb-category-copy small,
.kb-article-list-summary {
    display: block;
    margin-top: 0.15rem;
    color: var(--core-text-muted);
    font-size: 0.74rem;
}

.kb-category-arrow,
.kb-article-list-arrow {
    color: var(--core-text-faint);
}

.kb-article-list-item {
    padding: 0.9rem 1rem;
    margin-bottom: 0.55rem;
}

.kb-empty-state,
.kb-error-state,
.kb-loading-card,
.kb-article-loading,
.kb-admin-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--core-text-muted);
}

.kb-tip-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kb-quick-step {
    padding: 0.75rem 0.85rem;
}

.kb-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: rgba(232, 79, 123, 0.14);
    color: var(--hops-pink);
    font-size: 0.72rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   ARTICLE READER
   -------------------------------------------------------------------------- */

.kb-article-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kb-back-btn,
.kb-editor-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--core-radius-sm);
}

.kb-article-toolbar-meta,
.kb-article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--core-text-muted);
    font-size: 0.75rem;
}

.kb-article-card {
    overflow: hidden;
}

.kb-article-header,
.kb-article-content {
    padding: 1.35rem 1.5rem;
}

.kb-article-header {
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--core-border-soft);
}

.kb-article-header h1 {
    margin: 0.35rem 0 0;
    font-size: 1.8rem;
}

.kb-article-category {
    color: var(--hops-pink);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kb-article-summary {
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.kb-article-content {
    color: var(--core-text-soft);
    line-height: 1.65;
}

.kb-article-content h2 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.35rem;
}

.kb-article-content h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
}

.kb-article-content a,
.kb-rich-canvas a {
    color: var(--hops-pink);
}

.kb-article-divider {
    border-color: var(--core-border-soft);
    opacity: 1;
}

.kb-callout {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--core-border);
    border-left: 3px solid var(--hops-green-light);
    border-radius: var(--core-radius-sm);
    background: var(--core-input);
}

.kb-callout-tip {
    border-left-color: #69db7c;
}

.kb-callout-warning {
    border-left-color: #ffd43b;
}

/* --------------------------------------------------------------------------
   MANAGEMENT
   -------------------------------------------------------------------------- */

.kb-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
}

.kb-admin-title {
    margin: 0;
    font-size: 1.5rem;
}

.kb-admin-subtitle {
    margin-top: 0.2rem;
    font-size: 0.84rem;
}

.kb-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.kb-admin-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.kb-admin-stat-icon,
.kb-admin-entry-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.kb-admin-stat strong {
    display: block;
    color: #fff;
    font-size: 1.25rem;
}

.kb-admin-stat small {
    color: var(--core-text-muted);
    font-size: 0.7rem;
}

.kb-admin-panel {
    overflow: hidden;
}

.kb-admin-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(130px, 0.65fr));
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--core-border-soft);
}

.kb-admin-table-wrap {
    overflow-x: auto;
}

/* ============================================================
   KB ADMIN TABLE - TIDY CORE VERSION
============================================================ */

.kb-admin-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--core-text-soft);
    --bs-table-border-color: var(--core-border-soft);
    --bs-table-hover-bg: var(--core-hover);
    --bs-table-hover-color: #ffffff;

    margin: 0;
}


.kb-admin-table > :not(caption) > * > * {
    background: transparent;
    color: inherit;
    border-color: var(--core-border-soft);
}


.kb-admin-table thead th {
    padding:
        0.8rem
        0.9rem;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--core-text-muted);

    font-size:
        0.69rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;

    white-space:
        nowrap;
}


.kb-admin-table tbody td {
    padding:
        0.8rem
        0.9rem;

    vertical-align:
        middle;
}


.kb-admin-table tbody tr:hover > * {
    background:
        var(--core-hover) !important;
}


/* ENTRY */

.kb-admin-entry-link {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;

    width: 100%;

    padding: 0;

    background: transparent;

    border: 0;

    color: inherit;

    text-align: left;
}


.kb-admin-entry-link:hover strong {
    color:
        var(--hops-pink);
}


.kb-admin-entry-icon {
    width: 28px;
    height: 28px;

    flex:
        0 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        var(--core-border-soft);

    border-radius:
        7px;

    color:
        var(--core-text-muted);

    font-size:
        0.78rem;
}


.kb-admin-entry-link strong {
    display: block;

    color:
        #ffffff;

    font-size:
        0.86rem;

    font-weight:
        600;

    line-height:
        1.25;

    transition:
        color 0.15s ease;
}


.kb-admin-entry-link small {
    display: block;

    margin-top:
        0.14rem;

    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    line-height:
        1.3;
}


/* TYPE */

.kb-admin-type-badge {
    display: inline-flex;

    align-items: center;

    padding:
        0.24rem
        0.5rem;

    border-radius:
        7px;

    font-size:
        0.68rem;

    font-weight:
        600;
}


.kb-admin-type-badge.is-article {
    background:
        rgba(116, 192, 252, 0.10);

    border:
        1px solid
        rgba(116, 192, 252, 0.16);

    color:
        #74c0fc;
}


.kb-admin-type-badge.is-tooltip {
    background:
        rgba(177, 151, 252, 0.10);

    border:
        1px solid
        rgba(177, 151, 252, 0.16);

    color:
        #b197fc;
}


/* AREA */

.kb-admin-area {
    color:
        var(--core-text-soft);

    font-size:
        0.78rem;
}


/* STATUS */

.kb-admin-status {
    display: inline-flex;

    align-items: center;

    gap:
        0.35rem;

    font-size:
        0.7rem;

    font-weight:
        600;
}


.kb-admin-status i {
    font-size:
        0.42rem;
}


.kb-admin-status.is-published {
    color:
        #69db7c;
}


.kb-admin-status.is-draft {
    color:
        #ffd43b;
}


.kb-admin-status.is-archived {
    color:
        var(--core-text-muted);
}


/* DATE */

.kb-admin-date {
    color:
        var(--core-text-muted);

    font-size:
        0.72rem;

    white-space:
        nowrap;
}


/* ACTIONS */

.kb-admin-table .btn-group {
    gap:
        0.3rem;
}


.kb-admin-table .btn-group .btn {
    width:
        32px;

    height:
        32px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding: 0;

    border-radius:
        7px !important;
}


.kb-admin-table .btn-outline-secondary {
    background:
        rgba(255, 255, 255, 0.04);

    border-color:
        var(--core-border);

    color:
        var(--core-text-muted);
}


.kb-admin-table .btn-outline-secondary:hover {
    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.14);

    color:
        #ffffff;
}


.kb-admin-table .btn-outline-danger {
    background:
        rgba(255, 135, 135, 0.06);

    border-color:
        rgba(255, 135, 135, 0.14);

    color:
        #ff8787;
}


.kb-admin-table .btn-outline-danger:hover {
    background:
        rgba(255, 135, 135, 0.12);

    border-color:
        rgba(255, 135, 135, 0.24);

    color:
        #ff8787;
}

.kb-admin-area {
    color: var(--core-text-muted);
    font-size: 0.76rem;
}

.kb-admin-type-badge,
.kb-admin-status,
.kb-editor-status-badge {
    padding: 0.28rem 0.5rem;
    background: var(--core-input);
    color: var(--core-text-muted);
}

.kb-admin-type-badge.is-tooltip {
    color: #74c0fc;
    background: rgba(116, 192, 252, 0.10);
    border-color: rgba(116, 192, 252, 0.18);
}

.kb-admin-status.is-published,
.kb-editor-status-badge.is-published {
    color: #69db7c;
    background: rgba(105, 219, 124, 0.10);
    border-color: rgba(105, 219, 124, 0.18);
}

.kb-admin-status.is-draft,
.kb-editor-status-badge.is-draft {
    color: #ffd43b;
    background: rgba(255, 212, 59, 0.10);
    border-color: rgba(255, 212, 59, 0.18);
}

.kb-admin-status.is-archived {
    color: var(--core-text-muted);
}

.kb-admin-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--core-border-soft);
    color: var(--core-text-muted);
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   EDITOR
   -------------------------------------------------------------------------- */

.kb-editor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.kb-editor-heading {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.kb-editor-topbar .btn,
.kb-admin-new-btn {
    min-height: 38px;
    border-radius: var(--core-radius-sm);
}

.kb-editor-topbar .btn-light,
.kb-editor-mobile-actions .btn-light,
.kb-back-btn,
.kb-editor-back {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--core-text-soft);
}

.kb-editor-topbar .btn-light:hover,
.kb-editor-mobile-actions .btn-light:hover,
.kb-back-btn:hover,
.kb-editor-back:hover {
    background: var(--core-hover);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.kb-editor-panel {
    height: 100%;
    overflow: hidden;
}

.kb-editor-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--core-border-soft);
}

.kb-editor-panel-title > div > span {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.kb-editor-panel-title small {
    display: block;
    margin-top: 0.1rem;
    color: var(--core-text-muted);
    font-size: 0.72rem;
}

.kb-editor-panel-title > i {
    color: var(--hops-pink);
}

.kb-editor-settings-panel > .mb-3,
.kb-editor-settings-panel > .mb-0,
.kb-editor-content-panel > .mb-3,
.kb-editor-content-panel > .kb-rich-editor {
    margin-left: 1rem;
    margin-right: 1rem;
}

.kb-editor-settings-panel > .mb-3:first-of-type,
.kb-editor-content-panel > .mb-3:first-of-type {
    margin-top: 1rem;
}

.kb-editor-settings-panel > .mb-0,
.kb-editor-content-panel > .kb-rich-editor {
    margin-bottom: 1rem;
}

.kb-editor-summary {
    resize: vertical;
}

.kb-editor-save-state {
    padding: 0.28rem 0.5rem;
    background: rgba(255, 212, 59, 0.10);
    border-color: rgba(255, 212, 59, 0.18);
    color: #ffd43b;
}

.kb-editor-save-state.is-saved {
    background: rgba(105, 219, 124, 0.10);
    border-color: rgba(105, 219, 124, 0.18);
    color: #69db7c;
}

/* Ensure KB uses CORE forms rather than a second theme */
.kb-shell .form-control,
.kb-shell .form-select,
.kb-shell .input-group-text,
.kb-admin-shell .form-control,
.kb-admin-shell .form-select,
.kb-admin-shell .input-group-text,
.kb-editor-shell .form-control,
.kb-editor-shell .form-select,
.kb-editor-shell .input-group-text {
    background: var(--core-input);
    border-color: var(--core-border);
    color: var(--core-text);
}

.kb-shell .form-control:focus,
.kb-shell .form-select:focus,
.kb-admin-shell .form-control:focus,
.kb-admin-shell .form-select:focus,
.kb-editor-shell .form-control:focus,
.kb-editor-shell .form-select:focus {
    background: var(--core-input-focus);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: none;
}

.kb-shell .form-select option,
.kb-admin-shell .form-select option,
.kb-editor-shell .form-select option {
    background: #151b26;
    color: #fff;
}

.kb-shell .input-group-text,
.kb-admin-shell .input-group-text,
.kb-editor-shell .input-group-text {
    color: var(--core-text-muted);
}

/* Rich text editor */
.kb-rich-editor {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid var(--core-border);
    border-radius: var(--core-radius-sm);
}

.kb-rich-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--core-border-soft);
}

.kb-rich-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--core-text-muted);
}

.kb-rich-toolbar button:hover,
.kb-rich-toolbar button:focus {
    background: var(--core-hover);
    border-color: var(--core-border);
    color: #fff;
    outline: none;
}

.kb-rich-separator {
    width: 1px;
    height: 20px;
    margin: 0 0.15rem;
    background: var(--core-border);
}

.kb-rich-canvas {
    min-height: 460px;
    padding: 1.15rem 1.25rem;
    outline: none;
    color: var(--core-text-soft);
    font-size: 0.9rem;
    line-height: 1.65;
}

.kb-rich-canvas:empty::before {
    content: attr(data-placeholder);
    color: var(--core-text-faint);
    pointer-events: none;
}

.kb-rich-canvas h2 {
    margin: 1.4rem 0 0.55rem;
    color: #fff;
    font-size: 1.3rem;
}

.kb-rich-canvas h3 {
    margin: 1.2rem 0 0.5rem;
    color: #fff;
    font-size: 1.08rem;
}

.kb-rich-canvas p {
    margin-bottom: 0.85rem;
}

.kb-rich-canvas ul,
.kb-rich-canvas ol {
    padding-left: 1.35rem;
}

/* --------------------------------------------------------------------------
   REVISION DRAWER / PREVIEW / MOBILE ACTIONS
   These live outside #kbEditorRoot when hoisted to body.
   -------------------------------------------------------------------------- */

.kb-editor-mobile-actions {
    position: sticky;
    bottom: 0.75rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--core-panel);
    border: 1px solid var(--core-border);
    border-radius: var(--core-radius-sm);
    box-shadow: var(--core-shadow);
}

.kb-revision-drawer {
    width: min(460px, 92vw) !important;
    background: #101827;
    color: var(--core-text);
    border-left: 1px solid var(--core-border);
}

.kb-revision-drawer .offcanvas-header {
    background: var(--core-header);
    border-bottom: 1px solid var(--core-border);
}

.kb-revision-drawer .offcanvas-title,
.kb-revision-drawer .kb-editor-eyebrow,
.kb-preview-modal .modal-title,
.kb-preview-modal .kb-editor-eyebrow {
    color: var(--core-text) !important;
}

.kb-revision-drawer .btn-close,
.kb-preview-modal .btn-close {
    filter: invert(1) grayscale(1);
}

.kb-revision-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--core-border-soft);
}

.kb-revision-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    background: rgba(232, 79, 123, 0.12);
    color: var(--hops-pink);
    font-size: 0.7rem;
    font-weight: 700;
}

.kb-revision-item > div {
    display: flex;
    flex-direction: column;
}

.kb-revision-item strong {
    color: var(--core-text);
    font-size: 0.8rem;
}

.kb-revision-item small {
    margin-top: 0.1rem;
    color: var(--core-text-muted);
    font-size: 0.7rem;
}

.kb-preview-modal {
    overflow: hidden;
    background: var(--core-panel);
    border: 1px solid var(--core-border);
    border-radius: var(--core-radius);
    color: var(--core-text);
}

.kb-preview-modal .modal-header {
    background: var(--core-header);
    border-bottom: 1px solid var(--core-border);
}

.kb-preview-modal .modal-body {
    background: transparent;
}

.kb-preview-modal .kb-article-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.kb-preview-tooltip {
    max-width: 720px;
    margin: 0 auto;
}

.kb-preview-tooltip-box {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--core-panel);
    border: 1px solid var(--core-border);
    border-left: 3px solid var(--hops-pink);
    border-radius: var(--core-radius-sm);
    color: var(--core-text);
    box-shadow: var(--core-shadow);
}

.kb-mobile-save,
.kb-mobile-publish {
    min-width: 110px;
}

.kb-article-only,
.kb-tooltip-only {
    transition: opacity 0.15s ease;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .kb-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-admin-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kb-admin-search-wrap {
        grid-column: 1 / -1;
    }

    .kb-rich-canvas {
        min-height: 400px;
    }
}

@media (max-width: 767.98px) {
    .kb-hero,
    .kb-admin-hero,
    .kb-editor-topbar {
        padding: 1rem;
    }

    .kb-title {
        font-size: 1.65rem;
    }

    .kb-panel-header {
        align-items: flex-start;
    }

    .kb-article-toolbar,
    .kb-admin-hero,
    .kb-editor-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .kb-article-header,
    .kb-article-content {
        padding: 1rem;
    }

    .kb-admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .kb-admin-toolbar {
        grid-template-columns: 1fr;
    }

    .kb-admin-search-wrap {
        grid-column: auto;
    }

    .kb-admin-table thead th:nth-child(3),
    .kb-admin-table tbody td:nth-child(3),
    .kb-admin-table thead th:nth-child(5),
    .kb-admin-table tbody td:nth-child(5) {
        display: none;
    }

    .kb-editor-topbar > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .kb-editor-topbar > div:last-child .btn {
        width: 100%;
    }

    .kb-rich-canvas {
        min-height: 340px;
        padding: 1rem;
    }

    .kb-rich-toolbar button span {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .kb-admin-stats {
        grid-template-columns: 1fr;
    }

    .kb-article-header h1 {
        font-size: 1.5rem;
    }

    .kb-editor-topbar > div:last-child {
        grid-template-columns: 1fr;
    }
}


/*
|--------------------------------------------------------------------------
| CORE KNOWLEDGE BASE TOOLTIPS
|--------------------------------------------------------------------------
*/

.core-kb-tooltip {
    --bs-tooltip-max-width: 320px;
    --bs-tooltip-padding-x: 0;
    --bs-tooltip-padding-y: 0;
    --bs-tooltip-bg: transparent;
}

.core-kb-tooltip .tooltip-inner {
    padding: 0.7rem 0.85rem;

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    border-radius: 10px;

    background:
        #17365d;

    color:
        #ffffff;

    box-shadow:
        0 10px 28px
        rgba(
            15,
            35,
            60,
            0.22
        );

    font-size: 0.78rem;
    line-height: 1.45;

    text-align: left;
}

.core-kb-tooltip.bs-tooltip-top
.tooltip-arrow::before {
    border-top-color:
        #17365d;
}

.core-kb-tooltip.bs-tooltip-bottom
.tooltip-arrow::before {
    border-bottom-color:
        #17365d;
}

.core-kb-tooltip.bs-tooltip-start
.tooltip-arrow::before {
    border-left-color:
        #17365d;
}

.core-kb-tooltip.bs-tooltip-end
.tooltip-arrow::before {
    border-right-color:
        #17365d;
}


/* ============================================================
   CORE HOME
============================================================ */

.core-home {
    max-width: 1500px;
    margin: 0 auto;
}


/* ============================================================
   HERO
============================================================ */

.core-home-hero {
    width: 100%;

    padding: 2rem;

    background:
        linear-gradient(
            135deg,
            rgba(16, 24, 39, 0.94),
            rgba(16, 24, 39, 0.80)
        );

    border:
        1px solid var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);
}


.core-home-hero-main {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}


.core-home-content {
    display: flex;

    align-items: center;

    min-width: 0;

    gap: 1.4rem;
}


.core-home-mark {
    width: 82px;
    height: 82px;

    flex:
        0 0 82px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 12px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 20px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);
}


.core-home-mark.has-avatar {
    padding: 0;

    border-radius: 50%;
}


.core-home-avatar {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.core-home-intro {
    min-width: 0;
}


.core-home-eyebrow {
    margin-bottom: 0.35rem;

    color:
        var(--core-text-muted);

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.16em;
}


.core-home-title {
    margin: 0;

    color:
        var(--core-text);

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    font-weight: 700;

    line-height: 1.05;
}


.core-home-title span {
    color:
        var(--hops-pink);
}


.core-home-subtitle {
    margin-top: 0.55rem;

    color:
        var(--core-text-soft);

    font-size: 0.95rem;
}


.core-home-message {
    margin-top: 1.7rem;

    padding-top: 1.15rem;

    color:
        var(--core-text-soft);

    border-top:
        1px solid var(--core-border-soft);

    font-size: 0.9rem;
}


.core-home-message i {
    color:
        var(--hops-pink);
}


/* ============================================================
   SECTIONS
============================================================ */

.core-home-section,
.core-home-panel {
    background:
        var(--core-panel);

    border:
        1px solid var(--core-border);

    border-radius:
        var(--core-radius);

    box-shadow:
        var(--core-shadow);
}


.core-home-section {
    margin-top: 1.5rem;

    padding: 1.4rem;
}


.core-home-panel {
    padding: 1.4rem;
}


.core-home-lower {
    margin-top: 0;
}


.core-home-section-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1rem;
}


.core-home-section-header h2 {
    margin: 0;

    color:
        var(--core-text);

    font-size: 1rem;
    font-weight: 700;
}


.core-home-section-kicker {
    margin-bottom: 0.18rem;

    color:
        var(--core-text-muted);

    font-size: 0.68rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


.core-home-panel-heading-icon {
    color:
        var(--hops-pink);

    font-size: 1.15rem;
}


/* ============================================================
   FAVOURITES
============================================================ */

.core-home-favourites {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 0.8rem;
}


.core-home-favourite {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 0.85rem;

    min-width: 0;

    padding: 0.95rem;

    color:
        var(--core-text);

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid var(--core-border-soft);

    border-radius:
        var(--core-radius-sm);

    text-align: left;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}


.core-home-favourite:hover {
    color:
        var(--core-text);

    background:
        var(--core-hover);

    border-color:
        rgba(232, 79, 123, 0.30);

    transform:
        translateY(-1px);
}


.core-home-favourite-icon {
    width: 42px;
    height: 42px;

    flex:
        0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        var(--hops-pink);

    background:
        rgba(232, 79, 123, 0.10);

    border:
        1px solid rgba(232, 79, 123, 0.16);

    border-radius: 10px;

    font-size: 1rem;
}


.core-home-favourite-copy {
    min-width: 0;

    flex: 1;
}


.core-home-favourite-title {
    display: block;

    overflow: hidden;

    font-size: 0.85rem;
    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.core-home-favourite-description {
    display: block;

    overflow: hidden;

    margin-top: 0.2rem;

    color:
        var(--core-text-muted);

    font-size: 0.72rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.core-home-favourite-arrow {
    color:
        var(--core-text-faint);

    font-size: 0.75rem;
}


.core-home-empty {
    display: flex;

    align-items: center;

    gap: 1rem;

    padding: 1rem;

    background:
        rgba(255, 255, 255, 0.02);

    border:
        1px dashed var(--core-border);

    border-radius:
        var(--core-radius-sm);
}


.core-home-empty-icon {
    width: 42px;
    height: 42px;

    flex:
        0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        var(--hops-pink);

    background:
        rgba(232, 79, 123, 0.10);

    border-radius: 10px;
}


/* ============================================================
   TODAY
============================================================ */

.core-home-today {
    display: flex;

    flex-direction: column;

    gap: 0.65rem;
}


.core-home-today-item {
    display: flex;

    align-items: center;

    gap: 0.8rem;

    width: 100%;

    padding: 0.8rem;

    color:
        var(--core-text);

    background:
        rgba(255, 255, 255, 0.02);

    border:
        1px solid var(--core-border-soft);

    border-radius:
        var(--core-radius-sm);

    text-align: left;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}


.core-home-today-item:hover {
    color:
        var(--core-text);

    background:
        var(--core-hover);

    border-color:
        rgba(255, 255, 255, 0.13);
}


.core-home-today-icon {
    width: 38px;
    height: 38px;

    flex:
        0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        var(--hops-pink);

    background:
        rgba(232, 79, 123, 0.09);

    border-radius: 9px;
}


.core-home-today-item strong,
.core-home-today-item small {
    display: block;
}


.core-home-today-item strong {
    font-size: 0.82rem;
}


.core-home-today-item small {
    margin-top: 0.12rem;

    color:
        var(--core-text-muted);

    font-size: 0.7rem;
}


.core-home-today-item > .bi-arrow-right {
    color:
        var(--core-text-faint);
}


/* ============================================================
   RECENT
============================================================ */

.core-home-recent {
    display: flex;

    flex-direction: column;

    gap: 0.55rem;
}


.core-home-recent-item {
    display: flex;

    align-items: center;

    width: 100%;

    gap: 0.8rem;

    padding: 0.75rem 0.85rem;

    color:
        var(--core-text);

    background:
        rgba(255, 255, 255, 0.02);

    border:
        1px solid var(--core-border-soft);

    border-radius:
        var(--core-radius-sm);

    text-align: left;
}


.core-home-recent-item:hover {
    color:
        var(--core-text);

    background:
        var(--core-hover);
}


.core-home-recent-icon {
    width: 36px;
    height: 36px;

    flex:
        0 0 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        var(--core-text-soft);

    background:
        rgba(255, 255, 255, 0.045);

    border-radius: 8px;
}


.core-home-recent-copy {
    min-width: 0;

    flex: 1;
}


.core-home-recent-copy strong,
.core-home-recent-copy small {
    display: block;
}


.core-home-recent-copy strong {
    overflow: hidden;

    font-size: 0.8rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.core-home-recent-copy small {
    margin-top: 0.08rem;

    color:
        var(--core-text-muted);

    font-size: 0.68rem;
}


.core-home-recent-empty {
    min-height: 170px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0.6rem;

    color:
        var(--core-text-muted);

    text-align: center;
}


.core-home-recent-empty i {
    color:
        var(--core-text-faint);

    font-size: 1.4rem;
}


/* ============================================================
   FOOTER
============================================================ */

.core-home-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 0.8rem;

    margin-top: 1.5rem;

    color:
        var(--core-text-faint);

    font-size: 0.7rem;
}


.core-home-dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        var(--hops-pink);
}


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

@media (max-width: 1199.98px) {

    .core-home-favourites {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 767.98px) {

    .core-home {
        padding:
            1.25rem !important;
    }


    .core-home-hero {
        padding: 1.4rem;
    }


    .core-home-hero-main {
        align-items: flex-start;

        flex-direction: column;
    }


    .core-home-hero-actions {
        width: 100%;
    }


    .core-home-hero-actions .btn {
        width: 100%;
    }


    .core-home-content {
        align-items: center;
    }


    .core-home-mark {
        width: 58px;
        height: 58px;

        flex-basis: 58px;

        padding: 8px;

        border-radius: 14px;
    }


    .core-home-mark.has-avatar {
        padding: 0;

        border-radius: 50%;
    }


    .core-home-title {
        font-size: 1.8rem;
    }


    .core-home-favourites {
        grid-template-columns: 1fr;
    }


    .core-home-section-header {
        align-items: flex-start;
    }


    .core-home-empty {
        align-items: flex-start;

        flex-direction: column;
    }


    .core-home-footer {
        justify-content: flex-start;
    }

}