:root {
    --blue-950: #053064;
    --blue-900: #073c80;
    --blue-850: #084893;
    --blue-800: #0b55bc;
    --blue-700: #0f63df;
    --blue-100: #eef5ff;
    --orange: #ff7818;
    --green: #20ba62;
    --red: #ff3d3d;
    --ink: #152342;
    --muted: #667596;
    --line: #dce5f2;
    --soft: #f7faff;
    --white: #ffffff;
    --shadow: 0 18px 55px rgba(23, 48, 83, 0.09);
    --soft-shadow: 0 8px 24px rgba(20, 43, 74, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: #f8fbff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
select,
textarea,
input {
    max-width: 100%;
}

.login-body {
    min-height: 100vh;
    background: linear-gradient(110deg, #f8fbff 0%, #ffffff 42%, #edf6ff 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 54.5% 45.5%;
}

.login-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--white);
    background: #063b80;
}

.hero-room,
.hero-blue,
.hero-white-curve,
.hero-wave {
    position: absolute;
    pointer-events: none;
}

.hero-room {
    inset: 235px 0 0 0;
    background-image: url("../images/SUNTER,JAKARTAUTARA.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.48;
    filter: saturate(1) contrast(1.04);
}

.hero-blue {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 59, 124, 0.96), rgba(3, 45, 96, 0.9)),
        radial-gradient(circle at 25% 57%, rgba(4, 121, 206, 0.42), transparent 20%);
    mix-blend-mode: multiply;
}

.hero-white-curve {
    top: -210px;
    left: -170px;
    width: 850px;
    height: 500px;
    border-radius: 0 0 65% 50%;
    background: #ffffff;
    transform: rotate(5deg);
    box-shadow: 0 18px 80px rgba(0, 0, 0, 0.06);
}

.hero-wave {
    right: -190px;
    bottom: -230px;
    width: 840px;
    height: 430px;
    border-radius: 58% 0 0 0;
    background: linear-gradient(135deg, #ff922f 0%, #ff6a11 58%, #ff7e1f 100%);
    transform: rotate(-14deg);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 80px 78px 90px;
}

.hero-logo {
    width: 365px;
    align-self: start;
}

.hero-copy {
    align-self: center;
    max-width: 620px;
    margin-top: 88px;
}

.hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: 48px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: 0;
}

.accent-line {
    display: block;
    width: 76px;
    height: 6px;
    margin: 22px 0 22px;
    border-radius: 99px;
    background: var(--orange);
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 22px;
    line-height: 1.55;
    letter-spacing: 0;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    max-width: 700px;
    margin-bottom: 34px;
}

.feature-card {
    color: #ffffff;
}

.feature-card i {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    border-radius: 12px;
    color: var(--blue-800);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    font-size: 30px;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.login-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 60px 76px;
}

.login-card {
    width: 100%;
    max-width: 630px;
    min-height: 720px;
    padding: 58px 58px 42px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(47, 72, 101, 0.15);
}

.login-badge,
.stat-icon,
.user-avatar {
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.login-badge {
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    color: var(--blue-800);
    background: #edf4ff;
    font-size: 34px;
}

.login-heading {
    margin-bottom: 36px;
    text-align: center;
}

.login-heading h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.login-heading p {
    margin: 0;
    color: #5e6b86;
    font-size: 18px;
}

.login-form {
    display: grid;
    gap: 25px;
}

.field {
    display: grid;
    gap: 12px;
}

.field span {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 66px;
    padding: 0 22px;
    border: 1px solid #cad4e5;
    border-radius: 8px;
    background: #ffffff;
}

.input-wrap i {
    width: 22px;
    color: #7a879e;
    font-size: 20px;
}

.input-wrap input,
.field textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}

.input-wrap input::placeholder {
    color: #8c98ae;
}

.toggle-password {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #7a879e;
    cursor: pointer;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #34435e;
    font-size: 16px;
}

.remember-me input {
    width: 20px;
    height: 20px;
    accent-color: var(--blue-800);
}

.primary-btn,
.ghost-btn,
.icon-btn,
.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
}

.primary-btn {
    min-height: 66px;
    padding: 0 24px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(180deg, #0e62d9 0%, #0b55c8 100%);
    box-shadow: 0 9px 18px rgba(8, 81, 194, 0.22);
    font-size: 17px;
    font-weight: 800;
}

.full-width {
    width: 100%;
}

.login-footer {
    margin-top: 58px;
    padding-top: 30px;
    border-top: 1px solid #dbe3f0;
    text-align: center;
    color: #73809a;
    font-size: 14px;
}

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

.sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 22px 18px 28px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border-right: 1px solid #dbe5f2;
}

.close-sidebar-btn {
    display: none;
}

.sidebar::before {
    content: "";
    position: absolute;
    right: -120px;
    bottom: 108px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(16, 99, 216, 0.08);
}

.sidebar::after {
    content: "";
    position: absolute;
    left: -70px;
    right: -80px;
    bottom: -172px;
    height: 335px;
    border-radius: 55% 50% 0 0;
    background: linear-gradient(145deg, rgba(255, 141, 36, 0.95) 0%, rgba(255, 111, 21, 0.95) 72%);
}

.brand,
.nav-menu,
.logout-link {
    position: relative;
    z-index: 2;
}

.sidebar-main,
.sidebar-logout-form {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.brand {
    display: grid;
    place-items: center;
    margin: 0 0 24px;
    padding: 16px 12px;
    border-radius: 12px;
    background: transparent;
}

.brand img {
    width: min(168px, 100%);
    height: auto;
    display: block;
}

.nav-menu {
    display: grid;
    gap: 10px;
    margin-top: 6px;
    padding: 0;
}

.nav-link,
.logout-link {
    min-height: 58px;
    width: 100%;
    justify-content: flex-start;
    padding: 0 18px;
    border-radius: 12px;
    color: #23456f;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid transparent;
}

.nav-link {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    text-align: left;
}

.nav-link span {
    min-width: 0;
    justify-self: stretch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link i,
.logout-link i {
    flex: 0 0 24px;
    width: 24px;
    font-size: 20px;
    text-align: center;
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(180deg, #115fcf 0%, #0b4fae 100%);
    box-shadow: 0 12px 24px rgba(11, 79, 174, 0.18);
}

.nav-menu::after {
    content: "";
    height: 1px;
    margin: 16px 6px 0;
    background: #dbe5f2;
}

.logout-link {
    position: relative;
    z-index: 2;
    color: #ffffff;
    background: rgba(255, 121, 24, 0.96);
    box-shadow: 0 12px 24px rgba(255, 121, 24, 0.22);
}

.logout-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-content {
    min-width: 0;
    padding: 0 32px 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 125px;
    margin: 0 -32px 28px;
    padding: 0 32px;
    border-bottom: 1px solid #dfe7f3;
    background: #ffffff;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar h1 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.topbar p,
.panel-header p,
.pagination-wrap p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--blue-100);
    color: var(--blue-800);
}

.user-menu {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 290px;
    min-height: 52px;
    padding: 0 6px 0 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.user-avatar {
    width: 52px;
    height: 52px;
    color: var(--blue-900);
    background: #e9f1ff;
}

.user-chip strong {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.chip-chevron {
    margin-left: 4px;
    color: #1f3f70;
    font-size: 14px;
}

.user-chip-text {
    min-width: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 40;
    display: none;
    min-width: 245px;
    padding: 10px;
    border: 1px solid #dfe7f3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(23, 48, 83, 0.14);
}

.user-dropdown.is-open {
    display: grid;
    gap: 6px;
}

.dropdown-user {
    display: grid;
    gap: 3px;
    margin-bottom: 4px;
    padding: 10px 12px 14px;
    border-bottom: 1px solid #e3ebf6;
}

.dropdown-user span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 13px;
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f3557;
    cursor: pointer;
    text-align: left;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f3f7ff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 24px;
    padding: 24px 110px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 98px;
    background: transparent;
}

.stat-card + .stat-card {
    border-left: 1px solid #dbe3ef;
}

.stat-icon {
    width: 76px;
    height: 76px;
    font-size: 30px;
}

.stat-icon.blue {
    color: #145fcf;
    background: #eaf1ff;
}

.stat-icon.green {
    color: var(--green);
    background: #e9f9ee;
}

.stat-icon.orange {
    color: var(--orange);
    background: #fff3e8;
}

.stat-card span {
    display: block;
    margin-bottom: 6px;
    color: #1a2a4a;
    font-size: 15px;
    font-weight: 500;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.text-green {
    color: #1abb61 !important;
}

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

.panel,
.form-panel {
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.customer-panel {
    padding: 24px;
}

.panel-header,
.toolbar,
.pagination-wrap,
.action-row,
.table-actions,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #dfe7f3;
}

.panel-header h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.ghost-btn {
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #9eb8ef;
    border-radius: 8px;
    background: #ffffff;
    color: #0b55c8;
    font-size: 15px;
    font-weight: 700;
}

.filter-btn {
    color: #475a7b;
    border-color: #d7e0ee;
}

.add-customer-btn {
    min-height: 50px;
    border-radius: 8px;
    font-size: 15px;
}

.dashboard-toolbar {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #dfe7f3;
}

.filter-panel {
    display: none;
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 0.8fr)) auto;
    gap: 14px;
    align-items: end;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #f8fbff;
}

.filter-panel.is-open {
    display: grid;
}

.filter-field {
    display: grid;
    gap: 8px;
}

.filter-field span {
    color: #334866;
    font-size: 13px;
    font-weight: 800;
}

.filter-field select,
.filter-field input,
.per-page-control select {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cad8ec;
    border-radius: 8px;
    background: #ffffff;
    color: #1e3357;
    outline: 0;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-submit,
.reset-btn {
    min-height: 42px;
    border-radius: 8px;
}

.search-form {
    width: 390px;
}

.search-wrap {
    min-height: 45px;
    padding: 0 16px;
    border-radius: 8px;
}

.search-wrap input {
    font-size: 14px;
}

.table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.accounts-table {
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 14px 28px;
    border-bottom: 1px solid #dfe7f3;
    text-align: left;
    vertical-align: middle;
    color: #253553;
    font-size: 14px;
}

.data-table th {
    height: 58px;
    background: #fcfdff;
    color: #13213a;
    font-weight: 800;
}

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

.whatsapp-cell {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.whatsapp-cell i {
    color: #13bf5b;
    font-size: 21px;
}

.table-actions {
    justify-content: flex-start;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
}

.icon-btn.blue {
    border: 1px solid #87adff;
    color: #0d5fe2;
}

.icon-btn.red {
    border: 1px solid #ff9c9c;
    color: #ff3030;
}

.pagination-wrap {
    margin-top: 18px;
    flex-wrap: wrap;
    padding: 0 12px;
}

.per-page-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}

.custom-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-link,
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #ffffff;
    color: #29405f;
    font-size: 14px;
}

.page-link.active-static {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(180deg, #0e62d9 0%, #0b55c8 100%);
}

.page-link.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.page-dots {
    border-color: transparent;
    background: transparent;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #ecfdf3;
    color: #166534;
}

.alert.danger {
    background: #fff1f1;
    color: #b42318;
}

.import-form,
.actions-stack {
    flex-wrap: wrap;
}

.import-form input[type="file"] {
    max-width: 280px;
    padding: 13px;
    border: 1px dashed #cbd8ec;
    border-radius: 8px;
    background: #ffffff;
}

.field textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 1px solid #cad4e5;
    border-radius: 8px;
    resize: vertical;
}

.form-panel {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.full-span {
    grid-column: 1 / -1;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 24px;
}

.empty-state,
.empty-note {
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.field small,
.error-inline {
    color: var(--red);
}

.pos-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.pos-products,
.pos-order {
    overflow: hidden;
}

.pos-products-head,
.pos-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #dfe7f3;
}

.pos-products-head h2,
.pos-order-head h2 {
    margin: 0 0 5px;
    font-size: 19px;
    font-weight: 800;
}

.pos-products-head p,
.pos-order-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.pos-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(430px, 48%);
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #cbd8ec;
    border-radius: 8px;
    background: #ffffff;
}

.pos-search i {
    color: #6f7f9b;
}

.pos-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.pos-category-tabs {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    overflow-x: auto;
    border-bottom: 1px solid #e6edf7;
    background: #fbfdff;
}

.pos-category-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #d3deef;
    border-radius: 8px;
    background: #ffffff;
    color: #2f4668;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 800;
}

.pos-category-tab i {
    color: #0b55c8;
}

.pos-category-tab strong {
    min-width: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #edf4ff;
    color: #0b55c8;
    font-size: 12px;
}

.pos-category-tab.active {
    border-color: transparent;
    background: #0b55c8;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(11, 85, 200, 0.18);
}

.pos-category-tab.active i,
.pos-category-tab.active strong {
    color: #ffffff;
}

.pos-category-tab.active strong {
    background: rgba(255, 255, 255, 0.18);
}

.pos-product-scroll {
    max-height: calc(100vh - 280px);
    min-height: 520px;
    overflow-y: auto;
    padding: 18px;
}

.pos-category-section + .pos-category-section {
    margin-top: 22px;
}

.pos-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pos-section-title span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #142745;
    font-size: 15px;
    font-weight: 800;
}

.pos-section-title i {
    color: #0b55c8;
}

.pos-section-title small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 13px;
}

.pos-product-card {
    display: grid;
    grid-template-rows: 132px 1fr;
    min-width: 0;
    padding: 0;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pos-product-card:hover {
    transform: translateY(-2px);
    border-color: #83aaf5;
    box-shadow: 0 12px 26px rgba(15, 65, 130, 0.12);
}

.pos-product-card:focus-visible {
    outline: 3px solid rgba(14, 98, 217, 0.22);
    outline-offset: 2px;
}

.pos-product-image {
    position: relative;
    display: block;
    background: #eef4fb;
}

.pos-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pos-variant-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(11, 85, 200, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.pos-product-body {
    display: grid;
    gap: 7px;
    padding: 11px;
}

.pos-product-code {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 6px;
    background: #edf4ff;
    color: #0b55c8;
    font-size: 11px;
    font-weight: 800;
}

.pos-product-body strong {
    min-height: 38px;
    color: #172842;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.pos-product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #70809b;
    font-size: 12px;
}

.pos-product-price {
    color: #0b55c8;
    font-size: 16px;
    font-weight: 900;
}

.pos-empty-products,
.pos-empty-cart {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 190px;
    padding: 22px;
    border: 1px dashed #cbd8ec;
    border-radius: 8px;
    background: #fbfdff;
    color: var(--muted);
    text-align: center;
}

.pos-empty-products[hidden] {
    display: none;
}

.pos-empty-products i,
.pos-empty-cart i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #edf4ff;
    color: #0b55c8;
}

.pos-empty-products strong,
.pos-empty-cart strong {
    color: #1f3557;
}

.pos-order {
    position: sticky;
    top: 18px;
}

.pos-clear-btn,
.pos-modal-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d8e2f0;
    border-radius: 8px;
    background: #ffffff;
    color: #4b5f7d;
    cursor: pointer;
}

.pos-form {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.pos-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pos-field {
    display: grid;
    gap: 7px;
}

.pos-field.full {
    grid-column: 1 / -1;
}

.pos-field span {
    color: #344866;
    font-size: 12px;
    font-weight: 800;
}

.pos-field input,
.pos-field select,
.pos-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #cad8ec;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    outline: 0;
}

.pos-field textarea {
    resize: vertical;
}

.pos-cart {
    display: grid;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 3px;
}

.pos-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e8f3;
    border-radius: 8px;
    background: #ffffff;
}

.pos-cart-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.pos-cart-info strong {
    color: #172842;
    font-size: 13px;
    line-height: 1.35;
}

.pos-cart-info span {
    color: var(--muted);
    font-size: 12px;
}

.pos-cart-info em {
    color: #0b55c8;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.pos-qty-control {
    display: grid;
    grid-template-columns: 30px 26px 30px;
    gap: 6px;
    align-items: center;
}

.pos-qty-control button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #cfdced;
    border-radius: 8px;
    background: #ffffff;
    color: #1f3557;
    cursor: pointer;
    font-weight: 900;
}

.pos-qty-control span {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.pos-qty-control .remove {
    grid-column: 1 / -1;
    width: 100%;
    border-color: #ffd1d1;
    background: #fff3f3;
    color: #e53935;
}

.pos-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    background: #f7faff;
}

.pos-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #40536f;
    font-size: 14px;
}

.pos-summary strong {
    color: #172842;
}

.pos-discount-input {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cad8ec;
    border-radius: 8px;
    background: #ffffff;
}

.pos-discount-input input {
    width: 46px;
    border: 0;
    outline: 0;
    text-align: right;
}

.pos-summary .grand-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #dfe7f3;
    color: #172842;
    font-size: 16px;
    font-weight: 900;
}

.pos-summary .grand-total strong {
    color: #e53935;
    font-size: 22px;
}

.pos-submit {
    width: 100%;
    min-height: 56px;
}

.pos-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pos-variant-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(10, 25, 50, 0.55);
}

.pos-variant-modal.is-open {
    display: flex;
}

.pos-variant-dialog {
    width: min(820px, 100%);
    max-height: min(760px, 86vh);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(9, 23, 45, 0.28);
}

.pos-variant-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #dfe7f3;
}

.pos-variant-head span {
    display: block;
    margin-bottom: 4px;
    color: #0b55c8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pos-variant-head h3 {
    margin: 0;
    color: #172842;
    font-size: 20px;
}

.pos-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
}

.pos-option-body {
    display: grid;
    gap: 18px;
    overflow-y: auto;
    padding: 20px;
}

.pos-option-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.pos-option-row > span {
    padding-top: 12px;
    color: #5e6877;
    font-size: 16px;
    font-weight: 700;
}

.pos-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pos-choice-btn {
    position: relative;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #dfe5ed;
    border-radius: 4px;
    background: #ffffff;
    color: #202b3b;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.pos-choice-btn-image {
    display: grid;
    width: 132px;
    min-height: 154px;
    padding: 8px;
    align-content: start;
    gap: 8px;
    text-align: center;
}

.pos-choice-btn-image img {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: cover;
    border-radius: 4px;
    background: #eef4fb;
}

.pos-choice-btn-image span {
    display: block;
    min-height: 38px;
    color: inherit;
    font-size: 13px;
    line-height: 1.35;
}

.pos-choice-btn:hover {
    border-color: #ff9b7b;
    color: #f04422;
}

.pos-choice-btn.active {
    border-color: #ff4d2d;
    color: #ff3d1f;
}

.pos-choice-btn.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent #ff4d2d transparent;
}

.pos-choice-btn.active::before {
    content: "\2713";
    position: absolute;
    right: 2px;
    bottom: -1px;
    z-index: 1;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.pos-option-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid #dfe7f3;
}

.pos-option-footer small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.pos-option-footer strong {
    color: #0b55c8;
    font-size: 22px;
}

.pos-add-variant-btn {
    min-height: 48px;
}

.pos-variant-card {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.pos-variant-card:hover {
    border-color: #83aaf5;
    box-shadow: 0 12px 24px rgba(15, 65, 130, 0.1);
}

.pos-variant-card img {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: cover;
    border-radius: 6px;
    background: #eef4fb;
}

.pos-variant-card strong {
    color: #172842;
    font-size: 13px;
}

.pos-variant-card span {
    color: #0b55c8;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .login-shell,
    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .login-hero,
    .hero-inner {
        min-height: 760px;
    }

    .stats-grid {
        padding: 20px;
    }

    .stat-card + .stat-card {
        border-left: 0;
        border-top: 1px solid #dbe3ef;
    }

    .pos-shell {
        grid-template-columns: 1fr;
    }

    .pos-order {
        position: static;
    }

    .pos-product-scroll {
        max-height: none;
    }
}

@media (max-width: 920px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 50;
        width: min(300px, calc(100vw - 34px));
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 0 10000px rgba(10, 25, 50, 0.5); /* Quick backdrop hack */
    }

    .close-sidebar-btn {
        display: grid;
        place-items: center;
        position: absolute;
        top: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 8px;
        background: rgba(14, 98, 217, 0.1);
        color: #0b55c8;
        font-size: 20px;
        z-index: 10;
        cursor: pointer;
    }

    .main-content {
        padding: 0 14px 22px;
    }

    .topbar {
        min-height: auto;
        margin: 0 -14px 18px;
        padding: 14px;
    }

    .topbar-title {
        flex: 1 1 auto;
    }

    .user-chip {
        max-width: 220px;
    }

    .user-chip strong {
        max-width: 105px;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        flex: 0 0 44px;
    }
}

@media (max-width: 720px) {
    body {
        overflow-x: hidden;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-hero,
    .hero-inner {
        min-height: 620px;
    }

    .hero-inner {
        padding: 46px 28px 54px;
    }

    .hero-logo {
        width: 260px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy p {
        font-size: 18px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-panel {
        padding: 22px;
    }

    .login-card {
        min-height: auto;
        padding: 32px 22px;
    }

    .dashboard-shell {
        display: block;
    }

    .customer-panel,
    .form-panel {
        padding: 16px;
    }

    .stats-grid {
        gap: 12px;
        padding: 14px;
    }

    .stat-card {
        justify-content: flex-start;
        min-height: auto;
        padding: 12px 0;
    }

    .stat-icon {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
        font-size: 22px;
    }

    .stat-card strong {
        font-size: 24px;
    }

    .topbar > div:first-child {
        min-width: 0;
    }

    .topbar h1 {
        font-size: 22px;
    }

    .topbar p {
        font-size: 13px;
    }

    .user-chip {
        align-self: center;
        gap: 8px;
        max-width: 56px;
        padding: 0;
    }

    .user-chip-text,
    .chip-chevron {
        display: none;
    }

    .user-dropdown {
        right: 0;
        left: auto;
        min-width: min(280px, calc(100vw - 28px));
    }

    .panel-header,
    .toolbar,
    .pagination-wrap,
    .action-row,
    .filter-panel,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .panel-header {
        padding: 16px;
    }

    .topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .filter-panel {
        display: none;
    }

    .filter-panel.is-open {
        display: flex;
    }

    .search-form,
    .per-page-control {
        width: 100%;
        margin-left: 0;
    }

    .input-wrap {
        min-height: 52px;
        padding: 0 14px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 14px;
    }

    .custom-pagination {
        flex-wrap: wrap;
    }

    .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .data-table,
    .accounts-table {
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tbody {
        display: grid;
        gap: 12px;
    }

    .data-table tr {
        padding: 4px 0;
        border: 1px solid #dfe7f3;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: var(--soft-shadow);
    }

    .data-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 14px;
        border-bottom: 1px solid #eef3fa;
        text-align: right;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .data-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: #5f7090;
        font-size: 12px;
        font-weight: 800;
        text-align: left;
    }

    .data-table td:last-child {
        border-bottom: 0;
    }

    .table-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .empty-state {
        display: block !important;
        padding: 24px 16px !important;
        text-align: center !important;
    }

    .empty-state::before {
        content: none !important;
    }

    .pos-products-head,
    .pos-order-head {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-search {
        width: 100%;
    }

    .pos-product-scroll {
        min-height: auto;
        padding: 14px;
    }

    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .pos-product-card {
        grid-template-rows: 112px 1fr;
    }

    .pos-customer-grid,
    .pos-cart-item {
        grid-template-columns: 1fr;
    }

    .pos-qty-control {
        grid-template-columns: 36px 1fr 36px 42px;
    }

    .pos-qty-control button,
    .pos-qty-control .remove {
        width: 100%;
    }

    .pos-qty-control .remove {
        grid-column: auto;
    }

    .pos-variant-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .pos-option-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pos-option-row > span {
        padding-top: 0;
    }

    .pos-option-footer {
        align-items: stretch;
        flex-direction: column;
    }
}
