/* css */
.main-wrapper {
    background-color: #050000;
    background-image: url('../images/cig_background_clean.png');
    background-repeat: repeat;
    background-size: auto;
    min-height: 100vh;
    width: 100%;
    color: #20242a;
}

.top-bar-background{
    background: linear-gradient(to bottom, rgb(80,20,0),rgb(130,30,0));
}

.top-bar-watch {
    font-family: 'Courier New', Courier, monospace;
    font-size: 36px;
    font-weight: bold;
    background-color: rgb(37, 25, 25);
    color: rgb(74, 253, 83);
    border-radius: 20px;
    padding: 5px 20px;
}

.order-wrapper {
    background-color: rgba(255, 246, 226, 0.97);
    container-type: inline-size;
    margin: 10px 5px;
    border: 1px solid rgba(31, 41, 55, 0.22);
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.12);
    overflow: hidden;
}

.order-top-bar {
    background: linear-gradient(90deg, #9a0000, #d69a25);
    height: 20px;
    margin-bottom: 5px;
}

.order-top-bar-paid {
    background: linear-gradient(90deg, #9a0000, #d69a25);
}

.order-top-bar-preparing {
    background: linear-gradient(90deg, #9a5b00, #f2c14e);
}

.order-status-line {
    display: flex;
    justify-content: flex-end;
    padding: 0 8px 4px;
}

.order-status-line span {
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: 900;
    padding: 5px 10px;
}

.order-status-paid {
    background-color: #e8fff1;
    color: #166534;
}

.order-status-preparing {
    background-color: #fff4d6;
    color: #8a5200;
}

.order-content {
    align-items: stretch;
    display: grid;
    font-family: 'Courier New', Courier, monospace;
    gap: 8px;
    grid-template-columns: minmax(82px, 0.8fr) minmax(82px, 0.9fr) minmax(100px, 1.1fr) minmax(96px, 1fr) minmax(82px, 0.9fr) minmax(105px, 1fr) 68px 68px;
    padding: 5px;
}

.order-content-item {
    align-items: center;
    background-color: #fffaf0;
    border: 1px solid rgba(92, 45, 0, 0.14);
    border-radius: 10px;
    color: #2b1600;
    display: flex;
    justify-content: center;
    line-height: 1.15;
    min-height: 74px;
    overflow: visible;
    overflow-wrap: anywhere;
    padding: 7px;
    text-align: center;
    word-break: break-word;
}

.order-content-number {
    color: #9a0000;
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
}

.order-content-total-items {
    color: #2b1600;
    font-size: 21px;
    font-weight: bold;
}

.order-content-date-time {
    color: #3f2a16;
    font-size: 16px;
    font-weight: bold;
}

.order-action-button {
    align-items: center;
    display: flex;
    min-height: 74px;
    justify-content: center;
    padding: 0;
    width: 68px;
}

.kitchen-empty-message {
    color: #fff1d6;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.kitchen-section-header {
    align-items: center;
    background-color: rgba(255, 246, 226, 0.96);
    border: 1px solid rgba(214, 154, 37, 0.34);
    border-radius: 8px;
    color: #4b2600;
    display: flex;
    justify-content: space-between;
    margin: 0 5px 10px;
    padding: 14px 18px;
}

.kitchen-section-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
}

.kitchen-section-header span {
    align-items: center;
    background-color: #9a0000;
    border-radius: 8px;
    color: #fff1d6;
    display: inline-flex;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    font-weight: 900;
    justify-content: center;
    min-width: 52px;
    padding: 6px 12px;
}

.kitchen-section-header-active span {
    background-color: #9a5b00;
}

@media (max-width: 1400px) {
    .order-content {
        grid-template-columns: minmax(82px, 0.8fr) minmax(82px, 0.9fr) minmax(100px, 1.1fr) minmax(96px, 1fr) minmax(82px, 0.9fr) minmax(105px, 1fr) 68px 68px;
    }
}

@media (max-width: 992px) {
    .order-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-action-button {
        width: 100%;
    }
}

@container (max-width: 920px) {
    .order-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-action-button {
        width: 100%;
    }
}

/* handel order */
.handle-order-actions {
    flex-wrap: wrap;
}

.order-datails-info {
    background-color: rgba(255, 246, 226, 0.97);
    border: 1px solid rgba(92, 45, 0, 0.14);
    border-radius: 10px;
    color: #2b1600;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    overflow-wrap: anywhere;
}

.order-product-item {
    background-color: rgba(255, 246, 226, 0.97);
    border: 1px solid rgba(92, 45, 0, 0.14);
    border-radius: 10px;
    color: #2b1600;
    font-size: 2em;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    padding: 16px;
}

.order-product-item input[type="checkbox"] {
    margin-left: 100px;
    width: 30px;
    height: 30px;
}

/* order tracking */
.tracking-page {
    min-height: calc(100vh - 90px);
}

.tracking-title {
    color: #fff1d6;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.tracking-updated {
    background-color: rgba(255, 241, 214, 0.94);
    border: 1px solid rgba(214, 154, 37, 0.32);
    border-radius: 8px;
    color: #4b2600;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 18px;
}

.tracking-column {
    background-color: rgba(255, 246, 226, 0.95);
    border: 1px solid rgba(214, 154, 37, 0.26);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    min-height: 62vh;
    padding: 18px;
}

.tracking-column-header {
    align-items: center;
    border-bottom: 1px solid rgba(31, 41, 55, 0.12);
    display: flex;
    font-size: 2rem;
    font-weight: 800;
    justify-content: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    position: relative;
}

.tracking-column-preparing .tracking-column-header {
    color: #9a5b00;
}

.tracking-column-finished .tracking-column-header {
    color: #1f7a45;
}

.tracking-clear-button {
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid rgba(154, 91, 0, 0.28);
    border-radius: 8px;
    color: #9a5b00;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    gap: 2px;
    padding: 8px 12px;
    position: absolute;
    right: 0;
}

.tracking-clear-button:hover,
.tracking-clear-button:focus {
    background-color: #fff4d6;
    border-color: #d69a25;
}

.tracking-clear-button:disabled {
    opacity: 0.45;
}

.tracking-list {
    display: grid;
    gap: 14px;
}

.tracking-card {
    background-color: #fffaf0;
    border: 1px solid rgba(92, 45, 0, 0.13);
    border-left: 8px solid #d69a25;
    border-radius: 8px;
    padding: 18px;
}

.tracking-column-finished .tracking-card {
    border-left-color: #2ca25f;
}

.tracking-customer-name {
    color: #7a4500;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.tracking-column-finished .tracking-customer-name {
    color: #1f7a45;
}

.tracking-order-meta {
    color: #4b5563;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    gap: 10px 18px;
    margin-top: 10px;
}

.tracking-empty {
    color: #6a4a2b;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 50px 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .tracking-title {
        font-size: 2.2rem;
    }

    .tracking-customer-name {
        font-size: 1.9rem;
    }

    .tracking-column-header {
        font-size: 1.6rem;
        justify-content: space-between;
    }

    .tracking-clear-button {
        position: static;
    }
}
