:root{
  --gx-bg:#f0f7f2;
  --gx-surface:#ffffff;
  --gx-surface-2:#eef6ef;
  --gx-text:#1f3323;
  --gx-muted:#6b7c6f;
  --gx-primary:#2e7d32;
  --gx-primary-700:#225c25;
  --gx-border:#e1e9e3;
  --gx-radius:12px;
  --gx-shadow:0 1px 2px rgba(0,0,0,.06),0 4px 10px rgba(0,0,0,.04);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--gx-bg);font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;color:var(--gx-text)}
.gx-app{display:grid;grid-template-columns:280px 1fr;height:100vh}
.gx-sidebar{background:#204b2a;color:#eaf3ec;padding:12px 0;display:flex;flex-direction:column}
.gx-sidebar .gx-brand{display:flex;align-items:center;gap:10px;padding:0 18px 12px 18px}
.gx-brand .gx-logo{width:28px;height:28px;border-radius:50%;background:var(--gx-primary);display:inline-block}
.gx-brand .gx-title{font-weight:700;letter-spacing:.2px}
.gx-section{font-size:11px;text-transform:uppercase;color:#b6c7bb;padding:12px 18px 6px}
.gx-nav a{display:flex;align-items:center;gap:10px;padding:10px 18px;color:#eaf3ec;text-decoration:none;border-left:4px solid transparent;font-weight:500}
.gx-nav a.active,.gx-nav a:hover{background:#1b3e23;border-left-color:#8ccf93}
.gx-sidebar-spacer{flex:1}
.gx-session-section{padding:4px 18px 12px;border-top:1px solid #386d45;margin-top:4px}
.gx-logout-link{display:flex;align-items:center;gap:8px;padding:8px 0;color:#e88!important;text-decoration:none;font-size:13px;font-weight:500;cursor:pointer}
.gx-logout-link:hover{color:#ffb3b3!important}
.gx-main{display:flex;flex-direction:column}
.gx-topbar{background:var(--gx-surface-2);padding:12px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--gx-border)}
.gx-search{flex:1}
.gx-search input{width:100%;padding:12px 16px;border:1px solid var(--gx-border);border-radius:24px;background:#fff;color:var(--gx-text)}
.gx-actions{display:flex;gap:10px}
.gx-btn{padding:10px 14px;border-radius:10px;border:1px solid var(--gx-border);background:#fff;cursor:pointer;font-weight:600}
.gx-btn--primary{background:var(--gx-primary);color:#fff;border-color:transparent}
.gx-content{padding:18px;overflow:auto}
.gx-h1{font-size:34px;margin:8px 0}
.gx-muted-text{color:var(--gx-muted)}
.gx-cards{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:18px;margin:12px 0}
.gx-card{background:var(--gx-surface);border:1px solid var(--gx-border);border-radius:var(--gx-radius);box-shadow:var(--gx-shadow);padding:18px}
.gx-card h4{margin:0 0 4px 0}
.gx-grid{display:grid;grid-template-columns:1fr 440px;gap:18px;margin-top:8px}
.gx-chart{height:360px}
.gx-link{color:var(--gx-primary-700);text-decoration:none;font-weight:600}
.gx-legend-up{color:#1e8e3e;font-size:12px;font-weight:600}
.gx-page-header{margin-bottom:18px}
.gx-page-subtitle{margin:4px 0 0 0;color:var(--gx-muted);font-size:16px}
.gx-sales-grid-top{display:grid;grid-template-columns:repeat(3,minmax(280px,1fr));gap:24px;margin:8px 0 32px}
.gx-sales-card{background:var(--gx-surface);border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);padding:24px}
.gx-clickable{cursor:pointer}
.gx-clickable:hover{transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.08)}
/* =============================================
   DISEÑO 2 — SPLIT SCREEN (OSCURO / DORADO)
   ============================================= */
.gx-login-body{margin:0;padding:0}
/* Estado de arranque mientras se hidrata la sesión desde localStorage */
.gx-boot{
    display:flex;align-items:center;justify-content:center;
    height:100vh;background:#0f1220;color:#e8e6df;
    font-family:'Segoe UI','Roboto',sans-serif;
}
.gx-boot__label{font-size:14px;letter-spacing:.4px;opacity:.75}
.d2-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}
.d2-brand-side {
    flex: 1;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1934&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.d2-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 20, 0.93) 0%,
        rgba(20, 20, 40, 0.87) 50%,
        rgba(10, 10, 20, 0.92) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}
.d2-brand-content {
    text-align: center;
    max-width: 400px;
    animation: d2-slideLeft 0.7s ease-out;
}
@keyframes d2-slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
.d2-logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A853, #b8922e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px rgba(212, 168, 83, 0.35);
    animation: d2-pulse 3s ease-in-out infinite;
}
@keyframes d2-pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(212, 168, 83, 0.35); }
    50% { box-shadow: 0 8px 50px rgba(212, 168, 83, 0.55); }
}
.d2-logo-icon {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -1px;
}
.d2-brand-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #D4A853;
    margin: 0;
    letter-spacing: -1px;
}
.d2-brand-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #d0d0d0;
    margin: 0.3rem 0 0;
    letter-spacing: 5px;
    text-transform: uppercase;
}
.d2-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4A853, transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
}
.d2-brand-desc {
    color: #909098;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.d2-features {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}
.d2-feature {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #b0b0b8;
    font-size: 0.88rem;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    background: rgba(212, 168, 83, 0.07);
    border: 1px solid rgba(212, 168, 83, 0.12);
    transition: all 0.3s ease;
    width: fit-content;
}
.d2-feature:hover {
    background: rgba(212, 168, 83, 0.14);
    border-color: rgba(212, 168, 83, 0.3);
    transform: translateX(5px);
}
.d2-feature .mud-icon {
    color: #D4A853 !important;
}
.d2-brand-footer {
    position: absolute;
    bottom: 2rem;
}
.d2-brand-footer p {
    color: #505058;
    font-size: 0.78rem;
}
.d2-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0d0d18 0%, #161628 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.d2-form-side::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.d2-form-side::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.03) 0%, transparent 70%);
    pointer-events: none;
}
.d2-form-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: d2-slideRight 0.7s ease-out;
}
@keyframes d2-slideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
.d2-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.d2-mobile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4A853;
}
.d2-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.d2-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
}
.d2-form-subtitle {
    color: #707078;
    font-size: 0.95rem;
    margin: 0;
}
.d2-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.d2-textfield .mud-input-root {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
}
.d2-textfield .mud-input-outlined-border {
    border-color: rgba(212, 168, 83, 0.18) !important;
    border-radius: 12px !important;
}
.d2-textfield .mud-input-outlined-border:hover {
    border-color: rgba(212, 168, 83, 0.45) !important;
}
.d2-textfield .mud-input-root.mud-input-focused .mud-input-outlined-border {
    border-color: #D4A853 !important;
    border-width: 2px !important;
}
.d2-textfield .mud-input-adornment {
    color: #D4A853 !important;
}
.d2-textfield .mud-input-label {
    color: #909098 !important;
}
.d2-textfield .mud-input-label.mud-input-label-focused {
    color: #D4A853 !important;
}
.d2-textfield input {
    color: #ffffff !important;
}
.d2-textfield input::placeholder {
    color: #404048 !important;
}
.d2-button {
    margin-top: 0.8rem !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 1px !important;
    background: linear-gradient(135deg, #D4A853 0%, #b8922e 100%) !important;
    color: #1a1a2e !important;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3) !important;
    transition: all 0.3s ease !important;
}
.d2-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.45) !important;
    background: linear-gradient(135deg, #e0b560 0%, #D4A853 100%) !important;
}
.d2-button:active {
    transform: translateY(0) !important;
}
.d2-form-footer {
    text-align: center;
    margin-top: 1.5rem;
}
.d2-footer-text {
    color: #505058;
    font-size: 0.85rem;
}
@media (max-width: 960px) {
    .d2-container { flex-direction: column; }
    .d2-brand-side { min-height: 280px; flex: none; }
    .d2-features { display: none; }
    .d2-brand-footer { display: none; }
    .d2-brand-desc { display: none; }
    .d2-form-side { flex: 1; padding: 2rem 1.5rem; }
    .d2-mobile-logo { display: flex; }
}
@media (max-width: 600px) {
    .d2-brand-side { min-height: 200px; }
    .d2-brand-title { font-size: 2rem; }
    .d2-brand-subtitle { font-size: 1rem; letter-spacing: 3px; }
    .d2-logo-circle { width: 65px; height: 65px; }
    .d2-logo-icon { font-size: 1.8rem !important; }
    .d2-form-wrapper { max-width: 100%; }
    .d2-form-title { font-size: 1.5rem; }
}
.gx-sales-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;font-weight:700;margin-bottom:22px}
.gx-sales-icon--blue{background:#3b82f6}
.gx-sales-icon--orange{background:#f97316}
.gx-sales-icon--green{background:#10b981}
.gx-sales-title{font-size:24px;line-height:1.2;font-weight:800;margin:0 0 12px 0}
.gx-sales-text{color:var(--gx-muted);font-size:15px;line-height:1.6;min-height:74px}
.gx-sales-pill{margin-top:22px;background:#f5f7f5;border-radius:14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;color:#57735d;font-weight:700}
.gx-sales-pill strong{color:#4a6a52}
.gx-sales-grid-bottom{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.gx-history-card{background:var(--gx-surface);border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);padding:24px}
.gx-history-title{font-size:20px;font-weight:800;margin:0 0 8px 0}
.gx-history-subtitle{color:var(--gx-muted);margin:0 0 24px 0}
.gx-history-item{display:flex;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid #dfe7e0}
.gx-history-item:last-of-type{border-bottom:none}
.gx-history-left strong,.gx-history-right strong{display:block;font-size:16px}
.gx-history-left span,.gx-history-right span{display:block;color:var(--gx-muted);margin-top:4px}
.gx-history-right{text-align:right;min-width:110px}
.gx-history-footer{display:block;text-align:center;color:var(--gx-primary-700);font-weight:700;text-decoration:none;margin-top:18px}
.gx-summary-card{background:#356f42;border-radius:16px;padding:28px 30px;color:#fff;position:relative;overflow:hidden;min-height:360px}
.gx-summary-card::after{content:"";position:absolute;right:-10px;bottom:-8px;width:180px;height:120px;opacity:.13;background:linear-gradient(135deg,transparent 35%,#fff 35%,#fff 43%,transparent 43%,transparent 58%,#fff 58%,#fff 66%,transparent 66%);}
.gx-summary-title{font-size:28px;font-weight:800;margin:36px 0 10px}
.gx-summary-text{font-size:16px;line-height:1.5;color:rgba(255,255,255,.88);max-width:420px}
.gx-summary-total{font-size:64px;line-height:1;font-weight:900;margin:24px 0 26px}
.gx-summary-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.gx-summary-stat{background:rgba(255,255,255,.12);border-radius:14px;padding:14px 16px}
.gx-summary-stat-label{font-size:12px;font-weight:800;opacity:.8;text-transform:uppercase}
.gx-summary-stat-value{font-size:24px;font-weight:900;margin-top:4px}
.gx-page-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.gx-toolbar-right{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.gx-filter-tabs{display:inline-flex;align-items:center;gap:4px;background:#edf3ee;border:1px solid var(--gx-border);padding:4px;border-radius:14px}
.gx-filter-tab{padding:10px 16px;border-radius:10px;color:#5c7362;font-weight:700;text-decoration:none}
.gx-filter-tab.active{background:#fff;color:var(--gx-text);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.gx-legend{display:flex;align-items:center;gap:18px;color:#5a7060;font-weight:600}
.gx-legend-item{display:flex;align-items:center;gap:8px}
.gx-dot{width:12px;height:12px;border-radius:50%}
.gx-dot--free{background:#1ec97f}
.gx-dot--busy{background:#ef476f}
.gx-dot--reserved{background:#4b7bec}
.gx-room-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,240px));gap:18px}
.gx-table-card{background:#fff;border:2px solid #caedd8;border-radius:16px;box-shadow:var(--gx-shadow);overflow:hidden;min-height:190px}
.gx-table-card__body{padding:18px 16px 24px}
.gx-table-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.gx-table-name{font-size:18px;font-weight:900;text-transform:lowercase}
.gx-status-badge{background:#ecf9ef;color:#0e8a47;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;text-transform:uppercase}
.gx-status-badge--busy{background:#fff0f3;color:#d8435f}
.gx-status-badge--reserved{background:#eef4ff;color:#3367d6}
.gx-capacity{display:flex;align-items:center;gap:8px;color:#58705f;font-size:15px}
.gx-capacity-icon{font-size:18px;line-height:1}
.gx-mesa-total-chip{margin-top:14px;padding:10px 12px;border:1px solid #d8eadf;border-radius:12px;background:#f8fbf8;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.gx-mesa-total-chip__label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#6a7c6d;font-weight:700}
.gx-mesa-total-chip__value{font-size:20px;color:#246239;font-weight:900}
.gx-table-card__footer{background:#f8fbf8;border-top:1px solid #e7efe8;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}
.gx-open-link{font-size:13px;font-weight:900;color:#122f1a;text-decoration:none;text-transform:uppercase}
.gx-add-btn{width:34px;height:34px;border-radius:50%;border:none;background:#356f42;color:#fff;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}
.gx-actions-row{display:flex;gap:10px;align-items:center}
.gx-btn--ghost{background:transparent;color:#356f42;border:1px solid #7ca68a}
.gx-btn-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:8px;font-weight:900}
.gx-metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:24px;margin:10px 0 24px}
.gx-metric-card{background:#fff;border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);padding:22px 24px}
.gx-metric-title{font-size:16px;color:#52715a;margin:0 0 10px 0}
.gx-metric-title--danger{color:#ff365f}
.gx-metric-value{font-size:44px;line-height:1;font-weight:900;margin:0}
.gx-metric-value--danger{color:#ff365f}
.gx-panel-card{background:#fff;border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);overflow:hidden}
.gx-panel-head{padding:22px 24px;border-bottom:1px solid #dfe8e0}
.gx-panel-title{font-size:20px;font-weight:800;margin:0 0 8px 0}
.gx-panel-subtitle{margin:0;color:var(--gx-muted);font-size:15px}
.gx-panel-body{height:280px;display:flex;align-items:center;justify-content:center}
.gx-spinner{width:30px;height:30px;border-radius:50%;border:3px solid rgba(53,111,66,.18);border-top-color:#356f42;animation:gx-spin .9s linear infinite}
.gx-stock-grid-top{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:22px;margin:14px 0 24px}
.gx-stock-metric{background:#fff;border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);padding:22px 24px}
.gx-stock-metric__label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#52715a;margin-bottom:10px}
.gx-stock-metric__value{font-size:42px;line-height:1;font-weight:900}
.gx-stock-metric__value--danger,.gx-stock-metric__label--danger{color:#ff365f}
.gx-stock-metric--highlight{background:#356f42;color:#fff;border-color:transparent}
.gx-stock-metric--highlight .gx-stock-metric__label{color:rgba(255,255,255,.82)}
.gx-stock-grid-main{display:grid;grid-template-columns:400px 1fr;gap:24px}
.gx-stock-grid-full{display:flex;flex-direction:column;gap:24px}
.gx-card-soft{background:#fff;border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);overflow:hidden}
.gx-card-soft__head{padding:22px 24px;border-bottom:1px solid #dfe8e0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.gx-card-soft__title{font-size:20px;font-weight:800;margin:0 0 8px 0}
.gx-card-soft__subtitle{margin:0;color:var(--gx-muted);font-size:15px}
.gx-stock-search{padding:16px 20px;border-bottom:1px solid #dfe8e0}
.gx-stock-search--stack{display:flex;flex-direction:column;gap:10px}
.gx-stock-searchbox{display:flex;align-items:center;gap:10px;background:#f3f7f4;border:1px solid #edf2ee;border-radius:12px;padding:12px 14px;color:#6b7c6f}
.gx-stock-searchbox input{border:none;background:transparent;outline:none;width:100%;font:inherit;color:var(--gx-text)}
.gx-stock-minihead{display:grid;grid-template-columns:1fr 120px;padding:16px 20px;border-bottom:1px solid #dfe8e0;font-size:12px;font-weight:800;text-transform:uppercase;color:#56705d}
.gx-stock-minihead--wide{grid-template-columns:1.4fr 90px 90px 140px}
.gx-stock-emptyleft{height:270px;background:#fff}
.gx-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.gx-history-filter{min-width:150px;padding:10px 14px;border:1px solid #b8cbbd;border-radius:12px;background:#f3f7f4;color:#355640;font-weight:600}
.gx-history-tablehead{display:grid;grid-template-columns:160px 1fr 140px 160px;padding:14px 18px;border-bottom:1px solid #dfe8e0;color:#56705d;font-size:13px}
.gx-history-empty{height:180px;display:flex;align-items:center;justify-content:center;color:#597462;font-style:italic}
.gx-history-footerfill{height:180px;background:#fff}
.gx-stock-list{display:flex;flex-direction:column}
.gx-stock-row{display:grid;grid-template-columns:1.4fr 90px 90px 140px;gap:12px;align-items:center;padding:14px 20px;border-bottom:1px solid #eef3ef}
.gx-stock-row span{display:flex;flex-direction:column;color:#244a2d}
.gx-stock-row strong{font-size:14px}
.gx-stock-row small{font-size:12px;color:#6b7c6f}
.gx-stock-row--low{background:#fff3f5}
.gx-stock-filters-inline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gx-stock-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;align-items:start;min-width:min(100%,760px)}
.gx-stock-toolbarline{display:flex;gap:8px;align-items:center;padding:12px 18px;border-bottom:1px solid #dfe8e0}
.gx-history-tablehead--stock{grid-template-columns:140px 1.1fr .8fr 1.1fr 1.2fr 100px}
.gx-history-tablehead--report{grid-template-columns:1.4fr .7fr .7fr .7fr .7fr .7fr}
.gx-stock-history-list{display:flex;flex-direction:column}
.gx-stock-history-row{display:grid;grid-template-columns:140px 1.1fr .8fr 1.1fr 1.2fr 100px;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #eef3ef}
.gx-stock-history-row--report{grid-template-columns:1.4fr .7fr .7fr .7fr .7fr .7fr}
.gx-stock-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 18px}
.gx-stock-editor-grid .mud-input-control:last-child{grid-column:1/-1}
.gx-stock-metric__value--small{font-size:20px;line-height:1.2}
.gx-purchase-detail-view{display:flex;flex-direction:column;gap:14px;padding:16px 18px 18px}
.gx-purchase-totals-section{padding:10px 0 4px}
.gx-purchase-totals-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.gx-purchase-total-box{border:1px solid #e2ece4;border-radius:14px;padding:14px 16px;background:#f9fcf9;display:flex;flex-direction:column;gap:6px}
.gx-purchase-total-box--tax{border-color:#d1e4d9;background:#edf7f0}
.gx-purchase-total-box--other{border-color:#f0e2d8;background:#fff7f2}
.gx-purchase-total-box--grand{border-color:#356f42;background:#356f42}
.gx-purchase-total-box--grand .gx-purchase-total-label{color:rgba(255,255,255,.8)}
.gx-purchase-total-box--grand .gx-purchase-total-value{color:#fff;font-size:28px}
.gx-purchase-total-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#56705d}
.gx-purchase-total-value{font-size:24px;font-weight:900;color:#244a2d;line-height:1.2}
.gx-purchase-tax-breakdown{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding:0 4px}
.gx-purchase-tax-chip{display:inline-flex;padding:4px 10px;border-radius:999px;background:#eef5ef;color:#355640;font-size:12px;font-weight:700}
.gx-purchase-detail-gridhead{grid-template-columns:48px 1.4fr .6fr .8fr .8fr .8fr}
.gx-purchase-detail-gridrow{grid-template-columns:48px 1.4fr .6fr .8fr .8fr .8fr}
.gx-purchase-cell-line{font-weight:800;color:#56705d;font-size:16px}
.gx-purchase-cell-name strong{font-size:14px}
.gx-purchase-cell-num{text-align:right;font-variant-numeric:tabular-nums}
.gx-purchase-cell-subtotal{font-weight:800;color:#246239}
.gx-purchase-grid-head{grid-template-columns:110px 1.2fr 1fr 1fr 100px 100px !important}
.gx-purchase-grid-row{grid-template-columns:110px 1.2fr 1fr 1fr 100px 100px !important}
.gx-purchase-cell-date{font-weight:600}
.gx-purchase-cell-doc strong{font-size:15px;display:block}
.gx-purchase-cell-doc small{font-size:11px;color:#6d8072}
.gx-purchase-cell-supplier strong{font-size:14px}
.gx-purchase-cell-supplier small{font-size:11px}
.gx-purchase-cell-total{font-weight:900;color:#246239;text-align:right;font-size:18px}
.gx-purchase-cell-status{font-size:13px;font-weight:700}
.gx-purchase-cell-type{display:block;font-size:11px;color:#6d8072;margin-top:2px}
.gx-purchase-editor-basicgrid{grid-template-columns:repeat(2,minmax(160px,1fr)) 1.2fr .8fr !important}
.gx-purchase-editor-simplehead{grid-template-columns:60px 1.3fr .55fr .75fr 70px .85fr 80px}
.gx-purchase-editor-simplerow{grid-template-columns:60px 1.3fr .55fr .75fr 70px .85fr 80px}
.gx-purchase-editor-ivabox{min-height:56px;border:1px solid #e3ece5;border-radius:12px;background:#f2f9f3;display:flex;align-items:center;justify-content:center;gap:4px}
.gx-purchase-editor-ivabox span{font-size:16px;font-weight:800;color:#2e7747}
.gx-purchase-doc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.gx-purchase-doc-grid--editor{margin-bottom:12px}
.gx-purchase-doc-item{border:1px solid #dfe8e0;background:#f7fbf8;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-height:74px}
.gx-purchase-doc-item strong{font-size:18px;line-height:1.25;color:#244a2d;word-break:break-word}
.gx-purchase-doc-item__label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#56705d}
.gx-purchase-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.gx-purchase-summary-grid span{display:flex;flex-direction:column;gap:4px;border:1px solid #e2ece4;background:#fff;border-radius:12px;padding:12px 14px;color:#244a2d}
.gx-purchase-summary-grid strong,.gx-purchase-totals-grid strong{font-size:13px}
.gx-purchase-summary-grid small,.gx-purchase-totals-grid small{font-size:14px;color:#355640;word-break:break-word}
.gx-purchase-detail-section{border:1px solid #dfe8e0;border-radius:16px;overflow:hidden;background:#fff}
.gx-purchase-scroll-shell{max-height:320px;overflow:auto}
.gx-purchase-tax-shell{max-height:220px;overflow:auto}
.gx-purchase-sticky-head{position:sticky;top:0;z-index:3;background:#f3f8f4;box-shadow:0 1px 0 #dfe8e0}
.gx-purchase-modal-head{margin-bottom:8px}
.gx-purchase-modal-head .gx-mesas-subtitle{margin-top:2px;font-size:13px}
.gx-purchase-modal-head .gx-actions-row{align-items:center}
.gx-purchase-editor-grouphead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:4px 2px 0;color:#56705d}
.gx-purchase-editor-grouphead .mud-typography-body2{font-size:12px;color:#6d8072}
.gx-purchase-editor-head{gap:8px;align-items:start;margin-bottom:4px}
.gx-purchase-editor-head .mud-input-control,.gx-purchase-editor-notes .mud-input-control{margin:0}
.gx-purchase-editor-head .mud-input-slot,.gx-purchase-editor-notes .mud-input-slot{min-height:42px}
.gx-purchase-editor-notes{margin-top:0}
.gx-purchase-modal--full{width:min(1600px,calc(100vw - 24px));height:calc(100vh - 24px);margin:12px auto;padding:18px 20px 14px;display:flex;flex-direction:column;overflow:hidden}
.gx-purchase-editor-section{border:1px solid #dfe8e0;border-radius:18px;background:#fff;overflow:hidden;display:flex;flex-direction:column;flex:1;min-height:0;max-height:none}
.gx-purchase-detail-head{padding:12px 14px;margin-bottom:4px}
.gx-purchase-detail-head .gx-card-soft__title{font-size:18px;margin:0 0 4px}
.gx-purchase-detail-head .gx-card-soft__subtitle{font-size:13px}
.gx-purchase-editor-gridhead{display:grid;grid-template-columns:72px 1.3fr 1fr .65fr .85fr 1fr .7fr 88px;gap:10px;padding:12px 16px;border-bottom:1px solid #dfe8e0;background:#f3f8f4;color:#56705d;font-size:12px;font-weight:800;text-transform:uppercase}
.gx-purchase-editor-scroll{overflow:auto;padding:12px 12px 0;display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}
.gx-purchase-editor-row{display:grid;grid-template-columns:72px 1.3fr 1fr .65fr .85fr 1fr .7fr 88px;gap:10px;align-items:start;padding:10px;border:1px solid #e5eee7;border-radius:14px;background:#fbfdfb;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
.gx-purchase-editor-row--active{border-color:#7cb38c;background:#f4fbf5;box-shadow:0 0 0 2px rgba(53,111,66,.08)}
.gx-purchase-line-index{min-height:56px;border:1px solid #dce8de;border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.gx-purchase-line-index span{font-size:11px;font-weight:800;text-transform:uppercase;color:#6a7f70}
.gx-purchase-line-index strong{font-size:24px;line-height:1;color:#246239}
.gx-purchase-line-total{min-height:56px;border:1px solid #e2ece4;border-radius:12px;background:#f7fbf8;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.gx-purchase-line-total span{font-size:12px;font-weight:800;text-transform:uppercase;color:#56705d}
.gx-purchase-line-total strong{font-size:18px;color:#246239;line-height:1.1}
.gx-purchase-totals-bar{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(246,251,247,.92),#f6fbf7 28%);border-top:1px solid #dfe8e0;padding:12px}
.gx-personal-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,310px));gap:16px;margin:12px 0 26px}
.gx-personal-kpi{background:#fff;border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);padding:20px 22px}
.gx-personal-kpi__label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#52715a}
.gx-personal-kpi__value{font-size:46px;line-height:1;font-weight:900;margin-top:8px}
.gx-personal-kpi__meta{font-size:26px;color:#356f42;margin-top:8px}
.gx-personal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%}
.gx-personal-tools{display:flex;align-items:center;gap:10px}
.gx-personal-search{min-width:250px}
.gx-personal-tablehead{display:grid;grid-template-columns:1.2fr 1.3fr 1.2fr 1fr .8fr;padding:14px 18px;border-bottom:1px solid #dfe8e0;color:#56705d;font-size:13px;font-weight:700;text-transform:uppercase}
.gx-personal-empty{height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.gx-personal-empty__text{text-transform:uppercase;letter-spacing:.08em;color:#56795f;font-weight:800}
.gx-config-grid{display:grid;grid-template-columns:1fr 410px;gap:22px}
.gx-config-center{height:240px;display:flex;align-items:center;justify-content:center}
.gx-config-summary{padding:0 22px 22px}
.gx-config-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #dfe8e0;color:#40634b}
.gx-config-row strong{color:#102a17}
.gx-config-note{margin-top:16px;border:1px solid #dfe8e0;background:#f7faf8;border-radius:12px;padding:12px 14px;display:flex;gap:8px;color:#355640;line-height:1.4}
.gx-config-tablehead{display:grid;grid-template-columns:1.2fr 1fr 1fr .7fr;padding:14px 20px;border-top:1px solid #dfe8e0;border-bottom:1px solid #dfe8e0;color:#56705d;font-size:13px;font-weight:800;text-transform:uppercase}
.gx-config-rowitem{display:grid;grid-template-columns:1.2fr 1fr 1fr .7fr;align-items:center;padding:14px 20px;border-bottom:1px solid #e4ece5}
.gx-config-rowitem strong{font-size:18px;font-weight:900}
.gx-config-actions{display:flex;align-items:center;gap:6px}
.gx-config-bottom-space{height:8px}
.gx-mesas-modal{background:#f6fbf7;border:1px solid #d9ebde;border-radius:18px;padding:20px 22px}
.gx-mesas-modal--open{padding:16px 18px;max-height:calc(100vh - 112px);overflow-y:auto}
.gx-mesas-modal__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.gx-mesas-title{font-weight:900;margin:0}
.gx-mesas-subtitle{color:#52715a;margin-top:4px}
.gx-mesas-field{margin-bottom:12px}
.gx-mesas-input .mud-input-slot{background:#f8fcf9}
.gx-mesas-input--compact .mud-input-control{margin:0}
.gx-mesas-input--compact .mud-input-slot{min-height:40px}
.gx-mesas-submit{margin-top:8px;height:46px;font-size:28px;font-weight:900;border-radius:12px}
.gx-open-items-list{min-height:200px;display:flex;flex-direction:column}
.gx-open-items-row{min-height:40px}
.gx-open-items-row--ghost{opacity:.25}
.gx-close-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.gx-sales-day-layout{display:flex;flex-direction:column;gap:16px}
.gx-sales-day-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border:1px solid #d8eadf;border-radius:16px;background:#fff}
.gx-sales-day-tools{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.gx-sales-day-date{min-width:200px}
.gx-sales-day-kpis{display:grid;grid-template-columns:repeat(2,minmax(220px,280px));gap:14px}
.gx-sales-day-kpi{padding:18px 20px;border:1px solid #d8eadf;border-radius:16px;background:#fff}
.gx-sales-day-kpi__label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#52715a}
.gx-sales-day-kpi__value{font-size:34px;font-weight:900;color:#1f3323;margin-top:8px}
.gx-sales-day-panel{border:1px solid #d8eadf;border-radius:16px;background:#fff;overflow:hidden}
.gx-sales-day-panel__head{padding:14px 18px;border-bottom:1px solid #e2ece4;background:#f7fbf8}
.gx-sales-day-empty{min-height:140px;display:flex;align-items:center;justify-content:center;padding:18px;color:#5c7362}
.gx-sales-day-tablehead{display:grid;grid-template-columns:1.15fr 1fr .9fr 1fr 1fr;gap:12px;padding:12px 18px;border-bottom:1px solid #e2ece4;color:#56705d;font-size:12px;font-weight:800;text-transform:uppercase}
.gx-sales-day-row{display:grid;grid-template-columns:1.15fr 1fr .9fr 1fr 1fr;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #edf3ee}
.gx-sales-day-row:last-child{border-bottom:none}
.gx-sales-day-row strong{font-size:18px;font-weight:900;color:#246239}
.gx-open-head-grid{gap:8px;margin-bottom:4px}
.gx-open-section-title{margin:6px 0 4px;color:#244f31;font-weight:800}
.gx-open-consumo-box{border:1px solid #d8eadf;border-radius:12px;padding:6px 10px;background:#fbfdfb}
.gx-open-consumo-grid{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:6px;align-items:start}
.gx-open-consumo-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:4px 0}
.gx-open-consumo-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:#eef6ef;color:#355640;font-size:12px;font-weight:700}
.gx-open-consumo-add{min-width:160px;height:38px;font-weight:800}
.gx-open-divider{margin:4px 0 !important}
.gx-open-empty{color:#5c7362}
.gx-open-items-list--compact{min-height:180px}
.gx-open-items-row--compact{min-height:36px;padding:6px 12px}
.gx-open-items-actions{display:flex;align-items:center;gap:4px}
.gx-open-pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px}
.gx-open-pagination__text{font-size:12px;color:#52715a;font-weight:700}
.gx-open-total-box{border:1px solid #d8eadf;border-radius:12px;padding:8px 12px;margin-top:6px;background:#f9fcf9}
.gx-open-total-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.gx-open-total-label{font-weight:800;color:#355640}
.gx-open-total-value{font-size:24px;font-weight:900;color:#246239}
.gx-btn--delivery{background:#ef6b16;color:#fff;border-color:#ef6b16}
.gx-delivery-kpis{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px;margin:12px 0 24px}
.gx-delivery-kpi{background:#fff;border:1px solid var(--gx-border);border-radius:16px;box-shadow:var(--gx-shadow);padding:20px 22px}
.gx-delivery-kpi__label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.gx-delivery-kpi__value{font-size:44px;line-height:1;font-weight:900;margin-top:10px}
.gx-delivery-kpi--pending .gx-delivery-kpi__label,.gx-delivery-kpi--pending .gx-delivery-kpi__value{color:#d46a27}
.gx-delivery-kpi--route{background:#f7faff}
.gx-delivery-kpi--route .gx-delivery-kpi__label,.gx-delivery-kpi--route .gx-delivery-kpi__value{color:#3d69ff}
.gx-delivery-kpi--done{background:#f4fff9}
.gx-delivery-kpi--done .gx-delivery-kpi__label,.gx-delivery-kpi--done .gx-delivery-kpi__value{color:#188d69}
.gx-delivery-kpi--cash{background:#2f6641;border-color:#2f6641}
.gx-delivery-kpi--cash .gx-delivery-kpi__label,.gx-delivery-kpi--cash .gx-delivery-kpi__value{color:#fff}
.gx-delivery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%}
.gx-delivery-tools{display:flex;gap:10px;align-items:center}
.gx-delivery-search{min-width:255px}
.gx-delivery-empty{height:180px;display:flex;align-items:center;justify-content:center}
.gx-delivery-board{display:flex;flex-direction:column;gap:18px}
.gx-delivery-board-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%}
.gx-delivery-board-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.gx-delivery-status-table{padding:0 20px 18px}
.gx-delivery-status-head{display:grid;grid-template-columns:1.1fr 1.6fr .9fr .8fr .8fr .8fr;gap:12px;padding:12px 16px;border-bottom:1px solid #dfe8e0;color:#56705d;font-size:12px;font-weight:800;text-transform:uppercase}
.gx-delivery-status-row{display:grid;grid-template-columns:1.1fr 1.6fr .9fr .8fr .8fr .8fr;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #eef3ef;background:#fff;cursor:pointer;transition:background-color .16s ease,border-color .16s ease}
.gx-delivery-status-row:hover{background:#fff8f3}
.gx-delivery-status-row--selected{background:#fff5ec}
.gx-delivery-status-col{display:flex;flex-direction:column;gap:4px;color:#244a2d}
.gx-delivery-status-col strong{font-size:14px;line-height:1.3}
.gx-delivery-status-col small{font-size:12px;color:#6b7c6f}
.gx-delivery-status-actions-inline{display:flex;align-items:center;gap:4px;justify-content:flex-start}
.gx-delivery-layout{display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(420px,.95fr);gap:18px;align-items:start}
.gx-delivery-editor,.gx-delivery-monitor{padding-bottom:18px}
.gx-delivery-editor-shell{margin-top:18px}
.gx-delivery-editor-shell__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%}
.gx-delivery-editor-layout{display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(360px,.95fr);gap:18px;padding:18px 20px 0}
.gx-delivery-editor-left,.gx-delivery-editor-right{display:flex;flex-direction:column;gap:12px;min-width:0}
.gx-delivery-editor-right .gx-delivery-catalog-head,.gx-delivery-editor-right .gx-delivery-line-editor,.gx-delivery-editor-right .gx-delivery-total-box{margin:0}
.gx-delivery-editor-right .gx-delivery-items-panel,.gx-delivery-editor-right .gx-delivery-quick-product{margin:0}
.gx-delivery-editor-actions{padding:0 2px 2px}
.gx-delivery-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 20px 12px}
.gx-delivery-notes{padding:0 20px 12px}
.gx-delivery-map-wrap{padding:0 20px 14px}
.gx-delivery-map-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.gx-delivery-map{height:300px;border:1px solid #d8eadf;border-radius:16px;overflow:hidden;background:#eef5f0}
.gx-delivery-map--fullscreen{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999;border-radius:0}
.gx-delivery-map-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gx-delivery-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 10px}
.gx-delivery-quick-product{margin:0 20px 14px;padding:12px 0;border:1px solid #d8eadf;border-radius:16px;background:#f9fcf9}
.gx-delivery-line-editor{padding:0 20px 12px;display:flex;flex-direction:column;gap:10px}
.gx-delivery-line-meta{display:flex;flex-wrap:wrap;gap:8px}
.gx-delivery-items-panel{margin:0 20px 14px;border:1px solid #dfe8e0;border-radius:16px;overflow:hidden;background:#fff}
.gx-history-tablehead--delivery-items{grid-template-columns:1.5fr .7fr .8fr .8fr .6fr}
.gx-stock-history-row--delivery-items{grid-template-columns:1.5fr .7fr .8fr .8fr .6fr}
.gx-history-tablehead--mesa-items{grid-template-columns:1.6fr .6fr .8fr .8fr .5fr;padding:8px 12px;font-size:12px}
.gx-stock-history-row--mesa-items{grid-template-columns:1.6fr .6fr .8fr .8fr .5fr;padding:8px 12px;font-size:13px}
.gx-delivery-total-box{margin:0 20px 14px;border:1px solid #d8eadf;border-radius:16px;background:#f8fcf9;padding:12px 14px}
.gx-delivery-grand-total strong{font-size:28px;color:#246239}
.gx-delivery-monitor-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:12px 20px 0}
.gx-delivery-order-list{display:flex;flex-direction:column;gap:10px;max-height:900px;overflow:auto;padding-right:4px}
.gx-delivery-order-card{border:1px solid #dfe8e0;border-radius:16px;padding:14px 16px;background:#fff;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.gx-delivery-order-card:hover{border-color:#f3b387;box-shadow:0 6px 14px rgba(36,98,57,.08);transform:translateY(-1px)}
.gx-delivery-order-card--selected{border-color:#ef6b16;background:#fff8f3;box-shadow:0 8px 18px rgba(239,107,22,.12)}
.gx-delivery-order-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.gx-delivery-order-card__meta{font-size:13px;color:#5d7362;margin-top:4px}
.gx-delivery-order-card__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-weight:800;color:#355640}
.gx-delivery-detail-panel{display:flex;flex-direction:column;gap:12px}
.gx-delivery-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.gx-delivery-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gx-delivery-status-actions{padding:0 2px}
.gx-delivery-status-actions .mud-button-root{font-weight:800}
.gx-stock-row--selected{background:#eef8f0;border-left:3px solid #2f7a49}
.gx-cash-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 20px 14px}
.gx-cash-summary-card{border:1px solid #dfe8e0;border-radius:16px;padding:16px 18px;background:#f8fcf9}
.gx-cash-summary-card__label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#5c7564}
.gx-cash-summary-card__value{font-size:28px;font-weight:800;color:#214d31;margin-top:4px}
.gx-cash-summary-card__meta{font-size:13px;color:#6d8072;margin-top:4px}
.gx-cash-assigned{padding:0 20px 16px}
.gx-cash-chip-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gx-cash-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eef8f0;color:#2f6140;font-size:13px;font-weight:600}
.gx-cash-users-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin-top:10px}
.gx-cash-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gx-cash-detail-grid--ops{padding-top:0}
.gx-cash-note{margin-top:10px;font-size:12px;color:#5f7567}
.gx-cash-breakdown{margin-top:10px;padding-top:8px;border-top:1px dashed #d5e3d8}
.gx-cash-breakdown__title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#5c7564;margin-bottom:4px}
.gx-cash-breakdown__row{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#456051;padding:2px 0}
.gx-cash-breakdown__method{font-weight:700}
.gx-history-tablehead--cash-counts{grid-template-columns:140px 1fr .8fr 1.2fr .8fr}
.gx-stock-history-row--cash-counts{grid-template-columns:140px 1fr .8fr 1.2fr .8fr}
@keyframes gx-spin{to{transform:rotate(360deg)}}
@media (max-width:1200px){.gx-cards{grid-template-columns:repeat(2,1fr)}.gx-grid{grid-template-columns:1fr}}
@media (max-width:1200px){.gx-sales-grid-top{grid-template-columns:1fr}.gx-sales-grid-bottom{grid-template-columns:1fr}}
@media (max-width:1200px){.gx-page-toolbar{flex-direction:column;align-items:stretch}.gx-toolbar-right{justify-content:space-between}}
@media (max-width:1200px){.gx-metrics-grid{grid-template-columns:1fr}}
@media (max-width:1200px){.gx-stock-grid-top{grid-template-columns:1fr 1fr}.gx-stock-grid-main{grid-template-columns:1fr}.gx-stock-filter-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.gx-purchase-doc-grid,.gx-purchase-summary-grid,.gx-purchase-totals-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gx-purchase-detail-gridhead,.gx-purchase-detail-gridrow{grid-template-columns:40px 1.3fr .55fr .7fr .7fr .7fr}.gx-purchase-editor-gridhead,.gx-purchase-editor-row,.gx-purchase-editor-simplehead,.gx-purchase-editor-simplerow{grid-template-columns:48px 1.3fr 90px 90px 70px 90px 56px}.gx-purchase-editor-section{flex:1;max-height:none;min-height:0}.gx-purchase-editor-scroll{flex:1;min-height:0}.gx-purchase-scroll-shell{max-height:280px}.gx-purchase-tax-shell{max-height:220px}}
@media (max-width:900px){.gx-history-tablehead--stock,.gx-stock-history-row,.gx-history-tablehead--report,.gx-stock-history-row--report,.gx-stock-minihead--wide,.gx-stock-row,.gx-history-tablehead--mesa-items,.gx-stock-history-row--mesa-items{grid-template-columns:1fr}.gx-stock-editor-grid{grid-template-columns:1fr}.gx-purchase-detail-view{padding:14px}.gx-purchase-doc-grid,.gx-purchase-summary-grid,.gx-purchase-totals-grid,.gx-purchase-editor-gridhead,.gx-purchase-editor-row,.gx-purchase-editor-simplehead,.gx-purchase-editor-simplerow,.gx-purchase-detail-gridhead,.gx-purchase-detail-gridrow{grid-template-columns:1fr}.gx-purchase-editor-basicgrid{grid-template-columns:1fr !important}.gx-purchase-editor-gridhead{display:none}.gx-purchase-editor-scroll{padding:10px;flex:1;min-height:0}.gx-purchase-editor-row{padding:12px 10px;gap:8px}.gx-purchase-line-total{min-height:auto;padding:8px 10px}.gx-purchase-line-index{min-height:44px;flex-direction:row;justify-content:space-between;padding:6px 10px}.gx-purchase-line-index span{font-size:10px}.gx-purchase-line-index strong{font-size:18px}.gx-purchase-editor-ivabox{min-height:44px;padding:6px}.gx-purchase-totals-bar{position:sticky;bottom:0;padding:10px}.gx-purchase-scroll-shell{max-height:240px}.gx-purchase-tax-shell{max-height:200px}.gx-purchase-modal--full{width:calc(100vw - 12px);height:calc(100vh - 12px);margin:6px auto;padding:14px 14px 12px}.gx-cash-detail-grid,.gx-cash-users-grid{grid-template-columns:1fr}}
@media (max-width:1200px){.gx-personal-kpis{grid-template-columns:1fr}.gx-personal-head{flex-direction:column}.gx-personal-tools{width:100%}.gx-personal-search{min-width:0;flex:1}.gx-personal-tablehead{grid-template-columns:1fr 1fr}}
@media (max-width:1200px){.gx-config-grid{grid-template-columns:1fr}}
@media (max-width:1200px){.gx-delivery-kpis{grid-template-columns:1fr 1fr}.gx-delivery-head,.gx-delivery-board-head,.gx-delivery-editor-shell__head{flex-direction:column}.gx-delivery-tools,.gx-delivery-board-tools{width:100%}.gx-delivery-search{min-width:0;flex:1}.gx-delivery-layout,.gx-delivery-editor-layout{grid-template-columns:1fr}.gx-delivery-monitor-grid{grid-template-columns:1fr}.gx-delivery-detail-grid{grid-template-columns:1fr}.gx-delivery-status-head,.gx-delivery-status-row{grid-template-columns:1.1fr 1.4fr .9fr .8fr .8fr .8fr}}
.gx-mostrador-layout{display:grid;grid-template-columns:1fr 340px;gap:0;min-height:calc(100vh - 120px);background:#f8fcf9;border:1px solid var(--gx-border);border-radius:16px;overflow:hidden}
.gx-mostrador-left{border-right:1px solid var(--gx-border);padding:12px;background:#f8fcf9}
.gx-mostrador-toolbar{display:flex;align-items:center;gap:10px}
.gx-mostrador-search{flex:1}
.gx-mostrador-filter{margin-top:6px}
.gx-mostrador-canvas{height:100%;min-height:560px;overflow-y:auto}
.gx-mostrador-loading{display:flex;justify-content:center;align-items:center;height:200px}
.gx-mostrador-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;gap:8px;color:#b7c8bb}
.gx-mostrador-categories{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0}
.gx-mostrador-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px}
.gx-mostrador-product-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 6px;border-radius:10px;border:1px solid var(--gx-border);background:#fff;cursor:pointer;min-height:72px;transition:all .1s}
.gx-mostrador-product-btn:hover{border-color:#246239;background:#ecf7ef;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.gx-mostrador-product-btn:active{transform:scale(.97)}
.gx-mostrador-product-name{font-size:11px;font-weight:600;text-align:center;line-height:1.2;color:#1f3323;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gx-mostrador-product-price{font-size:13px;font-weight:800;color:#246239;margin-top:4px}
.gx-ticket-panel{display:flex;flex-direction:column;background:#fff}
.gx-ticket-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--gx-border)}
.gx-ticket-title{margin:0}
.gx-ticket-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#b7c8bb}
.gx-ticket-items{flex:1;overflow-y:auto;padding:6px 10px;display:flex;flex-direction:column;gap:4px}
.gx-ticket-item{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-radius:8px;background:#f8fcf9;border:1px solid #e8f0ea}
.gx-ticket-item-info{display:flex;align-items:center;justify-content:space-between;gap:8px}
.gx-ticket-item-name{font-size:12px;font-weight:600;color:#1f3323;line-height:1.2}
.gx-ticket-item-price{font-size:11px;color:#5f7464}
.gx-ticket-item-actions{display:flex;align-items:center;gap:4px}
.gx-ticket-item-qty{font-size:14px;font-weight:800;color:#1f3323;min-width:20px;text-align:center}
.gx-ticket-item-subtotal{font-size:13px;font-weight:700;color:#246239;margin-left:auto;padding:0 4px}
.gx-ticket-pagination{display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 0}
.gx-ticket-pagination__text{font-size:11px;font-weight:600;color:#5f7464}
.gx-ticket-footer{border-top:1px solid var(--gx-border);padding:12px;display:flex;flex-direction:column;gap:10px}
.gx-ticket-subtotal,.gx-ticket-total{display:flex;align-items:center;justify-content:space-between}
.gx-ticket-subtotal span{font-size:12px;font-weight:700;color:#5f7464}
.gx-ticket-subtotal strong{font-size:20px;color:#356f42}
.gx-ticket-total span{font-size:36px;font-weight:900;line-height:1}
.gx-ticket-total strong{font-size:46px;font-weight:900;line-height:1;color:#1f3323}
.gx-ticket-pay{font-weight:900}
.gx-ticket-clear{font-weight:700}
@media (max-width:1200px){.gx-mostrador-layout{grid-template-columns:1fr}.gx-mostrador-left{border-right:none;border-bottom:1px solid var(--gx-border)}}
.gx-catalog-head{margin-bottom:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.gx-api-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid}
.gx-api-status--ok{background:#ecf7ef;color:#246239;border-color:#bfe3c9}
.gx-api-status--down{background:#fff2f2;color:#a03a3a;border-color:#efc6c6}
.gx-catalog-tabs{display:inline-flex;align-items:center;gap:4px;background:#edf4ee;border:1px solid var(--gx-border);padding:4px;border-radius:14px;margin-bottom:28px}
.gx-catalog-tab{border-radius:10px !important;color:#2d5f3d !important;text-transform:none !important;font-weight:700 !important;padding:8px 12px !important}
.gx-catalog-tab--active{background:#fff !important;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.gx-catalog-toolbar{background:#fff;border:1px solid #dbe9de;border-radius:16px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.gx-catalog-search{max-width:520px;width:100%}
.gx-catalog-search .mud-input-control{margin:0}
.gx-catalog-actions{display:flex;align-items:center;gap:10px}
.gx-catalog-ai{border-color:#a4d61f !important;color:#9ae10b !important;font-weight:800 !important}
@media (max-width:900px){.gx-catalog-toolbar{flex-direction:column;align-items:stretch}.gx-catalog-search{max-width:unset}.gx-catalog-actions{justify-content:flex-end}}
.gx-menu-modal-wrap{display:flex;justify-content:center;padding:8px}
.gx-menu-modal{width:min(980px,100%);background:#f6fbf7;border:1px solid #d9ebde;border-radius:18px;padding:20px 22px}
.gx-menu-modal__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.gx-menu-title{font-weight:900;margin:0}
.gx-menu-subtitle{color:#52715a;margin-top:4px}
.gx-menu-close{color:#7a9781}
.gx-menu-box{border:1px solid #d8eadf;background:#f8fcf9;border-radius:16px;padding:14px 16px;margin-bottom:14px}
.gx-menu-box--hint .mud-typography{line-height:1.5}
.gx-menu-type-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.gx-menu-type-controls{display:flex;align-items:center;gap:10px}
.gx-menu-field{margin-bottom:12px}
.gx-menu-field-head{display:flex;justify-content:space-between;align-items:center}
.gx-menu-ai{font-size:12px;color:#8ed300;font-weight:900}
.gx-menu-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.gx-menu-submit{margin-top:8px;height:52px;font-size:28px;font-weight:900;border-radius:12px}
.gx-menu-grid-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.gx-menu-list-panel{background:#fff;border:1px solid #dbe9de;border-radius:16px;padding:12px 14px}
.gx-menu-list-actions{display:flex;align-items:center;gap:10px}
.gx-menu-grid-search{max-width:320px}
.gx-menu-table{border:1px solid #d8eadf;border-radius:12px;overflow:hidden;background:#fff}
.gx-menu-cell-right{display:block;text-align:right}
.gx-menu-cell-center{display:flex;justify-content:center}
.gx-cat-panel{background:#fff;border:1px solid #dbe9de;border-radius:16px;padding:12px 14px}
.gx-cat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.gx-cat-title{margin:0;display:flex;align-items:center;gap:8px}
.gx-cat-editor{display:grid;grid-template-columns:1fr 1fr auto auto;gap:10px;align-items:end;margin-bottom:12px}
.gx-cat-table{border:1px solid #e3ece5;border-radius:12px;overflow:hidden;background:#fff}
.gx-cat-order{display:inline-flex;min-width:28px;height:20px;border:1px solid #cfe3d5;border-radius:999px;align-items:center;justify-content:center;font-weight:800;font-size:12px}
.gx-cat-badge{display:inline-flex;padding:2px 10px;border-radius:999px;background:#e7eee8;color:#2e5b3f;font-weight:800;font-size:13px}
@media (max-width:900px){.gx-menu-grid-two{grid-template-columns:1fr}.gx-menu-modal{padding:16px}}
@media (max-width:900px){.gx-menu-grid-head{flex-direction:column;align-items:stretch}.gx-menu-grid-search{max-width:unset}.gx-menu-list-actions{width:100%;justify-content:space-between}}
@media (max-width:900px){.gx-cat-editor{grid-template-columns:1fr}.gx-cat-head{flex-direction:column;align-items:stretch}}
@media (max-width:900px){.gx-close-actions{justify-content:stretch}.gx-close-actions .mud-button-root{flex:1}.gx-sales-day-toolbar{flex-direction:column;align-items:stretch}.gx-sales-day-tools{align-items:stretch}.gx-sales-day-date{min-width:0}.gx-sales-day-kpis{grid-template-columns:1fr}.gx-sales-day-tablehead,.gx-sales-day-row{grid-template-columns:1fr 1fr}.gx-sales-day-row strong{font-size:16px}}
@media (max-width:900px){.gx-open-consumo-grid{grid-template-columns:1fr}.gx-open-consumo-add{width:100%}.gx-open-pagination{flex-direction:column}.gx-open-total-row{align-items:flex-start}.gx-open-total-value{font-size:22px}}
@media (max-width:900px){.gx-delivery-form-grid,.gx-history-tablehead--delivery-items,.gx-stock-history-row--delivery-items,.gx-delivery-status-head,.gx-delivery-status-row{grid-template-columns:1fr}.gx-delivery-map{height:260px}.gx-delivery-map-head,.gx-delivery-catalog-head,.gx-delivery-detail-head{flex-direction:column;align-items:stretch}.gx-delivery-order-card__head,.gx-delivery-order-card__foot{flex-direction:column;align-items:flex-start}.gx-delivery-status-actions{justify-content:stretch}.gx-delivery-status-actions .mud-button-root{flex:1}.gx-delivery-status-actions-inline{justify-content:flex-start}}
@media (max-width:768px){.gx-purchase-doc-item{min-height:60px;padding:10px 12px}.gx-purchase-doc-item strong{font-size:16px}.gx-purchase-total-box{padding:12px 14px}.gx-purchase-total-value{font-size:20px}.gx-purchase-total-box--grand .gx-purchase-total-value{font-size:24px}.gx-purchase-detail-view{padding:12px 14px 14px;gap:12px}.gx-purchase-scroll-shell{max-height:260px}
.gx-mesas-modal{padding:16px 18px}}
@media (max-width:640px){.gx-stock-filter-grid{grid-template-columns:1fr}.gx-actions-row{flex-wrap:wrap}.gx-purchase-doc-item strong{font-size:15px}.gx-purchase-doc-item{min-height:52px;padding:8px 10px}.gx-purchase-summary-grid small,.gx-purchase-totals-grid small{font-size:13px}.gx-purchase-editor-row{padding:8px;gap:6px}.gx-purchase-editor-row .mud-select .mud-input-slot,.gx-purchase-editor-row .mud-input-slot{min-height:38px;font-size:14px}.gx-purchase-editor-ivabox{min-height:38px}.gx-purchase-editor-ivabox span{font-size:14px}.gx-purchase-line-index{min-height:38px;padding:4px 8px}.gx-purchase-line-index strong{font-size:16px}.gx-purchase-line-total{min-height:38px;padding:6px 8px}.gx-purchase-line-total strong{font-size:15px}.gx-purchase-editor-grouphead .mud-typography-subtitle2{font-size:14px}.gx-purchase-editor-head .mud-input-slot{min-height:36px;font-size:14px}.gx-purchase-modal--full{padding:10px 10px 8px}.gx-mesas-modal__head{margin-bottom:8px}.gx-mesas-modal{padding:14px 14px}.gx-mesas-submit{height:40px;font-size:22px}.gx-purchase-totals-bar{padding:8px}.gx-purchase-total-box{padding:8px 10px}.gx-purchase-total-value{font-size:18px}.gx-purchase-total-box--grand .gx-purchase-total-value{font-size:22px}.gx-purchase-editor-scroll{padding:8px 6px 0;gap:8px}.gx-purchase-detail-view{padding:10px 10px 12px;gap:10px}.gx-purchase-scroll-shell{max-height:220px}.gx-purchase-doc-grid{gap:6px}}
@media (max-width:480px){.gx-purchase-doc-grid{grid-template-columns:1fr}.gx-purchase-totals-grid{grid-template-columns:1fr}.gx-purchase-detail-gridhead,.gx-purchase-detail-gridrow{grid-template-columns:1fr}.gx-purchase-editor-simplehead,.gx-purchase-editor-simplerow{grid-template-columns:1fr}.gx-mesas-modal{padding:12px 10px}.gx-purchase-modal--full{padding:8px 6px 6px}.gx-actions-row{gap:6px}.gx-purchase-detail-view{padding:8px 8px 10px}.gx-purchase-doc-item strong{font-size:14px}}

.gx-nav-sublink{padding-left:36px!important;font-size:13px;opacity:.85}
.gx-purchase-autocomplete{min-width:200px}
.gx-purchase-autocomplete .mud-input-slot{min-height:38px;font-size:14px}
.gx-btn-spinner{width:20px!important;height:20px!important;margin-right:6px;vertical-align:middle}
.gx-supplier-status-chip .mud-chip{margin:0;min-height:22px;padding:0 8px;font-size:12px}
.gx-supplier-editor-fields{display:flex;flex-direction:column;gap:10px}
.gx-supplier-editor-fields .mud-switch{margin-top:2px}

.gx-mostrador-history{background:var(--gx-surface);border:1px solid var(--gx-border);border-radius:var(--gx-radius);box-shadow:var(--gx-shadow);margin-top:24px;padding:0 0 8px}
.gx-mostrador-history-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px;flex-wrap:wrap;gap:12px}
.gx-mostrador-history-title{font-size:20px;font-weight:700;margin:0}
.gx-mostrador-history-subtitle{font-size:13px;color:var(--gx-muted);margin:2px 0 0}
.gx-mostrador-history-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.gx-history-tablehead--ventas{grid-template-columns:120px 140px 140px 100px 100px 110px 1.2fr 110px}
.gx-stock-history-row--ventas{grid-template-columns:120px 140px 140px 100px 100px 110px 1.2fr 110px}
.gx-sale-chip{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.6}
.gx-sale-chip--mostrador{background:#e3f2fd;color:#1565c0}
.gx-sale-chip--salon{background:#e8f5e9;color:#2e7d32}
.gx-sale-chip--delivery{background:#fff3e0;color:#e65100}
.gx-sale-cae{font-family:monospace;font-size:12px;word-break:break-all}

@media (max-width:900px){.gx-history-tablehead--ventas,.gx-stock-history-row--ventas{grid-template-columns:1fr}.gx-mostrador-history-head{flex-direction:column;align-items:stretch}.gx-mostrador-history-filters{flex-wrap:wrap}}
