:root {
    --ims-bg: #f2f8ff;
    --ims-surface: #ffffff;
    --ims-surface-soft: #e8f3ff;
    --ims-text: #173a60;
    --ims-muted: #55779d;
    --ims-primary: #4aa9f0;
    --ims-primary-strong: #2d8fdb;
    --ims-accent: #d4a83f;
    --ims-border: rgba(74, 169, 240, 0.22);
    --ims-shadow: 0 12px 30px rgba(38, 104, 160, 0.12);
}

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

body {
    font-family: 'Space Grotesk', 'Inter', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 12% 12%, rgba(100, 184, 244, 0.22), transparent 48%),
        radial-gradient(circle at 88% 4%, rgba(190, 226, 255, 0.3), transparent 42%),
        var(--ims-bg);
    color: var(--ims-text);
}

.pcoded-navbar.menu-light {
    background: linear-gradient(180deg, #173a5c 0%, #0f2438 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 8px 0 24px rgba(9, 20, 34, 0.28);
}

.pcoded-navbar.menu-light .pcoded-inner-navbar > li.nav-item.pcoded-menu-caption label,
.pcoded-navbar.menu-light .pcoded-inner-navbar > li > a,
.pcoded-navbar.menu-light .pcoded-inner-navbar > li > a .pcoded-micon i,
.pcoded-navbar.menu-light .pcoded-inner-navbar > li > a .pcoded-mtext,
.pcoded-navbar.menu-light .pcoded-inner-navbar li.pcoded-hasmenu > a::after {
    color: rgba(255, 255, 255, 0.82) !important;
}

.pcoded-navbar.menu-light .pcoded-inner-navbar > li.nav-item.pcoded-menu-caption label {
    color: rgba(255, 255, 255, 0.45) !important;
    letter-spacing: 0.1em;
}

.pcoded-navbar .pcoded-inner-navbar > li.nav-item > a {
    border-radius: 12px;
    margin: 4px 12px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.pcoded-navbar .pcoded-inner-navbar > li.nav-item.active > a,
.pcoded-navbar .pcoded-inner-navbar > li.nav-item > a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    transform: translateX(3px);
}

.pcoded-navbar.menu-light .pcoded-inner-navbar > li.nav-item.active > a .pcoded-micon i,
.pcoded-navbar.menu-light .pcoded-inner-navbar > li.nav-item > a:hover .pcoded-micon i,
.pcoded-navbar.menu-light .pcoded-inner-navbar > li.nav-item.active > a .pcoded-mtext,
.pcoded-navbar.menu-light .pcoded-inner-navbar > li.nav-item > a:hover .pcoded-mtext {
    color: #ffffff !important;
}

.pcoded-navbar.menu-light .pcoded-submenu {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 4px 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pcoded-navbar.menu-light .pcoded-submenu li > a {
    color: rgba(255, 255, 255, 0.68) !important;
}

.pcoded-navbar.menu-light .pcoded-submenu li > a:hover,
.pcoded-navbar.menu-light .pcoded-submenu li.active > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.ims-sidebar-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 16px 6px;
    padding: 10px 14px;
    background: #ffffff;
    color: #173a5c;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(9, 20, 34, 0.28);
}

.ims-sidebar-pill i {
    color: #2d8fdb;
}

.pcoded-header.navbar-light,
.pcoded-header.header-blue {
    background: linear-gradient(100deg, #173a5c 0%, #0f2438 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 22px rgba(9, 20, 34, 0.35) !important;
    backdrop-filter: none;
}

.pcoded-header.headerpos-fixed ~ .pcoded-main-container,
.pcoded-header ~ .pcoded-main-container {
    padding-top: 76px;
}

.pcoded-header.navbar-light .m-header,
.pcoded-header.navbar-light .navbar-nav > li > a,
.pcoded-header.navbar-light .mob-toggler,
.pcoded-header.navbar-light .mobile-menu,
.pcoded-header.navbar-light .feather,
.pcoded-header.header-blue .m-header,
.pcoded-header.header-blue .navbar-nav > li > a,
.pcoded-header.header-blue .mob-toggler,
.pcoded-header.header-blue .mobile-menu,
.pcoded-header.header-blue .feather {
    color: #ffffff !important;
}

.pcoded-header.navbar-light .dropdown-toggle img,
.pcoded-header.header-blue .dropdown-toggle img {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.pcoded-header.navbar-light .dropdown-menu,
.pcoded-header.navbar-light .profile-notification,
.pcoded-header.header-blue .dropdown-menu,
.pcoded-header.header-blue .profile-notification {
    color: #1d2f45;
}

.pcoded-main-container .pcoded-content {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 246, 255, 0.82));
    border-radius: 16px;
    margin: 12px;
}

.page-header {
    margin-bottom: 20px;
}

.card {
    border-radius: 18px;
    border: 1px solid rgba(74, 169, 240, 0.2);
    box-shadow: var(--ims-shadow);
    background: var(--ims-surface);
}

.card .card-header {
    border-bottom: 1px solid rgba(74, 169, 240, 0.16);
    background: linear-gradient(90deg, rgba(122, 196, 248, 0.16), rgba(255, 255, 255, 0.92));
}

.page-header .page-header-title h5,
.page-header .page-header-title h4,
.page-header .page-header-title h3 {
    color: #154e92;
    font-weight: 700;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: #0b1f3a;
    font-weight: 600;
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: 12px !important;
    border: 1px solid rgba(47, 141, 228, 0.24) !important;
    min-height: 44px;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #2f8de4 !important;
    box-shadow: 0 0 0 0.15rem rgba(47, 141, 228, 0.18) !important;
}

.btn.btn-primary,
button.btn-primary,
a.btn-primary {
    background: linear-gradient(90deg, #3f9fe8, #77c5f8);
    border: none;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(56, 129, 190, 0.24);
}

.btn.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(56, 129, 190, 0.3);
}

.table thead th {
    background: #edf7ff;
    color: #295781;
    border-bottom: 1px solid rgba(74, 169, 240, 0.3);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

#footerdiv {
    margin: 12px 28px 24px;
    border-radius: 14px;
    border: 1px solid var(--ims-border);
    box-shadow: var(--ims-shadow);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

.ims-hero {
    padding: 26px;
    background: linear-gradient(120deg, #72c5f7 0%, #9ad8ff 52%, #ffffff 100%);
    color: #1f4a75;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(41, 108, 164, 0.22);
    position: relative;
    overflow: hidden;
}

.ims-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.ims-hero h2 {
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.ims-hero p {
    margin-bottom: 0;
    color: rgba(31, 74, 117, 0.9);
}

.ims-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ims-stat-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(47, 141, 228, 0.16);
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ims-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 28px rgba(15, 24, 45, 0.15);
}

.ims-stat-card:hover .value {
    background: linear-gradient(135deg, #2f8de4, #6ec6ff);
    color: #fff;
}

.ims-stat-card .label {
    color: var(--ims-muted);
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.ims-stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ims-text);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.ims-stat-card .pulse {
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 182, 245, 0.24), transparent 65%);
}

.ims-stat-card .ims-icon,
.ims-mini-card .ims-icon,
.ims-kpi-card .ims-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(17, 36, 68, 0.18);
}

.ims-mini-card .ims-icon {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.ims-icon-sky {
    background: linear-gradient(130deg, #4c83ff, #6ec6ff);
}

.ims-icon-blue {
    background: linear-gradient(130deg, #2f8de4, #63b4f7);
}

.ims-icon-amber {
    background: linear-gradient(130deg, #f3a712, #f7c359);
}

.ims-icon-green {
    background: linear-gradient(130deg, #19b88f, #59d3ad);
}

.ims-icon-rose {
    background: linear-gradient(130deg, #f25475, #ff9aa9);
}

.ims-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.ims-mini-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(47, 141, 228, 0.18);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 22px rgba(22, 46, 76, 0.12);
}

.ims-mini-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ims-muted);
    margin-bottom: 6px;
}

.ims-mini-card .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ims-text);
    margin-bottom: 2px;
}

.ims-mini-card .hint {
    font-size: 0.75rem;
    color: var(--ims-muted);
}

.ims-side-card {
    border-style: dashed;
}

.ims-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ims-compact-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(47, 141, 228, 0.08);
    border: 1px solid rgba(47, 141, 228, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
}

.ims-compact-list li strong {
    display: block;
    font-weight: 600;
    color: var(--ims-text);
}

.ims-compact-list li small {
    display: block;
    font-size: 0.78rem;
    color: var(--ims-muted);
}

.ims-compact-list li.empty {
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.7);
    border-style: dashed;
    color: var(--ims-muted);
}

.ims-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ims-accent);
    box-shadow: 0 0 0 6px rgba(212, 168, 63, 0.18);
}

/* Force white + light-blue on page-specific custom blocks */
.create-body,
.pos-grid,
.pos-summary,
.pos-table-wrap {
    background: #f5faff !important;
}

.create-head,
.pos-head {
    background: linear-gradient(110deg, #2f8de4, #72b8f4 60%, #dff0ff) !important;
    color: #ffffff !important;
}

.btn-modern-primary,
.btn-pos-primary {
    background: linear-gradient(90deg, #2f8de4, #6bb8f5) !important;
    color: #fff !important;
}

.ims-list-card {
    padding: 0;
}

.ims-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 8px;
}

.ims-head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ims-invoice-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(47, 141, 228, 0.95), rgba(111, 185, 245, 0.9) 55%, rgba(212, 168, 63, 0.35));
    color: #fff;
    box-shadow: 0 18px 36px rgba(21, 60, 104, 0.28);
    margin-bottom: 18px;
}

.ims-invoice-hero h4 {
    font-weight: 700;
    margin-bottom: 6px;
}

.ims-invoice-hero p {
    margin-bottom: 0;
    opacity: 0.92;
}

.ims-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ims-head-blue {
    background: linear-gradient(110deg, #2f8de4, #66b2f6 58%, #d4a83f);
    color: #fff;
    border-bottom: 0;
}

.ims-head-blue small,
.ims-head-blue h5,
.ims-head-blue .text-muted,
.ims-head-blue .ims-pill-soft {
    color: #fff !important;
}

.ims-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.ims-pill-soft {
    background: rgba(47, 141, 228, 0.15);
    color: var(--ims-primary-strong);
}

.ims-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ims-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ims-kpi-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(47, 141, 228, 0.16);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 26px rgba(19, 40, 70, 0.12);
}

.ims-kpi-card p {
    color: var(--ims-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.ims-kpi-card h4 {
    margin-bottom: 0;
    font-weight: 700;
    color: var(--ims-text);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.ims-kpi-card:hover {
    background: linear-gradient(130deg, rgba(47, 141, 228, 0.12), rgba(212, 168, 63, 0.12));
    border-color: rgba(47, 141, 228, 0.28);
}

.ims-kpi-card:hover h4 {
    background: linear-gradient(135deg, #2f8de4, #6ec6ff);
    color: #fff;
}

.ims-date-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: flex-end;
}

.ims-date-filter .form-control {
    min-height: 40px;
}

.ims-date-field {
    min-width: 160px;
}

.ims-date-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: block;
}

.ims-chart-card .ims-list-head {
    padding-bottom: 12px;
}

.ims-chart-body {
    padding: 0 18px 18px;
}

.ims-mini-chart {
    min-height: 190px;
}

.ims-badge-soft {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(47, 141, 228, 0.14);
    color: var(--ims-primary-strong);
}

.ims-table-wrap {
    max-height: 340px;
    overflow: auto;
}

.table.ims-table thead th {
    position: sticky;
    top: 0;
    background: #f3f9ff;
    z-index: 1;
}

.table.ims-table td,
.table.ims-table th {
    border-top: 1px solid rgba(15, 139, 141, 0.1);
}

.auth-wrapper {
    min-height: 100vh;
    background:
        linear-gradient(130deg, rgba(114, 197, 247, 0.9), rgba(182, 227, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%232f8de4' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' opacity='0.33'%3E%3Crect x='20' y='22' width='36' height='28' rx='3'/%3E%3Cpath d='M20 34h36M38 22v28'/%3E%3Cpath d='M116 24h22l8 14v20h-34V38z'/%3E%3Ccircle cx='124' cy='62' r='4'/%3E%3Ccircle cx='140' cy='62' r='4'/%3E%3Crect x='24' y='108' width='46' height='30' rx='3'/%3E%3Cpath d='M30 114v18M38 114v18M46 114v18M54 114v18M62 114v18'/%3E%3Cpath d='M100 104h52v34h-52zM100 116h52M112 104v34M124 104v34M136 104v34'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 180px 180px;
    background-repeat: repeat;
    pointer-events: none;
}

.auth-wrapper > * {
    position: relative;
    z-index: 1;
}

.auth-panel {
    width: min(1020px, 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 65px rgba(25, 92, 148, 0.26);
    background: #fff;
}

.auth-left {
    background: linear-gradient(150deg, #4aa9f0 0%, #82cbfa 55%, #b6e3ff 100%);
    color: #133f68;
    padding: 42px 34px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.auth-left-content {
    width: min(420px, 100%);
    margin: 0 auto;
}

.auth-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #2a78b8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.auth-left h1 {
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.auth-left p {
    opacity: 0.95;
    margin-bottom: 18px;
    line-height: 1.6;
    max-width: 40ch;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    padding: 12px 14px;
    min-height: 72px;
}

.auth-feature-item strong {
    display: block;
    color: #16456f;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 2px;
}

.auth-feature-item small {
    color: #2b679a;
    line-height: 1.35;
    font-size: 0.9rem;
}

.auth-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #2f8de4;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.auth-right {
    padding: 40px 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
    display: flex;
    align-items: center;
}

.auth-form-shell {
    width: min(460px, 100%);
    margin: 0 auto;
}

.auth-right-head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-right h3 {
    font-size: clamp(1.8rem, 2.2vw, 2.9rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: #324c5a;
}

.auth-right p {
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.05rem;
}

.auth-label {
    color: #1f4670;
    margin-bottom: 8px;
}

.auth-right .form-control {
    border-radius: 12px;
    border: 1px solid rgba(74, 169, 240, 0.25);
    min-height: 46px;
    background: #fff;
}

.auth-right .form-control:focus {
    border-color: var(--ims-primary);
    box-shadow: 0 0 0 0.15rem rgba(74, 169, 240, 0.2);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7787;
    padding: 2px 4px;
    line-height: 1;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--ims-primary-strong);
    outline: none;
}

.btn-modern {
    border: 0;
    background: linear-gradient(90deg, #3f9fe8, #7dc8f7);
    color: #fff;
    border-radius: 999px;
    min-height: 46px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-modern:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(28, 101, 159, 0.28);
}

/* Topbar */
.ims-topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 10px 8px;
    box-sizing: border-box;
}

.ims-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ims-topbar-brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d8fdb, #4aa9f0);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 16px rgba(45, 143, 219, 0.32);
}

.ims-topbar-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.ims-topbar-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 16px;
    box-sizing: border-box;
}

.ims-topbar-search i {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.ims-topbar-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    min-width: 0;
    color: #ffffff;
    font-size: 0.88rem;
}

.ims-topbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.ims-topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ims-topbar-icon-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.ims-topbar-icon-btn:hover {
    background: var(--ims-primary);
    color: #fff;
    transform: translateY(-1px);
}

.ims-topbar-date {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ims-topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    flex-shrink: 0;
    max-width: 220px;
}

.ims-topbar-profile img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ims-topbar-profile-text {
    text-align: left;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
}

.ims-topbar-profile-text strong {
    display: block;
    font-size: 0.82rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ims-topbar-profile-text span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.ims-online-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #2fb86a;
    box-shadow: 0 0 0 3px rgba(47, 184, 106, 0.25);
    display: inline-block;
}

@media (max-width: 1199px) {
    .ims-topbar-search {
        display: none;
    }
}

@media (max-width: 767px) {
    .ims-topbar-date,
    .ims-topbar-profile-text {
        display: none;
    }
}

/* Dashboard info banner */
.ims-info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(100deg, var(--ims-primary-strong), var(--ims-primary));
    color: #fff;
    box-shadow: 0 14px 28px rgba(38, 104, 160, 0.24);
    margin-bottom: 18px;
}

.ims-info-banner p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ims-info-banner .btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ims-info-banner .btn:hover {
    background: #fff;
    color: var(--ims-primary-strong);
}

@media (max-width: 767px) {
    .ims-info-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dashboard shortcut cards */
.ims-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ims-shortcut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: #fff;
    border: 1px solid rgba(74, 169, 240, 0.3);
    border-radius: 14px;
    color: var(--ims-primary-strong);
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ims-shortcut-card i {
    font-size: 1.35rem;
}

.ims-shortcut-card:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--ims-primary-strong), var(--ims-primary));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(38, 104, 160, 0.24);
}

/* Colorful stat cards */
.ims-color-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ims-color-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 18px 20px 0;
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 24, 45, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 168px;
}

.ims-color-stat-card .label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.ims-color-stat-card .value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 4px 0 2px;
}

.ims-color-stat-card .desc {
    font-size: 0.8rem;
    opacity: 0.88;
    line-height: 1.4;
    margin-bottom: 14px;
}

.ims-color-stat-card .watermark {
    position: absolute;
    right: -6px;
    bottom: 34px;
    font-size: 4.5rem;
    opacity: 0.16;
}

.ims-color-stat-card .details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    margin: 0 -20px;
    background: rgba(0, 0, 0, 0.14);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}

.ims-color-stat-card .details:hover {
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
}

.ims-color-stat-card.is-green {
    background: linear-gradient(135deg, #3f9a55, #2f7d43);
}

.ims-color-stat-card.is-red {
    background: linear-gradient(135deg, #c15a3f, #a8462e);
}

.ims-color-stat-card.is-purple {
    background: linear-gradient(135deg, #6f63a8, #584c8e);
}

.ims-color-stat-card.is-gold {
    background: linear-gradient(135deg, #d99a3d, #c07f27);
}

.ims-color-stat-card.is-blue {
    background: linear-gradient(135deg, #2d8fdb, #1f6fc2);
}

.ims-color-stat-card.is-teal {
    background: linear-gradient(135deg, #1f9d8a, #157567);
}

.auth-foot-note {
    font-size: 0.82rem;
    text-align: center;
    color: #6788aa;
    margin-top: 14px;
    line-height: 1.45;
}

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

[data-animate='stagger-1'] { transition-delay: 0.08s; }
[data-animate='stagger-2'] { transition-delay: 0.16s; }
[data-animate='stagger-3'] { transition-delay: 0.24s; }
[data-animate='stagger-4'] { transition-delay: 0.32s; }
[data-animate='stagger-5'] { transition-delay: 0.4s; }

@media (max-width: 991px) {
    .pcoded-main-container .pcoded-content {
        padding: 18px;
    }

    .ims-stat-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .ims-meta-grid {
        grid-template-columns: 1fr;
    }

    #footerdiv {
        margin: 10px 18px 18px;
    }
}

@media (max-width: 767px) {
    .auth-wrapper {
        padding: 14px;
    }

    .auth-panel {
        border-radius: 18px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 28px 18px;
    }

    .auth-form-shell {
        width: 100%;
    }

    .auth-right h3 {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .auth-right p {
        font-size: 0.95rem;
    }

    .ims-stat-grid {
        grid-template-columns: 1fr;
    }
}
