/* ==========================================================================
   NAETA CRM v1.0 - Complete Stylesheet & Brandkit Theme
   Brandkit Palette:
   - Primary (Hijau Sage Gelap): #526e56
   - Primary Dark (Hijau Hutan Tua): #3d5340
   - Accent (Emas Redup / Tan): #af9157
   - Accent Dark (Perunggu / Cokelat Zaitun): #8f7442
   - Neutral Light (Putih): #ffffff
   - Neutral Dark (Hitam): #000000
   ========================================================================== */

:root {
    --naeta-primary: #526e56;
    --naeta-primary-dark: #3d5340;
    --naeta-primary-light: #e8efe9;
    --naeta-accent: #af9157;
    --naeta-accent-dark: #8f7442;
    --naeta-accent-light: #f7f3eb;
    --naeta-white: #ffffff;
    --naeta-black: #000000;
    --naeta-bg: #f1f5f9;
    --naeta-border: #e2e8f0;
    --naeta-text: #1e293b;
    --naeta-text-muted: #64748b;
    --sidebar-width: 240px;
    --header-height: 57px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
    background-color: #f4f6f8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--naeta-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover, a:focus {
    color: var(--naeta-primary-dark);
    text-decoration: none;
}

/* ==========================================================================
   TOP HEADER BAR (#header)
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--naeta-white);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 12px 0 4px;
}

#header .hide-menu {
    background: transparent;
    border: 0;
    padding: 6px;
    margin: 0 8px;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#header .hide-menu:hover {
    background: rgba(82, 110, 86, 0.1);
    color: var(--naeta-primary-dark);
}

#header .hide-menu svg {
    width: 18px;
    height: 18px;
}

#header nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

#header nav > .tw-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

#logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding-right: 28px;
    min-width: 185px;
}

#logo img {
    height: 34px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
    display: block;
}

/* Global Search Input */
#top_search {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    margin-right: 10px;
}

#search_input {
    width: 350px;
    height: 38px;
    padding: 6px 14px 6px 36px;
    border: 1px solid transparent;
    background-color: #f1f5f9 !important;
    border-radius: 8px !important;
    color: #1e293b;
    font-size: 13.5px;
    outline: none;
    box-shadow: none !important;
    transition: all 0.15s ease;
}

#search_input:focus {
    background-color: #ffffff !important;
    border-color: var(--naeta-primary) !important;
    box-shadow: 0 0 0 2px rgba(82, 110, 86, 0.15) !important;
}

#top_search_button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#top_search_button button {
    background: transparent;
    border: 0;
    color: #94a3b8;
    padding: 0;
}

/* Search Dropdown Results */
#search_results {
    position: absolute;
    top: 44px;
    left: 0;
    width: 420px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12), 0 4px 10px -2px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    z-index: 1050;
    display: none;
    max-height: 420px;
    overflow-y: auto;
}

/* Quick Create (+) Button */
.quick-create-btn {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background-color: var(--naeta-primary) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(82, 110, 86, 0.3);
}

.quick-create-btn:hover {
    background-color: var(--naeta-primary-dark) !important;
    transform: scale(1.04);
}

/* Header Right Nav */
#header .navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header .navbar-nav > li {
    position: relative;
    display: flex;
    align-items: center;
}

#header .navbar-nav > li > a {
    padding: 8px 11px;
    color: #475569;
    font-weight: 500;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    position: relative;
    background: transparent !important;
}

#header .navbar-nav > li > a:hover,
#header .navbar-nav > li > a:focus {
    color: var(--naeta-primary-dark);
    background: transparent !important;
}

#header .nav-total-todos {
    background-color: var(--naeta-accent) !important;
    color: #fff !important;
    font-size: 10.5px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    position: absolute;
    top: 2px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

#header .icon-started-timers {
    background-color: var(--naeta-primary) !important;
    color: #fff !important;
    font-size: 10.5px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    position: absolute;
    top: 2px;
    right: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ==========================================================================
   LEFT SIDEBAR (#menu) & SETUP SLIDE-OUT (#setup-menu-wrapper)
   ========================================================================== */
aside#menu.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1020;
    transition: transform 0.2s ease, width 0.2s ease;
    padding-bottom: 30px;
}

body.hide-sidebar aside#menu.sidebar {
    transform: translateX(-100%);
}

body.hide-sidebar #wrapper {
    margin-left: 0 !important;
}

/* Sidebar User Profile Card */
.sidebar-user-profile {
    margin: 14px 10px 8px 10px !important;
    position: relative;
}

.sidebar-user-profile > a.profile {
    display: block;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.15s ease;
}

.sidebar-user-profile > a.profile:hover {
    border-color: var(--naeta-primary);
    background: #ffffff;
}

.staff-profile-image-small {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.staff-profile-xs-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Sidebar Menu List (#side-menu) */
#side-menu, #setup-menu {
    list-style: none;
    padding: 0 8px;
    margin: 10px 0 0 0;
}

#side-menu > li, #setup-menu > li {
    position: relative;
    margin-bottom: 2px;
}

#side-menu > li > a, #setup-menu > li > a {
    display: flex;
    align-items: center;
    padding: 8.5px 12px;
    color: #334155;
    font-weight: 500;
    font-size: 13.5px;
    border-radius: 7px;
    transition: all 0.12s ease;
    position: relative;
}

#side-menu > li > a:hover,
#setup-menu > li > a:hover {
    background-color: rgba(82, 110, 86, 0.08);
    color: var(--naeta-primary-dark);
}

#side-menu > li.active > a,
#side-menu > li.menu-open > a,
#setup-menu > li.active > a,
#setup-menu > li.menu-open > a {
    background-color: #ffffff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

#side-menu > li.active > a .menu-icon,
#side-menu > li.menu-open > a .menu-icon,
#setup-menu > li.active > a .menu-icon,
#setup-menu > li.menu-open > a .menu-icon {
    color: var(--naeta-primary);
}

#side-menu .menu-icon, #setup-menu .menu-icon {
    width: 20px;
    margin-right: 10px;
    font-size: 15px;
    color: #64748b;
    text-align: center;
    flex-shrink: 0;
}

#side-menu .menu-text, #setup-menu .menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submenu Chevron Arrow */
#side-menu .fa.arrow, #setup-menu .fa.arrow {
    font-size: 11px;
    color: #64748b;
    margin-left: auto;
    transition: transform 0.2s ease;
}

#side-menu .fa.arrow::before, #setup-menu .fa.arrow::before {
    content: "\f053"; /* fa-chevron-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

#side-menu > li.menu-open > a > .fa.arrow,
#setup-menu > li.menu-open > a > .fa.arrow {
    transform: rotate(-90deg);
}

/* Second Level Submenu */
#side-menu ul.nav-second-level,
#setup-menu ul.nav-second-level {
    list-style: none;
    padding: 4px 0 6px 32px;
    margin: 0;
    display: none;
}

#side-menu > li.menu-open > ul.nav-second-level,
#setup-menu > li.menu-open > ul.nav-second-level,
#side-menu ul.nav-second-level.in,
#setup-menu ul.nav-second-level.in {
    display: block;
}

#side-menu ul.nav-second-level > li > a,
#setup-menu ul.nav-second-level > li > a {
    display: block;
    padding: 6px 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    border-radius: 5px;
    transition: color 0.12s ease, background 0.12s ease;
}

#side-menu ul.nav-second-level > li > a:hover,
#setup-menu ul.nav-second-level > li > a:hover,
#side-menu ul.nav-second-level > li.active > a,
#setup-menu ul.nav-second-level > li.active > a {
    color: var(--naeta-primary-dark);
    font-weight: 600;
    background-color: rgba(82, 110, 86, 0.08);
}

/* Pinned Project at bottom of sidebar */
#side-menu > li.pinned-separator {
    border-bottom: 1px solid #e2e8f0;
    margin: 10px 4px 6px 4px;
    padding: 0;
}

#side-menu > li.pinned_project {
    padding: 6px 10px 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}

#side-menu > li.pinned_project > a {
    display: block !important;
    padding: 2px 2px 6px 2px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#side-menu > li.pinned_project > a:hover {
    color: var(--naeta-primary-dark) !important;
    background: transparent !important;
}

#side-menu > li.pinned_project > a small {
    display: block !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    margin-top: 2px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
}

#side-menu > li.pinned_project .col-md-12 {
    padding: 0 2px !important;
    margin-top: 4px !important;
    float: none !important;
    width: 100% !important;
}

/* Setup Slide-out Panel (#setup-menu-wrapper) */
#setup-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid #cbd5e1;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 1025;
    overflow-y: auto;
    display: none;
}

#setup-menu-wrapper.open {
    display: block;
}

.customizer-heading {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.close-customizer {
    cursor: pointer;
    padding: 4px 7px;
    border-radius: 5px;
    color: #64748b;
}

/* ==========================================================================
   MAIN CONTENT WRAPPER (#wrapper) & DASHBOARD OPTIONS
   ========================================================================== */
#wrapper {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
    position: relative;
    transition: margin-left 0.2s ease;
}

.content {
    padding: 10px 24px 40px 24px;
    clear: both;
}

.screen-options-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 24px 0 24px;
}

/* Dashboard Options Button */
.screen-options-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 25;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.15s ease;
}

.screen-options-btn:hover {
    background: #f8fafc;
    border-color: var(--naeta-primary);
    color: var(--naeta-primary-dark);
}

.screen-options-btn svg {
    width: 16px;
    height: 16px;
}

/* Dashboard Options Slide-down Area (Image 1) */
.screen-options-area {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 26px 24px 26px;
    display: none;
    position: relative;
}

.screen-options-area.active {
    display: block;
}

#dashboard-options h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkbox,
#dashboard-options .checkbox,
#calendar_filters .checkbox {
    margin: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 20px !important;
    padding-left: 0 !important;
}

.checkbox input[type="checkbox"],
#dashboard-options .checkbox input[type="checkbox"],
#calendar_filters .checkbox input[type="checkbox"] {
    position: static !important;
    width: 15px !important;
    height: 15px !important;
    margin: 0 8px 0 0 !important;
    accent-color: var(--naeta-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox label,
#dashboard-options .checkbox label,
#calendar_filters .checkbox label {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    margin: 0 !important;
    padding-left: 0 !important;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   PANELS, CARDS, WIDGETS & PROGRESS BARS
   ========================================================================== */
.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
    border-radius: 6px;
    padding: 13px 16px;
    margin-bottom: 16px;
}

.alert-success p {
    margin: 0 0 4px 0;
}

.alert-success p:last-child {
    margin-bottom: 0;
}

.widget {
    position: relative;
    margin-bottom: 20px;
}

.widget-dragger {
    position: absolute;
    left: -13px;
    top: 14px;
    width: 12px;
    height: 20px;
    cursor: move;
    opacity: 0.35;
    transition: opacity 0.15s ease;
    background-image: radial-gradient(#64748b 1.5px, transparent 1.5px);
    background-size: 5px 5px;
    z-index: 10;
}

.widget:hover .widget-dragger {
    opacity: 0.9;
}

.placeholder-dashboard-widgets {
    border: 2px dashed var(--naeta-accent);
    background-color: rgba(175, 145, 87, 0.06);
    border-radius: 8px;
    min-height: 90px;
    margin-bottom: 18px;
}

.panel_s {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.panel_s > .panel-body {
    padding: 18px 20px;
    position: relative;
}

.panel_s > .panel-body.padding-15 {
    padding: 16px 18px;
}

.panel_s > .panel-body.padding-10 {
    padding: 14px 16px;
}

/* Top Quick Stats Cards */
.top_stats_wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top_stats_wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    border-color: rgba(82, 110, 86, 0.35);
}

/* Progress Bars (Interactive Sliding Fill) */
.progress {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: 10px;
}

.progress.progress-bar-mini {
    height: 5px !important;
}

.progress-bar {
    height: 100%;
    border-radius: 9999px;
    background-color: var(--naeta-primary);
    width: 0%;
    transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar-danger {
    background-color: #dc2626 !important;
}

.progress-bar-success {
    background-color: #16a34a !important;
}

.progress-bar-warning {
    background-color: var(--naeta-accent) !important;
}

.progress-bar-info {
    background-color: #0284c7 !important;
}

.progress-bar-default {
    background-color: #475569 !important;
}

li.pinned_project .progress-bar {
    background-color: var(--naeta-primary) !important;
}

/* Finance Overview Status Rows */
.home-summary .text-stats-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.home-summary .progress-finance-status {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
    margin-top: -18px;
}

.home-summary .progress-finance-status .progress {
    margin-top: 5px;
}

/* User Data Widget Horizontal Tabs */
.horizontal-scrollable-tabs {
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    margin: -18px -20px 16px -20px;
    padding: 0 28px;
    background: #f8fafc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.horizontal-scrollable-tabs .scroller {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    z-index: 5;
    background: #f8fafc;
}

.horizontal-scrollable-tabs .scroller-left {
    left: 0;
    border-right: 1px solid #f1f5f9;
}

.horizontal-scrollable-tabs .scroller-right {
    right: 0;
    border-left: 1px solid #f1f5f9;
}

.nav-tabs-horizontal {
    border-bottom: 0 !important;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-tabs-horizontal::-webkit-scrollbar {
    display: none;
}

.nav-tabs-horizontal > li {
    flex-shrink: 0;
    margin-bottom: -1px;
}

.nav-tabs-horizontal > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    margin-right: 2px;
}

.nav-tabs-horizontal > li > a:hover {
    color: var(--naeta-primary-dark);
}

.nav-tabs-horizontal > li.active > a,
.nav-tabs-horizontal > li.active > a:hover,
.nav-tabs-horizontal > li.active > a:focus {
    color: var(--naeta-primary) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--naeta-primary) !important;
    background: transparent !important;
}

/* ==========================================================================
   TABLES & DATATABLES STYLING (100% Matching Screenshot)
   ========================================================================== */
.dt-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.dt-left-controls {
    display: inline-flex;
    align-items: center;
}

.dt-length-select {
    height: 31px;
    padding: 4px 24px 4px 10px;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: #fff;
    font-size: 12.5px;
    color: #334155;
    outline: none;
}

.dt-btn-group {
    display: inline-flex;
    align-items: center;
}

.dt-btn {
    height: 31px;
    padding: 4px 11px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: -1px;
}

.dt-btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.dt-btn:hover {
    background: #f8fafc;
    color: var(--naeta-primary-dark);
}

.dt-search-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    height: 31px;
    overflow: hidden;
}

.dt-search-box .addon {
    padding: 0 9px;
    color: #64748b;
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
    height: 100%;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.dt-search-box input {
    border: 0;
    padding: 4px 10px;
    font-size: 12.5px;
    outline: none;
    width: 155px;
    color: #334155;
}

table.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

table.table > thead > tr > th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 12.5px;
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: nowrap;
    text-align: left;
}

table.table > tbody > tr > td {
    padding: 11px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
    vertical-align: top;
}

table.table > tbody > tr:hover > td {
    background-color: #f8fafc;
}

/* Status Badges & Dropdowns in Tables */
.status-badge-select {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.status-badge-select.in-progress {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
}

.status-badge-select.complete {
    border-color: #86efac;
    background: #f0fdf4;
    color: #16a34a;
}

/* Toggle Switch (Customers Active Switch) */
.naeta-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.naeta-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.naeta-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .2s;
    border-radius: 20px;
}

.naeta-switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

.naeta-switch input:checked + .slider {
    background-color: var(--naeta-primary);
}

.naeta-switch input:checked + .slider:before {
    transform: translateX(18px);
}

.group-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    margin: 1px 2px;
}

/* ==========================================================================
   ACTIVITY FEED TIMELINE
   ========================================================================== */
.activity-feed {
    padding: 8px 6px 8px 16px;
    max-height: 410px;
    overflow-y: auto;
}

.activity-feed .feed-item {
    position: relative;
    padding-bottom: 18px;
    padding-left: 20px;
    border-left: 2px solid #cbd5e1;
}

.activity-feed .feed-item:last-child {
    border-color: transparent;
}

.activity-feed .feed-item::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--naeta-primary);
}

.activity-feed .feed-item .date {
    position: relative;
    top: -3px;
    color: #64748b;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
}

.activity-feed .feed-item .text {
    color: #334155;
    font-size: 13px;
}

/* ==========================================================================
   FULLCALENDAR DASHBOARD STYLING (Matching November 2026 Screenshot)
   ========================================================================== */
.naeta-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.naeta-cal-btn-group {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
}

.naeta-cal-btn {
    background-color: #1e293b;
    color: #ffffff;
    border: 0;
    border-right: 1px solid #334155;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.naeta-cal-btn:last-child {
    border-right: 0;
}

.naeta-cal-btn:hover, .naeta-cal-btn.active {
    background-color: var(--naeta-primary);
}

.naeta-cal-btn.muted {
    background-color: #475569;
}

.naeta-cal-title {
    font-size: 19px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
}

.naeta-calendar-grid {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    table-layout: fixed;
}

.naeta-calendar-grid th {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.naeta-calendar-grid td {
    height: 82px;
    vertical-align: top;
    border: 1px solid #e2e8f0;
    padding: 3px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.naeta-calendar-grid td:hover {
    background: #f8fafc;
}

.naeta-calendar-grid td.other-month .day-num {
    color: #cbd5e1;
}

.naeta-calendar-grid .day-num {
    text-align: right;
    font-size: 11.5px;
    color: #475569;
    padding: 2px 4px;
    margin-bottom: 2px;
}

.naeta-calendar-grid .day-num.today-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--naeta-primary);
    color: #fff;
    font-weight: 600;
}

.cal-pill {
    display: block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-pill.green { background-color: #84c529; }
.cal-pill.blue { background-color: #2563eb; }
.cal-pill.maroon { background-color: #9d174d; }
.cal-pill.naeta-sage { background-color: var(--naeta-primary); }
.cal-pill.naeta-gold { background-color: var(--naeta-accent); }

.cal-time-link {
    display: block;
    font-size: 11px;
    color: #2563eb;
    padding: 1px 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   TO-DO WIDGET STYLING
   ========================================================================== */
.todo-title {
    font-size: 13.5px !important;
    font-weight: 600;
    margin-bottom: 10px;
}

ul.todo li {
    padding: 8px 4px;
    border-bottom: 1px solid #f1f5f9;
}

ul.todo li:last-child {
    border-bottom: 0;
}

ul.todo li .media {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

ul.todo li .media-left {
    padding-right: 0 !important;
    padding-top: 2px;
    flex-shrink: 0;
}

ul.todo li input[name="todo_id"] {
    position: static !important;
    margin: 0 !important;
    width: 15px;
    height: 15px;
    accent-color: var(--naeta-primary);
    cursor: pointer;
}

ul.todo li .media-body {
    flex: 1;
    width: auto;
}

.line-throught {
    text-decoration: line-through;
    color: #64748b;
}

.todo-description {
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 4px;
}

/* ==========================================================================
   BUTTONS & BRANDKIT OVERRIDES
   ========================================================================== */
.btn-primary, .btn-dark-naeta {
    background-color: var(--naeta-primary) !important;
    border-color: var(--naeta-primary) !important;
    color: #ffffff !important;
    font-weight: 500;
    border-radius: 6px;
    padding: 6px 14px;
    transition: background-color 0.15s ease;
}

.btn-primary:hover, .btn-primary:focus,
.btn-dark-naeta:hover {
    background-color: var(--naeta-primary-dark) !important;
    border-color: var(--naeta-primary-dark) !important;
    color: #ffffff !important;
}

.btn-accent-naeta {
    background-color: var(--naeta-accent) !important;
    border-color: var(--naeta-accent) !important;
    color: #ffffff !important;
}

.btn-accent-naeta:hover {
    background-color: var(--naeta-accent-dark) !important;
    border-color: var(--naeta-accent-dark) !important;
}

.text-warning {
    color: var(--naeta-accent-dark) !important;
}

.text-success {
    color: #16a34a !important;
}

.text-danger {
    color: #dc2626 !important;
}

.text-info {
    color: #0284c7 !important;
}

/* Event Color Picker Circles */
.cpicker-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.calendar-cpicker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.12s ease;
}

.calendar-cpicker.cpicker-big {
    transform: scale(1.22);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #334155;
}

/* Newsfeed Overlay */
#newsfeed {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1040;
    overflow-y: auto;
    padding: 30px 15px;
}

/* Brandkit Floating Indicator Badge */
.brandkit-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.12);
}

/* Radio Inline & Table Checkboxes Fix */
.radio-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding-left: 0 !important;
    margin-right: 14px !important;
    cursor: pointer;
}

.radio-inline input[type="radio"] {
    position: static !important;
    margin: 0 !important;
    width: 15px !important;
    height: 15px !important;
    accent-color: var(--naeta-primary);
    cursor: pointer;
}

table.table input[type="checkbox"] {
    position: static !important;
    margin: 0 !important;
    width: 15px;
    height: 15px;
    accent-color: var(--naeta-primary);
    cursor: pointer;
}

table.table > thead > tr > th {
    cursor: pointer;
    user-select: none;
}

table.table > thead > tr > th:hover {
    background-color: #f1f5f9;
}

/* Table Export & Visibility Popover Menu */
.dt-popover-menu {
    position: absolute;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 2000;
    min-width: 155px;
}

.dt-popover-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 500;
}

.dt-popover-menu a:hover {
    background: #f1f5f9;
    color: var(--naeta-primary-dark);
}

/* ==========================================================================
   GOOGLE-DOCS STYLE A4 PROPOSAL STUDIO & CLEAN PDF EXPORT
   ========================================================================== */
.proposal-studio-bg {
    background: #e2e8f0;
    padding: 24px 16px;
    border-radius: 8px;
    max-height: 68vh;
    overflow-y: auto;
}

.naeta-a4-page {
    width: 100%;
    max-width: 794px; /* A4 width at 96 DPI */
    min-height: 1050px;
    margin: 0 auto;
    background: #ffffff;
    padding: 52px 60px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.14);
    border-radius: 3px;
    color: #0f172a;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    outline: none;
}

.naeta-a4-page h1, .naeta-a4-page h2, .naeta-a4-page h3 {
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 8px;
}

.naeta-a4-page table.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.naeta-a4-page table.doc-table th {
    background: #526e56;
    color: #ffffff;
    font-weight: 600;
    padding: 9px 12px;
    font-size: 12.5px;
    text-align: left;
    border: 1px solid #526e56;
}

.naeta-a4-page table.doc-table td {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    font-size: 12.5px;
    color: #1e293b;
}

/* ==========================================================================
   INITIAL FULL-SCREEN LOGIN PAGE (#naeta-login-screen)
   ========================================================================== */
#naeta-login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f1f5f9;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.naeta-login-wrapper {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.naeta-login-logo {
    text-align: center;
    margin-bottom: 22px;
}

.naeta-login-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.naeta-login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px 28px 30px 28px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.naeta-login-heading {
    margin: 0 0 4px 0;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.naeta-login-subheading {
    margin: 0 0 22px 0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.naeta-captcha-widget {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.naeta-captcha-widget:hover {
    border-color: var(--naeta-primary);
    background: #ffffff;
}

.naeta-captcha-box-check {
    width: 26px;
    height: 26px;
    border: 2px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.naeta-captcha-widget.verified .naeta-captcha-box-check {
    border-color: #16a34a;
    background: #f0fdf4;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    aside#menu.sidebar {
        transform: translateX(-100%);
    }
    body.show-sidebar-mobile aside#menu.sidebar {
        transform: translateX(0);
    }
    #wrapper {
        margin-left: 0 !important;
    }
}

@media print {
    body.printing-proposal > *:not(#print-proposal-container) {
        display: none !important;
    }
    body.printing-proposal {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #print-proposal-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #print-proposal-container .naeta-a4-page {
        box-shadow: none !important;
        padding: 20px 30px !important;
        max-width: 100% !important;
        min-height: auto !important;
    }
}

