:root {
    --gravilea-blue: #0c3cc9;
    --gravilea-blue-2: #2456df;
    --gravilea-pink: #ff0854;
    --gravilea-green: #11a36a;
    --gravilea-text: #1f2937;
    --gravilea-muted: #657089;
    --gravilea-line: #dfe5ef;
    --gravilea-bg: #f4f6fa;
}

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

body {
    margin: 0;
    color: var(--gravilea-text);
    background: var(--gravilea-bg);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

button,
input,
select {
    font: inherit;
}

/* Login */
.login-koba-page {
    min-height: 100vh;
    background: #f4f6fa;
}

.login-koba-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr);
}

.login-koba-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #111827;
}

.login-koba-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-koba-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 35, 62, .34), rgba(2, 11, 26, .86));
}

.login-koba-visual-brand {
    position: absolute;
    z-index: 1;
    left: 52px;
    bottom: 44px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.login-koba-visual-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
}

.login-koba-visual-brand strong,
.login-koba-visual-brand span {
    display: block;
}

.login-koba-visual-brand strong {
    font-size: 18px;
}

.login-koba-visual-brand span {
    margin-top: 4px;
    color: rgba(255, 255, 255, .82);
}

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

.login-koba-card {
    width: min(100%, 472px);
}

.login-koba-brand {
    margin-bottom: 30px;
    text-align: center;
}

.login-koba-brand img {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.login-koba-brand h1 {
    margin: 10px 0 0;
    color: #000;
    font-size: 24px;
    font-weight: 700;
}

.login-koba-heading h2 {
    margin: 0 0 6px;
    color: #000;
    font-size: 20px;
    font-weight: 700;
}

.login-koba-label {
    display: block;
    margin: 16px 0 7px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.login-koba-input {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    border: 1px solid #aeb4be;
    background: #fff;
}

.login-koba-input span {
    display: grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    color: var(--gravilea-blue);
    border-right: 1px solid #aeb4be;
    font-size: 22px;
}

.login-koba-input input {
    width: 100%;
    border: 0;
    padding: 0 30px;
    color: #1f2937;
    background: #fff;
    font-size: 16px;
}

.login-koba-input input::placeholder {
    color: #b8bdc7;
}

.login-koba-input input:focus {
    outline: 0;
}

.login-koba-button {
    width: 100%;
    min-height: 48px;
    margin-top: 52px;
    color: #fff;
    background: var(--gravilea-blue);
    border: 0;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #00796b;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: 2rem;
}

p,
.muted {
    color: var(--gravilea-muted);
    line-height: 1.5;
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field span {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: .9rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--gravilea-line);
    border-radius: 6px;
    background: #fff;
}

.field input:focus {
    outline: 3px solid rgba(12, 60, 201, .16);
    border-color: var(--gravilea-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary {
    width: 100%;
    color: #fff;
    background: var(--gravilea-blue);
}

.btn-light {
    color: var(--gravilea-text);
    background: #fff;
    border-color: var(--gravilea-line);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.alert-danger {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffcbc5;
}

/* Koba shell */
.koba-app .container-scroller {
    background: var(--gravilea-bg);
}

.koba-app .sidebar {
    width: 264px;
    min-width: 264px;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid var(--gravilea-line);
}

.koba-app .sidebar .nav {
    padding-top: 0;
}

.koba-app .sidebar .nav .nav-item {
    width: 100%;
}

.koba-app .sidebar .nav .nav-item.nav-profile {
    padding: 22px 0 10px;
}

.sidebar-logo-wrap {
    width: 100%;
    text-align: center;
}

.sidebar-logo-wrap img {
    width: 96px;
    height: 106px;
    object-fit: contain;
}

.sidebar-logo-wrap h3 {
    margin: 10px 0 0;
    color: #203044;
    font-size: 22px;
    font-weight: 600;
}

.KB-sidebar-clock {
    text-align: center;
    padding: 18px 10px 16px;
    color: #444;
    border-bottom: 1px solid var(--gravilea-line);
}

#clockTime {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

#clockDate {
    margin-top: 10px;
    font-size: 14px;
    color: #1f2937;
    text-transform: capitalize;
}

.koba-app .sidebar .nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    width: 100%;
    padding: 12px 36px;
    color: #111827;
    border-radius: 0;
    white-space: nowrap;
}

.koba-app .sidebar .nav .nav-item .nav-link .menu-icon {
    flex: 0 0 auto;
    margin-right: 12px;
    color: #6f6a80;
    font-size: 18px;
}

.koba-app .sidebar .nav .nav-item .nav-link .menu-title {
    flex: 1 1 auto;
    max-width: none;
    overflow: visible;
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.koba-app .sidebar .nav .nav-item .nav-link .menu-arrow {
    flex: 0 0 auto;
    margin-left: auto;
}

.koba-app .sidebar > .nav > .nav-item.active {
    background: var(--gravilea-blue-2);
}

.koba-app .sidebar > .nav > .nav-item.active > .nav-link,
.koba-app .sidebar > .nav > .nav-item > .nav-link.active {
    color: #fff;
    background: transparent;
}

.koba-app .sidebar > .nav > .nav-item.active > .nav-link .menu-icon,
.koba-app .sidebar > .nav > .nav-item > .nav-link.active .menu-icon,
.koba-app .sidebar > .nav > .nav-item.active > .nav-link .menu-arrow::before {
    color: #fff;
}

.koba-app .sidebar > .nav > .nav-item.active > .collapse {
    background: var(--gravilea-blue-2);
}

.koba-app .sidebar .nav.sub-menu {
    margin-left: 48px;
    padding: 0 0 14px 0;
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, .72);
}

.koba-app .sidebar .nav.sub-menu .nav-item .nav-link {
    display: block;
    min-height: 36px;
    height: auto;
    max-height: 52px;
    padding: 7px 16px;
    color: #ffffff;
    background: transparent !important;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
}

.koba-app .sidebar .nav.sub-menu .nav-item .nav-link:hover,
.koba-app .sidebar .nav.sub-menu .nav-item .nav-link.active {
    color: #fff;
    font-weight: 700;
}

.logout-form {
    margin: 0;
}

.logout-link {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.koba-app .page-body-wrapper {
    width: calc(100% - 264px);
    min-height: 100vh;
    background: var(--gravilea-bg);
}

.koba-app .navbar.default-layout-navbar {
    height: 58px;
    background: var(--gravilea-blue);
    box-shadow: none;
}

.koba-app .navbar .navbar-menu-wrapper {
    width: 100%;
    height: 58px;
    padding-left: 0;
}

.koba-app .navbar .navbar-toggler {
    position: relative;
    left: 0;
    display: grid;
    place-items: center;
    width: 70px;
    height: 58px;
    color: #fff;
    background: var(--gravilea-pink);
    border: 0;
    border-radius: 0 29px 29px 0;
    font-size: 26px;
    box-shadow: none;
}

.navbar-page-title {
    margin-left: 32px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.navbar-page-title strong {
    display: none;
}

body:not(.sidebar-icon-only) .koba-app .navbar .navbar-toggler {
    left: -48px;
    width: 58px;
    border-radius: 50%;
}

body:not(.sidebar-icon-only) .navbar-page-title {
    margin-left: -28px;
}

.koba-app .main-panel {
    min-height: calc(100vh - 58px);
    background: var(--gravilea-bg);
}

.koba-app .content-wrapper {
    min-height: calc(100vh - 58px);
    padding: 26px 12px 24px;
    background: var(--gravilea-bg);
}

.koba-app .footer {
    position: static;
    width: 100%;
    margin-top: 28px;
    background: transparent;
    border: 0;
}

.koba-screen-card {
    border: 1px solid var(--gravilea-line);
    border-radius: 2px;
    box-shadow: none;
}

.koba-screen-card .card-body {
    padding: 28px 44px 30px;
}

.koba-screen-card .card-title {
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
}

.gravilea-tabs {
    border-bottom: 0;
}

.gravilea-tabs .nav-link {
    min-width: 188px;
    padding: 14px 20px;
    color: #000;
    background: #fff;
    border: 1px solid var(--gravilea-line);
    border-radius: 3px 3px 0 0;
}

.gravilea-tabs .nav-link.active {
    background: #f8fafc;
    border-bottom-color: #f8fafc;
}

.gravilea-tab-content {
    min-height: 190px;
    padding: 48px 16px;
    border: 1px solid var(--gravilea-line);
}

.koba-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px;
    border: 1px solid var(--gravilea-line);
    border-radius: 3px;
    background: #fff;
}

.koba-stat span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--gravilea-blue);
    border-radius: 4px;
    font-size: 22px;
}

.koba-stat strong,
.koba-stat small {
    display: block;
}

.koba-stat strong {
    color: #111827;
    font-weight: 700;
}

.koba-stat small {
    margin-top: 3px;
    color: var(--gravilea-muted);
}

.koba-note {
    padding: 14px 16px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid var(--gravilea-line);
    border-radius: 3px;
}

.gravilea-payment-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 14px;
}

.gravilea-payment-alert strong {
    color: inherit;
    font-size: 15px;
}

.gravilea-payment-alert-success {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #badbcc;
}

.gravilea-payment-alert-danger {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
}

.dashboard-chart-card,
.dashboard-chart-preview {
    border: 1px solid var(--gravilea-line);
    background: #fff;
}

.dashboard-chart-card {
    min-height: 300px;
    padding: 16px;
}

.dashboard-chart-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-chart-card-head strong,
.dashboard-chart-card-head small {
    display: block;
}

.dashboard-chart-card-head strong {
    color: #111827;
    font-size: 15px;
}

.dashboard-chart-card-head small {
    margin-top: 3px;
    color: var(--gravilea-muted);
    font-size: 12px;
}

.dashboard-chart-card-head > span {
    padding: 4px 8px;
    color: #0f2f6d;
    background: #eef4ff;
    border: 1px solid #b9cdfb;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-chart-card canvas,
.dashboard-chart-preview canvas {
    display: block;
    width: 100%;
}

.dashboard-chart-preview {
    padding: 10px;
}

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

.dashboard-chart-type {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 8px 12px;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--gravilea-line);
    background: #fff;
    cursor: pointer;
}

.dashboard-chart-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-chart-type .mdi {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--gravilea-blue);
    border-radius: 3px;
    font-size: 22px;
}

.dashboard-chart-type strong {
    color: #111827;
    font-size: 14px;
}

.dashboard-chart-type small {
    color: var(--gravilea-muted);
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-chart-type.is-selected {
    border-color: var(--gravilea-blue);
    box-shadow: inset 0 0 0 2px rgba(12, 60, 201, .14);
}

.report-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid var(--gravilea-line);
    background: #f8fafc;
}

.report-intro > .mdi {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--gravilea-blue);
    border-radius: 3px;
    font-size: 22px;
}

.report-intro strong,
.report-intro small {
    display: block;
}

.report-intro strong {
    color: #111827;
    font-size: 16px;
}

.report-intro small {
    margin-top: 3px;
    color: var(--gravilea-muted);
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
}

.report-filter-wide {
    grid-column: span 2;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.report-actions .btn-primary,
.report-actions .btn-light {
    width: auto;
    min-width: 150px;
    border-radius: 3px;
}

.report-actions .mdi {
    margin-right: 6px;
    font-size: 17px;
}

@media (max-width: 1100px) {
    .report-filter-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .report-filter-grid,
    .report-filter-wide {
        grid-template-columns: 1fr;
        grid-column: auto;
    }
}

.gravilea-table th {
    color: #0f2f6d;
    background: #eef4ff;
    font-weight: 700;
    border-top: 0;
    border-bottom: 2px solid #b9cdfb;
}

.gravilea-table td {
    color: #334155;
    border-top: 1px solid #edf1f7;
}

.gravilea-table tbody tr {
    transition: background-color 0.14s ease;
}

.gravilea-table tbody tr:hover > th,
.gravilea-table tbody tr:hover > td {
    background-color: #eeeeee !important;
}

.admin-menu-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #badbcc;
    border-radius: 4px;
    color: #0f5132;
    background: #d1e7dd;
    font-weight: 700;
}

.admin-menu-alert.is-error {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.admin-menu-content {
    padding: 48px 16px 32px;
}

.admin-new-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 18px;
    padding: 9px 22px;
    color: #00c875;
    background: #fff;
    border: 1px solid #00c875;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.admin-new-button .mdi {
    font-size: 18px;
}

.admin-menu-form .form-label {
    color: #111827;
    font-size: 16px;
    font-weight: 500;
}

.admin-menu-form .form-control {
    min-height: 50px;
    border-color: #dfe5ef;
    border-radius: 0;
    color: #000;
}

.admin-menu-form select.form-control,
.admin-menu-form select.form-select,
.admin-mini-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c7ceda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.admin-uppercase {
    text-transform: uppercase;
}

.admin-password-mask {
    -webkit-text-security: disc;
}

.admin-autofill-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-menu-main-form .btn-primary {
    width: auto;
    min-width: 90px;
    border-radius: 3px;
}

.admin-menu-main-form .btn-light {
    min-width: 90px;
    color: #000;
    background: #f5f6f8;
    border-color: #f5f6f8;
}

.admin-menu-sub-form .btn-secondary {
    min-width: 150px;
    color: #fff;
    background: #a7a7a7;
    border-color: #a7a7a7;
}

.admin-permission-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-top: 4px;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 14px;
}

.admin-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gravilea-blue);
}

.admin-menu-separator {
    margin: 16px 0 16px;
    border-color: #bfc5cf;
}

.admin-submenu-title {
    margin-bottom: 8px;
    color: #000;
    font-size: 20px;
    font-weight: 700;
}

.admin-submenu-title span {
    color: #ff0854;
}

.admin-table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 10px;
    color: #000;
    font-size: 14px;
}

.admin-table-tool-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.admin-mini-select {
    width: 66px;
    min-height: 42px;
    margin: 0 5px;
    padding: 0 32px 0 10px;
    border: 1px solid #dfe5ef;
    border-radius: 0;
    color: #9aa3b2;
    background: #fff;
}

.admin-filter-select {
    min-width: 118px;
    min-height: 42px;
    margin-left: 6px;
    padding: 0 38px 0 10px;
    border: 1px solid #dfe5ef;
    border-radius: 0;
    color: #111827;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c7ceda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    appearance: none;
    -webkit-appearance: none;
}

.admin-filter-select-wide {
    min-width: 220px;
}

.admin-search-input {
    min-height: 42px;
    margin-left: 6px;
    padding: 6px 10px;
    border: 1px solid #dfe5ef;
    border-radius: 4px;
}

.admin-menu-table .mdi {
    margin-right: 8px;
    color: #6f6a80;
}

.admin-label-red {
    color: #f03 !important;
}

.admin-label-yellow {
    color: #d9a700 !important;
}

.admin-label-green {
    color: #090 !important;
}

.admin-discount-red {
    background-color: #ffc0c0 !important;
}

.admin-discount-yellow {
    background-color: #fff8c0 !important;
}

.admin-discount-green {
    background-color: #ceffc0 !important;
}

.admin-menu-table th,
.admin-menu-table td {
    padding: 18px 16px !important;
    color: #000;
    vertical-align: middle;
    border-right: 1px solid #dfe5ef;
}

.admin-menu-table th:last-child,
.admin-menu-table td:last-child {
    border-right: 0;
}

.admin-menu-table thead th,
.gravilea-table thead th {
    color: #0f2f6d !important;
    background-color: #eef4ff !important;
    font-weight: 700;
    border-bottom: 2px solid #b9cdfb !important;
}

.admin-status-ok {
    color: #98e48c !important;
    font-size: 36px;
}

.admin-status-muted {
    color: #c6ccd6 !important;
    font-size: 36px;
}

.admin-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 108px;
    min-height: 26px;
    padding: 4px 12px;
    color: #fff;
    background: #344256;
    border: 0;
    border-radius: 3px;
    font-weight: 700;
}

.admin-edit-button .mdi {
    color: #fff;
    margin-right: 0;
}

.admin-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    color: #000;
    font-size: 14px;
    flex-wrap: wrap;
}

.admin-pager {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
    max-width: 100%;
}

.admin-pager button {
    min-height: 40px;
    padding: 8px 14px;
    color: #000;
    background: #e8edf4;
    border: 0;
}

.admin-pager button.active {
    color: #fff;
    background: var(--gravilea-blue);
}

.admin-pager button:disabled {
    color: #8892a1;
    cursor: default;
    opacity: 0.75;
}

.admin-pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 34px;
    padding: 8px 6px;
    color: #596579;
    background: #e8edf4;
}

.module-placeholder {
    width: 100%;
}

/* ===== Combogrid ===== */
.cg-wrap { position: relative; }

.cg-dropdown {
    position: absolute;
    z-index: 1050;
    display: none;
    min-width: 100%;
    background: #fff;
    border: 1px solid #dfe5ef;
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}

.cg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cg-table th {
    padding: 8px 12px;
    background: #eef4ff;
    color: #0f2f6d;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #b9cdfb;
    white-space: nowrap;
}

.cg-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f3f8;
    color: #334155;
    cursor: pointer;
}

.cg-table tbody tr:hover td,
.cg-table tbody tr.cg-active td {
    background: #eeeeee;
    color: #000;
}

.cg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-top: 1px solid #dfe5ef;
    font-size: 12px;
    color: #657089;
}

.cg-btn {
    padding: 3px 10px;
    background: #f4f6fa;
    border: 1px solid #dfe5ef;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.cg-btn:disabled { opacity: .4; cursor: default; }

/* ===== FEL / punto de venta ===== */
.fel-header-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #dfe5ef;
    background: #f8fafc;
}

.fel-header-band strong,
.fel-header-band span {
    display: block;
}

.fel-eyebrow {
    color: #007a67;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fel-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.fel-new-invoice-button {
    min-height: 34px;
    margin-bottom: 0;
    padding: 6px 14px;
}

.fel-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    color: #0f2f6d;
    background: #eef4ff;
    border: 1px solid #b9cdfb;
    border-radius: 3px;
    font-weight: 700;
}

.fel-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fel-list-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fel-list-toolbar-left .admin-new-button {
    margin-bottom: 0;
}

.fel-list-actions .admin-edit-button,
.fel-list-actions .admin-new-button {
    min-width: 96px;
    margin-bottom: 0;
    white-space: nowrap;
}

.fel-list-cert-button {
    min-height: 26px;
    padding: 4px 12px;
}

.fel-pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}

.fel-workspace,
.fel-summary {
    min-width: 0;
}

.fel-summary {
    padding: 18px;
    border: 1px solid #dfe5ef;
    background: #fff;
}

.fel-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.fel-section-title .mdi {
    color: #ff0854;
    font-size: 22px;
}

.fel-quick-products {
    padding: 12px;
    border: 1px solid var(--gravilea-line);
    background: #f8fafc;
}

.fel-quick-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #0f2f6d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.fel-quick-title .mdi {
    color: #ff0854;
    font-size: 18px;
}

.fel-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.fel-quick-product {
    display: grid;
    gap: 3px;
    min-height: 74px;
    padding: 9px 10px;
    color: #111827;
    text-align: left;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 3px;
    cursor: pointer;
}

.fel-quick-product:hover,
.fel-quick-product:focus {
    border-color: #b9cdfb;
    background: #eef4ff;
    outline: none;
}

.fel-quick-product strong,
.fel-quick-product span,
.fel-quick-product small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fel-quick-product strong {
    color: var(--gravilea-blue);
    font-size: 12px;
}

.fel-quick-product span {
    font-size: 13px;
    font-weight: 700;
}

.fel-quick-product small {
    color: #657089;
    font-size: 11px;
}

.fel-um-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
}

.fel-um-option {
    min-height: 34px;
    padding: 6px 5px;
    color: #0f2f6d;
    background: #eef4ff;
    border: 1px solid #b9cdfb;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.fel-um-option:hover,
.fel-um-option:focus {
    background: #e2ecff;
    outline: none;
}

.fel-um-option.is-active {
    color: #fff;
    background: var(--gravilea-blue);
    border-color: var(--gravilea-blue);
}

.fel-cf-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    color: #0f2f6d;
    background: #eef4ff;
    border: 1px solid #b9cdfb;
    cursor: pointer;
}

.fel-cf-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gravilea-blue);
}

.fel-cf-toggle span {
    display: grid;
    gap: 2px;
    line-height: 1.1;
}

.fel-cf-toggle strong,
.fel-cf-toggle small {
    display: block;
}

.fel-cf-toggle strong {
    font-size: 13px;
}

.fel-cf-toggle small {
    color: #657089;
    font-size: 11px;
}

.fel-validation-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid #dfe5ef;
    background: #f8fafc;
}

.fel-validation-status .mdi {
    flex: 0 0 auto;
    font-size: 30px;
}

.fel-validation-status span:last-child {
    display: grid;
    gap: 3px;
    line-height: 1.15;
}

.fel-validation-status strong,
.fel-validation-status small {
    display: block;
}

.fel-validation-status strong {
    color: #111827;
    font-size: 14px;
}

.fel-validation-status small {
    color: #657089;
    font-size: 12px;
}

.fel-validation-status.is-pending .mdi {
    color: #c48a00;
}

.fel-validation-status.is-ok {
    border-color: #9ee6b5;
    background: #ecfdf3;
}

.fel-validation-status.is-ok .mdi,
.fel-validation-status.is-ok strong {
    color: #148c43;
}

.fel-validation-status.is-error {
    border-color: #f3b5b5;
    background: #fff1f1;
}

.fel-validation-status.is-error .mdi,
.fel-validation-status.is-error strong {
    color: #b42318;
}

.fel-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    color: #334155;
    border-bottom: 1px solid #edf1f7;
}

.fel-print-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: #0f2f6d;
    background: #f5f8ff;
    border: 1px solid var(--gravilea-line);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.fel-print-mode .mdi {
    color: var(--gravilea-blue);
    font-size: 18px;
}

.fel-print-copy {
    display: grid;
    gap: 2px;
}

.fel-print-mode small {
    display: block;
    color: #536587;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
}

.fel-print-mode:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.fel-total-line strong {
    color: #111827;
}

.fel-grand-total {
    margin-top: 8px;
    padding: 13px 0;
    font-size: 20px;
    font-weight: 700;
}

.fel-process-steps {
    display: grid;
    gap: 8px;
}

.fel-process-steps div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-weight: 700;
}

.fel-process-steps .fel-step-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #0f2f6d;
    background: #eef4ff;
    border: 1px solid #b9cdfb;
    border-radius: 50%;
}

.fel-process-steps .active {
    color: #111827;
}

.fel-process-steps .active .fel-step-number {
    color: #fff;
    background: var(--gravilea-blue);
    border-color: var(--gravilea-blue);
}

.fel-process-steps .fel-step-check {
    display: none;
    margin-left: auto;
    color: var(--gravilea-green);
    font-size: 20px;
}

.fel-process-steps .is-complete {
    color: #087a4a;
}

.fel-process-steps .is-complete .fel-step-number {
    color: #fff;
    background: var(--gravilea-green);
    border-color: var(--gravilea-green);
}

.fel-process-steps .is-complete .fel-step-check {
    display: inline-flex;
}

.fel-cert-button {
    justify-content: center;
}

.fel-detail-table .admin-edit-button {
    min-width: 48px;
}

.fel-line-input {
    min-width: 100%;
    text-align: right;
}

@media (max-width: 1180px) {
    .fel-pos-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .fel-quick-grid {
        grid-template-columns: 1fr;
    }
}

.admin-signature-preview {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--gravilea-line);
    background: #fff;
    width: 240px;
    max-width: 100%;
}

.admin-signature-preview img {
    display: block;
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.cxp-badge {
    display: inline-block;
    min-width: 112px;
    padding: 6px 9px;
    border: 1px solid #dfe5ef;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.cxp-badge.is-paid {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.cxp-badge.is-ok {
    background: #eef4ff;
    color: #0f3fd1;
    border-color: #b9cdfb;
}

.cxp-badge.is-warning {
    background: #fff8c0;
    color: #8a5a00;
    border-color: #f2d675;
}

.cxp-badge.is-overdue {
    background: #ffe4e4;
    color: #b42318;
    border-color: #ffb4b4;
}

/* ===== Secciones colapsables ===== */
.collapsible-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--gravilea-line);
    margin-bottom: 0;
}

.collapsible-section-header .mdi-chevron-down,
.collapsible-section-header .mdi-chevron-up {
    font-size: 22px;
    color: var(--gravilea-muted);
    transition: transform .2s;
}

.collapsible-body {
    padding-top: 16px;
}

body.sidebar-icon-only .KB-sidebar-clock,
body.sidebar-icon-only .sidebar-logo-wrap h3 {
    display: none;
}

body.sidebar-icon-only.koba-app .sidebar,
body.sidebar-icon-only .sidebar {
    width: 70px !important;
    min-width: 70px !important;
}

body.sidebar-icon-only.koba-app .page-body-wrapper,
body.sidebar-icon-only .page-body-wrapper {
    width: calc(100% - 70px);
}

body.sidebar-icon-only.koba-app .navbar.default-layout-navbar,
body.sidebar-icon-only .navbar.default-layout-navbar {
    left: 70px;
    width: calc(100% - 70px);
}

body.sidebar-icon-only.koba-app .navbar .navbar-menu-wrapper,
body.sidebar-icon-only .navbar .navbar-menu-wrapper {
    padding-left: 0;
}

body.sidebar-icon-only.koba-app .sidebar .nav .nav-item.nav-profile,
body.sidebar-icon-only .sidebar .nav .nav-item.nav-profile {
    display: none;
}

body.sidebar-icon-only.koba-app .sidebar .nav .nav-item .nav-link,
body.sidebar-icon-only .sidebar .nav .nav-item .nav-link {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

body.sidebar-icon-only.koba-app .sidebar .nav .nav-item .nav-link .menu-icon,
body.sidebar-icon-only .sidebar .nav .nav-item .nav-link .menu-icon {
    margin-right: 0;
}

body.sidebar-icon-only.koba-app .sidebar .nav .nav-item .nav-link .menu-title,
body.sidebar-icon-only.koba-app .sidebar .nav .nav-item .nav-link .menu-arrow,
body.sidebar-icon-only.koba-app .sidebar .nav .nav-item > .collapse,
body.sidebar-icon-only.koba-app .sidebar .nav .nav-item.hover-open > .collapse,
body.sidebar-icon-only .sidebar .nav .nav-item .nav-link .menu-title,
body.sidebar-icon-only .sidebar .nav .nav-item .nav-link .menu-arrow,
body.sidebar-icon-only .sidebar .nav .nav-item > .collapse,
body.sidebar-icon-only .sidebar .nav .nav-item.hover-open > .collapse {
    display: none !important;
}

body.sidebar-icon-only.koba-app .sidebar .nav .nav-item.hover-open,
body.sidebar-icon-only .sidebar .nav .nav-item.hover-open {
    width: 70px !important;
    min-width: 70px !important;
    padding: 0 !important;
    background: transparent !important;
}

.admin-check-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid var(--gravilea-line);
    background: #fff;
    color: #111827;
    cursor: pointer;
}

.admin-check-card:hover {
    background: #eeeeee;
}

.admin-check-card input {
    margin-top: 4px;
}

.admin-check-card span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-check-card strong,
.admin-check-card small {
    overflow-wrap: anywhere;
}

.admin-check-card small {
    color: var(--gravilea-muted);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.admin-badge-warning {
    background: #fff5cc;
    border: 1px solid #f2d46d;
    color: #6f5200;
}

.admin-badge-success {
    background: #dcf8e9;
    border: 1px solid #8be0b3;
    color: #086b3c;
}

.admin-badge-danger {
    background: #ffe1e1;
    border: 1px solid #f4a3a3;
    color: #9d1c1c;
}

.admin-badge-info {
    background: #e4efff;
    border: 1px solid #aac6ff;
    color: #083b8f;
}

.admin-badge-muted {
    background: #eef1f6;
    border: 1px solid #d8dde8;
    color: #59667d;
}

.admin-json-preview {
    max-height: 180px;
    overflow: auto;
    padding: 8px;
    margin: 4px 0 0;
    background: #f7f9fd;
    border: 1px solid #dbe3f1;
    color: #10213f;
    font-size: 11px;
    white-space: pre-wrap;
}

.admin-change-detail-row td {
    background: #f7f9fd !important;
    border-top: 0;
    padding: 0 14px 14px !important;
}

.admin-change-detail-card {
    border: 1px solid #dbe3f1;
    border-top: 3px solid #0f3fd1;
    background: #fff;
    padding: 14px;
}

.admin-change-table {
    margin-bottom: 0;
}

.admin-change-table th {
    background: #eaf1ff;
    color: #06296d;
}

.admin-change-table td {
    vertical-align: middle;
}

.admin-change-table td:nth-child(3) {
    color: #064e3b;
    font-weight: 700;
}

.rp-report-modal[hidden] {
    display: none;
}

.rp-report-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.rp-report-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
}

.rp-correction-dialog {
    position: relative;
    width: min(760px, 96vw);
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe3f0;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.rp-correction-body {
    padding: 18px 22px;
    max-height: calc(90vh - 142px);
    overflow: auto;
}

.rp-correction-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    padding: 14px 22px;
    border-top: 1px solid #dfe5ef;
    background: #f8fafc;
}

.rp-report-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #dfe5ef;
    background: #eef4ff;
}

.rp-report-dialog-header h3 {
    margin: 0;
    color: #0f2f6d;
    font-size: 18px;
    font-weight: 700;
}

.rp-report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-auth-status {
    padding: 9px 12px;
    border: 1px solid #dbe3f1;
    background: #f7f9fd;
    color: #10213f;
    font-weight: 700;
}

.rp-auth-status-pending {
    border-color: #f2d46d;
    background: #fff8dc;
    color: #6f5200;
}

.rp-auth-status-approved {
    border-color: #8be0b3;
    background: #e7fbef;
    color: #086b3c;
}

.rp-auth-status-request {
    border-color: #aac6ff;
    background: #edf4ff;
    color: #083b8f;
}

.rp-auth-request-card {
    margin-bottom: 0;
}

.fel-auth-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fel-auth-summary > div {
    padding: 12px;
    border: 1px solid #dbe3f1;
    background: #f8fafc;
}

.fel-auth-summary span,
.fel-auth-summary strong {
    display: block;
}

.fel-auth-summary span {
    color: #5c6980;
    font-size: 12px;
}

.fel-auth-summary strong {
    margin-top: 4px;
    color: #0f2f6d;
}

@media (max-width: 991px) {
    .koba-app .navbar .navbar-toggler {
        left: 0;
        border-radius: 0;
    }

    .navbar-page-title {
        margin-left: 12px;
    }

    .koba-screen-card .card-body {
        padding: 20px;
    }

    .gravilea-tabs .nav-link {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .login-koba-shell {
        grid-template-columns: 1fr;
    }

    .login-koba-visual {
        min-height: 260px;
    }

    .login-koba-panel {
        min-height: auto;
        padding: 28px;
    }

    .login-koba-button {
        margin-top: 42px;
    }
}

.lp-auth-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-auth-detail {
    min-height: 86px;
    max-height: 220px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #dbe3f1;
    background: #f8fafc;
    color: #10213f;
    font-family: inherit;
    font-size: 13px;
    white-space: pre-wrap;
}

.rp-auth-status-success {
    border-color: #8be0b3;
    background: #e7fbef;
    color: #086b3c;
}
