:root {
    --bs-primary-rgb: 43, 0, 206;
    --bs-link-color: #2B00CE;
    --gradient: linear-gradient(89.18deg, #2B00CE 5.47%, #BA46A8 50.53%, #FF9F22 94.7%);
}

/* Ensure all table cells have centered content */
#componentTable td {
    vertical-align: middle;
}

/* Ensure order_number cell has correct structure */
.order-number-cell {
    white-space: nowrap;
}

/* Stack up/down arrows vertically */
.order-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* Adjust spacing between icons */
}

/* Ensure icons are clickable and properly spaced */
.order-controls a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.queue-item {
    transition: opacity 0.5s, transform 0.5s;
}

.alert-wrapper {
    position: fixed;
    right: 15px;
    bottom: 15px;
}

.gradient {
    background: var(--gradient);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gray {
    color: #c5c5c5;
}

.pt-3-px {
    padding-top: 3px;
}

.pt-6-px {
    padding-top: 6px;
}

/* Buttons */

.btn-80 {
    width: 80%;
    display: block;
    margin: 0 auto;
}

.btn-100 {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.btn-bold {
    font-weight: bold;   /* Bolder text */
}

.btn-primary {
    --bs-btn-color: #FFF;
    --bs-btn-bg: #2B00CE;
    --bs-btn-border-color: #2B00CE;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #B5A6ED;
    --bs-btn-hover-border-color: #B5A6ED;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #FFF;
    --bs-btn-active-bg: #B5A6ED;
    --bs-btn-active-border-color: #B5A6ED;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #FFF;
    --bs-btn-disabled-bg: #E5EAF0;
    --bs-btn-disabled-border-color: #E5EAF0;
}

.btn-secondary {
    --bs-btn-color: #2B00CE;
    --bs-btn-bg: #F7F5FF;
    --bs-btn-border-color: #F7F5FF;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #2B00CE;
    --bs-btn-hover-border-color: #2B00CE;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #2B00CE;
    --bs-btn-active-bg: #B5A6ED;
    --bs-btn-active-border-color: #B5A6ED;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #FFF;
    --bs-btn-disabled-bg: #E5EAF0;
    --bs-btn-disabled-border-color: #E5EAF0;
}

.btn-white {
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
}

.btn-circle {
    color: #28093B;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 5px 0px #00000026;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #2B00CE;
    --bs-btn-hover-border-color: #2B00CE;
    border-radius: 50%;
}

.btn-outline-primary {
    position: relative;
    will-change: transform;
    padding: 12px 32px; /* Increase horizontal and vertical padding */
    border-radius: 2rem;
    z-index: 0;
    --bs-btn-border-color: #FFF;
    --bs-btn-hover-bg: var(--gradient);
    --bs-btn-hover-border-color: none;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-bg: #2B00CE;
    --bs-btn-active-border-color: #2B00CE;
    --bs-btn-disabled-color: #2B00CE;
    --bs-btn-disabled-border-color: #2B00CE;
    /* border: 4px solid transparent;
    border-radius: 1em;
    background: linear-gradient(90deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%); 
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box; */
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%);
    border-radius: 2rem;
    z-index: 0;
    transition: .5s ease-in-out;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: var(--bs-border-width);
    left: var(--bs-border-width);
    right: var(--bs-border-width);
    bottom: var(--bs-border-width);
    background: #FFF;
    border-radius: 2rem;
    z-index: 1;
}

.btn-outline-primary .text-gradient {
    position: relative;
    z-index: 2; /* Ensure text stays visible */
    background: linear-gradient(90deg, #2B00CE, #BA46A8, #FF9F22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline-primary:hover::after {
    background: var(--gradient);
}

.btn-outline-primary:hover .text-gradient {
    -webkit-text-fill-color: white;
}


/* Input */

.form-check-input:checked {
    background-color: #2B00CE;
    border-color: #2B00CE;
}

/* Table */

th {
    font-weight: 400;
}

/* pagination */
.pagination {
    --bs-pagination-active-bg: #2B00CE;
}

/* Layout */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    z-index: 1000;
    background: white;
}

.content {
    min-height: 100vh;
    padding-top: 62px;
}

/* Sidebar */

.app-shell {
    display: flex;
    min-height: calc(100vh - 62px);
}

.content-sidebar {
    position: fixed;
    top: 62px;
    bottom: 0;
    left: 0;
    width: 260px;
    padding: 0;
    background: #FFFFFF;
    border-right: 1px solid #DCD7E2;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1045;
}

.sidebar {
    min-height: 100%;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
}

.sidebar .nav-pills {
    flex-direction: column;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 11px;
    left: 10px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #DCD7E2;
    border-radius: 10px;
    background: #FFFFFF;
    color: #2B00CE;
    font-size: 1.35rem;
    line-height: 1;
}

.sidebar-toggle:hover {
    border-color: rgba(43, 0, 206, .45);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 62px 0 0 0;
    background: rgba(20, 16, 40, .45);
    z-index: 1040;
}

.sidebar-backdrop.is-visible {
    display: block;
}

.nav-pills .nav-link {
    position: relative;
    padding: 1rem 2rem;
    color: #000000;
    border-radius: 0;
}

.nav-pills .nav-link.active {
    color: #000000;
    background: #F0F2F5;
}

.nav-pills .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(0deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%);
    border-radius: 0 1em 1em 0;
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: flex;
    }

    .content-sidebar {
        width: 82vw;
        max-width: 300px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 0 0 32px rgba(20, 16, 40, .18);
    }

    .content-sidebar.is-open {
        transform: none;
    }

    .brand-block {
        margin-left: 56px !important;
    }

    body.sidebar-open {
        overflow: hidden;
    }

}

@media (prefers-reduced-motion: reduce) {
    .content-sidebar {
        transition: none;
    }
}

/* /Sidebar */

/* Moblie menu */

.mobile-navbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #FFFFFF;
    z-index: 2;
}

.mobile-navbar.nav-pills .nav-link.active {
    color: #000000;
    background: #B5A6ED;
}

@media screen and (max-width: 768px) {
    .mobile-navbar {
        display: block;
    }

    .mobile-navbar .nav-pills > * {
        flex: 0 0 25%;
        max-width: 25%;
        text-align: center;
    }
    
    .mobile-navbar .nav-pills .nav-link {
        padding: 1rem .75rem;
    }
}

.content-section {
    padding: 1rem 2rem;
    background-color: #FFFFFF;
    border-radius: 1rem;
}



.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
    text-align: left;
    width: 100%;
}

.stat-item {
    padding: .85rem 1rem;
    border: 1px solid #E7E4EE;
    border-radius: .75rem;
}

.stat-item h3 {
    font-size: .95rem;
}

.stat-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
}

.stat-item p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-item .done-item {
    color: rgb(122, 199, 8);
}

.stat-item .awaiting-item {
    color: rgb(185, 8, 185);
}

.stat-item .cancelled-item {
    color: orange;
}

.stat-item .all-item {
    color: blue;
}

.stat-item h3,
.stat-item p {
    white-space: normal;
}


.border-purple {
    border-color: #6f42c1 !important; /* Bootstrap's purple */
}

.text-purple {
    color: #6f42c1 !important;
}

.badge-fixed-width {
    width: 120px;  /* Adjust as needed */
    display: inline-block;
    text-align: center;
    padding: 0.7em 0.5em;
    font-size: 0.75rem; /* Smaller text */
    border-radius: 0.5rem; /* Rounded corners */
    white-space: nowrap; /* Prevent text wrapping */
}

@media screen and (max-width: 768px) {
    .content-section {
        overflow-x: auto;
    }
}

.navbar {
    margin-top: 20px;
}

.profile-divider {
    border: none;
    height: 1px;
    background-color: rgba(0, 128, 0, 0.6); /* Faint green */
    margin: 10px 0;
}

/* Main Content */

.content-main {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 260px;
    padding: 1.5rem 2rem 100px;
    background-color: #F0F2F5;
}

.page-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .content-main {
        margin-left: 0;
        padding: 1rem 1rem 90px;
    }
}

@media (max-width: 575.98px) {
    .content-main {
        padding: .75rem .75rem 80px;
    }
}

.card {
    border: none;
    border-radius: 1rem;
}

/* /Main Content */

.circle-done {
    width: 100px;
    height: 100px;
    background-image: url('../images/icon-done.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    background-color: #F7F5FF;
    border-radius: 50%;
}


.circle-cancel {
    width: 100px;
    height: 100px;
    background-image: url('../images/icon-cancel.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
    background-color: #F7F5FF;
    border-radius: 50%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

#tablo .fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

#tablo .fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

#tablo body, html#tablo {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #F3F3F7;
}

#tablo .full-screen {
    height: 100vh;
    display: flex;
}

#tablo .left-panel {
    width: 35%;
    background-color: #E7E7EF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

#tablo .qr-wrapper {
    flex-grow: 1; /* Centers the QR container */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#tablo .qr-container {
    background: white;
    border-radius: 40px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

#tablo .qr-code {
    width: 180px;
    height: 180px;
}

#tablo .right-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: white;
}

#tablo .logo {
    font-size: 32px;
    font-weight: bold;
    text-align: right;
}

#tablo .date-time {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

#tablo .table th, #tablo .table td {
    text-align: center;
    font-size: 24px;
}

#tablo .striped-table tbody tr:nth-child(odd) td {
    --bs-table-accent-bg: #f3f4f6; /* light gray */
    padding: 0.4rem 0.5rem;
}  

#tablo .striped-table tbody tr:nth-child(even) td {
    padding: 0.5rem 0.5rem;
}  

#tablo .striped-table tbody td {
    font-size: clamp(18px, 2.1vw, 40px) !important;
}

#tablo .striped-table td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

#tablo thead tr th {
    padding-bottom: 2rem;
    color: gray;
}

#tablo .queue-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

#tablo tr {
    border-style: hidden;
}

@media (min-height: 700px) {
    #tablo .striped-table tbody tr:nth-child(even) td {
        padding: 1.5rem 0.5rem !important;
    }  
}

@media (max-width: 768px) {
    #tablo .full-screen {
        flex-direction: column;
        height: auto; /* prevent forcing height on stacked layout */
    }

    #tablo .left-panel,
    #tablo .right-panel {
        width: 100%;
        padding: 20px;
    }

    #tablo .qr-container {
        padding: 10px;
        border-radius: 20px;
    }

    #tablo .qr-code {
        width: 140px;
        height: 140px;
    }

    #tablo .table th,
    #tablo .table td {
        font-size: 16px;
    }

    #tablo .striped-table tbody td {
        font-size: 32px;
    }

    #tablo .logo {
        text-align: center;
        font-size: 24px;
    }

    #tablo .date-time {
        font-size: 18px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}


.rounded-row td:nth-child(odd) {
    border-radius: 40px 0px 0px 40px;
}

.rounded-row td:nth-child(even) {
    border-radius: 0px 40px 40px 0px;
}

#togglePassword {
    cursor: pointer;
}

#togglePassword i {
    color: black;
    font-size: 1.2rem;
}

#togglePassword:focus {
    outline: none;
    box-shadow: none;
}

.brand-block img {
    display: block;
    height: auto;
}

.queue-logo img {
    width: 180px;
}

.superqr-logo img {
    width: 60px;
    padding-top: 3px;
}

.powered-text {
    font-size: 12px;
    color: #c5c5c5; /* Bootstrap's text-muted gray */
    line-height: 1;
}

/* /Sidebar */

.powered-by-block {
    margin: 1rem;
    color: #c5c5c5;
}

/* Responsive for larger screens */
@media (min-width: 768px) {
    .queue-logo img {
        width: 300px;
    }

    .superqr-logo img {
        width: 100px;
        padding-top: 0px;
    }

    .powered-text {
        font-size: 14px;
    }

    .powered-by {
        margin-top: 5px;
    }
}
  

.history-container {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.history-card {
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E7E4EE;
    border-radius: 1rem;
}

.history-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-items: center;
    gap: .5rem 1rem;
}

.history-column {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    min-width: 0;
}

.history-column .label {
    color: #8A8694;
    font-size: .85rem;
}

.history-column.phone .value {
    color: #6B6B76;
    font-weight: 500;
}

.history-column .value {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.history-column.line-number .value {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: rgba(43, 0, 206, .07);
    color: #2B00CE;
    font-size: 1.05rem;
    font-weight: 700;
}

.history-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #F1EFF6;
}

.history-footer .table-pagination {
    margin: 0;
    padding: 0;
    border: 0;
}

@media (min-width: 768px) {
    .history-footer {
        flex-direction: row;
    }
}

@media (max-width: 767.98px) {
    .history-card {
        padding: .85rem 1rem;
    }

    .history-row {
        grid-template-columns: 1fr 1fr;
    }
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #FFFFFF;
    border: 1px solid #E7E4EE;
    border-radius: .9rem;
    -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar {
    height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: #D6D1E0;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.data-table {
    margin-bottom: 0;
    min-width: 720px;
    --bs-table-bg: transparent;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .85rem 1rem;
    background: #F7F6FA;
    color: #6B6B76;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    border-bottom: 1px solid #E7E4EE;
}

.data-table tbody td {
    padding: .85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #F1EFF6;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover td {
    background: #FAF9FD;
}

.data-table tbody td.table-empty {
    padding: 2rem 1rem;
    color: #8A8694;
}

.table-actions-cell {
    white-space: nowrap;
    width: 1%;
}

.table-actions-cell .btn-circle + .btn-circle {
    margin-left: .25rem;
}

@media (max-width: 767.98px) {
    .data-table thead th,
    .data-table tbody td {
        padding: .7rem .75rem;
        font-size: .92rem;
    }

    .content-section {
        padding: .85rem 1rem;
        overflow-x: visible;
    }
}

.content-section > .table-wrap,
.content-section .table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.content-section .data-table thead th {
    background: #F7F6FA;
}

.table-pagination {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #F1EFF6;
}

.table-pagination .pagination {
    --bs-pagination-padding-x: .85rem;
    --bs-pagination-padding-y: .45rem;
    --bs-pagination-color: #6B6B76;
    --bs-pagination-bg: transparent;
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: #E7E4EE;
    --bs-pagination-border-radius: .6rem;
    --bs-pagination-hover-color: #2B00CE;
    --bs-pagination-hover-bg: #F7F5FF;
    --bs-pagination-hover-border-color: #D6CCFA;
    --bs-pagination-focus-color: #2B00CE;
    --bs-pagination-focus-bg: #F7F5FF;
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(43, 0, 206, .12);
    --bs-pagination-active-color: #FFFFFF;
    --bs-pagination-active-bg: #2B00CE;
    --bs-pagination-active-border-color: #2B00CE;
    --bs-pagination-disabled-color: #C3BFCE;
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-border-color: #F1EFF6;
    gap: .35rem;
    margin-bottom: 0;
}

.table-pagination .page-link {
    min-width: 2.5rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

.table-pagination .page-item.active .page-link {
    box-shadow: 0 4px 12px rgba(43, 0, 206, .22);
}

.history-container + .d-flex .table-pagination {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 575.98px) {
    .table-pagination {
        margin-top: 1rem;
        padding-top: .85rem;
    }
}

.section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 2rem 0 1rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
}

.section-head .btn-circle {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}

.form-actions .btn {
    flex: 1 1 100%;
}

.form-actions-danger {
    margin-left: 0;
}


@media (min-width: 576px) {
    .form-actions .btn {
        flex: 0 0 auto;
    }

    .form-actions-danger {
        margin-left: auto;
    }
}

.page-hint {
    margin: -.35rem 0 1rem;
    color: #6B6B76;
    font-size: .95rem;
    max-width: 60ch;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.page-actions .btn {
    flex: 1 1 100%;
}

.modal-content {
    border: 0;
    border-radius: 1rem;
}

.modal-header,
.modal-footer {
    border-color: #F1EFF6;
}

.modal-footer .btn {
    flex: 1 1 auto;
}

@media (min-width: 576px) {
    .page-actions .btn {
        flex: 0 0 auto;
    }

    .modal-footer .btn {
        flex: 0 0 auto;
    }
}

.form-grid > [class*="col-"] {
    display: flex;
}

.form-grid > [class*="col-"] > .mb-3:not(.form-check) {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin-bottom: 0 !important;
}

.form-grid > [class*="col-"] > .mb-3:not(.form-check) > .form-label {
    flex: 1 0 auto;
    margin-bottom: .4rem;
}

.form-grid > [class*="col-"] > .mb-3:not(.form-check) > .form-text {
    margin-top: .35rem;
}

.form-grid > [class*="col-"] > .form-check,
.form-grid > [class*="col-"] > .form-check.mb-3 {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    min-height: 2.5rem;
    margin: 0;
    padding-left: 0;
    align-self: flex-end;
}

.form-grid > [class*="col-"] > .form-check .form-check-input {
    flex: 0 0 auto;
    margin: 0;
    float: none;
}

.form-grid > [class*="col-"] > .form-check .form-check-label {
    margin: 0;
}

.form-grid .form-control,
.form-grid .form-select {
    width: 100%;
}

.form-grid .select2-container {
    width: 100% !important;
}

.confirm-modal-text {
    margin-bottom: 0;
    color: #4A4A55;
}

.confirm-modal-subject {
    margin-top: .85rem;
    padding: .7rem .9rem;
    background: #F7F6FA;
    border: 1px solid #E7E4EE;
    border-left: 3px solid #C6303A;
    border-radius: .6rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: start;
    max-width: 1100px;
}

.profile-card {
    text-align: center;
}

.profile-card-icon {
    display: block;
    margin: 0 auto .75rem;
}

.profile-card-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    color: #FFFFFF;
    font-size: 2rem;
}

.profile-card-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    text-align: left;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .75rem;
    border-radius: .6rem;
    color: #1B1B1F;
    text-decoration: none;
    font-weight: 600;
}

.profile-link:hover {
    background: #F7F5FF;
    color: #2B00CE;
}

.profile-link .bi-chevron-right {
    color: #B9B5C4;
    font-size: .9rem;
}

#tablo .full-screen {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
}

#tablo .left-panel,
#tablo .right-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#tablo .date-time {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#tablo .qr-hint {
    margin: 1rem 0 0;
    text-align: center;
    font-size: clamp(.95rem, 1.4vw, 1.35rem);
    color: #4A4A55;
}

#tablo .qr-wrapper {
    flex-direction: column;
}

#tablo .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#tablo .logo img {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}

#tablo .striped-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tablo .tablo-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #8A8694;
}

#tablo .tablo-empty i {
    font-size: clamp(3rem, 8vw, 6rem);
}

#tablo .tablo-empty p {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
}

@media (max-width: 991.98px) {
    #tablo .full-screen {
        flex-wrap: wrap;
        height: auto;
        min-height: 100vh;
    }

    #tablo .left-panel {
        order: 2;
    }

    #tablo .right-panel {
        order: 1;
    }

    #tablo .logo img {
        max-width: 120px;
        max-height: 60px;
    }

    #tablo .date-time {
        flex-direction: column;
        gap: .25rem;
        align-items: center;
        text-align: center;
    }
}

.client-page {
    background-color: #F5F5F7;
}

.client-lang {
    position: fixed;
    top: 10px;
    right: 14px;
    z-index: 1000;
}

.client-wrap {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 3rem;
}

.queue-card {
    width: 100%;
    max-width: 420px;
    height: fit-content;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(20, 16, 40, .08);
}

.queue-card-title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

.queue-card-hint {
    margin: -.75rem 0 1.25rem;
    color: #6B6B76;
    font-size: .95rem;
    text-align: center;
}

.queue-point-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1rem;
    border: 1px solid #E7E4EE;
    border-radius: .75rem;
    text-decoration: none;
    color: #1B1B1F;
    font-weight: 600;
}

.queue-point-link + .queue-point-link {
    margin-top: .6rem;
}

.queue-point-link:hover {
    border-color: rgba(43, 0, 206, .45);
    background: #FAF9FD;
    color: #2B00CE;
}

.queue-point-link .bi-chevron-right {
    margin-left: auto;
    color: #B9B5C4;
    font-size: .9rem;
}

.ticket-card {
    text-align: center;
}

.ticket-number {
    margin: .25rem 0;
    font-size: clamp(2.75rem, 16vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    color: #2B00CE;
}

.ticket-label {
    margin: 0;
    color: #6B6B76;
}

.ticket-status {
    margin: .75rem 0 .25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2B00CE;
}

.ticket-table-wrap {
    width: 100%;
    max-width: 640px;
    margin: 1.25rem auto 0;
    overflow-x: auto;
}

.ticket-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 0;
}

.ticket-table th {
    padding: 0 1rem;
    color: #8A8694;
    font-size: .85rem;
    font-weight: 600;
}

.ticket-table td {
    padding: .85rem 1rem;
    background: #FFFFFF;
    border: 0;
    font-weight: 600;
}

.ticket-table td:first-child {
    border-radius: .75rem 0 0 .75rem;
}

.ticket-table td:last-child {
    border-radius: 0 .75rem .75rem 0;
}

.ticket-table .tablo-row td {
    color: #FFFFFF;
    background-color: #2B00CE;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: calc(100vh - 62px);
    padding: 2rem 1rem;
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 18vw, 7rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
