body {
    margin: 0;
    background: #0b0b0c;
    font-family: Arial, sans-serif;
    color: #fff;
}

.main-wrapper {
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #161616;
    min-height: 100vh;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 20px 15px;
}

.sidebar-header {
    margin-bottom: 30px;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo-subtitle {
    color: #a6a6a6;
    font-size: 14px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #b8b8b8;
    padding: 14px 16px;
    border-radius: 12px;
    transition: 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: linear-gradient(90deg, #7b2ff7, #777777);
    color: white;
}

.content-area {
    flex: 1;
    background: #0b0b0c;
}

.topbar {
    background: #141414;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.btn-admin {
    background: linear-gradient(90deg, #7b2ff7, #777777);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
}

.dashboard-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-subtitle {
    color: #a6a6a6;
    margin-bottom: 0;
}

.action-card {
    border-radius: 18px;
    padding: 35px 20px;
    font-weight: 600;
}

.action-green {
    background: #00b14f;
}

.action-dark {
    background: #2f2f2f;
    color: #9a9a9a;
}

.action-icon {
    font-size: 35px;
    margin-bottom: 12px;
    display: block;
}

.hours-card {
    background: linear-gradient(90deg, #a63cff, #797979);
    border-radius: 18px;
    padding: 28px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hours-card small {
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
}

.hours-card h2 {
    font-size: 42px;
    margin: 0;
}

.table-card,
.form-card,
.staff-card {
    background: #161616;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.custom-table {
    color: #fff;
}

.custom-table thead th {
    background: #2c2c2c;
    color: #d3d3d3;
    border: none;
    padding: 16px;
}

.custom-table tbody td {
    background: #161616;
    border-color: rgba(255,255,255,0.05);
    padding: 16px;
    color: #e8e8e8;
}

.custom-input {
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.custom-input:focus {
    background: #2a2a2a;
    color: #fff;
    border-color: #7b2ff7;
    box-shadow: none;
}

.custom-input::placeholder {
    color: #a6a6a6;
}

.btn-gradient {
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    background: linear-gradient(90deg, #ff6a00, #ff0000);
}

.staff-item {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    font-size: 20px;
}

.staff-purple {
    color: #c86cff;
}

.staff-blue {
    color: #8f8f8f;
}

.staff-green {
    color: #00d084;
}

a.text-decoration-none {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

a.text-decoration-none:link,
a.text-decoration-none:visited,
a.text-decoration-none:hover,
a.text-decoration-none:focus,
a.text-decoration-none:active {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

.action-card {
    border-radius: 18px;
    padding: 35px 20px;
    font-weight: 600;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.action-card:hover,
.action-card:focus,
.action-card:active {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

a.text-decoration-none:hover .action-card,
a.text-decoration-none:focus .action-card,
a.text-decoration-none:active .action-card,
a.text-decoration-none:visited .action-card {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.action-green {
    background: #00b14f !important;
    color: #ffffff !important;
}

.action-dark {
    background: #2f2f2f !important;
    color: #9a9a9a !important;
}

.action-green h5,
.action-green i {
    color: #ffffff !important;
}

.action-dark h5,
.action-dark i {
    color: #9a9a9a !important;
}

.fichar-link,
.fichar-link:link,
.fichar-link:visited,
.fichar-link:hover,
.fichar-link:focus,
.fichar-link:active {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

#card-entrada,
#card-entrada:hover,
#card-entrada:focus,
#card-entrada:active {
    background: #00b14f !important;
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
    transform: none !important;
}

a.text-decoration-none {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

a.text-decoration-none:link,
a.text-decoration-none:visited,
a.text-decoration-none:hover,
a.text-decoration-none:focus,
a.text-decoration-none:active {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

.action-green {
    background: #00b14f !important;
    color: #ffffff !important;
}

.action-dark {
    background: #2f2f2f !important;
    color: #9a9a9a !important;
}

.action-green h5,
.action-green i {
    color: #ffffff !important;
}

.action-dark h5,
.action-dark i {
    color: #9a9a9a !important;
}

a.text-decoration-none {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

a.text-decoration-none:link,
a.text-decoration-none:visited,
a.text-decoration-none:hover,
a.text-decoration-none:focus,
a.text-decoration-none:active {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

.action-green {
    background: #00b14f !important;
    color: #ffffff !important;
}

.action-dark {
    background: #2f2f2f !important;
    color: #9a9a9a !important;
}

.action-green h5,
.action-green i {
    color: #ffffff !important;
}

.action-dark h5,
.action-dark i {
    color: #9a9a9a !important;
}

.sidebar {
    width: 260px;
    background: #161616;
    min-height: 100vh;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 20px 15px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-logout {
    margin-top: auto;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 77, 77, 0.12);
    color: #ff6b6b;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 77, 77, 0.25);
    color: #fff;
}

.worker-week-card {
    background: linear-gradient(90deg, #d89210, #ff5a00);
    border-radius: 20px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.worker-week-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.worker-week-header h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.worker-week-header p {
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.worker-week-body {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 20px;
}

.worker-week-body small {
    display: block;
    color: rgba(255,255,255,0.82);
    margin-bottom: 4px;
}

.worker-week-body h2,
.worker-week-body h3 {
    color: #fff;
    margin: 0;
}


.worker-week-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 4px;
}

.worker-week-avatar-wrap {
    position: relative;
}

.worker-week-avatar-wrap::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);
    opacity: 0.9;
}

.worker-week-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.22);
    box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}

.worker-week-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.worker-week-avatar-icon {
    font-size: 2.2rem;
    color: #f2c94c;
}

.worker-week-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.worker-week-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.96);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.worker-week-info h2 {
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.05;
}

.worker-week-message {
    color: #ffffff;
    font-weight: 500;
    opacity: 0.98;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ranking-card {
    background: #191919;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.ranking-sales .ranking-header {
    background: linear-gradient(90deg, #063f38, #0d2f37);
    padding: 18px 20px;
}

.ranking-hours .ranking-header {
    background: linear-gradient(90deg, #1b2255, #2b1247);
    padding: 18px 20px;
}

.ranking-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.ranking-header p {
    margin: 4px 0 0;
    color: #b7b7b7;
}

.ranking-body {
    padding: 20px;
}

.ranking-item {
    background: #2d2d2d;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rank-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ff9800;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-muted {
    background: #4d4d4d;
}

.rank-left strong {
    color: #fff;
    display: block;
}

.rank-left small {
    color: #a6a6a6;
}

.rank-value {
    color: #35d67d;
    font-weight: 700;
    font-size: 1.1rem;
}

.module-card {
    background: #191919;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.module-card h4 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.module-card p {
    margin: 0;
    color: #b7b7b7;
    font-size: 1rem;
}

.category-card {
    padding: 20px;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.cat-1 { background: linear-gradient(45deg,#ff6a00,#ff2e2e); }
.cat-2 { background: linear-gradient(45deg,#3a7bd5,#00d2ff); }
.cat-3 { background: linear-gradient(45deg,#a044ff,#ff6a88); }
.cat-4 { background: linear-gradient(45deg,#f7971e,#ffd200); }
.cat-5 { background: linear-gradient(45deg,#00c853,#00e676); }
.cat-6 { background: linear-gradient(45deg,#ff416c,#ff4b2b); }
.cat-7 { background: linear-gradient(45deg,#6a11cb,#2575fc); }
.cat-8 { background: linear-gradient(45deg,#00b09b,#96c93d); }
.cat-9 { background: linear-gradient(45deg,#f7971e,#ffd200); }

.sale-item {
    background: #2d2d2d;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.sale-item small {
    display: block;
    color: #a6a6a6;
}

.btn-gradient {
    background: linear-gradient(90deg,#4e54c8,#8f94fb);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
}
.personal-card {
    background: #161616;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.personal-icon-title {
    color: #969696;
    font-size: 24px;
}

.personal-input {
    height: 48px;
    border-radius: 12px;
}

.btn-personal-gradient {
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #6f6f6f, #b000ff);
}

.btn-personal-gradient:hover {
    color: #fff;
    opacity: 0.95;
}

.personal-section-title {
    font-weight: 700;
    margin-bottom: 0;
}

.personal-table-subtitle {
    color: #a6a6a6;
    font-size: 15px;
}

.badge-role {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.badge-admin {
    background: rgba(153, 51, 255, 0.25);
    color: #d184ff;
}

.badge-empleado {
    background: rgba(109, 141, 181, 0.28);
    color: #b6c7e3;
}

.badge-jefe {
    background: rgba(167, 58, 255, 0.20);
    color: #cc83ff;
}

.badge-camarero {
    background: rgba(0, 102, 255, 0.20);
    color: #969696;
}

.badge-seguridad {
    background: rgba(0, 255, 163, 0.12);
    color: #18e0a0;
}

.btn-edit-personal {
    background: #6f6f6f;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-personal:hover {
    background: #1e56db;
    color: #fff;
}

.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #34185c 0%, #5d1496 100%);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: #2f215d;
    border: 1px solid rgba(102, 255, 204, 0.12);
    border-radius: 18px;
    padding: 34px 32px 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.login-logo-box {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #a348ff, #5f7cff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}

.login-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #c77dff, #6ea8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    margin-top: 10px;
    margin-bottom: 30px;
    color: #a8aed0;
    font-size: 15px;
}

.login-form {
    text-align: left;
}

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

.login-group label {
    display: block;
    margin-bottom: 10px;
    color: #d8dcf1;
    font-size: 15px;
    font-weight: 600;
}

.login-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #261b4b;
    border: 1px solid rgba(126, 143, 199, 0.45);
    border-radius: 12px;
    height: 58px;
    padding: 0 16px;
    transition: 0.25s ease;
}

.login-input-box:focus-within {
    border-color: #8f6cff;
    box-shadow: 0 0 0 3px rgba(143, 108, 255, 0.10);
}

.login-input-box i {
    color: #a7b0d3;
    font-size: 20px;
}

.login-input-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

.login-input-box input::placeholder {
    color: #7e87aa;
}

.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #b14cff 0%, #3d8bff 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 4px;
}

.login-btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.login-tip {
    margin-top: 26px;
    margin-bottom: 0;
    color: #9ea5c8;
    font-size: 14px;
}

.login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    text-align: left;
}

.login-alert-danger {
    background: rgba(255, 77, 109, 0.12);
    color: #ffb3c1;
    border: 1px solid rgba(255, 77, 109, 0.25);
}

.registros-page {
    padding-right: 18px;
}

.registro-card {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.registro-card-header {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(113, 41, 201, 0.55), rgba(50, 73, 170, 0.50));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.registro-card-header-red {
    background: linear-gradient(90deg, rgba(104, 36, 54, 0.95), rgba(95, 41, 37, 0.95));
}

.registro-card-header h5 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.registro-card-body {
    padding: 22px 20px 18px;
    background: #151515;
}

.registro-card .form-label {
    color: #f2f5ff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.registro-input {
    background: #2b2b2b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    min-height: 46px;
    padding: 10px 14px !important;
    box-shadow: none !important;
}

.registro-input::placeholder {
    color: #a4a4a4 !important;
}

.registro-input:focus {
    background: #213254 !important;
    border-color: #6d59ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.18rem rgba(109, 89, 255, 0.18) !important;
}

.registro-textarea {
    min-height: 92px;
    resize: none;
}

.registro-btn {
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    font-weight: 700 !important;
    font-size: 0.98rem;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.registro-btn:hover {
    transform: translateY(-1px);
    opacity: 0.98;
    color: #ffffff !important;
}

.registro-btn-purple {
    background: linear-gradient(90deg, #a31fff 0%, #2b67ff 100%) !important;
    box-shadow: 0 8px 24px rgba(81, 73, 255, 0.22);
}

.registro-btn-red {
    background: linear-gradient(90deg, #ff0000 0%, #ff5a00 100%) !important;
    box-shadow: 0 8px 24px rgba(255, 81, 0, 0.20);
}

.registro-btn-dark {
    background: #162744 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.registro-subcard {
    background: #2b2b2b;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.04);
    margin-top: 10px;
    margin-bottom: 10px;
}

.registro-small-title {
    color: #b6c4df;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.registro-total-number {
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.registro-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.registro-list-item {
    background: #2b2b2b;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}

.registro-list-item strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.registro-list-item small {
    display: block;
    color: #b46cff;
    font-size: 0.88rem;
    margin-top: 4px;
}

.registro-list-item span {
    color: #a4a4a4;
    font-size: 0.88rem;
    white-space: nowrap;
}

.registro-list-item-placa i,
.registro-list-item-placa strong {
    color: #ff7979;
}

.registro-muted {
    color: #b6b6b6 !important;
}

.registro-empty {
    background: #2b2b2b;
    color: #b6b6b6;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.04);
}

.registro-divider {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 20px 0 18px;
}

@media (max-width: 991px) {
    .registro-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   REGISTROS - NUEVO ESTILO
========================= */

.registros-page {
    padding-right: 18px;
}

.registros-page .registro-card {
    background: #171717 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
}

.registros-page .registro-card-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.registros-page .registro-card-header-purple {
    background: linear-gradient(90deg, #2e1d62 0%, #1c2c70 100%) !important;
}

.registros-page .registro-card-header-red {
    background: linear-gradient(90deg, #472132 0%, #5b2a26 100%) !important;
}

.registros-page .registro-card-header h5 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.registros-page .registro-card-body {
    background: #171717 !important;
    padding: 22px 18px 18px !important;
}

.registros-page .form-label {
    color: #f4f7ff !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.registros-page .registro-input,
.registros-page .registro-input.form-control,
.registros-page .registro-input.form-select {
    background: #2e2e2e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
}

.registros-page .registro-input::placeholder {
    color: #a8a8a8 !important;
    opacity: 1 !important;
}

.registros-page .registro-input:focus,
.registros-page .registro-input.form-control:focus,
.registros-page .registro-input.form-select:focus {
    background: #343434 !important;
    color: #ffffff !important;
    border-color: #7d5dff !important;
    box-shadow: 0 0 0 0.18rem rgba(125, 93, 255, 0.20) !important;
}

.registros-page .registro-textarea {
    min-height: 92px !important;
    resize: none !important;
}

.registros-page .registro-helper {
    color: #a8a8a8 !important;
    font-size: 0.82rem !important;
}

.registros-page .registro-btn {
    border: none !important;
    border-radius: 10px !important;
    min-height: 46px !important;
    padding: 12px 18px !important;
    font-weight: 700 !important;
    font-size: 0.96rem !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.18s ease !important;
}

.registros-page .registro-btn:hover {
    transform: translateY(-1px) !important;
    color: #ffffff !important;
    opacity: 0.98 !important;
}

.registros-page .registro-btn-purple {
    background: linear-gradient(90deg, #a61fff 0%, #727272 100%) !important;
    box-shadow: 0 8px 24px rgba(96, 78, 255, 0.28) !important;
}

.registros-page .registro-btn-red {
    background: linear-gradient(90deg, #ff0800 0%, #ff5a00 100%) !important;
    box-shadow: 0 8px 24px rgba(255, 85, 0, 0.24) !important;
}

.registros-page .registro-btn-dark {
    background: #2b2b2b !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

.registros-page .registro-subcard {
    background: #2b2b2b !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
}

.registros-page .registro-small-title {
    color: #c3c3c3 !important;
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
}

.registros-page .registro-total-number {
    color: #ffffff !important;
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.registros-page .registro-list-title {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
}

.registros-page .registro-list-item {
    background: #2b2b2b !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 10px !important;
}

.registros-page .registro-list-item strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.registros-page .registro-list-item small {
    display: block !important;
    color: #b66dff !important;
    font-size: 0.88rem !important;
    margin-top: 4px !important;
}

.registros-page .registro-list-item span {
    color: #a7a7a7 !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
}

.registros-page .registro-list-item-placa i,
.registros-page .registro-list-item-placa strong {
    color: #ff7d7d !important;
}

.registros-page .registro-muted {
    color: #b7b7b7 !important;
}

.registros-page .registro-empty {
    background: #2b2b2b !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    color: #b7b7b7 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}

.registros-page .registro-divider {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    margin: 20px 0 18px !important;
}

@media (max-width: 991px) {
    .registros-page .registro-list-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}
/* INVENTARIO + PRODUCTOS */
.inventory-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.inventory-category-card,
.product-category-card {
    min-height: 92px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.inventory-category-card i,
.product-category-card i {
    font-size: 30px;
}

.inventory-category-card.active,
.product-category-card.active {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.inv-cat-1 { background: linear-gradient(90deg, #3387ff, #22b0d8); }
.inv-cat-2 { background: linear-gradient(90deg, #ff7b00, #ff3d45); }
.inv-cat-3 { background: linear-gradient(90deg, #f2ba00, #f7a100); }
.inv-cat-4 { background: linear-gradient(90deg, #a24cff, #eb4bb8); }
.inv-cat-5 { background: linear-gradient(90deg, #00c86d, #11be79); }
.inv-cat-6 { background: linear-gradient(90deg, #fc3d8b, #ff245d); }
.inv-cat-7 { background: linear-gradient(90deg, #665cff, #b34cf0); }
.inv-cat-8 { background: linear-gradient(90deg, #15b8b8, #22b7dc); }
.inv-cat-9 { background: linear-gradient(90deg, #f7a500, #f0bb00); }

.inventory-table-card,
.product-guide-card,
.product-register-card {
    background: #161616;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.05);
}

.inventory-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 2px 4px 18px;
    flex-wrap: wrap;
}

.inventory-table {
    margin: 0;
    color: #fff;
    table-layout: fixed;
}

.inventory-table col.col-name { width: 34%; }
.inventory-table col.col-price { width: 15%; }
.inventory-table col.col-offer { width: 10%; }
.inventory-table col.col-actions { width: 11%; }

.inventory-table thead th,
.product-price-table thead th {
    background: #2b2b2b;
    color: #dddddd;
    border: none;
    padding: 18px 16px;
    font-weight: 700;
    white-space: nowrap;
}

.inventory-add-title-row th {
    background: #303030 !important;
    padding: 18px 22px 10px !important;
}

.inventory-add-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.inventory-add-form-row td {
    background: #303030 !important;
    border-color: rgba(255,255,255,0.06);
    padding: 0 22px 20px !important;
}

.inventory-row-form {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.inventory-row-form-add {
    grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
    align-items: end;
}

.inventory-field {
    min-width: 0;
}

.inventory-field-offer-add {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.inventory-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.inventory-btn-wide {
    width: 100%;
    height: 42px;
}

.inventory-table tbody td,
.product-price-table tbody td {
    border-color: rgba(255,255,255,0.06);
    background: #171717;
    padding: 14px 16px;
    vertical-align: middle;
}

.inventory-data-row.is-editing td {
    background: #0c1b39;
}

.inventory-text-name {
    font-weight: 700;
    color: #f2f2f2;
}

.inventory-edit-inline {
    display: contents;
}

.inventory-input {
    background: #454545;
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    min-height: 40px;
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
}

.inventory-input:focus {
    background: #454545;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(123,47,247,0.18);
    border-color: rgba(123,47,247,0.45);
}

.inventory-col-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inventory-offer-cell {
    text-align: center;
}

.inventory-btn-save,
.inventory-btn-delete,
.inventory-btn-edit {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.inventory-btn-save { background: #18a957; }
.inventory-btn-delete { background: #f02f42; }
.inventory-btn-edit { background: #2d6cff; }
.btn-add-product { border-radius: 12px; font-weight: 700; }

.inventory-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8e4ff;
    min-height: 40px;
    font-weight: 700;
}

.inventory-check-wrap-center {
    justify-content: center;
    width: 100%;
}

.inventory-check-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #15c56b;
}

.inventory-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.inventory-badge-success {
    background: rgba(0, 201, 111, 0.18);
    color: #16dd7d;
}

.inventory-badge-muted {
    background: rgba(123, 144, 182, 0.18);
    color: #b5b5b5;
}

.switch-check { position: relative; display: inline-flex; width: 56px; height: 30px; }
.switch-check input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; inset: 0; cursor: pointer; background: #30415f; border-radius: 999px; transition: .2s;
}
.switch-slider:before {
    content: ''; position: absolute; height: 22px; width: 22px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: .2s;
}
.switch-check input:checked + .switch-slider { background: #00b96b; }
.switch-check input:checked + .switch-slider:before { transform: translateX(26px); }

.product-price-table {
    color: #fff;
}
.product-name-cell { font-weight: 700; }
.price-pill {
    border: none;
    background: transparent;
    color: #fff;
    padding: 0;
    font-weight: 700;
}
.price-pill-secondary { color: #8f8f8f; }
.price-pill-offer { color: #00ff8a; }
.price-pill.selected { text-decoration: underline; }
.price-pill:disabled { opacity: 1; cursor: default; }
.price-empty { color: #b5b5b5; }
.product-sale-item {
    background: #1a2944;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-sale-item small { color: #91a4c6; display: block; margin-top: 2px; }
.product-sale-item span { color: #00ff8a; font-weight: 700; }
.product-total-row strong { color: #00ff8a; font-size: 24px; }
.selected-price-label { color: #d7e2ff; font-weight: 600; font-size: 14px; }
.product-register-btn { background: linear-gradient(90deg, #3368ff, #b615f0); border-radius: 14px; }
.product-count-badge {
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1400px) {
    .inventory-categories-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .inventory-table col.col-name { width: 30%; }
    .inventory-table col.col-price { width: 16%; }
}
@media (max-width: 1200px) {
    .inventory-row-form,
    .inventory-row-form-add { grid-template-columns: 1fr 1fr; }
    .inventory-actions-row { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .inventory-categories-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .inventory-panel-header { padding-bottom: 14px; }
    .inventory-table { min-width: 980px; }
}

td.oferta-col {
    text-align: center;
    vertical-align: middle;
}

/* 🔥 Alinear columna oferta */
.inventory-offer-cell {
    text-align: center;
    vertical-align: middle;
}

/* 🔥 Texto blanco en tabla inventario */
.inventory-table td {
    color: #ffffff !important;
}

/* 🔥 Badge centrado bonito */
.inventory-badge {
    display: inline-block;
    min-width: 50px;
    text-align: center;
}


.reportes-page {
    color: #fff;
}

.reporte-stat-card {
    border-radius: 18px;
    padding: 24px 22px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    min-height: 148px;
}

.reporte-stat-card small {
    display: block;
    color: rgba(255,255,255,0.80);
    font-weight: 700;
    margin-bottom: 10px;
}

.reporte-stat-card h3 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
}

.reporte-stat-card span {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

.stat-sales { background: linear-gradient(135deg, #0f8f66, #0a5b5b); }
.stat-payroll { background: linear-gradient(135deg, #7b2ff7, #3f51ff); }
.stat-products { background: linear-gradient(135deg, #ff7a00, #ff4b43); }
.stat-offers { background: linear-gradient(135deg, #0f7ecf, #14b6c8); }

.report-card {
    background: #191919;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.report-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.report-card-header h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
}

.report-card-header p {
    margin: 6px 0 0;
    color: #b7b7b7;
}

.report-card-header-purple { background: linear-gradient(90deg, rgba(98,41,172,0.85), rgba(45,63,168,0.85)); }
.report-card-header-green { background: linear-gradient(90deg, rgba(7,81,70,0.95), rgba(70, 70, 70, 0.95)); }
.report-card-header-dark { background: linear-gradient(90deg, rgba(70, 70, 70, 0.95), rgba(70, 70, 70, 0.95)); }
.report-card-header-pink { background: linear-gradient(90deg, rgba(106,48,110,0.95), rgba(196,60,120,0.90)); }
.report-card-header-blue { background: linear-gradient(90deg, rgba(25,72,146,0.95), rgba(23,135,187,0.90)); }

.report-card-body {
    padding: 20px;
}

.report-rank-item {
    background: #2b2b2b;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.report-rank-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-rank-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ff9d00;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.report-rank-number.muted {
    background: #34476a;
}

.report-rank-left strong {
    display: block;
    color: #fff;
}

.report-rank-left small {
    color: #adadad;
}

.report-rank-value {
    color: #14d67b;
    font-weight: 800;
    font-size: 1.02rem;
    white-space: nowrap;
}

.report-table {
    color: #fff;
}

.report-table thead th {
    background: #2b2b2b;
    color: #dddddd;
    border: none;
    padding: 16px;
}

.report-table tbody td {
    background: #171717;
    color: #eef3ff;
    border-color: rgba(255,255,255,0.06);
    padding: 15px 16px;
}

.report-mini-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-mini-item {
    background: #2b2b2b;
    border-radius: 14px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.report-mini-item strong {
    display: block;
    color: #fff;
}

.report-mini-item small {
    color: #adadad;
}

.report-mini-item span {
    color: #14d67b;
    font-weight: 800;
    white-space: nowrap;
}

.report-mini-item-sale span {
    color: #fff;
}

.report-empty {
    background: #2b2b2b;
    color: #b7b7b7;
    border-radius: 14px;
    padding: 16px 18px;
}

@media (max-width: 991px) {
    .report-rank-item,
    .report-mini-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sidebar-main {
    display: flex;
    flex-direction: column;
}

.sidebar-logout {
    margin-top: 12px;
}


/* ===== Pulido general y validaciones ===== */
.module-card,
.report-card,
.inventory-table-card,
.product-guide-card,
.product-register-card,
.pagos-module {
    border: 1px solid rgba(255,255,255,0.06);
}

.app-equal-card {
    min-height: 100%;
}

.inventory-table tbody tr:hover td,
.products-table tbody tr:hover td,
.report-table tbody tr:hover td {
    background: rgba(255,255,255,0.035) !important;
}

.inventory-table td,
.inventory-table th,
.products-table td,
.products-table th,
.report-table td,
.report-table th {
    vertical-align: middle;
}

.app-alert {
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
}

.app-alert-success {
    background: rgba(20,214,123,0.14);
    color: #b8ffd8;
}

.app-alert-warning {
    background: rgba(255,179,71,0.14);
    color: #ffe2ae;
}

.app-alert-danger {
    background: rgba(255,99,132,0.14);
    color: #ffd1dc;
}

.custom-input:focus,
.inventory-inline-form .form-control:focus,
.pagos-input:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.18rem rgba(123, 47, 247, 0.16);
    border-color: rgba(123, 47, 247, 0.48);
}

.js-submit-btn:disabled,
button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.selected-price-label,
.report-empty,
.pagos-lock-note {
    border: 1px solid rgba(255,255,255,0.05);
}

.product-sale-item,
.report-mini-item,
.sale-item,
.pagos-box {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.sidebar-menu li:last-child {
    margin-bottom: 0;
}

.sidebar-logout .btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.section-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-toggle-panel {
    background: rgba(123, 47, 247, 0.14);
    color: #c9b4ff;
    border: 1px solid rgba(123, 47, 247, 0.35);
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
}

.btn-toggle-panel:hover {
    background: rgba(123, 47, 247, 0.24);
    color: #ffffff;
}

.btn-toggle-back {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-toggle-back:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.btn-gradient-pink {
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff003c, #ff008e);
}

.btn-gradient-pink:hover {
    color: #fff;
    opacity: 0.96;
}

.absence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 27, 77, 0.18);
    color: #ff6a8f;
    font-size: 12px;
    font-weight: 700;
}

.fichaje-btn {
    width: 100%;
    min-height: 150px;
    border: none;
    border-radius: 18px;
    padding: 35px 20px;
    font-weight: 600;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.fichaje-btn .action-icon {
    font-size: 35px;
    margin-bottom: 12px;
    display: block;
}

.fichaje-btn h5 {
    font-size: 16px;
    font-weight: 700;
}

.fichaje-entrada {
    background: #00b14f;
    color: #ffffff;
}

.fichaje-salida {
    background: #ff003c;
    color: #ffffff;
}

.fichaje-inactivo {
    background: #2f2f2f;
    color: #9a9a9a;
}

.fichaje-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.fichaje-btn:not(:disabled) {
    cursor: pointer;
}

.btn-gradient-pink {
    background: linear-gradient(90deg, #ff174f, #ff007a);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
}

.section-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-toggle-panel {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(90deg, rgba(123, 47, 247, 0.35), rgba(75, 108, 255, 0.35));
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 600;
}

.btn-toggle-back {
    background: rgba(255,255,255,0.08);
}

.absence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 76, 0.2);
    color: #ff5b86;
    border: 1px solid rgba(255, 0, 76, 0.25);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}


.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-title {
    font-size: 24px;
    line-height: 1.1;
}

.logo-subtitle {
    display: inline-block;
    margin-top: 4px;
}

.login-brand-image-wrap {
    width: 138px;
    height: 138px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
}

.login-brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}


/* ===== Ajustes finales sidebar por rol ===== */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-main {
    display: flex;
    flex-direction: column;
}

.sidebar-admin .sidebar-main {
    flex: 1;
}

.sidebar-logout-admin {
    margin-top: auto;
    padding-top: 16px;
}

.sidebar-logout-empleado {
    margin-top: 14px;
}


.personal-users-scroll {
    max-height: 655px;
    overflow-y: auto;
    padding-right: 4px;
}

.personal-users-scroll::-webkit-scrollbar {
    width: 8px;
}

.personal-users-scroll::-webkit-scrollbar-thumb {
    background: #5c5c5c;
    border-radius: 999px;
}

.personal-users-scroll::-webkit-scrollbar-track {
    background: transparent;
}


/* ===== Ajustes sidebar logout debajo del último módulo ===== */
.sidebar-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.sidebar-menu {
    margin-bottom: 12px;
}

.sidebar-logout {
    margin-top: 10px;
    padding-top: 0;
}

.sidebar-logout-admin,
.sidebar-logout-empleado {
    margin-top: 10px;
    padding-top: 0;
}

.btn-logout {
    width: 100%;
}

/* ===== Ajustes login visual del sistema ===== */
.login-card {
    background: #20164a;
    border: 1px solid rgba(255,255,255,0.08);
}

.login-input-box {
    background: #2a2156;
    border: 1px solid rgba(255,255,255,0.10);
}

.login-input-box input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
    appearance: none;
}

.login-input-box input:-webkit-autofill,
.login-input-box input:-webkit-autofill:hover,
.login-input-box input:-webkit-autofill:focus,
.login-input-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #2a2156 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border: none !important;
}

.login-input-box input::-ms-reveal,
.login-input-box input::-ms-clear {
    display: none;
}


/* ===== Ajuste de tamaño de texto + páginas compactas ===== */
html { font-size: 17px; }
body {
    font-size: 1rem;
    overflow: hidden;
}

.main-wrapper {
    height: 100vh;
    overflow: hidden;
}

.content-area {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    flex: 0 0 auto;
    padding: 14px 22px;
}

.btn-admin {
    font-size: 0.96rem;
}

.dashboard-title {
    font-size: 2.05rem;
    margin-bottom: 2px;
    line-height: 1.1;
}

.dashboard-subtitle {
    font-size: 0.98rem;
    margin-bottom: 0;
}

.module-card,
.table-card,
.form-card,
.staff-card,
.report-card,
.ranking-card,
.personal-card,
.inventory-table-card,
.product-guide-card,
.product-register-card,
.beneficios-page .beneficios-card {
    padding: 22px;
}

.content-area > .app-fit-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 18px !important;
    padding-bottom: 14px !important;
}

.app-fit-page > .row {
    min-height: 0;
}

.app-fit-page .alert,
.app-fit-page .app-alert,
.app-fit-page > .dashboard-title,
.app-fit-page > .dashboard-subtitle {
    flex: 0 0 auto;
}

.app-fit-page .table-responsive {
    min-height: 0;
}

.personal-users-scroll,
.registros-page .registro-history-scroll,
.pagos-table-scroll {
    scrollbar-gutter: stable;
}

/* BENEFICIOS */
.beneficios-page > .row {
    flex: 1 1 auto;
    min-height: 0;
}

.beneficios-page .module-card,
.beneficios-page .beneficios-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.beneficios-page .module-card h4,
.beneficios-page .module-card > .d-flex,
.beneficios-page .beneficio-list-title,
.beneficios-page .beneficio-form-card {
    flex: 0 0 auto;
}

.beneficios-page .module-card > .row.g-3 {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    align-content: start;
}

.beneficios-page .beneficios-card-header {
    padding: 16px 20px;
}

.beneficios-page .beneficios-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px;
}

.beneficios-page .beneficio-categoria-item,
.beneficios-page .beneficio-local-item {
    padding: 13px 15px;
}

.beneficios-page .beneficio-form-card {
    margin-top: 14px;
    padding: 14px;
}

/* PRODUCTOS */
.productos-page > .row {
    flex: 1 1 auto;
    min-height: 0;
}

.productos-page .app-equal-card {
    height: 100%;
    min-height: 0;
}

.productos-page .module-card {
    padding: 22px;
}

.productos-page .table-responsive,
.productos-page .product-guide-card table,
.productos-page .product-register-card form {
    min-height: 0;
}

.productos-page .table-responsive {
    max-height: 100%;
    overflow: auto;
}

/* INVENTARIO */
.inventario-page {
    gap: 12px;
}

.inventario-page .inventory-categories-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.inventario-page .inventory-category-card {
    min-height: 82px;
}

.inventario-page .inventory-table-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.inventario-page .inventory-table-card .table-responsive {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* PERSONAL */
.personal-page .personal-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.personal-page .personal-users-scroll {
    max-height: 100%;
    flex: 1 1 auto;
}

.personal-page .personal-card form,
.personal-page .personal-section-title {
    flex: 0 0 auto;
}

/* REGISTROS */
.registros-page > .row {
    flex: 1 1 auto;
    min-height: 0;
}

.registros-page .registro-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.registros-page .registro-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* PAGOS */
.pagos-page > .row,
.pagos-page .pagos-grid-bottom {
    min-height: 0;
}

.pagos-page .pagos-card,
.pagos-page .pagos-side-card,
.pagos-page .pagos-history-card {
    min-height: 0;
}

.pagos-page .pagos-table-scroll {
    max-height: clamp(210px, 38vh, 380px);
}

/* DASHBOARD INICIO */
.dashboard-home-page .row.g-3.align-items-start,
.dashboard-home-page .table-card,
.dashboard-home-page .staff-card {
    min-height: 0;
}

.dashboard-home-page .table-responsive {
    max-height: clamp(180px, 30vh, 320px);
    overflow: auto;
}

.dashboard-home-page .table-card,
.dashboard-home-page .staff-card {
    padding: 20px;
}

/* DASHBOARD REPORTES INTERNOS */
.dashboard-stats-page .row.g-4 {
    min-height: 0;
}

.dashboard-stats-page .ranking-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-stats-page .ranking-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* REPORTES */

.report-tabs-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-tabs-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.report-tab-btn {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #d8d8d8;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.22s ease;
}

.report-tab-btn:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.report-tab-btn.active {
    background: linear-gradient(90deg, rgba(123,47,247,0.85), rgba(58,102,255,0.82));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(64, 58, 162, 0.22);
    border-color: rgba(173, 148, 255, 0.30);
}

.report-tab-panel {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
}

.report-tab-panel.active {
    display: flex;
    flex-direction: column;
}

.report-tab-grid {
    flex: 1 1 auto;
    min-height: 0;
}

.report-card-tabbed {
    height: 100%;
}

.report-scroll-body {
    max-height: 100%;
    overflow: auto;
    scrollbar-gutter: stable;
}

.report-scroll-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.report-scroll-body::-webkit-scrollbar-thumb {
    background: #5e5e5e;
    border-radius: 999px;
}

.report-scroll-body::-webkit-scrollbar-track {
    background: transparent;
}

.report-tab-panel .col-12 .report-card {
    min-height: 0;
}

@media (max-width: 991px) {
    .report-tabs-bar {
        gap: 10px;
    }

    .report-tab-btn {
        width: 100%;
        justify-content: center;
    }
}

.reportes-page > .row {
    min-height: 0;
}

.reportes-page .reporte-stat-card {
    min-height: 132px;
    padding: 20px;
}

.reportes-page .report-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.reportes-page .report-card-body,
.reportes-page .report-mini-list,
.reportes-page .table-responsive {
    flex: 1 1 auto;
    min-height: 0;
}

.reportes-page .report-card-body,
.reportes-page .report-mini-list,
.reportes-page .table-responsive {
    overflow: auto;
}

.reportes-page .report-rank-item {
    padding: 14px 16px;
    margin-bottom: 10px;
}

@media (max-width: 1400px) {
    html { font-size: 16px; }
    .inventario-page .inventory-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 768px) {
    .worker-week-hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .worker-week-info h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 1199px) {
    body,
    .main-wrapper,
    .content-area {
        overflow: auto;
        height: auto;
    }

    .content-area > .app-fit-page {
        overflow: visible;
        display: block;
    }
}



.pagos-wrap.app-fit-page {
    min-height: 0 !important;
    padding: 18px 20px !important;
}



/* ===== FIX ALTURA DINAMICA ===== */
.main-content, .content, .container-fluid {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

/* tarjetas ocupan mejor espacio */
.module-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* contenedores internos */
.module-card .card-body,
.module-card > div {
    flex: 1;
}

/* evitar huecos grandes */
.row {
    align-items: stretch;
}

/* ranking scroll inteligente */
.ranking-list {
    max-height: 320px;
    overflow-y: auto;
}

/* beneficios panel */
.beneficios-panel {
    max-height: 420px;
    overflow-y: auto;
}

/* ===== PULIDO FINAL GLOBAL SIN TOCAR LOGICA ===== */
:root {
    --app-surface: #171717;
    --app-surface-2: #202020;
    --app-surface-3: #2a2a2a;
    --app-border: rgba(255,255,255,0.06);
    --app-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html, body {
    scrollbar-color: #5a5a5a transparent;
}

.content-area,
.module-card,
.table-card,
.form-card,
.staff-card,
.personal-card,
.report-card,
.ranking-card,
.inventory-table-card,
.product-guide-card,
.product-register-card,
.pagos-module,
.reporte-stat-card,
.beneficios-page .beneficios-card,
.registro-card {
    scrollbar-gutter: stable;
}

.content-area ::-webkit-scrollbar,
.module-card ::-webkit-scrollbar,
.table-card ::-webkit-scrollbar,
.form-card ::-webkit-scrollbar,
.staff-card ::-webkit-scrollbar,
.personal-card ::-webkit-scrollbar,
.report-card ::-webkit-scrollbar,
.ranking-card ::-webkit-scrollbar,
.inventory-table-card ::-webkit-scrollbar,
.product-guide-card ::-webkit-scrollbar,
.product-register-card ::-webkit-scrollbar,
.pagos-module ::-webkit-scrollbar,
.beneficios-page .beneficios-card ::-webkit-scrollbar,
.registro-card ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.content-area ::-webkit-scrollbar-thumb,
.module-card ::-webkit-scrollbar-thumb,
.table-card ::-webkit-scrollbar-thumb,
.form-card ::-webkit-scrollbar-thumb,
.staff-card ::-webkit-scrollbar-thumb,
.personal-card ::-webkit-scrollbar-thumb,
.report-card ::-webkit-scrollbar-thumb,
.ranking-card ::-webkit-scrollbar-thumb,
.inventory-table-card ::-webkit-scrollbar-thumb,
.product-guide-card ::-webkit-scrollbar-thumb,
.product-register-card ::-webkit-scrollbar-thumb,
.pagos-module ::-webkit-scrollbar-thumb,
.beneficios-page .beneficios-card ::-webkit-scrollbar-thumb,
.registro-card ::-webkit-scrollbar-thumb {
    background: #5a5a5a;
    border-radius: 999px;
}

.content-area ::-webkit-scrollbar-track,
.module-card ::-webkit-scrollbar-track,
.table-card ::-webkit-scrollbar-track,
.form-card ::-webkit-scrollbar-track,
.staff-card ::-webkit-scrollbar-track,
.personal-card ::-webkit-scrollbar-track,
.report-card ::-webkit-scrollbar-track,
.ranking-card ::-webkit-scrollbar-track,
.inventory-table-card ::-webkit-scrollbar-track,
.product-guide-card ::-webkit-scrollbar-track,
.product-register-card ::-webkit-scrollbar-track,
.pagos-module ::-webkit-scrollbar-track,
.beneficios-page .beneficios-card ::-webkit-scrollbar-track,
.registro-card ::-webkit-scrollbar-track {
    background: transparent;
}

.module-card,
.table-card,
.form-card,
.staff-card,
.personal-card,
.report-card,
.ranking-card,
.inventory-table-card,
.product-guide-card,
.product-register-card,
.pagos-module,
.beneficios-page .beneficios-card,
.registro-card {
    background: linear-gradient(180deg, rgba(28,28,28,0.96), rgba(22,22,22,0.98));
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

.topbar {
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.dashboard-title,
.pagos-title {
    letter-spacing: -0.02em;
}

.dashboard-subtitle,
.pagos-subtitle {
    color: #adadad;
}

.custom-table thead th,
.products-table thead th,
.inventory-table thead th,
.report-table thead th,
.pagos-table thead th,
.personal-page .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.custom-table thead th,
.products-table thead th,
.inventory-table thead th,
.report-table thead th,
.personal-page .table thead th {
    backdrop-filter: blur(6px);
}

.dashboard-home-page .table-card,
.dashboard-home-page .staff-card,
.productos-page .module-card,
.inventario-page .inventory-table-card,
.personal-page .personal-card,
.pagos-page .pagos-module,
.reportes-page .report-card,
.beneficios-page .module-card,
.beneficios-page .beneficios-card,
.registros-page .registro-card {
    border-radius: 20px;
}

.dashboard-home-page .table-card .section-title,
.productos-page .module-card h4,
.productos-page .module-card h5,
.inventario-page .module-card h4,
.personal-page .personal-section-title,
.reportes-page .report-card-header h5,
.registros-page .registro-card-header h5,
.beneficios-page .beneficios-card-header h5,
.pagos-page .pagos-module-title {
    letter-spacing: -0.01em;
}

.dashboard-home-page .table-responsive,
.dashboard-home-page .staff-card .table-responsive,
.productos-page .table-responsive,
.inventario-page .inventory-table-card .table-responsive,
.personal-page .personal-users-scroll,
.pagos-page .pagos-table-scroll,
.reportes-page .report-scroll-body,
.reportes-page .table-responsive,
.beneficios-page .beneficios-card-body,
.registros-page .registro-card-body {
    padding-right: 4px;
}

.dashboard-home-page .table-responsive {
    max-height: clamp(180px, 28vh, 310px);
}

.productos-page .module-card:first-child .row.g-3 {
    max-height: clamp(210px, 32vh, 360px);
    overflow: auto;
    padding-right: 4px;
    align-content: start;
}

.productos-page .product-guide-card .table-responsive {
    max-height: clamp(240px, 38vh, 420px);
}

.productos-page .product-register-card form {
    overflow: auto;
    padding-right: 4px;
}

.inventario-page .inventory-table-card .table-responsive {
    max-height: clamp(260px, 45vh, 520px);
}

.personal-page .personal-users-scroll {
    max-height: clamp(260px, 46vh, 540px);
}

.pagos-page .pagos-table-scroll {
    max-height: clamp(220px, 40vh, 420px) !important;
}

.pagos-page .pagos-module {
    overflow: hidden;
}

.beneficios-page .module-card > .row.g-3,
.beneficios-page .beneficios-card-body {
    max-height: clamp(250px, 44vh, 520px);
}

.registros-page .registro-card-body {
    padding-right: 6px;
}

.registros-page .registro-history-scroll {
    max-height: clamp(190px, 34vh, 360px);
}

.reportes-page .reporte-stat-card,
.dashboard-stats-page .worker-week-card,
.pagos-page .pagos-top-card,
.productos-page .product-summary-card,
.beneficios-page .beneficio-resumen-card {
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.reportes-page .report-card-header,
.registros-page .registro-card-header,
.beneficios-page .beneficios-card-header {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.reportes-page .report-rank-item:last-child,
.dashboard-stats-page .ranking-item:last-child,
.sale-item:last-child,
.product-sale-item:last-child,
.registro-list-item:last-child,
.beneficio-local-item:last-child,
.beneficio-categoria-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    .productos-page .module-card:first-child .row.g-3,
    .productos-page .product-guide-card .table-responsive,
    .inventario-page .inventory-table-card .table-responsive,
    .personal-page .personal-users-scroll,
    .pagos-page .pagos-table-scroll,
    .beneficios-page .module-card > .row.g-3,
    .beneficios-page .beneficios-card-body,
    .registros-page .registro-history-scroll {
        max-height: none !important;
    }
}

/* ===== AJUSTE PREMIUM RELAJADO ===== */
html {
    font-size: 16.5px;
}

body {
    overflow: auto;
    background:
        radial-gradient(circle at top right, rgba(123,47,247,0.08), transparent 22%),
        radial-gradient(circle at top left, rgba(0,194,255,0.05), transparent 18%),
        #0b0b0c;
}

.main-wrapper,
.content-area {
    height: auto;
    min-height: 100vh;
}

.content-area {
    overflow: visible;
}

.topbar {
    padding: 18px 26px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.content-area > .app-fit-page,
.content-area > .container-fluid,
.content-area .container-fluid {
    min-height: 0;
}

.app-fit-page {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

.module-card,
.table-card,
.form-card,
.staff-card,
.personal-card,
.report-card,
.ranking-card,
.inventory-table-card,
.product-guide-card,
.product-register-card,
.pagos-module,
.beneficios-page .beneficios-card,
.registro-card {
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.dashboard-title,
.pagos-title {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.dashboard-subtitle,
.pagos-subtitle {
    font-size: 1rem;
    color: #b8b8b8;
}

.reporte-stat-card,
.dashboard-stats-page .worker-week-card,
.pagos-page .pagos-top-card,
.productos-page .product-summary-card,
.beneficios-page .beneficio-resumen-card,
.hours-card {
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.20);
}

.reportes-page .reporte-stat-card {
    min-height: 148px;
}

.report-tabs-bar {
    padding: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.045);
}

.report-tab-btn {
    padding: 13px 20px;
    border-radius: 16px;
}

.custom-table thead th,
.custom-table tbody td,
.products-table thead th,
.inventory-table thead th,
.report-table thead th,
.pagos-table thead th,
.personal-page .table thead th {
    padding-top: 17px;
    padding-bottom: 17px;
}

.sale-item,
.reportes-page .report-rank-item,
.dashboard-stats-page .ranking-item,
.registro-list-item,
.beneficio-local-item,
.beneficio-categoria-item {
    border-radius: 16px;
}

.dashboard-home-page .table-card,
.dashboard-home-page .staff-card,
.productos-page .module-card,
.inventario-page .inventory-table-card,
.personal-page .personal-card,
.pagos-page .pagos-module,
.reportes-page .report-card,
.beneficios-page .module-card,
.beneficios-page .beneficios-card,
.registros-page .registro-card {
    border-radius: 24px;
}

/* Menos sensación de compacto y menos hueco forzado abajo */
.main-content,
.content,
.container-fluid {
    min-height: auto;
}

.row {
    align-items: start;
}

.productos-page > .row,
.personal-page > .row,
.registros-page > .row,
.beneficios-page > .row,
.reportes-page > .row,
.dashboard-stats-page .row.g-4,
.dashboard-home-page .row.g-3.align-items-start,
.pagos-page > .row,
.pagos-page .pagos-grid-bottom,
.inventario-page {
    row-gap: 18px;
}

/* Scrolls más elegantes pero con más aire */
.dashboard-home-page .table-responsive {
    max-height: clamp(210px, 32vh, 360px);
}

.productos-page .module-card:first-child .row.g-3 {
    max-height: clamp(250px, 38vh, 430px);
}

.productos-page .product-guide-card .table-responsive {
    max-height: clamp(260px, 42vh, 460px);
}

.inventario-page .inventory-table-card .table-responsive {
    max-height: clamp(300px, 50vh, 620px);
}

.personal-page .personal-users-scroll {
    max-height: clamp(300px, 50vh, 620px);
}

.pagos-page .pagos-table-scroll {
    max-height: clamp(250px, 44vh, 500px) !important;
}

.beneficios-page .module-card > .row.g-3,
.beneficios-page .beneficios-card-body {
    max-height: clamp(280px, 48vh, 580px);
}

.registros-page .registro-history-scroll {
    max-height: clamp(220px, 38vh, 420px);
}

.reportes-page .report-scroll-body,
.reportes-page .table-responsive,
.reportes-page .report-mini-list {
    padding-right: 6px;
}

@media (max-width: 1199px) {
    body {
        overflow: auto;
    }

    .main-wrapper,
    .content-area {
        min-height: auto;
    }
}


/* ===== Productos y ventas sincronizado ===== */
.product-table-wrap {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 6px;
}

.product-reset-btn {
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,138,0,0.24), rgba(172,97,255,0.22));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.product-reset-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.product-sales-scroll {
    max-height: 332px;
    overflow-y: auto;
    padding-right: 6px;
}

.product-sales-scroll.is-scrollable {
    border-right: 1px solid rgba(255,255,255,0.05);
}

.product-sale-item {
    min-height: 68px;
}

.product-total-row strong {
    font-size: 1.05rem;
}

.product-reset-note {
    font-size: 0.82rem;
    color: #95a0b8;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

.product-sales-scroll::-webkit-scrollbar,
.product-table-wrap::-webkit-scrollbar {
    width: 8px;
}

.product-sales-scroll::-webkit-scrollbar-thumb,
.product-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
}

.product-sales-scroll::-webkit-scrollbar-track,
.product-table-wrap::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}

/* === AJUSTE FINAL: GESTION PERSONAL NEGRO + BOTON AMARILLO === */
.personal-page,
.personal-page .personal-card {
    background: transparent;
}

.personal-page .personal-card {
    background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(6,6,6,0.98)) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.24) !important;
}

.personal-page .personal-icon-title {
    color: #f2b300 !important;
}

.personal-page .btn-personal-gradient {
    background: #f2b300 !important;
    color: #111 !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(242,179,0,0.18);
}

.personal-page .btn-personal-gradient:hover {
    background: #ffcb2f !important;
    color: #111 !important;
    opacity: 1 !important;
}

.personal-page .personal-input,
.personal-page .form-select.personal-input,
.personal-page .form-control.personal-input {
    background: linear-gradient(90deg, #232323, #2a2a2a) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.personal-page .personal-input::placeholder {
    color: #bdbdbd !important;
}

.personal-page .table,
.personal-page .table tbody tr,
.personal-page .table tbody td {
    background: transparent !important;
}

.personal-page .table thead th {
    background: linear-gradient(90deg, rgba(44,44,44,0.96), rgba(58,58,58,0.96)) !important;
}

/* =========================================================
   PALETA GLOBAL TEQUI-LA-LA
   Negro + amarillo + teal / sin morado
   ========================================================= */
:root {
    --teq-bg: #0b0b0c;
    --teq-bg-soft: #121212;
    --teq-panel: #171717;
    --teq-panel-2: #202020;
    --teq-line: rgba(255,255,255,0.08);
    --teq-text: #f3f3f3;
    --teq-muted: #b3b3b3;
    --teq-gold-1: #f2ba00;
    --teq-gold-2: #d99007;
    --teq-gold-3: #8a6606;
    --teq-teal-1: #0f8a74;
    --teq-teal-2: #0b5f58;
    --teq-orange-1: #f08a00;
    --teq-orange-2: #c96a00;
}

body,
.content-area,
.main-wrapper {
    background: var(--teq-bg) !important;
}

.sidebar,
.sidebar-admin,
.sidebar-empleado {
    background: #111111 !important;
    border-right: 1px solid var(--teq-line) !important;
}

.sidebar-menu li a {
    color: #d1d1d1 !important;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: linear-gradient(90deg, rgba(242,186,0,0.92), rgba(104,104,104,0.88)) !important;
    color: #111 !important;
    box-shadow: 0 8px 22px rgba(242,186,0,0.20) !important;
}

.sidebar-menu li a:hover i,
.sidebar-menu li a.active i {
    color: #111 !important;
}

.logo-title {
    color: #ffffff !important;
}

.logo-subtitle,
.dashboard-subtitle,
.text-secondary,
small.text-secondary {
    color: var(--teq-muted) !important;
}

.topbar {
    background: #131313 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.btn-admin {
    background: linear-gradient(90deg, rgba(242,186,0,0.95), rgba(114,114,114,0.88)) !important;
    color: #111 !important;
    font-weight: 700 !important;
}

.custom-input:focus,
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(242,186,0,0.55) !important;
    box-shadow: 0 0 0 0.15rem rgba(242,186,0,0.16) !important;
}

.hours-card,
.staff-purple,
.staff-blue {
    background: unset !important;
    color: var(--teq-gold-1) !important;
}

.staff-green {
    color: #15d28d !important;
}

/* Botones y estados principales */
.btn-gradient,
.product-register-btn,
.registro-btn-purple,
.registros-page .registro-btn-purple,
.pagos-btn-purple,
.beneficios-page .beneficio-btn-save {
    background: linear-gradient(90deg, var(--teq-gold-1) 0%, var(--teq-gold-2) 100%) !important;
    color: #111 !important;
    border: none !important;
}

.registro-btn-red,
.registros-page .registro-btn-red {
    background: linear-gradient(90deg, #c33a2f 0%, #8e2722 100%) !important;
    color: #fff !important;
}

/* Encabezados de tarjetas y bloques */
.report-card-header-purple,
.report-card-header-pink,
.registro-card-header-purple,
.registros-page .registro-card-header-purple,
.dashboard-worker-header,
.report-tab-btn.active {
    background: linear-gradient(90deg, rgba(242,186,0,0.90), rgba(114,114,114,0.82)) !important;
    color: #111 !important;
}

.report-card-header-purple *,
.report-card-header-pink *,
.registro-card-header-purple *,
.registros-page .registro-card-header-purple *,
.report-tab-btn.active * {
    color: #111 !important;
}

.report-card-header-green,
.report-card-header-blue,
.report-card-header-dark,
.beneficios-page .beneficios-card-title,
.beneficios-page .convenios-card-title {
    background: linear-gradient(90deg, rgba(10,90,79,0.95), rgba(62,62,62,0.90)) !important;
    color: #fff !important;
}

/* Tarjetas de resumen */
.stat-sales {
    background: linear-gradient(135deg, #0f8f66, #0a5b5b) !important;
}

.stat-payroll,
.pagos-top-purple,
.action-yellow,
.action-primary {
    background: linear-gradient(135deg, var(--teq-gold-1), var(--teq-orange-1)) !important;
    color: #111 !important;
}

.stat-products {
    background: linear-gradient(135deg, #f08a00, #ff5f2e) !important;
}

.stat-offers {
    background: linear-gradient(135deg, #1a8bb8, #1498a7) !important;
}

.pagos-top-green,
.action-green,
.total-card,
.beneficios-page .resumen-total-card {
    background: linear-gradient(135deg, #13a95e, #11bf74) !important;
}

/* Tabs y chips */
.report-tab-btn {
    background: linear-gradient(90deg, #202020, #2a2a2a) !important;
    color: #e7e7e7 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}

.report-tab-btn:not(.active):hover {
    border-color: rgba(242,186,0,0.35) !important;
    color: #fff !important;
}

.badge,
.role-badge-admin,
.personal-role-admin,
.personal-tag-admin {
    background: rgba(242,186,0,0.18) !important;
    color: #ffd54a !important;
}

.role-badge-employee,
.personal-role-employee,
.personal-tag-employee,
.personal-cargo-badge,
.badge-cargo {
    background: rgba(78,122,173,0.22) !important;
    color: #d7e6ff !important;
}

/* Categorías e inventario sin morado */
.cat-3,
.cat-7,
.inv-cat-4,
.inv-cat-7 {
    background: linear-gradient(45deg, var(--teq-gold-1), var(--teq-orange-1)) !important;
}

.product-register-btn:hover,
.btn-gradient:hover,
.registro-btn-purple:hover,
.registros-page .registro-btn-purple:hover,
.pagos-btn-purple:hover,
.beneficios-page .beneficio-btn-save:hover,
.report-tab-btn.active:hover {
    filter: brightness(1.03) !important;
}

/* Gestión personal: mantener negro + amarillo */
.personal-page,
.gestion-personal-page,
.personal-admin-page {
    background: var(--teq-bg) !important;
}

.personal-submit-btn,
.btn-crear-usuario,
.personal-create-btn,
button[name="crear_usuario"],
button[type="submit"].w-100 {
    background: linear-gradient(90deg, var(--teq-gold-1), #f3bc00) !important;
    color: #111 !important;
    border: none !important;
}

/* Reportes y ranking */
.report-rank-number {
    background: linear-gradient(135deg, var(--teq-gold-1), var(--teq-orange-1)) !important;
    color: #111 !important;
}

.report-rank-number.muted {
    background: linear-gradient(135deg, #4c658f, #334b72) !important;
    color: #fff !important;
}

.report-rank-value,
.text-success,
.report-highlight-number {
    color: #18df8d !important;
}

/* Beneficios específicos */
.beneficios-page .beneficio-tab-btn.active,
.beneficios-page .beneficio-accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--teq-gold-1), var(--teq-gold-2)) !important;
    color: #111 !important;
}

.beneficios-page .btn-editar {
    background: #4a4a4a !important;
    color: #fff !important;
}

.beneficios-page .btn-eliminar {
    background: #7c2234 !important;
    color: #fff !important;
}

/* Mantener paneles oscuros consistentes */
.table-card,
.form-card,
.staff-card,
.report-card,
.registro-card,
.pagos-card,
.beneficios-page .beneficios-card,
.beneficios-page .convenios-card,
.personal-card,
.inventario-card,
.dashboard-card {
    background: linear-gradient(180deg, rgba(24,24,24,0.98), rgba(14,14,14,0.98)) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}


/* Ajustes sincronización abril 2026 */
.hours-card .btn{border-radius:12px;font-size:.85rem;}
.product-grid .product-name,.price-card .product-name,.catalog-product-name,.product-option-title{font-size:1.08rem!important;font-weight:700;}
.product-grid .price-value,.catalog-price-value{font-size:1.05rem!important;}
.nomina-panel,.beneficios-grid,.convenios-list,.beneficios-scroll{max-height:520px;}
.login-logo img,.auth-logo img{background:#000;border-radius:18px;padding:8px;}


/* Responsive + UX polish */
.app-mobile-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1045;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(17,17,17,.96);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
}
.app-mobile-toggle i { font-size: 1.4rem; }
.app-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 1039;
}
.app-sidebar-overlay.is-visible { opacity: 1; visibility: visible; }
.sidebar-close {
    margin-left: auto;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 1.1rem;
}
.app-modal-content {
    background: #131313;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
}
.toast-container .toast { border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.toast-container .toast-body { font-size: .95rem; }

@media (max-width: 991px) {
    body.app-sidebar-open { overflow: hidden; }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(84vw, 320px);
        z-index: 1040;
        transform: translateX(-102%);
        transition: transform .25s ease;
        overflow-y: auto;
        padding-top: 18px;
    }
    .sidebar.is-open { transform: translateX(0); }
    .content-area { width: 100%; min-width: 0; }
    .topbar {
        padding: 16px 18px 16px 72px !important;
        gap: 12px;
        flex-wrap: wrap;
    }
    .topbar h6 { font-size: 1rem; }
    .btn-admin { width: 100%; }
    .dashboard-title { font-size: 2rem; }
    .dashboard-subtitle { font-size: .95rem; }
    .content-area > .app-fit-page,
    .app-fit-page,
    .pagos-wrap.app-fit-page {
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: 18px !important;
    }
    .table-responsive,
    .product-table-wrap,
    .report-scroll-body {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive table { min-width: 640px; }
    .pagos-toolbar,
    .section-header-actions,
    .registro-section-head {
        flex-direction: column;
        align-items: stretch !important;
    }
    .pagos-toolbar-right,
    .registro-actions { width: 100%; }
    .pagos-toolbar-right > *,
    .registro-actions > *,
    .section-header-actions > * { max-width: 100%; }
    .staff-item, .product-category-card, .module-card, .table-card, .form-card, .staff-card { border-radius: 16px; }
}

@media (max-width: 767px) {
    .app-mobile-toggle { display: inline-flex !important; }
    .dashboard-title { font-size: 1.7rem; }
    .hours-card h2, .pagos-top-value { font-size: 1.65rem !important; }
    .topbar small { display: block; }
    .sidebar-menu li a { padding: 12px 14px; }
    .row.g-3 > [class*="col-"],
    .row.g-4 > [class*="col-"],
    .row.g-2 > [class*="col-"] { width: 100%; }
    .btn, .pagos-btn, .registro-btn { min-height: 42px; }
}

@media (min-width: 992px) {
    .app-mobile-toggle, .app-sidebar-overlay, .sidebar-close { display: none !important; }
}


/* ===== Tipografía unificada entre módulos ===== */
:root {
    --app-text-xs: 12px;
    --app-text-sm: 13px;
    --app-text-md: 14px;
    --app-text-lg: 16px;
    --app-text-xl: 20px;
    --app-title-lg: 42px;
    --app-title-md: 1.05rem;
}

body,
button,
input,
select,
textarea,
.table,
.custom-table,
.alert,
.badge,
small,
span,
p,
div {
    font-family: Arial, sans-serif;
}

body {
    font-size: var(--app-text-md);
    line-height: 1.45;
}

.dashboard-title {
    font-size: var(--app-title-lg);
    line-height: 1.1;
}

.dashboard-subtitle {
    font-size: var(--app-text-lg);
    line-height: 1.4;
}

.section-title,
.module-card h4,
.table-card h4,
.form-card h4,
.staff-card h4 {
    font-size: var(--app-title-md);
    line-height: 1.3;
}

.table,
.custom-table,
.table td,
.table th,
.custom-table td,
.custom-table th,
input,
select,
textarea,
button,
.btn,
.alert {
    font-size: var(--app-text-md);
}

.table thead th,
.custom-table thead th {
    font-size: var(--app-text-sm);
    letter-spacing: .01em;
}

.table tbody td,
.custom-table tbody td,
.table tbody th {
    font-size: var(--app-text-md);
}

h1, h2, h3, h4, h5, h6,
.hours-card h2,
.reporte-stat-card h3,
.inventory-price,
.staff-item,
.pagos-top-value,
.pagos-box strong,
.pagos-total-cell,
.total-pago {
    font-variant-numeric: tabular-nums;
}

.topbar small {
    font-size: var(--app-text-sm);
}

.topbar h6 {
    font-size: 1rem;
    line-height: 1.2;
}

.btn-admin,
.btn,
button {
    line-height: 1.2;
}


/* ===== Login theme aligned with main modules/logo ===== */
.login-body {
    background: #050505 !important;
}

.login-card {
    background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(10,10,10,0.98)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42) !important;
}

.login-brand-image-wrap {
    background: #000000 !important;
    border: 1px solid rgba(242,186,0,0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.login-brand-image {
    background: #000000 !important;
}

.login-title {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.login-subtitle,
.login-tip {
    color: #a8a8a8 !important;
}

.login-group label {
    color: #f2f2f2 !important;
}

.login-input-box {
    background: #1b1b1b !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.login-input-box:focus-within {
    border-color: rgba(242,186,0,0.55) !important;
    box-shadow: 0 0 0 0.18rem rgba(242,186,0,0.14) !important;
}

.login-input-box i {
    color: #d2d2d2 !important;
}

.login-input-box input,
.login-input-box input[type="text"],
.login-input-box input[type="password"] {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.login-input-box input:focus,
.login-input-box input[type="text"]:focus,
.login-input-box input[type="password"]:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.login-input-box input,
.login-input-box input::placeholder {
    color: #ffffff !important;
}

.login-input-box input::placeholder {
    opacity: 1;
}

.login-input-box input:-webkit-autofill,
.login-input-box input:-webkit-autofill:hover,
.login-input-box input:-webkit-autofill:focus,
.login-input-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1b1b1b inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

.login-btn {
    background: linear-gradient(90deg, #f2ba00 0%, #d9a600 100%) !important;
    color: #111111 !important;
    box-shadow: 0 10px 22px rgba(242,186,0,0.20) !important;
}

.login-btn:hover {
    filter: brightness(1.03) !important;
    transform: translateY(-1px);
}

.login-alert-danger {
    background: rgba(123, 34, 34, 0.18) !important;
    color: #ffd0d0 !important;
    border: 1px solid rgba(208, 72, 72, 0.28) !important;
}

/* INVENTARIO - ORDEN Y ESPACIO OPTIMIZADO */
.inventario-page.app-fit-page {
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
}

.inventario-page .inventory-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 2px !important;
}

.inventario-page .inventory-category-card {
    min-height: 74px;
    padding: 12px 10px;
    border-radius: 16px;
    gap: 6px;
}

.inventario-page .inventory-category-card i {
    font-size: 24px;
}

.inventario-page .inventory-table-card {
    flex: 0 0 auto;
    min-height: auto;
    padding: 18px 18px 14px;
}

.inventario-page .inventory-panel-header {
    padding: 0 2px 12px;
    margin-bottom: 4px;
}

.inventario-page .inventory-table-card .table-responsive {
    flex: 0 0 auto;
    max-height: clamp(220px, 38vh, 430px);
    min-height: 0;
}

.inventario-page .inventory-table thead th {
    padding: 15px 14px;
}

.inventario-page .inventory-table tbody td {
    padding: 12px 14px;
}

.inventario-page .btn-add-product {
    min-height: 40px;
    padding: 9px 14px;
}

@media (max-width: 1199px) {
    .inventario-page .inventory-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .inventario-page .inventory-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventario-page .inventory-table-card {
        padding: 16px 14px 12px;
    }
}


/* INVENTARIO - AJUSTE PROFESIONAL DE DISTRIBUCION */
.inventario-page .inventory-table-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 16px;
}

.inventario-page .inventory-panel-header {
    flex: 0 0 auto !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    padding: 0 2px 0;
}

.inventario-page .inventory-panel-header h4 {
    margin: 0;
}

.inventario-page .inventory-table-card > .table-responsive {
    flex: 1 1 auto !important;
    min-height: 0;
    margin-top: 0;
    max-height: clamp(340px, 56vh, 640px);
    border-radius: 16px;
}

.inventario-page .inventory-table {
    margin-top: 0;
}

.inventario-page .inventory-table thead th {
    padding-top: 13px;
    padding-bottom: 13px;
}

.inventario-page .inventory-table tbody td {
    padding-top: 11px;
    padding-bottom: 11px;
}

.inventario-page .btn-add-product {
    align-self: center;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .inventario-page .inventory-panel-header {
        align-items: stretch;
    }

    .inventario-page .btn-add-product {
        width: 100%;
        justify-content: center;
    }
}


.rank-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rank-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}
.rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rank-avatar i {
    color: #f2c94c;
    font-size: 1rem;
}


/* ===== AJUSTE SOLO MODULO PRODUCTOS: categorias mas compactas y tabla mas legible ===== */
.productos-page .module-card:first-child {
    padding: 18px 18px 16px;
}

.productos-page .module-card:first-child h5 {
    margin-bottom: 14px !important;
}

.productos-page .module-card:first-child .row.g-3 {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.productos-page .product-category-card {
    min-height: 72px;
    border-radius: 16px;
    gap: 4px;
    padding: 10px 12px;
}

.productos-page .product-category-card i {
    font-size: 24px;
    line-height: 1;
}

.productos-page .product-category-card span {
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
}

.productos-page .product-guide-card {
    padding: 20px 22px 18px;
}

.productos-page .product-guide-card h4 {
    font-size: 1.5rem;
}

.productos-page .product-guide-card .text-secondary.small {
    font-size: 0.98rem !important;
}

.productos-page .product-price-table thead th {
    font-size: 1rem;
    padding: 16px 16px;
}

.productos-page .product-price-table tbody td {
    padding: 16px 16px;
    font-size: 1.03rem;
}

.productos-page .product-name-cell {
    font-size: 1.05rem;
    line-height: 1.3;
}

.productos-page .product-name-trigger {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.productos-page .product-name-trigger:hover,
.productos-page .product-name-trigger.selected {
    color: #ffd166;
    text-decoration: underline;
}

.productos-page .product-name-trigger:disabled {
    opacity: 1;
    cursor: default;
    text-decoration: none;
}

.productos-page .price-pill,
.productos-page .price-empty {
    font-size: 1.05rem;
}

@media (max-width: 991px) {
    .productos-page .product-category-card {
        min-height: 68px;
    }

    .productos-page .product-category-card i {
        font-size: 22px;
    }

    .productos-page .product-category-card span,
    .productos-page .product-price-table thead th,
    .productos-page .product-price-table tbody td,
    .productos-page .product-name-cell,
    .productos-page .price-pill,
    .productos-page .price-empty {
        font-size: 0.96rem;
    }
}


.sidebar-empleado ~ .content-area .productos-page .module-card:first-child .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.sidebar-empleado ~ .content-area .productos-page .product-category-card {
    min-height: 62px;
    padding: 9px 10px;
    gap: 3px;
}

.sidebar-empleado ~ .content-area .productos-page .product-category-card i {
    font-size: 21px;
}

.sidebar-empleado ~ .content-area .productos-page .product-category-card span {
    font-size: 13px;
    line-height: 1.1;
}

.sidebar-empleado ~ .content-area .productos-page .price-pill,
.sidebar-empleado ~ .content-area .productos-page .price-empty,
.sidebar-empleado ~ .content-area .productos-page .product-name-cell,
.sidebar-empleado ~ .content-area .productos-page .product-name-trigger,
.sidebar-empleado ~ .content-area .productos-page .product-price-table tbody td {
    font-size: 1.08rem;
}

.sidebar-empleado ~ .content-area .productos-page .product-price-table thead th {
    font-size: 1.02rem;
}

/* ===== Responsive final: solo adaptación visual para tablet y móvil ===== */
@media (max-width: 1199px) {
    .main-wrapper,
    .content-area,
    .main-content,
    .content,
    .container-fluid {
        min-width: 0;
    }

    .topbar {
        padding: 16px 18px 16px 70px !important;
        gap: 12px;
        flex-wrap: wrap;
    }

    .topbar > div:first-child {
        min-width: 0;
        flex: 1 1 180px;
    }

    .topbar .btn-admin,
    .topbar .badge-role {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .dashboard-home-page .row.g-3 > [class*="col-"],
    .productos-page > .row > [class*="col-"],
    .inventario-page > .row > [class*="col-"],
    .beneficios-page > .row > [class*="col-"],
    .reportes-page > .row > [class*="col-"],
    .pagos-page > .row > [class*="col-"],
    .pagos-page .pagos-grid-bottom > [class*="col-"],
    .registros-page > .row > [class*="col-"],
    .personal-page > .row > [class*="col-"] {
        width: 100%;
    }

    .productos-page .module-card,
    .inventario-page .inventory-table-card,
    .beneficios-page .benefit-panel,
    .reportes-page .report-card,
    .pagos-page .pagos-module,
    .registros-page .registro-card,
    .personal-page .staff-card,
    .table-card,
    .form-card {
        min-width: 0;
    }

    .productos-page .product-guide-card,
    .pagos-page .pagos-module,
    .reportes-page .report-card,
    .inventario-page .inventory-table-card,
    .beneficios-page .benefit-panel,
    .registros-page .registro-card,
    .personal-page .staff-card,
    .table-card,
    .form-card,
    .module-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .productos-page .product-table-wrap,
    .productos-page .table-responsive,
    .inventario-page .inventory-table-card > .table-responsive,
    .beneficios-page .table-responsive,
    .reportes-page .table-responsive,
    .reportes-page .report-scroll-body,
    .pagos-page .pagos-table-scroll,
    .registros-page .table-responsive,
    .personal-page .table-responsive,
    .table-card .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .productos-page .product-price-table,
    .inventario-page .inventory-table,
    .beneficios-page table,
    .reportes-page table,
    .pagos-page .pagos-table,
    .registros-page table,
    .personal-page table,
    .table-card table {
        min-width: 680px;
    }

    .productos-page .module-card:first-child .row.g-3,
    .inventario-page .inventory-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .app-fit-page,
    .content-area > .app-fit-page,
    .pagos-wrap.app-fit-page {
        padding: 18px 14px 20px !important;
    }

    .dashboard-title,
    .pagos-title {
        font-size: 2rem !important;
    }

    .dashboard-subtitle,
    .pagos-subtitle,
    .productos-page .product-guide-card .text-secondary.small,
    .reportes-page .report-card-subtitle,
    .beneficios-page .text-secondary,
    .inventario-page .text-secondary,
    .registros-page .registro-helper {
        font-size: .92rem !important;
    }

    .topbar .btn-admin,
    .topbar .badge-role {
        min-height: 40px;
        padding: 8px 14px;
    }

    .dashboard-home-page .hours-card,
    .dashboard-home-page .fichaje-btn,
    .pagos-page .pagos-top-card,
    .reportes-page .reporte-stat-card,
    .productos-page .product-summary-card {
        min-height: unset;
    }

    .productos-page .module-card:first-child,
    .productos-page .product-guide-card,
    .productos-page .product-register-card,
    .pagos-page .pagos-module,
    .pagos-page .pagos-history-card,
    .pagos-page .pagos-side-card,
    .reportes-page .report-card,
    .beneficios-page .benefit-panel,
    .inventario-page .inventory-table-card,
    .registros-page .registro-card,
    .personal-page .staff-card,
    .table-card,
    .form-card,
    .module-card {
        border-radius: 18px;
    }

    .productos-page .module-card:first-child .row.g-3 {
        --bs-gutter-x: .7rem;
        --bs-gutter-y: .7rem;
    }

    .productos-page .product-category-card,
    .inventario-page .inventory-category-card {
        min-height: 66px;
        padding: 10px;
    }

    .productos-page .product-category-card span,
    .inventario-page .inventory-category-card span {
        font-size: .9rem;
    }

    .productos-page .product-guide-card h4,
    .inventario-page .inventory-panel-header h4,
    .reportes-page .report-card-header h5,
    .pagos-page .pagos-module-title,
    .beneficios-page h4,
    .registros-page h5,
    .personal-page h4 {
        font-size: 1.1rem !important;
    }

    .productos-page .product-price-table thead th,
    .productos-page .product-price-table tbody td,
    .inventario-page .inventory-table thead th,
    .inventario-page .inventory-table tbody td,
    .pagos-page .pagos-table thead th,
    .pagos-page .pagos-table tbody td,
    .reportes-page table thead th,
    .reportes-page table tbody td,
    .beneficios-page table thead th,
    .beneficios-page table tbody td,
    .registros-page table thead th,
    .registros-page table tbody td,
    .personal-page table thead th,
    .personal-page table tbody td {
        padding: 12px 12px;
        font-size: .92rem !important;
    }

    .pagos-page .pagos-toolbar,
    .pagos-page .pagos-toolbar-right,
    .reportes-page .report-card-header,
    .inventario-page .inventory-panel-header,
    .section-header-actions,
    .registro-section-head {
        flex-direction: column;
        align-items: stretch !important;
    }

    .pagos-page .pagos-toolbar-right > *,
    .section-header-actions > *,
    .registro-section-head > *,
    .inventario-page .inventory-panel-header > *,
    .reportes-page .report-card-header > * {
        width: 100%;
        max-width: 100%;
    }

    .pagos-page .pagos-grid-bottom,
    .productos-page > .row,
    .reportes-page > .row,
    .beneficios-page > .row,
    .registros-page > .row,
    .personal-page > .row {
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 767px) {
    .topbar {
        padding: 14px 14px 14px 66px !important;
        align-items: flex-start !important;
    }

    .topbar h6,
    .topbar small {
        max-width: 100%;
        word-break: break-word;
    }

    .topbar .btn-admin,
    .topbar .badge-role {
        width: auto;
        align-self: flex-start;
    }

    .dashboard-title,
    .pagos-title {
        font-size: 1.7rem !important;
        line-height: 1.12;
    }

    .dashboard-subtitle,
    .pagos-subtitle {
        margin-bottom: 14px;
    }

    .productos-page .module-card:first-child,
    .productos-page .product-guide-card,
    .productos-page .product-register-card,
    .pagos-page .pagos-module,
    .pagos-page .pagos-history-card,
    .pagos-page .pagos-side-card,
    .reportes-page .report-card,
    .beneficios-page .benefit-panel,
    .inventario-page .inventory-table-card,
    .registros-page .registro-card,
    .personal-page .staff-card,
    .table-card,
    .form-card,
    .module-card,
    .hours-card {
        padding-left: 14px;
        padding-right: 14px;
        border-radius: 16px;
    }

    .dashboard-home-page .row.g-3,
    .productos-page > .row,
    .inventario-page > .row,
    .beneficios-page > .row,
    .reportes-page > .row,
    .pagos-page > .row,
    .registros-page > .row,
    .personal-page > .row {
        --bs-gutter-x: .8rem;
        --bs-gutter-y: .8rem;
    }

    .productos-page .module-card:first-child .row.g-3,
    .inventario-page .inventory-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .productos-page .product-category-card,
    .inventario-page .inventory-category-card {
        min-height: 62px;
        border-radius: 14px;
        gap: 4px;
    }

    .productos-page .product-category-card i,
    .inventario-page .inventory-category-card i {
        font-size: 20px;
    }

    .productos-page .product-category-card span,
    .inventario-page .inventory-category-card span {
        font-size: .84rem;
        line-height: 1.12;
    }

    .dashboard-home-page .fichaje-btn,
    .dashboard-home-page .hours-card,
    .pagos-page .pagos-top-card,
    .reportes-page .reporte-stat-card,
    .productos-page .product-summary-card {
        padding: 14px;
    }

    .dashboard-home-page .fichaje-btn h5,
    .reportes-page .reporte-stat-card h3,
    .pagos-top-value,
    .hours-card h2 {
        font-size: 1.45rem !important;
    }

    .productos-page .product-price-table,
    .inventario-page .inventory-table,
    .beneficios-page table,
    .reportes-page table,
    .pagos-page .pagos-table,
    .registros-page table,
    .personal-page table,
    .table-card table {
        min-width: 620px;
    }

    .productos-page .product-name-trigger,
    .productos-page .price-pill,
    .productos-page .price-empty,
    .inventario-page .inventory-table tbody td,
    .pagos-page .pagos-table tbody td,
    .reportes-page table tbody td,
    .beneficios-page table tbody td,
    .registros-page table tbody td,
    .personal-page table tbody td {
        font-size: .9rem !important;
    }

    .btn,
    .pagos-btn,
    .registro-btn,
    .btn-admin,
    .product-reset-btn,
    .btn-add-product {
        min-height: 42px;
    }

    input,
    select,
    textarea,
    .form-control,
    .pagos-input,
    .registro-input {
        min-height: 42px;
        font-size: 16px !important;
    }

    textarea,
    .registro-textarea {
        min-height: 96px;
    }
}


/* ===== DASHBOARD RANKING PREMIUM ===== */
.dashboard-stats-page .ranking-card {
    background: linear-gradient(180deg, rgba(24,24,24,0.97), rgba(10,10,10,0.99));
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 24px 48px rgba(0,0,0,0.28);
    position: relative;
}

.dashboard-stats-page .ranking-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dashboard-stats-page .ranking-header {
    padding: 24px 26px;
    position: relative;
}

.dashboard-stats-page .ranking-header::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.dashboard-stats-page .ranking-sales .ranking-header {
    background: linear-gradient(90deg, #0a4944 0%, #065360 46%, #14223f 100%);
}

.dashboard-stats-page .ranking-hours .ranking-header {
    background: linear-gradient(90deg, #1c2571 0%, #311c63 54%, #3f123f 100%);
}

.dashboard-stats-page .ranking-header h5 {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dashboard-stats-page .ranking-header p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    margin-bottom: 0;
}

.dashboard-stats-page .ranking-body {
    padding: 24px;
}

.dashboard-stats-page .ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(90deg, rgba(54,54,54,0.96), rgba(36,36,36,0.98));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 17px 18px;
    margin-bottom: 16px;
    min-height: 88px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-stats-page .ranking-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 22px rgba(0,0,0,0.16);
}

.dashboard-stats-page .rank-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.dashboard-stats-page .rank-number {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.dashboard-stats-page .rank-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
}

.dashboard-stats-page .rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-stats-page .rank-left strong {
    display: block;
    font-size: 1.16rem;
    line-height: 1.05;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-stats-page .rank-left small {
    display: block;
    margin-top: 5px;
    font-size: 0.93rem;
    color: #bbbbbb;
}

.dashboard-stats-page .rank-value {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
    color: #3df09a;
    letter-spacing: -0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .dashboard-stats-page .ranking-header {
        padding: 20px 20px;
    }

    .dashboard-stats-page .ranking-header::after {
        left: 20px;
        right: 20px;
    }

    .dashboard-stats-page .ranking-body {
        padding: 18px;
    }

    .dashboard-stats-page .ranking-item {
        align-items: flex-start;
        gap: 14px;
    }

    .dashboard-stats-page .rank-value {
        font-size: 1.3rem;
    }
}

/* Estado global del local - Punto 1 */
.btn-estado-local {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 142px;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .25px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.btn-estado-abrir {
    background: linear-gradient(135deg, #22c55e, #7ee35f);
    color: #08110b !important;
}
.btn-estado-cerrar {
    background: linear-gradient(135deg, #ef4444, #ff6b6b);
    color: #fff !important;
}
.estado-local-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}
.dot-abrir { background: #10b981; }
.dot-cerrar { background: #ef4444; }

/* Botón global Abrir/Cerrar Local en todos los módulos */
.content-area {
    position: relative;
}
.app-global-local-control {
    position: absolute;
    top: 18px;
    right: 170px;
    z-index: 35;
}
@media (max-width: 991px) {
    .app-global-local-control {
        position: static;
        padding: 12px 16px 0;
    }
    .app-global-local-control .btn-estado-local {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .btn-estado-local { width: 100%; min-width: auto; }
    .topbar .justify-content-end { justify-content: flex-start !important; width: 100%; }
}

/* ===== Configuración global TEQUI-LA-LA ===== */
.logo-title,
.logo-subtitle,
.sidebar-menu a.active,
.sidebar-menu a:hover,
.login-title,
.login-btn,
.btn-estado-abrir,
.badge-role {
    --config-primary: var(--app-primary, #f2ba00);
}
.sidebar-menu a.active,
.sidebar-menu a:hover {
    border-left-color: var(--app-primary, #f2ba00) !important;
}
.logo-subtitle,
.config-card h3 i,
.login-title {
    color: var(--app-primary, #f2ba00) !important;
}
.login-btn,
.btn-estado-abrir {
    background: var(--app-primary, #f2ba00) !important;
    border-color: var(--app-primary, #f2ba00) !important;
}
