@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root{
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-soft-2: #f3f6fa;

    --text: #142031;
    --text-soft: #425164;
    --muted: #718096;
    --muted-2: #94a3b8;

    --line: rgba(15, 23, 42, .07);
    --line-strong: rgba(15, 23, 42, .11);

    --primary: #173a63;
    --primary-soft: #eef4fb;
    --primary-soft-2: #f5f9fe;

    --success: #166534;
    --success-soft: #edf9f0;
    --success-line: #c8e7d0;

    --warning: #b45309;
    --warning-soft: #fff7ed;
    --warning-line: #f5d8b1;

    --danger: #b42318;
    --danger-soft: #fff3f2;
    --danger-line: #f1c9c5;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .03);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, .04);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, .06);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;

    --maxw: 1320px;
    --topbar-h: 66px;
}

*,
*::before,
*::after{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(23,58,99,.04) 0%, rgba(23,58,99,0) 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a{
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea{
    font: inherit;
}

button{
    cursor: pointer;
}

img{
    max-width: 100%;
    display: block;
}

.backops-app{
    min-height: 100vh;
    isolation: isolate;
}

.wrap{
    max-width: var(--maxw);
    margin: 0 auto;
}

/* TOPBAR */

.backops-topbar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50000;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 14px rgba(15,23,42,.025);
    overflow: visible;
}

.backops-topbar-inner{
    max-width: var(--maxw);
    min-height: var(--topbar-h);
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    overflow: visible;
}

.topbar-left{
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
    overflow: visible;
}

.topbar-brand{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-brand-badge{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #173a63 0%, #29578a 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    box-shadow: 0 8px 20px rgba(23,58,99,.14);
    flex: 0 0 auto;
}

.topbar-brand-copy{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-brand-title{
    font-size: 13px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.015em;
}

.topbar-brand-subtitle{
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0;
}


.topbar-brand-badge{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 8px 20px rgba(23,58,99,.10);
    overflow: hidden;
    flex: 0 0 auto;
    padding: 4px;
}

.topbar-brand-logo{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar-nav{
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    overflow: visible;
}

.topbar-link{
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #516174;
    font-size: 12.5px;
    font-weight: 400;
    border: 1px solid transparent;
    background: transparent;
    transition: .16s ease;
    white-space: nowrap;
}

.topbar-link:hover{
    background: var(--surface-soft);
    color: var(--primary);
}

.topbar-link.active{
    background: var(--primary-soft);
    color: var(--primary);
    border-color: rgba(23,58,99,.08);
    font-weight: 500;
}

.topbar-caret{
    font-size: 10px;
    opacity: .6;
}

.topbar-right{
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

/* DROPDOWN */

.dropdown{
    position: relative;
    overflow: visible;
}

.dropdown-menu{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: none;
    z-index: 50010;
}

.dropdown.open .dropdown-menu{
    display: block;
}

.dropdown-menu-right{
    left: auto;
    right: 0;
}

.dropdown-title{
    padding: 8px 10px 10px;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 500;
}

.dropdown-item{
    width: 100%;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 400;
    text-align: left;
    transition: .14s ease;
}

.dropdown-item:hover{
    background: var(--surface-soft);
    color: var(--primary);
}

.dropdown-item.active{
    background: var(--primary-soft-2);
    color: var(--primary);
}

.dropdown-item-danger{
    color: var(--danger);
}

.dropdown-item-danger:hover{
    background: var(--danger-soft);
    color: var(--danger);
}

.dropdown-divider{
    height: 1px;
    background: var(--line);
    margin: 8px 4px;
}

.dropdown-user{
    padding: 8px 10px 10px;
}

.dropdown-user-name{
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
}

.dropdown-user-email{
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
    word-break: break-word;
    font-weight: 400;
}

/* USER CHIP */

.user-chip{
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.9);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 400;
    transition: .16s ease;
}

.user-chip:hover{
    border-color: rgba(23,58,99,.10);
    box-shadow: var(--shadow-xs);
}

.user-chip-dot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.10);
}

/* MAIN */

.backops-main{
    min-height: 100vh;
    padding-top: var(--topbar-h);
    position: relative;
    z-index: 1;
}

.page-wrap{
    padding: 28px 22px 34px;
}

/* PAGE HEAD */

.page-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-head-copy{
    min-width: 0;
}

.page-kicker{
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 500;
    margin-bottom: 8px;
}

.page-title{
    margin: 0;
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 500;
    color: var(--text);
}

.page-subtitle{
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.75;
    color: #7b8794;
    max-width: 820px;
    font-weight: 400;
}

/* DASHBOARD */

.dashboard-shell{
    display: grid;
    gap: 18px;
}

.dashboard-grid{
    display: grid;
    gap: 16px;
}

.dashboard-grid-top{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid-bottom{
    grid-template-columns: 1.35fr .95fr;
}

.stat-card{
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 20px 20px 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-sm);
}

.stat-card::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
}

.stat-card-primary::before{
    background: linear-gradient(90deg, var(--primary) 0%, #29578a 100%);
}

.stat-card-secondary::before{
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.stat-card-tertiary::before{
    background: linear-gradient(90deg, #5b5bd6 0%, #7c3aed 100%);
}

.stat-card-head{
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-dot{
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    opacity: .8;
}

.stat-card-primary .stat-dot{ color: var(--primary); }
.stat-card-secondary .stat-dot{ color: #0f766e; }
.stat-card-tertiary .stat-dot{ color: #5b5bd6; }

.stat-label{
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.stat-value{
    margin-top: 14px;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 600;
    color: var(--text);
}

.stat-meta{
    margin-top: 11px;
    font-size: 12px;
    line-height: 1.6;
    color: #7b8794;
    font-weight: 400;
}

/* PANELS */

.panel-card{
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: visible;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.panel-card-head{
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,251,255,.96) 100%);
    position: relative;
}

.panel-card-body{
    padding: 20px;
    position: relative;
}

.panel-kicker{
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 500;
    margin-bottom: 6px;
}

.panel-title{
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* MODULES */

.module-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.module-card{
    position: relative;
    display: block;
    padding: 16px 16px 15px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    transition: .16s ease;
}

.module-card:hover{
    transform: translateY(-1px);
    border-color: rgba(23,58,99,.11);
    box-shadow: 0 10px 20px rgba(15,23,42,.04);
}

.module-card::after{
    content: "→";
    position: absolute;
    right: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.module-card-title{
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 5px;
    padding-right: 38px;
    letter-spacing: -0.01em;
}

.module-card-text{
    font-size: 12px;
    line-height: 1.68;
    color: #7b8794;
    padding-right: 38px;
    font-weight: 400;
}

/* SUMMARY LIST */

.summary-list{
    display: grid;
    gap: 10px;
}

.summary-item{
    padding: 14px 14px 13px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.summary-item-title{
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.summary-item-text{
    font-size: 12px;
    line-height: 1.62;
    color: #7b8794;
    font-weight: 400;
}

/* TABLES */

.table-wrap{
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

.table-ui{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
    position: relative;
    z-index: 1;
}

.table-ui thead th{
    padding: 13px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-2);
    background: #fbfcfe;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table-ui tbody td{
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 13px;
    color: var(--text-soft);
    background: rgba(255,255,255,.88);
}

.table-ui tbody tr:hover td{
    background: #fcfdff;
}

.table-id{
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
}

.table-user{
    display: grid;
    gap: 4px;
}

.table-user-name{
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

.table-user-email{
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 400;
}

.table-title-cell{
    display: grid;
    gap: 4px;
}

.table-title-main{
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

.table-route{
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-word;
}

.table-slug{
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f7fa;
    border: 1px solid #e6ebf1;
    color: #5b6b7c;
    font-size: 12px;
    font-weight: 400;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: .01em;
}

.table-users tbody td:nth-child(5){
    white-space: nowrap;
}

.table-menus tbody td:nth-child(3){
    max-width: 420px;
}

.table-levels tbody td:nth-child(3),
.table-groups tbody td:nth-child(3){
    white-space: nowrap;
}

/* BADGES */

.badge{
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.badge::before{
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    opacity: .85;
}

.badge-primary{
    background: var(--primary-soft);
    border-color: rgba(23,58,99,.08);
    color: var(--primary);
}

.badge-success{
    background: var(--success-soft);
    border-color: var(--success-line);
    color: var(--success);
}

.badge-danger{
    background: var(--danger-soft);
    border-color: var(--danger-line);
    color: var(--danger);
}

.badge-muted{
    background: #f4f7fa;
    border-color: #e6ebf1;
    color: #617083;
}

/* EMPTY */

.empty-state{
    padding: 28px 18px;
    text-align: center;
    color: var(--muted);
}

.empty-state-lg{
    padding: 40px 18px;
}

.empty-state-title{
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.empty-state-text{
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto;
}

.empty-inline{
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

/* ACTIONS */

.actions-inline{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.list-pagination{
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.toolbar{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* FORM */

.panel-card-form{
    max-width: 820px;
}

.form-ui{
    display: grid;
    gap: 18px;
}

.form-grid{
    display: grid;
    gap: 18px;
}

.form-row{
    display: grid;
    gap: 16px;
}

.form-row-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field{
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field-head{
    display: grid;
    gap: 4px;
}

.label{
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: -0.01em;
}

.help{
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 400;
}

.error-text{
    font-size: 12px;
    line-height: 1.5;
    color: var(--danger);
    font-weight: 400;
}

.input,
.select,
.textarea{
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    transition: .14s ease;
}

.textarea{
    min-height: 104px;
    padding: 10px 12px;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder{
    color: #9aa6b2;
    font-weight: 400;
}

.input:focus,
.select:focus,
.textarea:focus{
    outline: none;
    border-color: rgba(23,58,99,.28);
    box-shadow: 0 0 0 3px rgba(23,58,99,.07);
}

.input-error{
    border-color: rgba(180,35,24,.32);
    background: #fffafa;
}

.group-selector{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.group-option{
    display: block;
    cursor: pointer;
}

.group-option input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.group-option-box{
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    display: flex;
    align-items: center;
    padding: 0 14px;
    transition: .15s ease;
}

.group-option:hover .group-option-box{
    border-color: rgba(23,58,99,.14);
    background: var(--surface-soft);
}

.group-option input:checked + .group-option-box{
    border-color: rgba(23,58,99,.20);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px rgba(23,58,99,.06);
}

.group-option-title{
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.toggle-card{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    cursor: pointer;
    transition: .14s ease;
}

.toggle-card:hover{
    border-color: rgba(23,58,99,.14);
}

.toggle-card input{
    margin-top: 2px;
    accent-color: var(--primary);
}

.toggle-card-copy{
    display: grid;
    gap: 4px;
}

.toggle-card-title{
    font-size: 13px;
    line-height: 1.3;
    color: var(--text);
    font-weight: 500;
}

.toggle-card-text{
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
}

.form-actions{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
    padding-top: 6px;
}

/* BUTTONS */

.btn{
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 12.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: .15s ease;
    white-space: nowrap;
}

.btn-primary{
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover{
    background: #1f4b7a;
}

.btn-secondary{
    background: #fff;
    border-color: var(--line);
    color: var(--text-soft);
}

.btn-secondary:hover{
    border-color: rgba(23,58,99,.18);
    color: var(--primary);
}

.btn-danger{
    background: #fff;
    border-color: var(--danger-line);
    color: var(--danger);
}

.btn-danger:hover{
    background: var(--danger-soft);
}

.btn-sm{
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

/* ALERTS */

.alert{
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 13px 15px;
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.65;
    font-weight: 400;
}

.alert-success{
    background: var(--success-soft);
    border-color: var(--success-line);
    color: var(--success);
}

.alert-error{
    background: var(--danger-soft);
    border-color: var(--danger-line);
    color: var(--danger);
}

.alert-warning{
    background: var(--warning-soft);
    border-color: var(--warning-line);
    color: var(--warning);
}

/* AUTH PAGE */

.auth-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card{
    width: 100%;
    max-width: 392px;
    padding: 34px 30px 28px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-sm);
}

.auth-header{
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #29578a 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
}

.auth-title{
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.auth-subtitle{
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 400;
}

.auth-form{
    display: grid;
    gap: 18px;
}

.auth-form .field{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input{
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    transition: .14s ease;
}

.auth-input::placeholder{
    color: #9aa6b2;
    font-weight: 400;
}

.auth-input:focus{
    outline: none;
    border-color: rgba(23,58,99,.28);
    box-shadow: 0 0 0 3px rgba(23,58,99,.07);
}

.field-note{
    min-height: 16px;
}

.field-note-empty{
    height: 16px;
}

.auth-form .error-text{
    min-height: 16px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--danger);
    font-weight: 400;
}

.auth-remember{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 400;
    margin-top: -2px;
}

.auth-remember input{
    accent-color: var(--primary);
}

.auth-actions{
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.auth-link{
    font-size: 12px;
    color: var(--primary);
    text-align: right;
    transition: .15s ease;
    font-weight: 400;
}

.auth-link:hover{
    text-decoration: underline;
}

.auth-submit{
    width: 100%;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(180deg, #173a63 0%, #1f4b7a 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition:
        background .18s ease,
        box-shadow .18s ease,
        transform .12s ease;
    box-shadow: 0 6px 16px rgba(23,58,99,.18);
}

.auth-submit:hover{
    background: linear-gradient(180deg, #1f4b7a 0%, #265b92 100%);
    box-shadow: 0 8px 20px rgba(23,58,99,.22);
}

.auth-submit:active{
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(23,58,99,.15);
}

.auth-submit:focus{
    outline: none;
    box-shadow:
        0 8px 20px rgba(23,58,99,.22),
        0 0 0 3px rgba(23,58,99,.10);
}

/* ERROR PAGE */

.error-page{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
}

.error-card{
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 36px 28px 30px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-sm);
}

.error-code{
    font-size: 42px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: var(--primary);
    margin-bottom: 10px;
}

.error-title{
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.error-text{
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 20px;
}

.error-actions{
    display: flex;
    justify-content: center;
}

/* FILE UPLOAD */

.file-upload{
    position: relative;
    border: 1px dashed #c9d4de;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border-radius: 15px;
    padding: 15px;
    transition: .16s ease;
    overflow: hidden;
}

.file-upload:hover{
    border-color: #a7b7c6;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.file-upload.is-dragover{
    border-color: #29578a;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%);
    box-shadow: 0 0 0 4px rgba(41,87,138,.07);
}

.file-upload.has-file{
    border-color: var(--success-line);
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
}

.file-upload input[type="file"]{
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-ui{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.file-upload-copy{
    min-width: 0;
    flex: 1 1 280px;
}

.file-upload-title{
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
}

.file-upload-name{
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    word-break: break-word;
    font-weight: 400;
}

.file-upload-pill{
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(23,58,99,.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.file-upload.has-file .file-upload-pill{
    background: var(--success-soft);
    border-color: var(--success-line);
    color: var(--success);
}

/* RESPONSIVE */

@media (max-width: 1080px){
    .backops-topbar-inner{
        grid-template-columns: 1fr;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .topbar-left{
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .topbar-nav{
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .topbar-right{
        justify-content: flex-start;
    }

    .dashboard-grid-top,
    .dashboard-grid-bottom,
    .module-grid{
        grid-template-columns: 1fr;
    }

    .form-row-2,
    .group-selector{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px){
    .page-wrap{
        padding: 18px 14px 24px;
    }

    .backops-topbar-inner{
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-title{
        font-size: 24px;
    }

    .stat-value{
        font-size: 30px;
    }

    .panel-card-head{
        padding-left: 16px;
        padding-right: 16px;
    }

    .panel-card-body{
    padding: 20px;
    position: relative;
    overflow: visible;
}

    .file-upload-ui{
        flex-direction: column;
        align-items: flex-start;
    }

    .file-upload-pill{
        width: 100%;
        justify-content: center;
    }

    .form-actions{
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn{
        width: 100%;
    }

    .list-pagination{
        justify-content: center;
    }
}

/* MOTION / SAFE */

@media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* FORM CENTERING */

.panel-card-form{
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}


  /* entrada suave de pantalla */
.page-head,
.panel-card,
.stat-card,
.auth-card,
.error-card{
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity .38s ease,
        transform .38s ease;
}

html.ui-ready .page-head,
html.ui-ready .panel-card,
html.ui-ready .stat-card,
html.ui-ready .auth-card,
html.ui-ready .error-card{
    opacity: 1;
    transform: translateY(0);
}

/* pequeños delays elegantes */
html.ui-ready .page-head{ transition-delay: .04s; }
html.ui-ready .stat-card:nth-child(1),
html.ui-ready .panel-card:nth-child(1){ transition-delay: .08s; }
html.ui-ready .stat-card:nth-child(2){ transition-delay: .12s; }
html.ui-ready .stat-card:nth-child(3),
html.ui-ready .panel-card:nth-child(2){ transition-delay: .16s; }

@media (prefers-reduced-motion: reduce){
    .page-head,
    .panel-card,
    .stat-card,
    .auth-card,
    .error-card{
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}



     .po-form-wrap .field .input,
        .po-form-wrap .field .select,
        .po-form-wrap .field .textarea {
            width: 100%;
            box-sizing: border-box;
            min-width: 0;
        }

        .po-form-wrap .dropdown-item {
            border: 0;
            background: transparent;
            text-align: left;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            width: 100%;
        }

        .po-form-wrap .dropdown-item:hover {
            background: #f3f4f6;
        }

        .po-form-wrap .summary-list {
            display: grid;
            gap: 10px;
        }

        .po-lines {
            display: grid;
            gap: 16px;
        }

        .po-line {
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            background: #fff;
            overflow: hidden;
        }

        .po-line-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid #eef2f7;
            background: #fafafa;
        }

        .po-line-title {
            font-size: 14px;
            font-weight: 700;
            color: #111827;
        }

        .po-line-body {
            padding: 16px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .po-line-span-2 {
            grid-column: 1 / -1;
        }

        .po-inline-checks {
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }

        .po-total-box {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            font-weight: 700;
        }

        .po-catalog-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            align-items: start;
        }

        .po-catalog-grid .select {
            min-height: 180px;
        }

        .po-help {
            font-size: 12px;
            color: #6b7280;
        }

        .po-field-compact .label {
            margin-bottom: 6px;
            display: block;
        }

        .po-field-compact .select {
            min-height: 40px;
            padding-top: 8px;
            padding-bottom: 8px;
        }

        @media (max-width: 980px) {
            .po-line-body {
                grid-template-columns: 1fr;
            }

            .po-line-span-2 {
                grid-column: auto;
            }
        }


.file-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.file-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #111827;
    text-decoration: none;
}

.po-files-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.badge-success-soft {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.badge-danger-soft {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
}

.badge-warning-soft {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}


        .receipt-line {
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            padding: 14px;
            margin-bottom: 14px;
            background: #fff;
        }
        .receipt-line-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .receipt-line-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }
        .receipt-line-span-2 {
            grid-column: 1 / -1;
        }
        .receipt-meta {
            display: grid;
            gap: 4px;
            margin-top: 6px;
            font-size: 13px;
            color: #4b5563;
        }
        .is-hidden {
            display: none !important;
        }
        @media (max-width: 980px) {
            .receipt-line-grid {
                grid-template-columns: 1fr;
            }
            .receipt-line-span-2 {
                grid-column: auto;
            }
        }


/*create   purchase_orders/receipts/create.blade.php*/

    
        .receipt-line {
            border: 1px solid #d7dee8;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 16px;
            background: #fff;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
        }

        .receipt-line--pending {
            border-left: 5px solid #f59e0b;
        }

        .receipt-line--partial {
            border-left: 5px solid #3b82f6;
        }

        .receipt-line--closed {
            border-left: 5px solid #10b981;
            opacity: .92;
        }

        .receipt-line-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 14px;
        }

        .receipt-line-title {
            display: grid;
            gap: 6px;
        }

        .receipt-line-kicker {
            font-size: 12px;
            font-weight: 700;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: .4px;
        }

        .receipt-line-main {
            font-size: 17px;
            font-weight: 700;
            color: #111827;
            line-height: 1.25;
        }

        .receipt-line-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .receipt-meta-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }

        .receipt-meta-box {
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 10px 12px;
            background: #fafafa;
        }

        .receipt-meta-label {
            font-size: 11px;
            font-weight: 700;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: .35px;
            margin-bottom: 4px;
        }

        .receipt-meta-value {
            font-size: 15px;
            font-weight: 700;
            color: #111827;
            line-height: 1.2;
        }

        .receipt-meta-sub {
            font-size: 12px;
            color: #6b7280;
            margin-top: 3px;
        }

        .receipt-line-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .receipt-line-span-2 {
            grid-column: 1 / -1;
        }

        .is-hidden {
            display: none !important;
        }

        .badge-soft {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
        }

        .badge-soft-warning {
            background: #ffedd5;
            color: #9a3412;
        }

        .badge-soft-info {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .badge-soft-success {
            background: #dcfce7;
            color: #166534;
        }

        .badge-soft-neutral {
            background: #f3f4f6;
            color: #374151;
        }

        @media (max-width: 1100px) {
            .receipt-meta-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 980px) {
            .receipt-line-grid {
                grid-template-columns: 1fr;
            }

            .receipt-line-span-2 {
                grid-column: auto;
            }

            .receipt-meta-grid {
                grid-template-columns: 1fr;
            }
        }
/*show inventario existencias*/


.badge-neutral-soft{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    color:#4b5563;
    background:#f3f4f6;
}

.modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(17,24,39,.45);
    z-index:1200;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.modal-card{
    width:100%;
    background:#fff;
    border-radius:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.18);
    overflow:hidden;
}

.modal-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
    border-bottom:1px solid #e5e7eb;
}

.modal-title{
    margin:0;
    font-size:18px;
    font-weight:700;
    color:#111827;
}

.modal-close{
    border:none;
    background:transparent;
    font-size:26px;
    line-height:1;
    cursor:pointer;
    color:#6b7280;
}

.modal-body{
    padding:20px;
}


/*index inventario stats*/

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.stat-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:6px;
    transition:.18s ease;
}

.stat-card:hover{
    border-color:#d1d5db;
    box-shadow:0 10px 24px rgba(17,24,39,.06);
}

.stat-label{
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#6b7280;
}

.stat-value{
    font-size:28px;
    font-weight:800;
    color:#111827;
}

.combo-options-list {
    -webkit-overflow-scrolling: touch;
}


@media (max-width: 992px){
    .stats-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px){
    .stats-grid{
        grid-template-columns:1fr;
    }
}


/* PROMOCIONES FORMM */


        .promo-help-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 14px;
            color: #334155;
            font-size: 13px;
            line-height: 1.55;
        }

        .promo-help-card strong { color: #0f172a; }

        .promo-tip-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .promo-tip {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 10px;
        }

        .product-picker {
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            overflow: hidden;
            background: #fff;
        }

        .product-picker-search {
            padding: 10px;
            border-bottom: 1px solid #e5e7eb;
            background: #f8fafc;
        }

        .product-picker-list {
            max-height: 320px;
            overflow: auto;
        }

        .product-option {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 10px 12px;
            border-bottom: 1px solid #f1f5f9;
        }

        .product-option:last-child { border-bottom: 0; }

        .product-option-title {
            font-weight: 700;
            color: #0f172a;
        }

        .product-option-meta {
            color: #64748b;
            font-size: 12px;
            margin-top: 2px;
        }

        .is-hidden-by-filter,
        .is-hidden-by-venue {
            display: none !important;
        }

        @media (max-width: 800px) {
            .promo-tip-grid { grid-template-columns: 1fr; }
        }
   
  /***********************POS**************/


.pos-shell-checkout {
    grid-template-columns: minmax(0, 1fr) 520px;
}

.pos-checkout {
    position: sticky;
    top: 12px;
}

.pos-checkout-main {
    overflow: hidden;
}

.pos-card-head-tight {
    padding: 10px 14px;
}

.pos-checkout-body {
    display: grid;
    gap: 10px;
    max-height: calc(100vh - 330px);
    overflow: auto;
}

.pos-cart-compact {
    max-height: 245px;
    overflow: auto;
    padding-right: 2px;
}

.cart-line-compact {
    padding: 8px 10px;
    margin-bottom: 8px;
}

.qty-row.compact {
    margin-top: 6px;
    gap: 6px;
}

.qty-row.compact .qty-btn {
    width: 32px;
    height: 32px;
}

.qty-row.compact .qty-input {
    width: 58px;
    height: 32px;
}

.cart-line-total {
    margin-left: auto;
    font-weight: 900;
    min-width: 74px;
    text-align: right;
}

.pos-promo-loyalty-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pos-mini-box {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    background: #f8fafc;
}

.pos-mini-title {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.loyalty-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.loyalty-reminder {
    font-size: 11px;
    color: #92400e;
    font-weight: 800;
}

.pos-pay-zone {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
}

.pos-pay-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pay-method-btn {
    padding: 10px;
    min-height: 44px;
}

.payments-compact {
    max-height: 260px;
    overflow: auto;
}

.payment-line-compact {
    padding: 9px;
    margin-bottom: 8px;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Botón cerrar caja (base) */
.btn-close-cash {
    background: #f8fafc; /* gris muy claro */
    color: #334155;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    transition: all .18s ease;
}

/* Hover principal */
.btn-close-cash:hover {
    background: #fee2e2; /* rojo suave */
    color: #b91c1c;
    border-color: #fecaca;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.15);
    transform: translateY(-1px);
}

/* Active (click) */
.btn-close-cash:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.2);
}

/* Disabled */
.btn-close-cash:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-close-cash:hover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.payment-amount-input {
    font-size: 20px;
    font-weight: 900;
}

.pos-summary-sticky {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 12px 14px;
}

.pos-summary-sticky .summary-row {
    padding: 3px 0;
}

.pos-summary-sticky .summary-row.total {
    font-size: 22px;
    margin-top: 4px;
    padding-top: 8px;
}

.summary-row.received {
    color: #1d4ed8;
    font-size: 17px;
    font-weight: 900;
}

.summary-row.change {
    color: #047857;
    font-size: 18px;
    font-weight: 900;
}

.pos-cashier-hint {
    margin-top: 8px;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 8px;
    font-size: 12px;
}

.pos-category-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

@media (max-width: 1180px) {
    .pos-shell-checkout {
        grid-template-columns: 1fr;
    }

    .pos-checkout {
        position: static;
    }

    .pos-checkout-body,
    .pos-cart-compact,
    .payments-compact {
        max-height: none;
    }
}

@media (max-width: 720px) {
    .pos-promo-loyalty-row,
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .pos-pay-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

    .pos-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 430px;
        gap: 18px;
        align-items: start;
    }

    .pos-top {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }

    .pos-info-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 14px;
    }

    .pos-info-label {
        font-size: 12px;
        color: #64748b;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .pos-info-value {
        font-size: 15px;
        font-weight: 800;
        color: #0f172a;
        margin-top: 4px;
    }

    .pos-products-card,
    .pos-side-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        overflow: hidden;
    }

    .pos-card-head {
        padding: 14px;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
    }

    .pos-card-title {
        font-size: 17px;
        font-weight: 900;
        margin: 0;
        color: #0f172a;
    }

    .pos-card-body {
        padding: 14px;
    }

    .pos-product-search {
        margin-bottom: 12px;
    }

    .pos-product-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .pos-product-btn {
        width: 100%;
        border: 1px solid #e5e7eb;
        background: #fff;
        border-radius: 16px;
        padding: 14px;
        text-align: left;
        cursor: pointer;
        min-height: 118px;
        transition: .15s ease;
    }

    .pos-product-btn:hover {
        border-color: #2563eb;
        box-shadow: 0 8px 22px rgba(15,23,42,.08);
        transform: translateY(-1px);
    }

    .pos-product-name {
        font-weight: 900;
        color: #0f172a;
        font-size: 15px;
        line-height: 1.2;
    }

    .pos-product-meta {
        margin-top: 8px;
        font-size: 12px;
        color: #64748b;
    }

    .pos-product-price {
        margin-top: 10px;
        font-size: 20px;
        font-weight: 900;
        color: #111827;
    }

    .pos-side-stack {
        display: grid;
        gap: 14px;
    }

    .cart-line {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 10px;
        margin-bottom: 10px;
    }

    .cart-line-title {
        font-weight: 900;
        color: #0f172a;
    }

    .cart-line-meta {
        color: #64748b;
        font-size: 12px;
        margin-top: 2px;
    }

    .qty-row {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-top: 10px;
    }

    .qty-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #f8fafc;
        font-weight: 900;
        cursor: pointer;
    }

    .qty-input {
        width: 70px;
        text-align: center;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 5px 0;
        font-weight: 700;
    }

    .summary-row.total {
        font-size: 24px;
        font-weight: 900;
        border-top: 1px solid #e5e7eb;
        margin-top: 8px;
        padding-top: 10px;
    }

    .summary-row.pending {
        color: #b45309;
        font-size: 17px;
        font-weight: 900;
    }

    .pos-pay-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .pay-method-btn {
        border: 1px solid #dbeafe;
        background: #eff6ff;
        color: #1d4ed8;
        border-radius: 14px;
        padding: 12px;
        font-weight: 900;
        cursor: pointer;
    }

    .payment-line {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 10px;
        margin-bottom: 10px;
    }

    .payment-line-head {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        align-items: center;
        margin-bottom: 8px;
    }

    .payment-line-title {
        font-weight: 900;
    }

    .hidden-pos {
        display: none !important;
    }

    .loyalty-box {
        background: #f8fafc;
        border: 1px dashed #cbd5e1;
        border-radius: 14px;
        padding: 10px;
        margin-top: 10px;
    }

    .status-pill {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 4px 9px;
        font-size: 12px;
        font-weight: 900;
        background: #dcfce7;
        color: #166534;
    }

    .status-pill.warn {
        background: #fef3c7;
        color: #92400e;
    }

    .status-pill.danger {
        background: #fee2e2;
        color: #991b1b;
    }

    @media (max-width: 1180px) {
        .pos-shell {
            grid-template-columns: 1fr;
        }

        .pos-product-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 720px) {
        .pos-top {
            grid-template-columns: 1fr;
        }

        .pos-product-grid {
            grid-template-columns: 1fr;
        }
    }


    .category-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 12px;
}

.category-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
}

.category-chip.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.pos-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pos-category-btn {
    min-height: 150px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
    text-align: center;
    transition: .15s ease;
}

.pos-category-btn:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 26px rgba(15,23,42,.10);
    transform: translateY(-1px);
}

.pos-category-icon {
    font-size: 38px;
}

.pos-category-name {
    margin-top: 10px;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
}

.pos-category-help {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .pos-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pos-category-grid {
        grid-template-columns: 1fr;
    }
}

.pos-top-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

@media (max-width: 720px) {
    .pos-top-actions {
        grid-template-columns: 1fr;
    }
}


.category-chip,
.pos-category-btn,
.pay-method-btn {
    position: relative;
    transition: 
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.category-chip:hover {
    background: #f1f5f9;
    border-color: rgba(23, 58, 99, .22);
    color: #173a63;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.category-chip.active:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.pos-category-btn:hover {
    border-color: rgba(23, 58, 99, .26);
    background: linear-gradient(180deg, #ffffff, #f3f7fb);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
    transform: translateY(-2px);
}

.pay-method-btn:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #173a63;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}

.pay-method-btn:active:not(:disabled),
.category-chip:active,
.pos-category-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.pay-method-btn:disabled,
.pay-method-btn.is-disabled,
.pos-charge-btn:disabled,
.pos-charge-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.15);
    box-shadow: none !important;
    transform: none !important;
}

.pos-charge-btn {
    width: 100%;
    justify-content: center;
    font-size: 18px;
}

.pos-charge-btn:not(:disabled):hover {
    background: #1f4b7a;
    box-shadow: 0 12px 24px rgba(23, 58, 99, .18);
    transform: translateY(-1px);
}

.category-icon {
    font-size: 16px;
    margin-right: 6px;
    display: inline-block;
    transform: translateY(1px);
}


  /******************************************/


/*************iconoes categoria*****************/

        .emoji-selected-box {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 54px;
            gap: 10px;
            align-items: center;
        }

        .emoji-input {
            font-size: 22px;
            font-weight: 700;
        }

        .emoji-preview {
            height: 42px;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            background: #f8fafc;
            display: grid;
            place-items: center;
            font-size: 26px;
        }

        .emoji-grid {
            display: grid;
            grid-template-columns: repeat(10, minmax(0, 1fr));
            gap: 8px;
            margin-top: 10px;
        }

        .emoji-btn {
            height: 42px;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            background: #fff;
            font-size: 22px;
            cursor: pointer;
            transition: .15s ease;
        }

        .emoji-btn:hover {
            background: #f1f5f9;
            border-color: rgba(23, 58, 99, .25);
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
        }

        .emoji-btn.is-active {
            background: #eef4fb;
            border-color: rgba(23, 58, 99, .35);
            box-shadow: inset 0 0 0 1px rgba(23, 58, 99, .08);
        }

        @media (max-width: 720px) {
            .emoji-grid {
                grid-template-columns: repeat(6, minmax(0, 1fr));
            }
        }

        .pos-product-btn.is-out-stock {
    opacity: .55;
    border-color: #f1c9c5;
    background: #fff3f2;
}

.pos-product-btn.is-out-stock .pos-product-price {
    color: #b42318;
}



/**TICKET**/


    .ticket-page {
        display: grid;
        place-items: start center;
        padding: 20px;
    }

    .ticket-actions {
        display: flex;
        gap: 10px;
        margin-bottom: 16px;
    }

    .ticket {
        width: 80mm;
        background: #fff;
        color: #000;
        padding: 10px;
        font-family: Arial, sans-serif;
        font-size: 12px;
        line-height: 1.25;
    }

    .ticket-logo {
        text-align: center;
        margin-bottom: 10px;
    }

    .ticket-logo img {
        max-width: 52mm;
        max-height: 30mm;
        object-fit: contain;
    }

    .ticket-center {
        text-align: center;
    }

    .ticket-title {
        font-weight: 900;
        font-size: 14px;
        margin: 8px 0;
        text-align: center;
    }

    .ticket-line {
        border-top: 1px dashed #000;
        margin: 8px 0;
    }

    .ticket-row {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .ticket-row strong {
        font-weight: 900;
    }

    .ticket-item-name {
        font-weight: 700;
    }

    .ticket-small {
        font-size: 11px;
    }

    .ticket-total {
        font-size: 15px;
        font-weight: 900;
    }

    @media print {
        body * {
            visibility: hidden !important;
        }

        .ticket,
        .ticket * {
            visibility: visible !important;
        }

        .ticket {
            position: absolute;
            left: 0;
            top: 0;
            width: 80mm;
            padding: 0;
        }

        .ticket-actions,
        header,
        nav,
        aside,
        .page-head {
            display: none !important;
        }

        @page {
            size: 80mm auto;
            margin: 4mm;
        }
    }


    /*CIERRE CAJA VISTA*/



.close-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}



.close-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

.close-three > .panel-card {
    height: 100%;
}

.close-denom-card .panel-card-body {
    max-height: 520px;
    overflow-y: auto;
}

.close-denom-card table,
.close-denom-card .denom-table {
    font-size: 12px;
}

.close-denom-card input {
    min-height: 34px;
    font-size: 13px;
    padding: 6px 8px;
}

.close-denom-card .field {
    margin-bottom: 8px;
}

.close-denom-card textarea {
    min-height: 70px;
}



.close-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.close-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.close-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.close-value {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.close-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.close-section-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #0f172a;
}

.close-list-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.close-list-row:last-child {
    border-bottom: 0;
}

.close-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #eef2ff;
    color: #3730a3;
    white-space: nowrap;
}

.close-pill-danger {
    background: #fee2e2;
    color: #991b1b;
}

.close-pill-ok {
    background: #dcfce7;
    color: #166534;
}

.close-pill-warn {
    background: #fef3c7;
    color: #92400e;
}

.close-table-wrap {
    overflow-x: auto;
}

.close-table {
    width: 100%;
    border-collapse: collapse;
}

.close-table th {
    text-align: left;
    font-size: 12px;
    color: #64748b;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.close-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    vertical-align: top;
}

.close-muted {
    color: #64748b;
    font-size: 12px;
}

.close-highlight {
    font-weight: 900;
    color: #0f172a;
}

.close-denom-card .denom-table,
.close-denom-card table {
    width: 100%;
}

.close-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.close-table-scroll table {
    min-width: 980px;
}

.close-table-scroll.promos table {
    min-width: 1150px;
}

.close-table-scroll.movements table {
    min-width: 900px;
}

.close-table-scroll.tickets table {
    min-width: 1000px;
}

.close-method-link {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.close-method-link:hover {
    text-decoration: underline;
}

@media (max-width: 1250px) {
    .close-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .close-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .close-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .close-grid {
        grid-template-columns: 1fr;
    }
}


/*desglose por metodo*/


<style>
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.detail-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.detail-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-value {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 900;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-scroll table {
    min-width: 980px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th {
    text-align: left;
    font-size: 12px;
    color: #64748b;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.detail-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    vertical-align: top;
}

.detail-muted {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}


/*CIERRE DEL DIA*/


.daily-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}
.daily-card {
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    padding:16px;
    box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.daily-label {
    font-size:12px;
    color:#64748b;
    font-weight:800;
    text-transform:uppercase;
}
.daily-value {
    margin-top:6px;
    font-size:24px;
    font-weight:900;
}
.daily-table-scroll {
    width:100%;
    overflow-x:auto;
}
.daily-table {
    width:100%;
    min-width:1050px;
    border-collapse:collapse;
}
.daily-table th {
    text-align:left;
    font-size:12px;
    color:#64748b;
    padding:10px;
    border-bottom:1px solid #e2e8f0;
    white-space:nowrap;
}
.daily-table td {
    padding:10px;
    border-bottom:1px solid #f1f5f9;
    font-size:13px;
    vertical-align:top;
}
.daily-section {
    margin-bottom:18px;
}
.daily-pill {
    display:inline-flex;
    padding:4px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    background:#eef2ff;
    color:#3730a3;
}
.daily-danger {
    background:#fee2e2;
    color:#991b1b;
}
.daily-ok {
    background:#dcfce7;
    color:#166534;
}
@media(max-width:1000px){
    .daily-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
    .daily-grid{grid-template-columns:1fr;}
}

.daily-cash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.daily-cash-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.daily-cash-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.daily-cash-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
}

.daily-cash-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

.daily-denom-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
}

.daily-denom-table th {
    text-align: left;
    font-size: 12px;
    color: #64748b;
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.daily-denom-table td {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.daily-denom-table tfoot th {
    padding: 10px 8px;
    font-size: 14px;
    color: #0f172a;
    border-top: 2px solid #e2e8f0;
}

@media (max-width: 900px) {
    .daily-cash-grid {
        grid-template-columns: 1fr;
    }
}

.daily-print-btn {
    border: 0;
    background: #f8fafc;
    color: #334155;
    border-radius: 10px;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 13px;
}

.daily-print-btn:hover {
    background: #e2e8f0;
}

.daily-ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.daily-export-btn {
    text-decoration: none;
    font-size: 13px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 7px 10px;
    border-radius: 10px;
    font-weight: 800;
}

.daily-export-btn:hover {
    background: #e2e8f0;
}

@media print {
    body.print-cash-card * {
        visibility: hidden !important;
    }

    body.print-cash-card .print-target,
    body.print-cash-card .print-target * {
        visibility: visible !important;
    }

    body.print-cash-card .print-target {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
        box-shadow: none !important;
        border: 0 !important;
        padding: 8px !important;
    }

    body.print-cash-card .daily-print-btn {
        display: none !important;
    }
}


/*preorders*/


.preorder-screen {
    display:grid;
    place-items:center;
    min-height:70vh;
}

.preorder-card {
    width:min(720px, 95vw);
    background:#fff;
    border-radius:28px;
    padding:28px;
    text-align:center;
    box-shadow:0 24px 70px rgba(15,23,42,.15);
}

.preorder-folio {
    font-size:110px;
    font-weight:1000;
    letter-spacing:.08em;
    color:#0f172a;
    line-height:1;
}

.preorder-help {
    font-size:22px;
    font-weight:800;
    color:#475569;
    margin-top:14px;
}

.preorder-total {
    font-size:28px;
    font-weight:900;
    margin-top:18px;
}

.preorder-items {
    margin-top:22px;
    text-align:left;
}

.preorder-row {
    display:flex;
    justify-content:space-between;
    border-bottom:1px dashed #e2e8f0;
    padding:8px 0;
}

.qr-box {
    margin:24px auto 0;
    width:220px;
    height:220px;
    background:#f8fafc;
    border:2px dashed #cbd5e1;
    display:grid;
    place-items:center;
    font-weight:900;
    color:#334155;
}

/*preorders index*/


.order-board-scroll{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
    align-items:start;
}

.order-column-compact{
    min-width:0;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}

.order-column-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:14px 16px;
    border-bottom:1px solid var(--line);
    background:#fbfcfe;
    position:sticky;
    top:0;
    z-index:2;
}

.order-column-title{
    font-size:15px;
    font-weight:800;
    color:var(--text);
}

.order-column-count{
    min-width:30px;
    height:30px;
    padding:0 10px;
    border-radius:999px;
    background:var(--primary-soft);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
}

.order-column-body{
    padding:12px;
    display:grid;
    gap:12px;
    max-height:calc(100vh - 260px);
    overflow-y:auto;
}

.order-card-compact{
    border:1px solid var(--line);
    border-radius:16px;
    padding:14px;
    background:#fff;
}

.order-ticket-main{
    font-size:26px;
    line-height:1;
    font-weight:900;
    color:var(--primary);
    letter-spacing:-.04em;
}

.order-meta{
    margin-top:6px;
    font-size:12px;
    color:var(--muted);
}

.order-items{
    margin-top:12px;
    display:grid;
    gap:6px;
}

.order-item{
    font-size:13px;
    line-height:1.35;
    color:var(--text-soft);
}

.order-actions{
    margin-top:14px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.order-actions form{
    margin:0;
}

.order-touch-btn{
    width:100%;
    min-height:42px;
    border:0;
    border-radius:12px;
    font-size:13px;
    font-weight:900;
}

.order-touch-btn{
    width:100%;
    min-height:44px;
    border:0;
    border-radius:12px;
    font-size:13px;
    font-weight:900;
    transition:.16s ease;
    cursor:pointer;
    box-shadow:0 6px 14px rgba(15,23,42,.08);
}

.order-touch-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(15,23,42,.14);
    filter:brightness(.97);
}

.order-touch-btn:active{
    transform:translateY(1px);
    box-shadow:0 4px 10px rgba(15,23,42,.10);
}

.order-touch-primary:hover{
    background:#1f4b7a !important;
    color:#fff !important;
}

.order-touch-success:hover{
    background:#15803d !important;
    color:#fff !important;
}

.order-touch-dark:hover{
    background:#0f172a !important;
    color:#fff !important;
}

.order-touch-danger{
    background:#fee2e2;
    color:#991b1b;
}

.order-touch-danger:hover{
    background:#dc2626 !important;
    color:#fff !important;
}

.order-actions-single{
    grid-template-columns:1fr;
}

@media(max-width:1100px){
    .order-board-scroll{
        grid-template-columns:1fr;
    }

    .order-column-body{
        max-height:none;
    }
}



/*vista de pedidos*/


.ready-screen {
    background:#020617;
    color:#fff;
    min-height:90vh;
    padding:40px;
    text-align:center;
}

.ready-title {
    font-size:54px;
    font-weight:1000;
    margin-bottom:30px;
}

.ready-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}

.ready-number {
    background:#16a34a;
    border-radius:28px;
    padding:35px;
    font-size:74px;
    font-weight:1000;
}

@media(max-width:900px){
    .ready-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


.pos-mini-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.pos-mini-row .pos-mini-box{
    width: 100%;
    min-width: 0;
}

.pos-mini-row .pos-mini-box .input,
.pos-mini-row .pos-mini-box .select{
    width: 100%;
}

.pos-mini-row .pos-mini-box > div[style*="display:flex"]{
    width: 100%;
}

@media (min-width: 1100px){
    .pos-mini-row{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pos-mini-row:not(:has(#preorderFolio)){
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px){
    .pos-mini-row{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px){
    .pos-mini-row{
        grid-template-columns: 1fr;
    }
}


/*comandas*/

.venue-toolbar{
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
}

.venue-select{
    min-width:260px;
    max-width:340px;
}

.venue-indicator{
    margin-top:10px;
    font-size:13px;
    color:#475569;
}

.venue-indicator strong{
    color:#0f172a;
    font-weight:800;
}


/*OBSERVACIONES POS*/


.pos-observaciones{
    margin-top:10px;
}

.pos-observaciones textarea{
    resize:none;
    font-size:14px;
    border-radius:12px;
}

.pos-observaciones textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 2px rgba(37,99,235,.15);
}

.order-note{
    margin-top:10px;
    padding:10px 12px;
    border-radius:12px;
    background:#fff7ed;
    color:#9a3412;
    font-size:13px;
    font-weight:900;
    line-height:1.35;
}

/*animacion de orders*/


@keyframes orderNewPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .35);
    }
    50% {
        transform: scale(1.015);
        box-shadow: 0 0 0 8px rgba(37, 99, 235, .10);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.order-card-new{
    animation: orderNewPulse 1.4s ease-in-out infinite;
    border-color: rgba(37, 99, 235, .35) !important;
}

.order-card-new::before{
    content:"Nueva";
    display:inline-flex;
    margin-bottom:8px;
    padding:4px 9px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
    font-size:11px;
    font-weight:900;
    letter-spacing:.03em;
}


.print-toggle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    font-weight:900;
    color:#0f172a;
    cursor:pointer;
}

.print-toggle input{
    width:18px;
    height:18px;
}


/*PRODUCT FILE*/
.product-image-upload{
    min-height: 92px;
    display: flex;
    align-items: center;
    border-radius: 18px;
    border: 1px dashed rgba(23,58,99,.22);
    background:
        radial-gradient(circle at top left, rgba(23,58,99,.07), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.product-image-upload .file-upload-title{
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.product-image-upload .file-upload-name{
    font-size: 12px;
    color: var(--muted);
}

.product-image-upload .file-upload-pill{
    min-height: 36px;
    padding: 0 14px;
    box-shadow: 0 8px 18px rgba(23,58,99,.08);
}

.product-image-preview{
    margin-top: 12px;
    width: 160px;
    height: 116px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-image-preview img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* FIX DROPDOWNS MOBILE TOPBAR */
@media (max-width: 1080px){
    .backops-topbar{
        overflow: visible;
    }

    .backops-topbar-inner,
    .topbar-left,
    .topbar-right{
        overflow: visible;
    }

    .topbar-nav{
        overflow-x: auto;
        overflow-y: visible;
        position: relative;
        padding-bottom: 10px;
    }

    .topbar-nav .dropdown{
        position: static;
    }

    .topbar-nav .dropdown-menu{
        position: fixed;
        left: 14px;
        right: 14px;
        top: 118px;
        width: auto;
        min-width: 0;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        z-index: 60000;
    }

    .topbar-nav .dropdown-menu-right{
        left: 14px;
        right: 14px;
    }
}

@media (max-width: 640px){
    .topbar-nav .dropdown-menu{
        top: 112px;
    }
}


.daily-grid{
    display:grid;
    gap:14px;
    margin-bottom:18px;
}

.daily-grid-4{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.daily-grid-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.daily-card{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(15,23,42,.08);
    border-radius:20px;
    padding:18px;
    background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
    box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.daily-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:4px;
    background:linear-gradient(90deg,#173a63,#38bdf8);
}

.daily-card-pos::before{ background:linear-gradient(90deg,#173a63,#2563eb); }
.daily-card-web::before{ background:linear-gradient(90deg,#0f766e,#14b8a6); }
.daily-card-delivery::before{ background:linear-gradient(90deg,#b45309,#f59e0b); }
.daily-card-total::before{ background:linear-gradient(90deg,#4c1d95,#8b5cf6); }

.daily-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#f1f5f9;
    font-size:21px;
    margin-bottom:12px;
}

.daily-label{
    font-size:12px;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.daily-value{
    margin-top:7px;
    font-size:28px;
    line-height:1;
    font-weight:900;
    color:#0f172a;
    letter-spacing:-.04em;
}

.daily-session-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.daily-session-card{
    display:block;
    border:1px solid rgba(15,23,42,.08);
    border-radius:20px;
    padding:16px;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    box-shadow:0 10px 26px rgba(15,23,42,.04);
    transition:.16s ease;
}

.daily-session-card:hover{
    transform:translateY(-2px);
    border-color:rgba(23,58,99,.18);
    box-shadow:0 16px 34px rgba(15,23,42,.08);
}

.daily-session-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
}

.daily-session-title{
    font-size:16px;
    font-weight:900;
    color:#0f172a;
}

.daily-session-sub{
    margin-top:3px;
    font-size:12px;
    color:#64748b;
}

.daily-session-metrics{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.daily-session-metrics div,
.daily-method-mini div{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:10px;
    background:#f8fafc;
}

.daily-session-metrics span,
.daily-method-mini span{
    display:block;
    font-size:11px;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.daily-session-metrics strong,
.daily-method-mini strong{
    display:block;
    margin-top:4px;
    font-size:14px;
    font-weight:900;
    color:#0f172a;
}

.daily-method-mini{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-top:10px;
}

.daily-money-danger{
    color:#b91c1c !important;
}

.daily-money-ok{
    color:#047857 !important;
}

@media(max-width:1100px){
    .daily-grid-4,
    .daily-grid-3,
    .daily-session-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .daily-method-mini,
    .daily-session-metrics{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:640px){
    .daily-grid-4,
    .daily-grid-3,
    .daily-session-grid,
    .daily-method-mini,
    .daily-session-metrics{
        grid-template-columns:1fr;
    }
}

.daily-alert-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.daily-actions-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.daily-grid{
    display:grid;
    gap:14px;
    margin-bottom:18px;
}

.daily-grid-4{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.daily-grid-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.daily-card{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(15,23,42,.08);
    border-radius:20px;
    padding:18px;
    background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
    box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.daily-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:4px;
    background:linear-gradient(90deg,#173a63,#38bdf8);
}

.daily-card-pos::before{ background:linear-gradient(90deg,#173a63,#2563eb); }
.daily-card-web::before{ background:linear-gradient(90deg,#0f766e,#14b8a6); }
.daily-card-delivery::before{ background:linear-gradient(90deg,#b45309,#f59e0b); }
.daily-card-total::before{ background:linear-gradient(90deg,#4c1d95,#8b5cf6); }

.daily-mini-card .daily-value{
    font-size:24px;
}

.daily-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#f1f5f9;
    font-size:21px;
    margin-bottom:12px;
}

.daily-label{
    font-size:12px;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.daily-value{
    margin-top:7px;
    font-size:28px;
    line-height:1;
    font-weight:900;
    color:#0f172a;
    letter-spacing:-.04em;
}

.daily-ticket-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.daily-export-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 12px;
    border-radius:10px;
    background:#eef4fb;
    color:#173a63;
    border:1px solid rgba(23,58,99,.10);
    font-size:12px;
    font-weight:800;
}

.daily-export-btn:hover{
    background:#dbeafe;
}

.daily-session-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.daily-session-card{
    display:block;
    border:1px solid rgba(15,23,42,.08);
    border-radius:20px;
    padding:16px;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    box-shadow:0 10px 26px rgba(15,23,42,.04);
    transition:.16s ease;
}

.daily-session-card:hover{
    transform:translateY(-2px);
    border-color:rgba(23,58,99,.18);
    box-shadow:0 16px 34px rgba(15,23,42,.08);
}

.daily-session-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
}

.daily-session-title{
    font-size:16px;
    font-weight:900;
    color:#0f172a;
}

.daily-session-sub{
    margin-top:3px;
    font-size:12px;
    color:#64748b;
}

.daily-session-metrics{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.daily-session-metrics div,
.daily-method-mini div{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:10px;
    background:#f8fafc;
}

.daily-session-metrics span,
.daily-method-mini span{
    display:block;
    font-size:11px;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.daily-session-metrics strong,
.daily-method-mini strong{
    display:block;
    margin-top:4px;
    font-size:14px;
    font-weight:900;
    color:#0f172a;
}

.daily-method-mini{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-top:10px;
}

.daily-money-danger{
    color:#b91c1c !important;
}

.daily-money-ok{
    color:#047857 !important;
}

@media(max-width:1100px){
    .daily-grid-4,
    .daily-grid-3,
    .daily-session-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .daily-method-mini,
    .daily-session-metrics{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:640px){
    .daily-grid-4,
    .daily-grid-3,
    .daily-session-grid,
    .daily-method-mini,
    .daily-session-metrics{
        grid-template-columns:1fr;
    }

    .daily-actions-row{
        width:100%;
    }

    .daily-actions-row .btn,
    .daily-actions-row form{
        width:100%;
    }

    .daily-actions-row .btn{
        justify-content:center;
    }
}


.daily-click-row{
    cursor:pointer;
    transition:background .15s ease;
}

.daily-click-row:hover{
    background:#f8fafc;
}

.daily-click-row td:first-child strong{
    color:#173a63;
    text-decoration:underline;
}

.daily-click-row:hover td:first-child strong{
    color:#2563eb;
}

.daily-session-link{
    color:#173a63;
    text-decoration:none;
    font-weight:700;
    cursor:pointer;
    transition:.15s ease;
}

.daily-session-link:hover{
    color:#2563eb;
    text-decoration:underline;
}


.daily-grid-origin,
.daily-grid-kpi{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-card-meta{
    margin-top:8px;
    font-size:12px;
    color:#64748b;
    font-weight:700;
}

.daily-table-cash-summary{
    min-width:max-content;
}

.daily-table-cash-summary th,
.daily-table-cash-summary td{
    white-space:nowrap;
}

.daily-cash-main-cell{
    width:1%;
    min-width:max-content;
}

.daily-session-link-main{
    display:inline-flex;
    align-items:center;
    max-width:none;
}

.daily-table-cash-summary tbody tr:hover td{
    background:#fbfdff;
}

.daily-table-cash-summary td{
    vertical-align:middle;
}

@media(max-width:1100px){
    .daily-grid-origin,
    .daily-grid-kpi{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:640px){
    .daily-grid-origin,
    .daily-grid-kpi{
        grid-template-columns:1fr;
    }
}




            .device-blocked-code{
                text-align:center;
                font-size:42px;
                line-height:1;
                font-weight:900;
                letter-spacing:.08em;
                color:#173a63;
                padding:24px;
                border-radius:20px;
                background:#eef4fb;
                border:1px solid rgba(23,58,99,.10);
                margin-bottom:18px;
            }

            .device-info-grid{
                display:grid;
                grid-template-columns:repeat(2,minmax(0,1fr));
                gap:12px;
            }

            .device-info-box{
                padding:14px;
                border:1px solid rgba(15,23,42,.08);
                border-radius:16px;
                background:#fff;
            }

            .device-info-box span{
                display:block;
                font-size:11px;
                text-transform:uppercase;
                letter-spacing:.08em;
                color:#94a3b8;
                font-weight:800;
            }

            .device-info-box strong{
                display:block;
                margin-top:5px;
                color:#0f172a;
                font-size:14px;
            }

            @media(max-width:640px){
                .device-info-grid{
                    grid-template-columns:1fr;
                }

                .device-blocked-code{
                    font-size:30px;
                }
            }




            .device-info-grid{
                display:grid;
                grid-template-columns:repeat(2,minmax(0,1fr));
                gap:12px;
            }

            .device-info-box{
                padding:14px;
                border:1px solid rgba(15,23,42,.08);
                border-radius:16px;
                background:#fff;
            }

            .device-info-box span{
                display:block;
                font-size:11px;
                text-transform:uppercase;
                letter-spacing:.08em;
                color:#94a3b8;
                font-weight:800;
            }

            .device-info-box strong{
                display:block;
                margin-top:5px;
                color:#0f172a;
                font-size:14px;
            }

            @media(max-width:640px){
                .device-info-grid{
                    grid-template-columns:1fr;
                }
            }



/* VENUE HUB */

.venue-hub-grid{
    display:grid;
    grid-template-columns:1.35fr .85fr;
    gap:16px;
}

.venue-hub-card{
    display:grid;
    gap:18px;
    align-content:space-between;
    padding:22px;
    border:1px solid var(--line);
    border-radius:20px;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
    box-shadow:var(--shadow-sm);
}

.venue-hub-card-main{
    background:
        radial-gradient(circle at top right, rgba(23,58,99,.08), transparent 32%),
        linear-gradient(180deg,#fff 0%,#f8fbff 100%);
}

.venue-hub-title{
    margin:0;
    font-size:20px;
    font-weight:600;
    color:var(--text);
    letter-spacing:-.03em;
}

.venue-hub-text{
    margin:8px 0 0;
    font-size:13px;
    line-height:1.7;
    color:var(--muted);
    max-width:720px;
}

.venue-hub-metrics{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.venue-hub-metrics div,
.venue-fiscal-preview div{
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    padding:13px;
}

.venue-hub-metrics span{
    display:block;
    font-size:24px;
    line-height:1;
    font-weight:700;
    color:var(--text);
}

.venue-hub-metrics small,
.venue-fiscal-preview span{
    display:block;
    margin-top:6px;
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.06em;
    font-weight:600;
}

.venue-fiscal-preview{
    display:grid;
    gap:10px;
}

.venue-fiscal-preview strong{
    display:block;
    margin-top:5px;
    font-size:13px;
    color:var(--text);
    line-height:1.35;
}

.venue-mini-list{
    display:grid;
    gap:10px;
}

.venue-mini-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
}

.venue-mini-row div{
    display:grid;
    gap:3px;
    min-width:0;
}

.venue-mini-row strong{
    color:var(--text);
    font-size:13px;
    font-weight:600;
}

.venue-mini-row span:not(.badge){
    color:var(--muted);
    font-size:12px;
}

/* FINANCIAL STRUCTURE */

.finance-workspace{
    display:grid;
    grid-template-columns:360px minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.finance-side{
    display:grid;
    gap:18px;
    position:sticky;
    top:88px;
}

.finance-main{
    min-width:0;
}

.finance-tree{
    display:grid;
    gap:16px;
}

.finance-node{
    border:1px solid var(--line);
    border-radius:18px;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
    overflow:hidden;
}

.finance-node-income{
    border-left:4px solid #16a34a;
}

.finance-node-expense{
    border-left:4px solid #b45309;
}

.finance-node-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:16px;
    border-bottom:1px solid var(--line);
    background:#fbfcfe;
}

.finance-node-head h3{
    margin:9px 0 0;
    font-size:18px;
    font-weight:600;
    color:var(--text);
    letter-spacing:-.025em;
}

.finance-inline-form{
    display:grid;
    grid-template-columns:160px minmax(0,1fr) auto;
    gap:10px;
    padding:14px 16px;
    border-bottom:1px solid var(--line);
    background:#fff;
}

.finance-child-list{
    display:grid;
    gap:10px;
    padding:16px;
}

.finance-child{
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    overflow:hidden;
}

.finance-child summary{
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px;
    cursor:pointer;
}

.finance-child summary::-webkit-details-marker{
    display:none;
}

.finance-child summary:hover{
    background:#fbfdff;
}

.finance-child summary div{
    display:grid;
    gap:4px;
}

.finance-child summary strong{
    font-size:14px;
    color:var(--text);
    font-weight:600;
}

.finance-child summary span{
    font-size:12px;
    color:var(--muted);
}

.finance-child-action{
    min-height:28px;
    display:inline-flex;
    align-items:center;
    padding:0 10px;
    border-radius:999px;
    background:var(--primary-soft);
    color:var(--primary) !important;
    font-size:12px !important;
    font-weight:600;
    white-space:nowrap;
}

.finance-child-body{
    display:grid;
    gap:14px;
    padding:16px;
    border-top:1px solid var(--line);
    background:#fbfdff;
}

.finance-empty-child{
    padding:14px;
    border-radius:14px;
    border:1px dashed var(--line-strong);
    background:var(--surface-soft);
    color:var(--muted);
    font-size:12px;
}

@media(max-width:1100px){
    .venue-hub-grid,
    .finance-workspace{
        grid-template-columns:1fr;
    }

    .finance-side{
        position:static;
    }

    .finance-inline-form{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .venue-hub-metrics{
        grid-template-columns:1fr;
    }

    .venue-mini-row{
        align-items:flex-start;
        flex-direction:column;
    }
}

.venue-hub-card-main{
    min-height: 190px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.venue-hub-card-main .actions-inline{
    justify-content: flex-end;
    align-content: center;
}

.venue-hub-card-main .btn{
    min-width: 185px;
}

@media(max-width: 820px){
    .venue-hub-card-main{
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .venue-hub-card-main .actions-inline{
        justify-content: flex-start;
    }

    .venue-hub-card-main .btn{
        width: 100%;
        min-width: 0;
    }
}


/* =========================================================
   BACKOPS DOMAIN NAVIGATION
   Navegación por dominios operacionales
========================================================= */

.topbar-domain-nav{
    gap: 6px;
}

.domain-link{
    font-weight: 500;
}

.domain-link-icon{
    font-size: 14px;
    line-height: 1;
}

.domain-dropdown{
    position: relative;
}

.domain-mega-menu{
    width: min(760px, calc(100vw - 44px));
    min-width: 620px;
    padding: 0;
    overflow: hidden;
}

.domain-mega-head{
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(23,58,99,.08), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.domain-mega-icon{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    flex: 0 0 auto;
}

.domain-mega-hint{
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.domain-mega-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    max-height: min(68vh, 560px);
    overflow-y: auto;
}

.domain-menu-group{
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    overflow: hidden;
}

.domain-menu-parent{
    min-height: 46px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    transition: .15s ease;
}

.domain-menu-parent:hover,
.domain-menu-parent.active{
    background: var(--primary-soft);
    color: var(--primary);
}

.domain-menu-parent span{
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.domain-menu-parent small{
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(23,58,99,.08);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.domain-menu-children{
    display: grid;
    gap: 2px;
    padding: 7px;
}

.domain-menu-child{
    min-height: 34px;
    padding: 8px 9px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.3;
    transition: .14s ease;
}

.domain-menu-child:hover{
    background: var(--surface-soft);
    color: var(--primary);
}

.domain-menu-child.active{
    background: var(--primary-soft-2);
    color: var(--primary);
    font-weight: 700;
}

@media(max-width: 1080px){
    .topbar-domain-nav{
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .domain-dropdown{
        position: static;
    }

    .domain-mega-menu{
        position: fixed;
        left: 14px;
        right: 14px;
        top: 118px;
        width: auto;
        min-width: 0;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        z-index: 60000;
    }

    .domain-mega-grid{
        max-height: none;
        grid-template-columns: 1fr;
    }
}

@media(max-width: 640px){
    .domain-mega-menu{
        top: 112px;
    }

    .domain-mega-head{
        align-items: flex-start;
    }

    .domain-menu-parent{
        align-items: flex-start;
        flex-direction: column;
    }

    .domain-menu-parent small{
        width: 100%;
        justify-content: center;
    }
}