@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700;800;900&display=swap");

:root {
    --sales-bg: #F5F7FB;
    --sales-sidebar: #FFFFFF;
    --sales-text: #14256A;
    --sales-muted: #828BB2;
    --sales-teal: #64C5B1;
    --sales-teal-dark: #50BFA8;
    --sales-blue: #567AED;
    --sales-dark: #303047;
    --sales-border: #E0E2E8;
    --sales-soft: #F5F7FB;
    --sales-shadow: 0 10px 20px rgba(108, 39, 255, .06);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--sales-bg);
    color: var(--sales-text);
    font-family: "Nunito", Arial, Helvetica, sans-serif;
    font-size: 14px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    background: var(--sales-sidebar);
    border-right: 1px solid var(--sales-border);
    box-shadow: 8px 0 24px rgba(31, 30, 47, .035);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    width: 280px;
    z-index: 10;
}

.sidebar-brand {
    align-items: center;
    color: var(--sales-text);
    display: flex;
    font-family: "Comfortaa", "Nunito", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    gap: 10px;
    margin-bottom: 28px;
    min-height: 42px;
    padding: 0 8px 18px;
    white-space: normal;
    border-bottom: 1px solid var(--sales-border);
}

.sidebar-brand img {
    height: 28px;
    object-fit: contain;
    width: 28px;
}

.sidebar-brand span {
    line-height: 1.05;
}

.sidebar-nav {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    overflow-x: hidden;
    padding-bottom: 20px;
}

.sidebar-nav a {
    align-items: center;
    border-radius: 12px;
    color: #415094;
    display: grid;
    font-size: .95rem;
    font-weight: 600;
    gap: 8px;
    grid-template-columns: 14px auto;
    min-height: 44px;
    padding: 0 16px;
    white-space: normal;
}

.sidebar-nav a::after {
    content: none;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: #F3F6FF;
    color: var(--sales-blue);
}

.nav-group-label {
    color: #828BB2;
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .02em;
    margin: 14px 16px 4px;
    text-transform: uppercase;
}

.nav-dot {
    border: 1.8px solid currentColor;
    border-radius: 4px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.dot-blue { color: #5475EA; }
.dot-pink { color: #ED477B; }
.dot-green { color: #20C997; }
.dot-cyan { color: #11CDEF; }
.dot-orange { color: #FB6340; }
.dot-purple { color: #825EE4; }

.sidebar-help {
    border-top: 1px solid var(--sales-border);
    display: block;
    margin-top: auto;
    padding: 22px 12px 0;
    text-align: center;
}

.sidebar-help img {
    display: block;
    margin: 0 auto 10px;
    max-width: 92px;
}

.sidebar-help strong,
.sidebar-help span {
    display: block;
}

.sidebar-help span {
    color: #63708A;
    font-size: .82rem;
}

.app-workspace {
    min-width: 0;
    overflow-x: hidden;
}

.workspace-topbar {
    align-items: center;
    background: #FFFFFF;
    border-bottom: 1px solid #F2F4FF;
    display: flex;
    height: 86px;
    justify-content: space-between;
    padding: 0 30px;
}

.topbar-search {
    align-items: center;
    border: 1px solid #BBC1C9;
    border-radius: 999px;
    display: flex;
    gap: 10px;
    height: 40px;
    max-width: 310px;
    padding: 0 16px;
    width: 100%;
}

.topbar-search .form-control {
    border: 0;
    box-shadow: none;
    font-size: .82rem;
    color: #415094;
    min-height: 0;
    padding: 0;
}

.search-icon {
    color: #7D879A;
    font-size: 1.1rem;
}

.topbar-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.avatar-admin {
    align-items: center;
    background: #E9F6FF;
    border-radius: 50%;
    color: var(--sales-blue);
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.admin-profile {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E6ECF2;
    border-radius: 999px;
    display: flex;
    gap: 10px;
    min-height: 54px;
    padding: 6px 16px 6px 8px;
}

.admin-profile img {
    border: 1px solid #D9F2EE;
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.admin-profile strong,
.admin-profile a {
    display: block;
    line-height: 1.15;
}

.admin-profile strong {
    color: var(--sales-text);
    font-size: .88rem;
    font-weight: 800;
}

.admin-profile a {
    color: var(--sales-teal-dark);
    font-size: .76rem;
    font-weight: 800;
    margin-top: 3px;
}

.admin-profile a:hover {
    color: var(--sales-blue);
}

.app-hero {
    align-items: flex-start;
    background: #64C5B1;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    min-height: 160px;
    padding: 30px;
}

.app-hero h1 {
    color: #FFFFFF;
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.breadcrumb-line {
    color: #FFFFFF;
    font-size: .8rem;
    font-weight: 600;
    margin: 0;
}

.hero-report-btn {
    background: #FFFFFF;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(31, 30, 47, .08);
    color: var(--sales-text);
    font-size: .8rem;
    min-width: 144px;
    padding: 14px 20px;
}

.hero-report-btn:hover {
    background: var(--sales-soft);
    color: var(--sales-text);
}

.main {
    margin-top: -40px;
    padding: 0 30px 40px;
    position: relative;
    z-index: 2;
}

.app-footer {
    color: #8390A9;
    font-size: .86rem;
    font-weight: 700;
    padding: 18px 0 0;
    text-align: center;
}

.dashboard-summary-grid {
    display: grid;
    gap: 34px 36px;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
}

.dashboard-summary-card {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(202, 206, 213, .7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(31, 30, 47, .03);
    display: flex;
    justify-content: space-between;
    min-height: 176px;
    overflow: hidden;
    padding: 26px 34px 26px 24px;
}

.summary-copy h2 {
    color: #415094;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 8px;
}

.summary-copy strong {
    color: #14256A;
    display: block;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 10px;
}

.summary-copy span,
.summary-copy p {
    color: #828BB2;
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 7px;
}

.payment-copy h2 {
    margin-bottom: 12px;
}

.dashboard-illustration {
    flex: 0 0 98px;
    height: 98px;
    position: relative;
}

.dashboard-illustration i,
.dashboard-illustration b {
    display: block;
    position: absolute;
}

.user-illustration i {
    background: radial-gradient(circle at 35% 25%, #F4D7C9, #B64D32 70%);
    border-radius: 50%;
    height: 32px;
    left: 44px;
    top: 8px;
    width: 32px;
}

.user-illustration b {
    background: radial-gradient(circle at 34% 26%, #FFD791, #C74708 72%);
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(153, 65, 16, .24);
    height: 42px;
    left: 40px;
    top: 45px;
    width: 42px;
}

.folder-illustration i {
    background: #D78932;
    border-radius: 8px 8px 4px 4px;
    height: 54px;
    left: 20px;
    top: 32px;
    transform: rotate(-3deg);
    width: 70px;
}

.folder-illustration i::before {
    background: #F4B456;
    border-radius: 7px 7px 0 0;
    content: "";
    height: 22px;
    left: 4px;
    position: absolute;
    top: -11px;
    width: 34px;
}

.folder-illustration b {
    background: linear-gradient(145deg, #F5BC5A, #D8892F);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(156, 95, 20, .22);
    height: 48px;
    left: 26px;
    top: 40px;
    width: 72px;
}

.book-illustration i {
    background: linear-gradient(145deg, #ED644F, #B92B44);
    border-radius: 4px;
    box-shadow: 0 10px 18px rgba(172, 38, 54, .24);
    height: 70px;
    left: 38px;
    top: 14px;
    transform: rotate(-18deg);
    width: 46px;
}

.book-illustration i::before,
.book-illustration i::after {
    background: #93D8D1;
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 11px;
    position: absolute;
    width: 24px;
}

.book-illustration i::before {
    top: 20px;
}

.book-illustration i::after {
    top: 34px;
}

.calendar-illustration i {
    background: linear-gradient(180deg, #F4F6F9, #D7DCE4);
    border-radius: 7px;
    box-shadow: 0 10px 18px rgba(76, 87, 103, .22);
    height: 68px;
    left: 24px;
    top: 20px;
    width: 74px;
}

.calendar-illustration i::before {
    background: #E5487D;
    border-radius: 7px 7px 0 0;
    content: "";
    height: 20px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.calendar-illustration b {
    background:
        linear-gradient(#4A8EE8, #4A8EE8) 17px 40px / 16px 16px no-repeat,
        linear-gradient(#4A8EE8, #4A8EE8) 42px 40px / 16px 16px no-repeat,
        linear-gradient(#4A8EE8, #4A8EE8) 17px 62px / 16px 16px no-repeat,
        linear-gradient(#4A8EE8, #4A8EE8) 42px 62px / 16px 16px no-repeat;
    border-radius: 4px;
    height: 90px;
    left: 24px;
    top: 4px;
    width: 74px;
}

.bill-illustration i {
    background: linear-gradient(180deg, #89B8FB, #4D92E6);
    border-radius: 8px;
    box-shadow: 0 10px 18px rgba(53, 115, 195, .2);
    height: 66px;
    left: 24px;
    top: 22px;
    width: 72px;
}

.bill-illustration i::before {
    background:
        linear-gradient(#317EDC, #317EDC) 13px 16px / 16px 16px no-repeat,
        linear-gradient(#317EDC, #317EDC) 36px 16px / 16px 16px no-repeat,
        linear-gradient(#317EDC, #317EDC) 13px 39px / 16px 16px no-repeat,
        linear-gradient(#317EDC, #317EDC) 36px 39px / 16px 16px no-repeat;
    content: "";
    height: 66px;
    left: 0;
    position: absolute;
    top: 0;
    width: 72px;
}

.bill-illustration b {
    align-items: center;
    background: linear-gradient(145deg, #FFD955, #F2A91D);
    border-radius: 50%;
    bottom: 2px;
    color: #FFFFFF;
    display: flex;
    font-size: 1.35rem;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    right: -2px;
    width: 38px;
}

.bill-illustration b::before {
    content: "$";
}

.coin-illustration i {
    background: linear-gradient(145deg, #F8C56A, #B9601A);
    border-radius: 50%;
    box-shadow: 0 12px 20px rgba(154, 88, 24, .24);
    height: 76px;
    left: 18px;
    top: 14px;
    transform: rotate(24deg);
    width: 76px;
}

.coin-illustration b {
    align-items: center;
    color: #FFFFFF;
    display: flex;
    font-size: 2.2rem;
    font-weight: 800;
    height: 76px;
    justify-content: center;
    left: 18px;
    top: 14px;
    transform: rotate(24deg);
    width: 76px;
}

.printer-illustration i {
    background: linear-gradient(180deg, #F28B25, #D45D05);
    border-radius: 8px;
    box-shadow: 0 10px 18px rgba(174, 90, 11, .24);
    height: 42px;
    left: 19px;
    top: 44px;
    width: 82px;
}

.printer-illustration i::before {
    background: linear-gradient(180deg, #F4E1CC, #DAB793);
    border-radius: 6px 6px 0 0;
    content: "";
    height: 42px;
    left: 20px;
    position: absolute;
    top: -31px;
    width: 42px;
}

.printer-illustration b {
    background: #FCE1C5;
    border-radius: 3px;
    height: 20px;
    left: 30px;
    top: 70px;
    width: 62px;
}

.topbar {
    display: none;
}

h1,
h2 {
    color: var(--sales-text);
}

h2 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.sales-dashboard-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(340px, .98fr);
    margin-bottom: 20px;
}

.sales-bottom-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.lower-sales {
    align-items: start;
}

.sales-card,
.stat-card,
.panel,
.form-panel,
.login-card,
.invoice-box {
    background: #FFFFFF;
    border: 1px solid rgba(202, 206, 213, .7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(31, 30, 47, .03);
    min-width: 0;
}

.sales-card {
    padding: 28px 30px;
}

.sales-card-header,
.panel-header {
    align-items: center;
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.sales-card-header h2,
.panel-header h2 {
    color: var(--sales-text);
}

.period-tabs {
    display: flex;
    gap: 2px;
}

.period-tabs span {
    color: #25325F;
    font-size: .82rem;
    padding: 12px 16px;
}

.period-tabs .active {
    background: var(--sales-soft);
}

.bar-chart {
    display: grid;
    gap: 10px;
    grid-template-columns: 50px 1fr;
    min-height: 260px;
    padding-top: 38px;
}

.bar-scale {
    color: #9AA6C1;
    display: flex;
    flex-direction: column;
    font-size: .78rem;
    justify-content: space-between;
    padding-bottom: 32px;
    text-align: right;
}

.bars {
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, #E7ECF4 45px);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
    min-width: 0;
}

.bar-item {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bar-track {
    align-items: flex-end;
    display: flex;
    height: 182px;
    margin-bottom: 18px;
}

.bar-track i {
    background: var(--sales-teal-dark);
    border-radius: 999px;
    display: block;
    width: 9px;
}

.bar-item small {
    color: #9AA6C1;
    font-size: .78rem;
}

.unit-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.more-dot {
    color: #9AA6C1;
    font-weight: 800;
}

.sales-donut {
    align-self: center;
    background: conic-gradient(#18266D 0 25%, var(--sales-teal) 25% var(--paid), #404D4F var(--paid) 76%, #ED477B 76% 92%, #11CDEF 92% 100%);
    border-radius: 50%;
    height: 210px;
    margin: 42px auto 38px;
    position: relative;
    width: 210px;
}

.sales-donut::after {
    background: #FFFFFF;
    border-radius: 50%;
    content: attr(data-label);
    display: grid;
    font-size: 1.1rem;
    font-weight: 800;
    height: 42px;
    left: 50%;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
}

.unit-footer {
    background: var(--sales-dark);
    color: #FFFFFF;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    margin: auto -30px 0;
    padding: 28px 38px;
}

.unit-footer span,
.unit-footer small {
    color: #8FA0A6;
    display: block;
    font-size: .75rem;
    font-weight: 700;
}

.unit-footer strong {
    display: block;
    font-size: 1.8rem;
    margin: 4px 0;
}

.report-strip {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 36px 50px;
}

.report-strip p {
    color: #B2BAD3;
    font-size: .78rem;
    font-weight: 700;
    margin: 4px 0 0;
}

.btn-sales,
button,
.btn-cta,
.btn-primary {
    background: #567AED;
    border: 0;
    border-radius: 5px;
    color: #FFFFFF;
    font-weight: 700;
    min-height: 46px;
    padding: 12px 26px;
}

.btn-sales:hover,
button:hover,
.btn-cta:hover,
.btn-primary:hover {
    background: #4C6EF8;
    box-shadow: 0 3px 11px rgba(80, 143, 244, .55);
    color: #FFFFFF;
}

.mini-chart-card,
.summary-card,
.order-card {
    min-height: 220px;
}

.mini-line {
    height: 110px;
    margin-top: 34px;
    width: 100%;
}

.summary-card {
    display: grid;
    gap: 24px;
}

.summary-row {
    background: #F4F6FD;
    border-radius: 999px;
    height: 7px;
    position: relative;
}

.summary-row span {
    background: #FFB13B;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.summary-row.blue span {
    background: var(--sales-blue);
}

.summary-row.green span {
    background: var(--sales-teal);
}

.summary-row b {
    color: var(--sales-blue);
    font-size: .75rem;
    left: 50%;
    position: absolute;
    top: -22px;
}

.order-card strong {
    color: #18266D;
    display: block;
    font-size: 4rem;
    line-height: 1;
    margin-top: 38px;
}

.order-card p {
    color: #9AA6C1;
    font-weight: 700;
    margin: 10px 0 0;
}

.small-tabs span {
    padding: 10px 14px;
}

.form-panel,
.panel {
    margin-bottom: 20px;
    padding: 28px 30px;
}

.panel-header {
    margin-bottom: 18px;
}

.form-grid,
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-grid label {
    color: var(--sales-text);
    display: grid;
    flex: 1 1 220px;
    gap: 6px;
    font-weight: 700;
}

.form-grid label.wide,
.wide {
    flex: 1 1 100%;
}

input,
select,
.form-control,
.form-select {
    border: 1px solid var(--sales-border);
    border-radius: 5px;
    color: var(--sales-text);
    min-height: 42px;
}

input:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--sales-teal);
    box-shadow: 0 0 0 .15rem rgba(99, 198, 181, .18);
}

.searchable-native-select {
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
    position: absolute !important;
    width: 1px !important;
}

.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-button {
    background: #FFFFFF;
    border: 1px solid var(--sales-border);
    border-radius: 5px;
    color: var(--sales-text);
    font-weight: 500;
    min-height: 42px;
    overflow: hidden;
    padding: 9px 42px 9px 12px;
    position: relative;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.searchable-select-button::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 8px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 8px;
}

.searchable-select.open .searchable-select-button,
.searchable-select-button:focus {
    border-color: var(--sales-teal);
    box-shadow: 0 0 0 .15rem rgba(99, 198, 181, .18);
    outline: 0;
}

.searchable-select-panel {
    background: #FFFFFF;
    border: 1px solid var(--sales-border);
    border-radius: 5px;
    box-shadow: 0 14px 28px rgba(31, 30, 47, .14);
    display: none;
    left: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1050;
}

.searchable-select.open .searchable-select-panel {
    display: block;
}

.searchable-select-search {
    margin-bottom: 8px;
}

.searchable-select-options {
    max-height: 260px;
    overflow-y: auto;
}

.searchable-select-option {
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--sales-text);
    display: block;
    font-weight: 700;
    min-height: 0;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.searchable-select-option:hover,
.searchable-select-option.selected {
    background: #F3F6FF;
    box-shadow: none;
    color: var(--sales-blue);
}

.searchable-select-option:disabled {
    color: #A7B0C5;
    cursor: not-allowed;
}

.searchable-select-empty {
    color: #8794B0;
    font-weight: 700;
    padding: 12px;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-filter-toolbar {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(140px, 170px) auto;
    margin: 0 0 14px;
}

.table-search-input,
.table-column-select,
.table-page-size {
    background: #FFFFFF;
    min-height: 42px;
}

.table-filter-count {
    background: var(--sales-soft);
    border-radius: 999px;
    color: var(--sales-blue);
    font-size: .78rem;
    font-weight: 800;
    padding: 9px 12px;
    text-align: center;
    white-space: nowrap;
}

.table-pagination {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 14px 0 0;
}

.table-page-info,
.table-page-current {
    color: #828BB2;
    font-size: .82rem;
    font-weight: 800;
}

.table-page-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.table-page-btn {
    background: #FFFFFF;
    border: 1px solid var(--sales-border);
    border-radius: 5px;
    color: var(--sales-text);
    font-size: .8rem;
    font-weight: 800;
    min-height: 36px;
    padding: 8px 12px;
}

.table-page-btn:hover {
    background: var(--sales-blue);
    border-color: var(--sales-blue);
    color: #FFFFFF;
}

.table-page-btn:disabled,
.table-page-btn:disabled:hover {
    background: var(--sales-soft);
    border-color: var(--sales-border);
    color: #A7B0C5;
    cursor: not-allowed;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--sales-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #828BB2;
    font-size: .72rem;
    text-transform: uppercase;
}

td {
    color: #415094;
    font-weight: 700;
}

td small {
    color: #8794B0;
    display: block;
    font-weight: 500;
}

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

.activity {
    align-items: center;
    border-bottom: 1px solid var(--sales-border);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding-bottom: 12px;
}

.activity:last-child {
    border-bottom: 0;
}

.activity span {
    color: #8794B0;
    display: block;
    font-size: .82rem;
    margin-top: 4px;
}

.activity b {
    color: var(--sales-blue);
    white-space: nowrap;
}

.empty {
    color: #8794B0;
    padding: 20px;
    text-align: center;
}

.badge {
    border-radius: 999px;
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    padding: 5px 10px;
}

.badge.paid {
    background: #D1EEE7;
    color: #64C5B1;
}

.badge.partial {
    background: #FFF4E5;
    color: #D68A15;
}

.badge.unpaid {
    background: #FDEBF1;
    color: #D83464;
}

.alert.success {
    background: #E5F8F4;
    border-color: #BCEBE2;
    color: #18A68F;
}

.alert.danger {
    background: #FDEBF1;
    border-color: #FAC1D2;
    color: #D83464;
}

.nav-pills .nav-link {
    color: #244B48;
    font-weight: 700;
}

.nav-pills .nav-link.active {
    background: var(--sales-teal);
}

.progress {
    background: var(--sales-border);
    border-radius: 999px;
    height: 7px;
}

.progress span {
    background: var(--sales-teal);
    display: block;
    height: 100%;
}

.course-picker {
    border: 1px solid var(--sales-border);
    border-radius: 5px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.course-picker h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.course-picker p {
    color: #8794B0;
    margin: 0;
}

.course-filter-toolbar {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) minmax(140px, 170px) auto;
    margin: 4px 0 6px;
}

.course-search-input,
.course-page-size {
    background: #FFFFFF;
    min-height: 42px;
}

.course-option {
    align-items: center;
    background: var(--sales-soft);
    border-radius: 5px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    padding: 12px;
}

.course-pagination {
    margin-top: 4px;
}

.import-panel .panel-header {
    margin-bottom: 16px;
}

.import-help {
    background: var(--sales-soft);
    border-radius: 5px;
    color: #63708A;
    font-size: .86rem;
    line-height: 1.55;
    padding: 12px 14px;
}

.import-help strong {
    color: var(--sales-text);
}

.login-page {
    background: linear-gradient(135deg, rgba(99, 198, 181, .9), rgba(84, 117, 234, .42)), url("../img/login-bg.jpg") center / cover no-repeat fixed;
}

.login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card,
.invoice-box {
    padding: 30px;
}

.login-card {
    max-width: 360px;
    width: 100%;
}

.login-logo-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.login-logo-row img {
    height: 54px;
    object-fit: contain;
    max-width: 160px;
}

.invoice-box {
    margin: 0 auto;
    max-width: 860px;
    overflow: hidden;
}

.invoice-box table {
    min-width: 0;
}

.invoice-header {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.invoice-logo-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.invoice-logo-iclabs {
    height: 78px;
    object-fit: contain;
    width: 78px;
}

.invoice-logo-fikom {
    max-height: 62px;
    max-width: 320px;
    object-fit: contain;
}

.invoice-number {
    text-align: right;
}

.chart-panel {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns: 260px 1fr;
}

.donut-chart {
    background: conic-gradient(var(--sales-teal) var(--paid-deg), #ED477B 0);
    border-radius: 50%;
    display: grid;
    height: 220px;
    margin: 0 auto;
    place-items: center;
    width: 220px;
}

.donut-chart::after {
    background: #FFFFFF;
    border-radius: 50%;
    content: attr(data-label);
    display: grid;
    font-size: 1.5rem;
    font-weight: 800;
    height: 130px;
    place-items: center;
    width: 130px;
}

.legend-dot {
    border-radius: 50%;
    display: inline-block;
    height: 12px;
    margin-right: 8px;
    width: 12px;
}

.legend-paid { background: var(--sales-teal); }
.legend-unpaid { background: #ED477B; }

.button-link {
    background: transparent;
    border: 0;
    color: var(--sales-blue);
    min-height: 0;
    padding: 0;
}

.button-link.danger,
.link-danger {
    color: #D83464;
    font-weight: 800;
}

.report-toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.report-count {
    display: flex;
    gap: 8px;
}

.report-count span {
    background: var(--sales-soft);
    border-radius: 999px;
    color: var(--sales-blue);
    font-weight: 800;
    padding: 7px 10px;
}

@media (max-width: 1280px) {
    .sales-dashboard-grid,
    .sales-bottom-grid,
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(230px, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-shell {
        display: block;
    }

    .app-sidebar {
        border-bottom: 1px solid var(--sales-border);
        border-right: 0;
        box-shadow: 0 2px 6px rgba(31, 30, 47, .03);
        flex-direction: row;
        gap: 18px;
        min-height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 18px;
        position: sticky;
        width: 100%;
    }

    .sidebar-brand {
        font-size: 1.1rem;
        margin-bottom: 0;
        padding: 0;
        border-bottom: 0;
        white-space: nowrap;
    }

    .sidebar-nav {
        align-items: center;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
    }

    .sidebar-nav a {
        flex: 0 0 auto;
        font-size: .9rem;
        min-height: 38px;
        padding: 0 10px;
        white-space: nowrap;
    }

    .nav-group-label,
    .sidebar-help {
        display: none;
    }

    .workspace-topbar,
    .app-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .main {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 640px) {
    .workspace-topbar,
    .app-hero,
    .report-strip,
    .invoice-header,
    .report-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-topbar {
        height: auto;
        gap: 16px;
        padding-bottom: 18px;
        padding-top: 18px;
    }

    .topbar-search {
        max-width: none;
    }

    .topbar-actions {
        justify-content: flex-end;
    }

    .admin-profile {
        border-radius: 14px;
        justify-content: flex-start;
        width: 100%;
    }

    .table-filter-toolbar {
        grid-template-columns: 1fr;
    }

    .course-filter-toolbar {
        grid-template-columns: 1fr;
    }

    .table-filter-count {
        justify-self: flex-start;
    }

    .table-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .table-page-actions {
        justify-content: space-between;
    }

    .bar-chart {
        grid-template-columns: 1fr;
    }

    .dashboard-summary-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .dashboard-summary-card {
        min-height: 150px;
        padding: 22px 18px;
    }

    .dashboard-illustration {
        flex-basis: 82px;
        transform: scale(.82);
        transform-origin: right center;
    }

    .bar-scale {
        display: none;
    }

    .bars {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .bar-item {
        min-width: 38px;
    }

    .unit-footer,
    .chart-panel {
        grid-template-columns: 1fr;
    }

    .form-grid button,
    .filters button,
    .report-toolbar .btn {
        width: 100%;
    }

    .invoice-number {
        text-align: left;
    }
}

@media print {
    body {
        background: #FFFFFF;
    }

    .app-sidebar,
    .workspace-topbar,
    .app-hero,
    .report-toolbar,
    .no-print {
        display: none !important;
    }

    .dashboard-shell {
        display: block;
    }

    .main {
        margin-top: 0;
        padding: 0 !important;
    }

    .sales-card,
    .panel,
    .form-panel,
    .invoice-box {
        box-shadow: none;
    }

    table {
        font-size: 12px;
        min-width: 0;
    }
}
