/* ==============================
   EL MOLCAJETE
   Estilos generales
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background-color: #f6f0e4;
}

/* ==============================
   PANTALLA DE INICIO DE SESIÓN
   ============================== */

.login-container {
    min-height: 100vh;
    display: flex;
}

/* Lado izquierdo */

.login-left {
    width: 55%;
    background-color: #8f1d24;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 50px;
}

.login-logo {
    width: 600px;
    max-width: 100%;
    margin-bottom: 50px;
}

.login-slogan {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 30px;
}

.login-decoration {
    font-size: 60px;
    margin-top: 20px;
}

/* Lado derecho */

.login-right {
    width: 45%;
    background-color: #f6f0e4;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;
}

/* Tarjeta */

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

    background-color: white;

    padding: 45px;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Título */

.login-card h1 {
    color: #8f1d24;
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
}

.login-card .subtitle {
    color: #77716c;
    text-align: center;
    margin-bottom: 35px;
}

/* Etiquetas */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #2e2926;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Campos */

.form-group input {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #d7d0c5;
    border-radius: 8px;

    font-size: 16px;

    outline: none;
}

.form-group input:focus {
    border-color: #8f1d24;
}

/* Botón */

.login-button {
    width: 100%;

    padding: 15px;

    border: none;
    border-radius: 8px;

    background-color: #8f1d24;
    color: white;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.login-button:hover {
    background-color: #65151a;
}

/* Texto inferior */

.login-footer {
    text-align: center;
    color: #77716c;
    font-size: 13px;
    margin-top: 25px;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 768px) {

    .login-container {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        min-height: 300px;
        padding: 30px;
    }

    .login-logo {
        width: 220px;
    }

    .login-slogan {
        font-size: 20px;
    }

    .login-right {
        padding: 25px;
    }

    .login-card {
        padding: 30px;
    }
}

/* =====================================================
   DASHBOARD
   ===================================================== */

.dashboard-container {
    min-height: 100vh;
    display: flex;
    background-color: #f6f0e4;
}


/* =====================================================
   MENÚ LATERAL
   ===================================================== */

.sidebar {
    width: 245px;
    min-height: 100vh;

    background-color: #65151a;
    color: white;

    display: flex;
    flex-direction: column;

    padding: 25px 15px;
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px 15px 25px;
}

.sidebar-logo img {
    width: 170px;
    height: auto;

    object-fit: contain;
}


/* MENÚ */

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.menu-item {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px 15px;

    border-radius: 8px;

    color: white;
    text-decoration: none;

    font-size: 15px;

    transition: 0.2s;
}

.menu-item:hover {
    background-color: #8f1d24;
}

.menu-item.active {
    background-color: #8f1d24;
}

.menu-item span {
    font-weight: 500;
}


/* PIE DEL MENÚ */

.sidebar-footer {
    margin-top: auto;

    text-align: center;

    color: #e8d9c8;

    font-size: 12px;

    padding-top: 20px;
}


/* =====================================================
   CONTENIDO PRINCIPAL
   ===================================================== */

.dashboard-main {
    flex: 1;

    padding: 30px 35px;

    min-width: 0;
}


/* =====================================================
   ENCABEZADO
   ===================================================== */

.dashboard-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: #65151a;

    font-size: 30px;

    margin-bottom: 5px;
}

.dashboard-header p {
    color: #77716c;

    font-size: 14px;
}


/* USUARIO */

.user-info {
    display: flex;
    align-items: center;

    gap: 10px;
}

.user-info strong {
    display: block;

    color: #2e2926;

    font-size: 14px;
}

.user-info span {
    display: block;

    color: #77716c;

    font-size: 12px;

    margin-top: 3px;
}

.user-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background-color: #8f1d24;

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: bold;
}


/* =====================================================
   TARJETAS DE ESTADÍSTICAS
   ===================================================== */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}

.stat-card {
    background-color: white;

    border-radius: 12px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 15px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    border: 1px solid #eee4d7;
}

.stat-icon {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    background-color: #f7e7df;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.stat-card span {
    display: block;

    color: #77716c;

    font-size: 13px;

    margin-bottom: 5px;
}

.stat-card strong {
    display: block;

    color: #2e2926;

    font-size: 23px;
}


/* =====================================================
   GRID PRINCIPAL
   ===================================================== */

.dashboard-grid {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}


/* =====================================================
   TARJETAS
   ===================================================== */

.dashboard-card {
    background-color: white;

    border-radius: 12px;

    padding: 22px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    border: 1px solid #eee4d7;
}

.card-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 20px;
}

.card-header h2 {
    color: #2e2926;

    font-size: 18px;

    margin-bottom: 5px;
}

.card-header p {
    color: #77716c;

    font-size: 13px;
}

.card-badge {
    background-color: #f7e7df;

    color: #8f1d24;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;
}


/* =====================================================
   GRÁFICA
   ===================================================== */

.sales-chart {
    padding-top: 10px;
}

.chart-bars {
    height: 190px;

    display: flex;

    align-items: flex-end;

    justify-content: space-around;

    gap: 15px;

    border-bottom: 1px solid #ddd4c8;

    padding: 0 15px;
}

.bar {
    width: 35px;

    background-color: #8f1d24;

    border-radius: 6px 6px 0 0;

    position: relative;

    transition: 0.2s;
}

.bar:hover {
    background-color: #65151a;
}

.bar span {
    display: none;
}

.chart-labels {
    display: flex;

    justify-content: space-around;

    padding: 10px 5px 0;

    color: #77716c;

    font-size: 11px;
}


/* =====================================================
   ESTADO DE PEDIDOS
   ===================================================== */

.order-status {
    display: flex;

    flex-direction: column;

    gap: 20px;

    padding-top: 10px;
}

.status-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 15px;

    border-bottom: 1px solid #eee4d7;
}

.status-info {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #4c4742;

    font-size: 14px;
}

.status-row strong {
    color: #2e2926;

    font-size: 18px;
}

.status-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;
}

.preparing {
    background-color: #e5a62b;
}

.ready {
    background-color: #5ca85c;
}

.delivered {
    background-color: #999999;
}


/* =====================================================
   PRODUCTOS
   ===================================================== */

.products-card {
    margin-bottom: 25px;
}

.view-button {
    border: 1px solid #8f1d24;

    background-color: white;

    color: #8f1d24;

    padding: 8px 14px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 12px;

    font-weight: bold;
}

.view-button:hover {
    background-color: #8f1d24;

    color: white;
}

.products-list {
    display: flex;

    flex-direction: column;
}

.product-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 5px;

    border-top: 1px solid #eee4d7;
}

.product-name {
    display: flex;

    align-items: center;

    gap: 12px;
}

.product-number {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background-color: #f7e7df;

    color: #8f1d24;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: bold;

    font-size: 13px;
}

.product-name strong {
    display: block;

    color: #2e2926;

    font-size: 14px;
}

.product-name span {
    display: block;

    color: #77716c;

    font-size: 12px;

    margin-top: 3px;
}

.product-row > strong {
    color: #65151a;

    font-size: 13px;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;

        padding: 15px;
    }

    .sidebar-logo {
        padding-bottom: 15px;
    }

    .sidebar-logo img {
        width: 140px;
    }

    .sidebar-menu {
        flex-direction: row;

        overflow-x: auto;
    }

    .menu-item {
        white-space: nowrap;
    }

    .sidebar-footer {
        display: none;
    }

    .dashboard-main {
        padding: 20px;
    }

    .dashboard-header {
        align-items: flex-start;

        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}
/* =====================================================
   GESTIÓN DE PERSONAL
   ===================================================== */

.primary-button {
    border: none;
    background-color: #8f1d24;
    color: white;

    padding: 12px 18px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.primary-button:hover {
    background-color: #65151a;
}


/* =====================================================
   BARRA DE PERSONAL
   ===================================================== */

.personal-section {
    margin-top: 5px;
}

.personal-toolbar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.personal-toolbar h2 {
    color: #2e2926;

    font-size: 19px;

    margin-bottom: 5px;
}

.personal-toolbar p {
    color: #77716c;

    font-size: 13px;
}


/* FILTROS */

.personal-filters {
    display: flex;

    gap: 10px;
}

.search-input,
.filter-select {
    height: 38px;

    border: 1px solid #d8d0c5;

    border-radius: 7px;

    background-color: white;

    color: #4c4742;

    padding: 0 12px;

    font-size: 13px;

    outline: none;
}

.search-input {
    width: 220px;
}

.filter-select {
    width: 170px;
}

.search-input:focus,
.filter-select:focus {
    border-color: #8f1d24;
}


/* =====================================================
   TABLA
   ===================================================== */

.table-container {
    width: 100%;

    overflow-x: auto;
}

.personal-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}

.personal-table thead {
    background-color: #faf5ee;
}

.personal-table th {
    text-align: left;

    padding: 14px 15px;

    color: #77716c;

    font-size: 12px;

    font-weight: bold;

    border-bottom: 1px solid #e5ddd2;
}

.personal-table td {
    padding: 15px;

    color: #4c4742;

    font-size: 13px;

    border-bottom: 1px solid #eee4d7;
}

.personal-table tbody tr:hover {
    background-color: #fdf9f4;
}


/* =====================================================
   NOMBRE DEL EMPLEADO
   ===================================================== */

.employee-name {
    display: flex;

    align-items: center;

    gap: 12px;
}

.employee-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background-color: #f7e7df;

    color: #8f1d24;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;

    font-weight: bold;
}

.employee-name strong {
    display: block;

    color: #2e2926;

    font-size: 13px;

    margin-bottom: 3px;
}

.employee-name span {
    display: block;

    color: #8a837c;

    font-size: 11px;
}


/* =====================================================
   ESTADOS
   ===================================================== */

.status-badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: bold;
}

.active-status {
    background-color: #e5f4e5;

    color: #3d8b3d;
}

.inactive-status {
    background-color: #eeeeee;

    color: #777777;
}


/* =====================================================
   ACCIONES
   ===================================================== */

.table-actions {
    display: flex;

    gap: 7px;
}

.action-button {
    width: 32px;
    height: 32px;

    border: 1px solid #ddd5ca;

    background-color: white;

    border-radius: 6px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s;
}

.action-button:hover {
    background-color: #f7e7df;
}

.delete-action:hover {
    background-color: #f8dddd;
}


/* =====================================================
   TURNOS
   ===================================================== */

.shift-card {
    margin-top: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.shift-card h2 {
    color: #2e2926;

    font-size: 18px;

    margin-bottom: 5px;
}

.shift-card p {
    color: #77716c;

    font-size: 13px;
}

.secondary-button {
    background-color: white;

    color: #8f1d24;

    border: 1px solid #8f1d24;

    padding: 10px 16px;

    border-radius: 7px;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.secondary-button:hover {
    background-color: #8f1d24;

    color: white;
}


/* =====================================================
   RESPONSIVE PERSONAL
   ===================================================== */

@media (max-width: 900px) {

    .personal-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .personal-filters {
        width: 100%;
    }

    .search-input,
    .filter-select {
        flex: 1;
    }

}


@media (max-width: 600px) {

    .personal-filters {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
    }

    .shift-card {
        flex-direction: column;

        align-items: flex-start;
    }

}

/* =====================================================
   PUNTO DE VENTA
   ===================================================== */

.pos-container {
    min-height: 100vh;
    background-color: #f6f0e4;
}


/* =====================================================
   ENCABEZADO
   ===================================================== */

.pos-header {
    height: 80px;

    background-color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    border-bottom: 1px solid #e5ddd2;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pos-brand {
    display: flex;
    align-items: center;

    gap: 18px;
}

.pos-brand img {
    width: 125px;
    height: 55px;

    object-fit: contain;
}

.pos-brand h1 {
    color: #65151a;

    font-size: 21px;

    margin-bottom: 3px;
}

.pos-brand span {
    color: #77716c;

    font-size: 12px;
}

.pos-user {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #2e2926;
}

.pos-user > span {
    background-color: #f7e7df;

    color: #8f1d24;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;

    margin-right: 10px;
}

.pos-user strong {
    display: block;

    font-size: 13px;
}

.pos-user small {
    display: block;

    color: #77716c;

    font-size: 11px;

    margin-top: 2px;
}


/* =====================================================
   CONTENIDO PRINCIPAL
   ===================================================== */

.pos-main {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 390px;

    gap: 25px;

    padding: 25px 30px;

    max-width: 1600px;

    margin: 0 auto;
}


/* =====================================================
   ÁREA DE PRODUCTOS
   ===================================================== */

.products-area {
    min-width: 0;
}

.section-title {
    margin-bottom: 18px;
}

.section-title h2 {
    color: #2e2926;

    font-size: 22px;

    margin-bottom: 5px;
}

.section-title p {
    color: #77716c;

    font-size: 13px;
}


/* =====================================================
   CATEGORÍAS
   ===================================================== */

.category-buttons {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 22px;
}

.category-button {
    background-color: white;

    border: 1px solid #ddd4c8;

    color: #4c4742;

    padding: 11px 16px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.category-button:hover {
    border-color: #8f1d24;

    color: #8f1d24;
}

.category-button.active {
    background-color: #8f1d24;

    color: white;

    border-color: #8f1d24;
}


/* =====================================================
   PRODUCTOS
   ===================================================== */

.product-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(180px, 1fr));

    gap: 18px;
}

.pos-product-card {
    background-color: white;

    border: 1px solid #eee4d7;

    border-radius: 12px;

    padding: 15px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    transition: 0.2s;
}

.pos-product-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.09);
}


/* Imagen temporal */

.product-image {
    height: 130px;

    background-color: #faf3e9;

    border-radius: 9px;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 55px;

    margin-bottom: 13px;
}

.product-info h3 {
    color: #2e2926;

    font-size: 15px;

    margin-bottom: 4px;
}

.product-info span {
    display: block;

    color: #8a837c;

    font-size: 11px;

    margin-bottom: 8px;
}

.product-info strong {
    color: #8f1d24;

    font-size: 18px;
}

.add-product-button {
    width: 100%;

    margin-top: 13px;

    padding: 10px;

    border: 1px solid #8f1d24;

    background-color: white;

    color: #8f1d24;

    border-radius: 7px;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.add-product-button:hover {
    background-color: #8f1d24;

    color: white;
}


/* =====================================================
   PANEL DEL PEDIDO
   ===================================================== */

.order-panel {
    background-color: white;

    border-radius: 12px;

    border: 1px solid #eee4d7;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    display: flex;

    flex-direction: column;

    min-height: 600px;

    overflow: hidden;
}

.order-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    padding: 20px;

    border-bottom: 1px solid #eee4d7;
}

.order-header h2 {
    color: #2e2926;

    font-size: 18px;

    margin-bottom: 4px;
}

.order-header span {
    color: #77716c;

    font-size: 12px;
}

.clear-order {
    border: none;

    background-color: transparent;

    color: #8f1d24;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;
}

.clear-order:hover {
    text-decoration: underline;
}


/* =====================================================
   ELEMENTOS DEL PEDIDO
   ===================================================== */

.order-items {
    padding: 5px 20px;

    flex: 1;
}

.order-item {
    display: grid;

    grid-template-columns: 1fr auto auto;

    align-items: center;

    gap: 12px;

    padding: 17px 0;

    border-bottom: 1px solid #eee4d7;
}

.order-item-info strong {
    display: block;

    color: #2e2926;

    font-size: 13px;

    margin-bottom: 4px;
}

.order-item-info span {
    color: #8a837c;

    font-size: 11px;
}

.quantity-control {
    display: flex;

    align-items: center;

    gap: 8px;
}

.quantity-control button {
    width: 28px;
    height: 28px;

    border: 1px solid #d9d0c5;

    background-color: white;

    border-radius: 6px;

    color: #8f1d24;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}

.quantity-control button:hover {
    background-color: #f7e7df;
}

.quantity-control span {
    min-width: 18px;

    text-align: center;

    font-size: 13px;

    font-weight: bold;
}

.item-total {
    color: #2e2926;

    font-size: 13px;

    min-width: 45px;

    text-align: right;
}


/* =====================================================
   RESUMEN DEL PEDIDO
   ===================================================== */

.order-summary {
    padding: 18px 20px;

    border-top: 1px solid #eee4d7;

    background-color: #fcf9f4;
}

.order-summary > div {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

    color: #77716c;

    font-size: 13px;
}

.order-summary .order-total {
    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px solid #ddd4c8;

    color: #2e2926;

    font-size: 16px;

    font-weight: bold;
}

.order-total strong {
    color: #8f1d24;

    font-size: 22px;
}


/* =====================================================
   BOTONES DEL PEDIDO
   ===================================================== */

.order-actions {
    display: grid;

    grid-template-columns: 1fr 1.6fr;

    gap: 10px;

    padding: 20px;
}

.order-actions .secondary-button,
.order-actions .primary-button {
    width: 100%;

    padding: 13px;
}


/* =====================================================
   RESPONSIVE / TABLET
   ===================================================== */

@media (max-width: 1100px) {

    .pos-main {
        grid-template-columns: minmax(0, 1fr) 340px;

        padding: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .pos-header {
        padding: 0 20px;
    }

}


@media (max-width: 800px) {

    .pos-header {
        height: auto;

        padding: 15px;

        gap: 15px;
    }

    .pos-brand img {
        width: 100px;
    }

    .pos-brand h1 {
        font-size: 18px;
    }

    .pos-user > span {
        display: none;
    }

    .pos-main {
        grid-template-columns: 1fr;

        padding: 15px;
    }

    .order-panel {
        min-height: 500px;
    }

}


@media (max-width: 500px) {

    .product-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .product-image {
        height: 100px;

        font-size: 40px;
    }

    .pos-product-card {
        padding: 10px;
    }

    .category-buttons {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 5px;
    }

    .category-button {
        white-space: nowrap;
    }

}

/* =====================================================
   PEDIDOS
   ===================================================== */

.orders-date {
    color: #77716c;
    font-size: 13px;
    font-weight: 600;
}


/* =====================================================
   BARRA DE PEDIDOS
   ===================================================== */

.orders-section {
    margin-top: 5px;
}

.orders-toolbar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 22px;
}

.orders-toolbar h2 {
    color: #2e2926;

    font-size: 19px;

    margin-bottom: 5px;
}

.orders-toolbar p {
    color: #77716c;

    font-size: 13px;
}

.orders-filters {
    display: flex;

    gap: 10px;
}


/* =====================================================
   TABLA DE PEDIDOS
   ===================================================== */

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

/* PEDIDO */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 10%;
}

/* HORA */
.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 11%;
}

/* TIPO */
.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 14%;
}

/* PRODUCTOS */
.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 15%;
}

/* ESTADO */
.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 13%;
    text-align: center;
}

/* TOTAL */
.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 12%;
}

/* ACCIÓN */
.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
    width: 15%;
}


/* Encabezado */
.orders-table thead {
    background-color: #7b1419;
}

.orders-table th {
    text-align: left;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}


/* Celdas */
.orders-table td {
    padding: 14px 14px;
    color: #4c4742;
    font-size: 13px;
    border-bottom: 1px solid #eee4d7;
    vertical-align: middle;
}

.orders-table tbody tr:hover {
    background-color: #fdf9f4;
}

.orders-table td strong {
    color: #2e2926;
}


/* Centrar estado */
.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    text-align: center;
}

.orders-table td:nth-child(5) .order-status {
    margin: 0 auto;
}

/* =====================================================
   BOTÓN VER PEDIDO
   ===================================================== */

.view-order-button {
    background-color: white;

    border: 1px solid #8f1d24;

    color: #8f1d24;

    padding: 7px 12px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: bold;

    cursor: pointer;

    white-space: nowrap;

    transition: 0.2s;
}

.view-order-button:hover {
    background-color: #8f1d24;

    color: white;
}


/* =====================================================
   INFORMACIÓN DEL FLUJO
   ===================================================== */

.order-info-card {
    margin-top: 20px;
}

.order-info-card h2 {
    color: #2e2926;

    font-size: 18px;

    margin-bottom: 5px;
}

.order-info-card > div:first-child p {
    color: #77716c;

    font-size: 13px;
}


/* =====================================================
   FLUJO DE PEDIDOS
   ===================================================== */

.order-flow {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #eee4d7;
}

.flow-step {
    display: flex;

    align-items: center;

    gap: 10px;

    flex: 1;
}

.flow-number {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background-color: #f7e7df;

    color: #8f1d24;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;

    font-weight: bold;

    flex-shrink: 0;
}

.flow-step strong {
    display: block;

    color: #2e2926;

    font-size: 12px;

    margin-bottom: 3px;
}

.flow-step small {
    display: block;

    color: #8a837c;

    font-size: 10px;
}

.flow-arrow {
    color: #b5aaa0;

    font-size: 20px;

    flex-shrink: 0;
}


/* =====================================================
   RESPONSIVE PEDIDOS
   ===================================================== */

@media (max-width: 950px) {

    .orders-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .orders-filters {
        width: 100%;
    }

    .orders-filters .search-input,
    .orders-filters .filter-select {
        flex: 1;
    }

    .order-flow {
        flex-wrap: wrap;
    }

}


@media (max-width: 650px) {

    .orders-filters {
        flex-direction: column;
    }

    .orders-filters .search-input,
    .orders-filters .filter-select {
        width: 100%;
    }

    .order-flow {
        flex-direction: column;

        align-items: flex-start;
    }

    .flow-arrow {
        display: none;
    }

}

/* =====================================================
   VENTAS
   ===================================================== */

.sales-section {
    margin-top: 5px;
}

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

.sales-toolbar h2 {
    color: #2e2926;
    font-size: 19px;
    margin-bottom: 5px;
}

.sales-toolbar p {
    color: #77716c;
    font-size: 13px;
}

.sales-filters {
    display: flex;
    gap: 10px;
}


/* =====================================================
   BOTÓN EXPORTAR
   ===================================================== */

.secondary-button {
    background-color: white;
    border: 1px solid #8f1d24;
    color: #8f1d24;

    padding: 9px 16px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.secondary-button:hover {
    background-color: #8f1d24;
    color: white;
}


/* =====================================================
   TABLA DE VENTAS
   ===================================================== */

.sales-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 800px;
}

.sales-table thead {
    background-color: #faf5ee;
}

.sales-table th {
    text-align: left;

    padding: 14px 15px;

    color: #77716c;

    font-size: 12px;

    font-weight: bold;

    border-bottom: 1px solid #e5ddd2;
}

.sales-table td {
    padding: 16px 15px;

    color: #4c4742;

    font-size: 13px;

    border-bottom: 1px solid #eee4d7;
}

.sales-table tbody tr:hover {
    background-color: #fdf9f4;
}

.sales-table td strong {
    color: #2e2926;
}


/* =====================================================
   MÉTODO DE PAGO
   ===================================================== */

.payment-badge {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 20px;

    background-color: #eaf5e9;

    color: #3c7f3c;

    font-size: 11px;

    font-weight: bold;

    white-space: nowrap;
}

.payment-badge.card-payment {
    background-color: #e7eff9;

    color: #386b9d;
}


/* =====================================================
   BOTÓN VER TICKET
   ===================================================== */

.view-sale-button {
    background-color: white;

    border: 1px solid #8f1d24;

    color: #8f1d24;

    padding: 7px 12px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: bold;

    cursor: pointer;

    white-space: nowrap;

    transition: 0.2s;
}

.view-sale-button:hover {
    background-color: #8f1d24;

    color: white;
}


/* =====================================================
   RESUMEN DE MÉTODOS DE PAGO
   ===================================================== */

.payment-summary {
    margin-top: 20px;
}

.payment-summary h2 {
    color: #2e2926;

    font-size: 18px;

    margin-bottom: 5px;
}

.payment-summary > div:first-child p {
    color: #77716c;

    font-size: 13px;
}


/* =====================================================
   BARRAS DE PAGO
   ===================================================== */

.payment-bars {
    margin-top: 22px;

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.payment-row {
    width: 100%;
}

.payment-label {
    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 13px;

    color: #4c4742;
}

.payment-label strong {
    color: #2e2926;
}

.payment-bar {
    width: 100%;

    height: 9px;

    background-color: #eee7df;

    border-radius: 20px;

    overflow: hidden;
}

.payment-bar-fill {
    height: 100%;

    border-radius: 20px;
}

.cash-bar {
    background-color: #7fa96d;
}

.card-bar {
    background-color: #7b94b5;
}


/* =====================================================
   RESPONSIVE VENTAS
   ===================================================== */

@media (max-width: 950px) {

    .sales-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .sales-filters {
        width: 100%;
    }

    .sales-filters .search-input,
    .sales-filters .filter-select {
        flex: 1;
    }

}


@media (max-width: 650px) {

    .sales-filters {
        flex-direction: column;
    }

    .sales-filters .search-input,
    .sales-filters .filter-select {
        width: 100%;
    }

    .secondary-button {
        width: 100%;
    }

}

/* =====================================================
   REPORTES
   ===================================================== */

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

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.report-card-header h2 {
    color: #2e2926;
    font-size: 18px;
    margin-bottom: 5px;
}

.report-card-header p {
    color: #77716c;
    font-size: 13px;
}

.report-period {
    background-color: #f7e7df;
    color: #8f1d24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}


/* =====================================================
   GRÁFICA DE VENTAS
   ===================================================== */

.report-chart-card {
    margin-top: 5px;
}

.sales-chart {
    height: 270px;
    padding: 20px 15px 0;
}

.chart-bars {
    height: 220px;

    display: flex;
    align-items: flex-end;
    justify-content: space-around;

    gap: 25px;

    border-bottom: 1px solid #ded5cb;
}

.chart-column {
    height: 100%;

    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;
}

.chart-bar {
    width: 55px;

    max-width: 70%;

    background-color: #8f1d24;

    border-radius: 7px 7px 0 0;

    transition: 0.2s;
}

.chart-bar:hover {
    background-color: #a82a32;
}

.chart-column span {
    color: #77716c;
    font-size: 11px;
    padding-bottom: 10px;
}


/* =====================================================
   GRID DE REPORTES
   ===================================================== */

.reports-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-top: 20px;
}


/* =====================================================
   PRODUCTOS MÁS VENDIDOS
   ===================================================== */

.top-products {
    display: flex;

    flex-direction: column;

    gap: 0;
}

.top-product {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 0;

    border-bottom: 1px solid #eee4d7;
}

.top-product:last-child {
    border-bottom: none;
}

.product-position {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background-color: #f7e7df;

    color: #8f1d24;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;

    font-weight: bold;

    flex-shrink: 0;
}

.top-product strong {
    display: block;

    color: #2e2926;

    font-size: 13px;

    margin-bottom: 4px;
}

.top-product small {
    color: #8a837c;

    font-size: 11px;
}


/* =====================================================
   MÉTODOS DE PAGO
   ===================================================== */

.payment-report {
    display: flex;

    flex-direction: column;

    gap: 25px;
}

.report-payment-row > div:first-child {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;
}

.report-payment-row span {
    color: #4c4742;

    font-size: 13px;
}

.report-payment-row strong {
    color: #2e2926;

    font-size: 13px;
}

.report-progress {
    width: 100%;

    height: 10px;

    background-color: #eee7df;

    border-radius: 20px;

    overflow: hidden;
}

.report-progress-fill {
    height: 100%;

    border-radius: 20px;
}

.cash-progress {
    background-color: #7fa96d;
}

.card-progress {
    background-color: #7b94b5;
}


/* =====================================================
   RESUMEN DEL REPORTE
   ===================================================== */

.report-summary {
    margin-top: 20px;
}

.report-summary h2 {
    color: #2e2926;

    font-size: 18px;

    margin-bottom: 5px;
}

.report-summary > div:first-child p {
    color: #77716c;

    font-size: 13px;
}

.summary-items {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #eee4d7;
}

.summary-items > div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.summary-items span {
    color: #77716c;

    font-size: 11px;
}

.summary-items strong {
    color: #8f1d24;

    font-size: 18px;
}


/* =====================================================
   RESPONSIVE REPORTES
   ===================================================== */

@media (max-width: 950px) {

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .summary-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-bars {
        gap: 10px;
    }

}

@media (max-width: 650px) {

    .report-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .report-actions .filter-select,
    .report-actions .secondary-button {
        width: 100%;
    }

    .summary-items {
        grid-template-columns: 1fr;
    }

    .chart-bar {
        width: 35px;
    }

}

/* =====================================================
   INVENTARIO
   ===================================================== */

.inventory-section {
    margin-top: 5px;
}

.inventory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.inventory-toolbar h2 {
    color: #2e2926;
    font-size: 18px;
    margin-bottom: 5px;
}

.inventory-toolbar p {
    color: #77716c;
    font-size: 13px;
}

.inventory-filters {
    display: flex;
    gap: 10px;
}


/* =====================================================
   TABLA
   ===================================================== */

.table-container {
    width: 100%;
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.inventory-table thead {
    background-color: #faf5ee;
}

.inventory-table th {
    text-align: left;
    padding: 14px 15px;
    color: #77716c;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #e5ddd2;
}

.inventory-table td {
    padding: 15px;
    color: #4c4742;
    font-size: 13px;
    border-bottom: 1px solid #eee4d7;
}

.inventory-table tbody tr:hover {
    background-color: #fdf9f4;
}

.inventory-table td strong {
    color: #2e2926;
}


/* =====================================================
   ESTADOS DEL INVENTARIO
   ===================================================== */

.inventory-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.inventory-status.available {
    background-color: #e7f4e5;
    color: #438044;
}

.inventory-status.low {
    background-color: #fff1d7;
    color: #a16a12;
}

.inventory-status.empty {
    background-color: #f9dddd;
    color: #a32929;
}


/* =====================================================
   BOTÓN EDITAR
   ===================================================== */

.inventory-action {
    background-color: white;
    border: 1px solid #ddd3c8;
    color: #8f1d24;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.inventory-action:hover {
    background-color: #8f1d24;
    color: white;
}


/* =====================================================
   ALERTAS DE INVENTARIO
   ===================================================== */

.inventory-alerts {
    margin-top: 20px;
}

.inventory-alerts h2 {
    color: #2e2926;
    font-size: 18px;
    margin-bottom: 5px;
}

.inventory-alerts > div:first-child p {
    color: #77716c;
    font-size: 13px;
}

.inventory-alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.inventory-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background-color: #fff8ed;
    border: 1px solid #f0dfc3;
    border-radius: 8px;
}

.inventory-alert.critical {
    background-color: #fff0f0;
    border-color: #f0cccc;
}

.alert-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8e8d5;
    flex-shrink: 0;
}

.inventory-alert.critical .alert-icon {
    background-color: #f7dada;
}

.inventory-alert > div:nth-child(2) {
    flex: 1;
}

.inventory-alert strong {
    display: block;
    color: #2e2926;
    font-size: 13px;
    margin-bottom: 4px;
}

.inventory-alert small {
    color: #77716c;
    font-size: 11px;
}

.inventory-alert button {
    background-color: white;
    border: 1px solid #8f1d24;
    color: #8f1d24;
    padding: 8px 13px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.inventory-alert button:hover {
    background-color: #8f1d24;
    color: white;
}


/* =====================================================
   RESPONSIVE INVENTARIO
   ===================================================== */

@media (max-width: 900px) {

    .inventory-toolbar {
        flex-direction: column;
    }

    .inventory-filters {
        width: 100%;
    }

    .inventory-filters .search-input,
    .inventory-filters .filter-select {
        flex: 1;
    }

}

@media (max-width: 600px) {

    .inventory-filters {
        flex-direction: column;
    }

    .inventory-filters .search-input,
    .inventory-filters .filter-select {
        width: 100%;
    }

    .inventory-alert {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .inventory-alert button {
        margin-left: 50px;
    }

}

/* =====================================================
   CONFIGURACIÓN
===================================================== */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 20px;
}

.settings-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee7df;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee7df;
}

.settings-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #f7e7e3;
    color: #8f1d24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.settings-header h3 {
    margin: 0;
    color: #2e2926;
    font-size: 18px;
}

.settings-header p {
    margin: 4px 0 0;
    color: #77716c;
    font-size: 13px;
}

/* Filas de configuración */

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0ebe5;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-info strong {
    color: #332e2b;
    font-size: 14px;
}

.setting-info span {
    color: #77716c;
    font-size: 13px;
}

/* Inputs */

.settings-input {
    width: 220px;
    padding: 10px 12px;
    border: 1px solid #ddd4cc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    color: #332e2b;
    background: #fff;
}

.settings-input:focus {
    border-color: #8f1d24;
}

/* Botones */

.settings-button {
    background: #8f1d24;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.settings-button:hover {
    background: #65151a;
}

/* Métodos de pago */

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 15px;
    background: #faf7f3;
    border-radius: 10px;
}

.payment-setting strong {
    color: #332e2b;
}

/* Toggle */

.toggle {
    position: relative;
    width: 45px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cfc8c2;
    border-radius: 30px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background: #8f1d24;
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(21px);
}

/* Notificaciones */

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notification-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0ebe5;
}

.notification-row:last-child {
    border-bottom: none;
}

/* Estado del sistema */

.system-active {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #3d7a4c;
    font-weight: 600;
    font-size: 14px;
}

.system-active::before {
    content: "";
    width: 9px;
    height: 9px;
    background: #3d7a4c;
    border-radius: 50%;
}

/* Cerrar sesión */

.logout-section {
    margin-top: 22px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eee7df;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-section h3 {
    margin: 0 0 5px;
    color: #332e2b;
}

.logout-section p {
    margin: 0;
    color: #77716c;
    font-size: 13px;
}

.logout-button {
    background: #f7e7e3;
    color: #8f1d24;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.logout-button:hover {
    background: #ead4cf;
}

/* Responsive */

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

@media (max-width: 600px) {
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .settings-input {
        width: 100%;
    }

    .logout-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logout-button {
        width: 100%;
    }
}

/* =====================================================
   COCINA - MONITOR DE PEDIDOS
===================================================== */

.kitchen-status {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Pedidos */

.kitchen-orders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.kitchen-order-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border-top: 5px solid #8f1d24;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.kitchen-order-card.preparing {
    border-top-color: #d08a28;
}

.kitchen-order-card.ready {
    border-top-color: #3d7a4c;
}

/* Encabezado del pedido */

.kitchen-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.kitchen-order-header div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kitchen-order-header strong {
    font-size: 18px;
    color: #2e2926;
}

.kitchen-order-header span {
    color: #77716c;
    font-size: 13px;
}

/* Estados */

.order-status {
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px !important;
    font-weight: 600;
}

.pending-status {
    background: #f7e7e3;
    color: #8f1d24 !important;
}

.preparing-status {
    background: #fff2d9;
    color: #a56a13 !important;
}

.ready-status {
    background: #e8f5e9;
    color: #3d7a4c !important;
}

/* Productos */

.order-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.order-product {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #faf7f3;
    border-radius: 8px;
}

.order-product span {
    background: #8f1d24;
    color: white;
    min-width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}

.order-product strong {
    font-size: 14px;
    color: #332e2b;
}

/* Notas */

.order-notes {
    background: #fff9e9;
    color: #80621c;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Botón */

.kitchen-button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #8f1d24;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.kitchen-button:hover {
    background: #65151a;
}

.kitchen-order-card.preparing .kitchen-button {
    background: #d08a28;
}

.kitchen-order-card.preparing .kitchen-button:hover {
    background: #ad701e;
}

.kitchen-order-card.ready .kitchen-button {
    background: #3d7a4c;
}

.kitchen-order-card.ready .kitchen-button:hover {
    background: #2e633b;
}

/* Responsive */

@media (max-width: 1000px) {
    .kitchen-orders {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .kitchen-order-card {
        padding: 16px;
    }
}

/* =====================================================
   MENÚ
===================================================== */

.menu-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 25px;
}

.menu-category {
    border: 1px solid #ddd4cc;
    background: #ffffff;
    color: #5f5954;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.menu-category:hover,
.menu-category.active {
    background: #8f1d24;
    color: white;
    border-color: #8f1d24;
}

.menu-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.menu-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee7df;
    transition: 0.2s;
}

.menu-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.09);
}

.menu-product-image {
    height: 150px;
    background: #f7e7e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.menu-product-info {
    padding: 18px;
}

.menu-product-category {
    color: #8f1d24;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-product-info h3 {
    margin: 7px 0;
    color: #2e2926;
    font-size: 18px;
}

.menu-product-info p {
    margin: 0 0 15px;
    color: #77716c;
    font-size: 13px;
    line-height: 1.5;
}

.menu-product-info strong {
    color: #8f1d24;
    font-size: 19px;
}

/* Responsive */

@media (max-width: 1000px) {
    .menu-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .menu-products {
        grid-template-columns: 1fr;
    }

    .menu-categories {
        gap: 8px;
    }

    .menu-category {
        padding: 8px 13px;
        font-size: 13px;
    }
}

/* =====================================================
   VENTANA DE COBRO
===================================================== */

.payment-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.payment-card {
    width: 430px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.payment-header h2 {
    margin: 0 0 5px;
    color: #2e2926;
}

.payment-header p {
    margin: 0;
    color: #77716c;
    font-size: 14px;
}

.close-payment {
    border: none;
    background: transparent;
    font-size: 28px;
    color: #77716c;
    cursor: pointer;
}

.payment-total {
    background: #f6f0e4;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-total span {
    color: #77716c;
}

.payment-total strong {
    font-size: 28px;
    color: #8f1d24;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method {
    border: 2px solid #e5dfd6;
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
}

.payment-method.active {
    border-color: #8f1d24;
    background: #fff5f5;
    color: #8f1d24;
    font-weight: 600;
}

.cash-section {
    margin-bottom: 20px;
}

.cash-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2e2926;
}

.cash-section input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd5ca;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
}

.change-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #eee7df;
}

.change-row strong {
    color: #8f1d24;
    font-size: 18px;
}

#confirm-payment {
    width: 100%;
}

/* =====================================================
   MODAL DEL TICKET
===================================================== */

.ticket-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ticket-card {
    width: 430px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ticket-header h2 {
    margin: 0 0 5px;
    color: #2e2926;
}

.ticket-header p {
    margin: 0;
    color: #77716c;
    font-size: 14px;
}

.close-ticket {
    border: none;
    background: transparent;
    font-size: 28px;
    color: #77716c;
    cursor: pointer;
    line-height: 1;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: #f6f0e4;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ticket-info strong {
    color: #8f1d24;
    font-size: 18px;
}

.ticket-info span {
    color: #77716c;
    font-size: 13px;
}

.ticket-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee7df;
}

.ticket-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-item-name {
    font-weight: 600;
    color: #2e2926;
}

.ticket-item-quantity {
    font-size: 13px;
    color: #77716c;
}

.ticket-item-total {
    font-weight: 600;
    color: #2e2926;
}

.ticket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid #eee7df;
}

.ticket-total span {
    font-weight: 600;
    color: #2e2926;
}

.ticket-total strong {
    font-size: 24px;
    color: #8f1d24;
}

.ticket-payment {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee7df;
    color: #77716c;
}

.ticket-payment strong {
    color: #2e2926;
}

/* =====================================================
   MODAL AGREGAR PRODUCTO - INVENTARIO
===================================================== */

.inventory-modal {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    align-items: center;

    justify-content: center;

    z-index: 9999;

    padding: 20px;
}


.inventory-modal-content {

    width: 100%;

    max-width: 520px;

    background: #ffffff;

    border-radius: 16px;

    padding: 28px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);

}


.inventory-modal-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 24px;
}


.inventory-modal-header h2 {

    margin: 0 0 6px;

    font-size: 22px;

    color: #5f1118;
}


.inventory-modal-header p {

    margin: 0;

    color: #777;

    font-size: 14px;
}


.inventory-modal-close {

    border: none;

    background: transparent;

    font-size: 28px;

    cursor: pointer;

    color: #777;

    line-height: 1;
}


.inventory-form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 18px;
}


.inventory-form-group label {

    font-size: 14px;

    font-weight: 600;

    color: #444;
}


.inventory-form-group input,
.inventory-form-group select {

    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 14px;

    outline: none;

    background: #fff;
}


.inventory-form-group input:focus,
.inventory-form-group select:focus {

    border-color: #a51e27;

    box-shadow: 0 0 0 3px rgba(165, 30, 39, 0.08);
}


.inventory-form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}


.inventory-modal-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 10px;
}


.inventory-cancel-button {

    border: 1px solid #ddd;

    background: #fff;

    color: #555;

    padding: 11px 18px;

    border-radius: 8px;

    cursor: pointer;
}


.inventory-save-button {

    border: none;

    background: #a51e27;

    color: #fff;

    padding: 11px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;
}


.inventory-save-button:hover {

    background: #8d1820;
}


@media (max-width: 600px) {

    .inventory-form-row {

        grid-template-columns: 1fr;

        gap: 0;
    }

}

/* =====================================================
   COCINA
===================================================== */

.kitchen-main {
    width: 100%;
}


/* =====================================================
   ENCABEZADO
===================================================== */

.kitchen-header {
    margin-bottom: 24px;
}


.kitchen-status {
    display: flex;
    align-items: center;
    gap: 8px;

    background: #eaf8ee;

    color: #25834a;

    padding: 10px 16px;

    border-radius: 20px;

    font-size: 14px;

    font-weight: 600;
}


.kitchen-status-dot {
    width: 9px;
    height: 9px;

    background: #35a65a;

    border-radius: 50%;

    display: inline-block;
}


/* =====================================================
   TARJETAS DE RESUMEN
===================================================== */

.kitchen-stats {
    margin-bottom: 24px;
}


/* =====================================================
   TABLERO
===================================================== */

.kitchen-board {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    align-items: start;

}


/* =====================================================
   COLUMNAS
===================================================== */

.kitchen-column {

    background: #f8f5ef;

    border-radius: 14px;

    min-height: 430px;

    overflow: hidden;

    border: 1px solid #eadfd2;

}


/* =====================================================
   ENCABEZADOS DE COLUMNAS
===================================================== */

.kitchen-column-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px 18px;

    color: #ffffff;

}


.kitchen-column-header h2 {

    margin: 0;

    font-size: 19px;

}


.kitchen-column-header span {

    display: block;

    margin-top: 3px;

    font-size: 12px;

    opacity: 0.9;

}


.kitchen-column-header strong {

    min-width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.25);

    font-size: 15px;

}


/* NUEVOS */

.kitchen-column-header.new {

    background: #b88a1f;

}


/* PREPARACIÓN */

.kitchen-column-header.preparing {

    background: #d88a17;

}


/* LISTOS */

.kitchen-column-header.ready {

    background: #4c9c57;

}


/* =====================================================
   CONTENEDOR DE PEDIDOS
===================================================== */

.kitchen-orders {

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 14px;

}


/* =====================================================
   TARJETA DE PEDIDO
===================================================== */

.kitchen-order-card {

    background: #ffffff;

    border-radius: 12px;

    padding: 16px;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.08);

    border-left: 5px solid #9b1c24;

}


/* =====================================================
   ENCABEZADO DEL PEDIDO
===================================================== */

.kitchen-order-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 10px;

    padding-bottom: 12px;

    border-bottom: 1px solid #eee5dc;

}


.kitchen-order-header > div {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.kitchen-order-header strong {

    font-size: 21px;

    color: #76151c;

}


.kitchen-order-header span {

    font-size: 13px;

    color: #6e6259;

}


.kitchen-order-time {

    font-size: 12px !important;

    color: #81766e !important;

}


/* =====================================================
   PRODUCTOS
===================================================== */

.kitchen-products {

    padding: 14px 0;

}


.kitchen-product {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 7px 0;

    font-size: 15px;

}


.kitchen-product strong {

    min-width: 30px;

    color: #9b1c24;

}


.kitchen-product span {

    color: #292522;

}


/* =====================================================
   PIE DE PEDIDO
===================================================== */

.kitchen-order-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding-top: 12px;

    border-top: 1px solid #eee5dc;

}


.kitchen-order-footer > strong {

    font-size: 16px;

    color: #76151c;

}


/* =====================================================
   BOTONES DE COCINA
===================================================== */

.kitchen-action-button {

    border: none;

    border-radius: 8px;

    padding: 10px 13px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;

}


.kitchen-action-button.start {

    background: #f2a51a;

    color: #ffffff;

}


.kitchen-action-button.start:hover {

    transform: translateY(-1px);

    opacity: 0.9;

}


.kitchen-action-button.ready {

    background: #4c9c57;

    color: #ffffff;

}


.kitchen-action-button.ready:hover {

    transform: translateY(-1px);

    opacity: 0.9;

}


/* =====================================================
   PEDIDO LISTO
===================================================== */

.kitchen-ready-message {

    background: #e9f6eb;

    color: #328340;

    padding: 9px 12px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

}


/* =====================================================
   SIN PEDIDOS
===================================================== */

.kitchen-empty {

    margin: 14px;

    padding: 35px 18px;

    background: #ffffff;

    border-radius: 10px;

    text-align: center;

    color: #746b64;

    border: 1px dashed #d8cec3;

}


.kitchen-empty span {

    display: block;

    font-size: 28px;

    margin-bottom: 8px;

}


.kitchen-empty strong {

    display: block;

    color: #4b443f;

    font-size: 14px;

}


.kitchen-empty small {

    display: block;

    margin-top: 5px;

    font-size: 12px;

}


/* =====================================================
   INFORMACIÓN DEL FLUJO
===================================================== */

.kitchen-info-card {

    margin-top: 22px;

}


.kitchen-flow {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #eee5dc;

}


.kitchen-flow-step {

    display: flex;

    align-items: center;

    gap: 9px;

}


.kitchen-flow-step span {

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f4e5dc;

    color: #8d1c24;

    font-weight: 700;

}


.kitchen-flow-step strong {

    font-size: 13px;

}


.kitchen-flow-arrow {

    color: #b3a69d;

    font-size: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .kitchen-board {

        grid-template-columns:
            1fr;

    }


    .kitchen-column {

        min-height: auto;

    }


    .kitchen-flow {

        flex-wrap: wrap;

    }

}


@media (max-width: 700px) {

    .kitchen-order-footer {

        flex-direction: column;

        align-items: stretch;

    }


    .kitchen-action-button {

        width: 100%;

    }

}

/* =====================================================
   MODALES - ESTILO EL MOLCAJETE
===================================================== */

.modal-overlay {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(58, 25, 20, .62) !important;

    display: none;

    align-items: center !important;
    justify-content: center !important;

    z-index: 9999 !important;

    padding: 20px;
    box-sizing: border-box;

    backdrop-filter: blur(3px);
}


/* =====================================================
   VENTANA
===================================================== */

.modal-content {
    width: 100%;
    max-width: 520px;

    max-height: 90vh;
    overflow-y: auto;

    background: #fffaf3 !important;

    border-radius: 18px;

    padding: 0 !important;

    box-sizing: border-box;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .28);

    position: relative;

    overflow: hidden;

    animation: modalAppear .22s ease;
}


/* =====================================================
   ENCABEZADO DEL MODAL
===================================================== */

.modal-header {
    background: #7b1419;

    color: #ffffff;

    padding: 22px 25px;

    margin: 0 !important;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    position: relative;
}


.modal-header::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #e9a23b;
}


.modal-header h2 {
    margin: 0 0 5px 0 !important;

    color: #ffffff !important;

    font-size: 21px;
    font-weight: 800;
}


.modal-header p {
    margin: 0 !important;

    color: #f4dfc6 !important;

    font-size: 13px;
}


/* =====================================================
   BOTÓN CERRAR
===================================================== */

.modal-close {
    border: none !important;

    background: rgba(255,255,255,.12) !important;

    color: #ffffff !important;

    width: 34px !important;
    height: 34px !important;

    border-radius: 8px;

    font-size: 24px !important;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: .2s ease;

    flex-shrink: 0;
}


.modal-close:hover {
    background: #e9a23b !important;

    color: #641319 !important;

    transform: rotate(3deg);
}


/* =====================================================
   CONTENIDO DEL FORMULARIO
===================================================== */

#personnel-form {
    padding: 25px;
}


.form-group {
    margin-bottom: 17px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #5f443a;

    font-weight: 800;

    font-size: 13px;
}


.form-group input,
.form-group select {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 13px;

    border: 1.5px solid #d8c2af;

    border-radius: 9px;

    font-size: 14px;

    color: #4c403b;

    background: #ffffff;

    transition: .2s ease;
}


.form-group input::placeholder {
    color: #aaa09a;
}


.form-group input:hover,
.form-group select:hover {
    border-color: #cda98c;
}


.form-group input:focus,
.form-group select:focus {
    outline: none;

    border-color: #8b1e23;

    box-shadow:
        0 0 0 3px rgba(139,30,35,.10);
}


/* =====================================================
   BOTONES DEL MODAL
===================================================== */

.modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #ead9ca;
}


.modal-actions .primary-button,
.modal-actions .secondary-button {
    min-width: 105px;
}


/* =====================================================
   CONTENIDO DEL MODAL DE TURNOS
===================================================== */

#shifts-content {
    padding: 25px;
}


/* =====================================================
   TARJETAS DE TURNOS
===================================================== */

.shift-section {
    background: #ffffff;

    border: 1px solid #e3cdb9;

    border-left: 5px solid #8b1e23;

    border-radius: 11px;

    padding: 16px 18px;

    margin-bottom: 14px;

    box-shadow: 0 4px 12px rgba(123,20,25,.06);
}


.shift-section:last-child {
    margin-bottom: 0;
}


.shift-section h3 {
    margin: 0 0 12px 0;

    color: #7b1419;

    font-size: 16px;

    font-weight: 800;

    display: flex;

    align-items: center;

    gap: 8px;
}


/* Puntito decorativo */

.shift-section h3::before {
    content: "";

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #e9a23b;

    display: inline-block;
}


.shift-section ul {
    margin: 0;

    padding-left: 20px;
}


.shift-section li {
    margin-bottom: 9px;

    color: #654d43;

    font-size: 13px;

    line-height: 1.4;
}


.shift-section li:last-child {
    margin-bottom: 0;
}


/* =====================================================
   ANIMACIÓN
===================================================== */

@keyframes modalAppear {

    from {
        opacity: 0;
        transform: translateY(-15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* ANIMACIÓN */

@keyframes modalAppear {

    from {

        opacity: 0;

        transform: translateY(-10px) scale(0.98);

    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}

/* ==========================================
   CORRECCIÓN DEL FORMULARIO A DOMICILIO
   ========================================== */

.delivery-fields {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.delivery-fields label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.delivery-fields input,
.delivery-fields textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;

    padding: 10px;
    border-radius: 8px;
    scroll-margin-bottom: 120px;
    touch-action: manipulation;
}

.delivery-fields input {
    min-height: 44px;
}

.delivery-fields textarea {
    min-height: 70px;
    resize: vertical;
}

.delivery-fields input:focus,
.delivery-fields textarea:focus {
    outline: 2px solid #e9a23b;
    outline-offset: 1px;
}

/* Facilita escribir en pantallas pequeñas */
@media (max-width: 800px) {
    .pos-main {
        overflow: visible;
    }

    .order-panel {
        overflow: visible;
        min-width: 0;
    }

    .delivery-fields {
        scroll-margin-top: 20px;
        scroll-margin-bottom: 140px;
    }
}