﻿.content-backend .filter-area .time-filter-area > div {
    background: var(--theme-mode-button);
}

.content-backend .filter-area .time-filter-area .period-select-container select option {
    height: var(--px-30);
    color: var(--theme-mode-text);
    font: normal normal 500 var(--s-18);
}

.content-backend .report-page-body {
    width: 100%;
    /*height: calc(100vh - 180px);*/
    overflow: hidden;
}

.report-page-body .sale-payment-box {
    width: 100%;
    height: auto;
    border: 1px solid var(--theme-mode-border);
    border-radius: 8px;
    position: relative;
}

    .report-page-body .sale-payment-box .sale-payment-line-group {
        width: 100%;
        display: flex;
        text-align: center;
        font-size: 17px;
        font-weight: 700;
        border-bottom: 1px solid var(--theme-mode-border);
        text-transform: uppercase;
    }

        .report-page-body .sale-payment-box .sale-payment-line-group .sale-group {
            width: 70%;
            padding: 12px;
        }

        .report-page-body .sale-payment-box .sale-payment-line-group .payment-group {
            width: 30%;
            padding: 12px;
        }

    .report-page-body .sale-payment-box .sale-payment-line-header {
        width: 100%;
        display: flex;
        border-bottom: 1px solid var(--theme-mode-border);
        background: var(--header-filter-mode-bg-300);
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
    }


    .report-page-body .sale-payment-box .column-item {
        width: calc(100% / 14);
        padding: 10px 5px 10px 5px;
        text-align: center;
    }

        .report-page-body .sale-payment-box .column-item.text {
            text-align: left;
        }

        .report-page-body .sale-payment-box .column-item.num {
            text-align: right;
        }


    .report-page-body .sale-payment-box:after {
        content: '';
        position: absolute;
        top: 0;
        right: calc((100% / 14)*4);
        width: 1px;
        height: 100%;
        background: var(--theme-mode-border);
    }

    .report-page-body .sale-payment-box[page="sale-sale"] .column-item,
    .report-page-body .sale-payment-box[page="staff-saleperformance"] .column-item {
        width: calc(100% / 15);
    }

    .report-page-body .sale-payment-box[page="sale-sale"]:after,
    .report-page-body .sale-payment-box[page="staff-saleperformance"]:after {
        right: calc((100% / 15)*4);
    }

    .report-page-body .sale-payment-box[page="quickpeek-more"] .column-item {
        width: calc(100% / 14);
    }

    .report-page-body .sale-payment-box[page="quickpeek-more"]:after {
        right: calc((100% / 14)*4);
    }

    .report-page-body .sale-payment-box .sale-payment-list {
        width: 100%;
        max-height: calc(100vh - 385px);
        overflow: auto;
    }

        .report-page-body .sale-payment-box .sale-payment-list .sale-payment-line-item {
            width: 100%;
            display: flex;
            border-bottom: 1px solid var(--theme-mode-border);
            padding: 5px 0 5px 0;
            font-size: 14px;
        }

            .report-page-body .sale-payment-box .sale-payment-list .sale-payment-line-item:last-child {
                border-bottom: none;
            }

    .report-page-body .sale-payment-box .sale-payment-line-total {
        width: 100%;
        display: flex;
        border-bottom: 1px solid var(--theme-mode-border);
        font-size: 15px;
        font-weight: 700;
        padding: 12px 0 12px 0;
    }

    .report-page-body .sale-payment-box .column-item:first-child {
        font-weight: 700;
    }


.general-report-grid {
    width: 100%;
    height: auto;
    border-radius: 8px;
    position: relative;
}

    .general-report-grid .general-report-header {
        width: 100%;
        display: flex;
        font-size: 14px;
        font-weight: 700;
        border-bottom: 1px solid var(--theme-mode-border);
        text-transform: uppercase;
    }

    .general-report-grid[page='sale-promo'] .column-report-grid {
        width: calc(100% / 9);
    }

    .general-report-grid .general-report-header .column-report-grid {
        padding: 16px 8px;
        display: flex;
    }

    .general-report-grid .general-report-total-line {
        width: 100%;
        display: flex;
        /*background-color: #f8f8fb;*/
        font-size: 14px;
        font-weight: 600;
        border-bottom: 1px solid var(--theme-mode-border);
    }

        .general-report-grid .general-report-total-line .column-report-grid {
            padding: 16px 8px;
            line-height: 16px;
            display: flex;
        }

    .general-report-grid .general-report-list {
        width: 100%;
        height: calc(100vh - 300px);
        overflow: auto;
    }
    .general-report-grid .general-report-list.in-popup {
        width: 100%;
        height: unset !important;
        overflow: auto;
    }

    .general-report-grid[page="quickpeek-batch"] .general-report-list {
        height: calc(100vh - 510px);
        overflow: auto;
    }

    .general-report-grid .general-report-list .general-report-item-line {
        width: 100%;
        display: flex;
        font-size: 14px;
        border-bottom: 1px solid var(--theme-mode-border);
    }

        .general-report-grid .general-report-list .general-report-item-line .column-report-grid {
            display: flex;
            padding: 16px 8px;
            align-items: center;
        }

    .general-report-grid[page='sale-promo'] .column-report-grid {
        width: calc(100% / 9);
    }

    .general-report-grid[page='sale-stafffee'] .column-report-grid {
        width: calc(100% / 8);
    }

    .general-report-grid[page='staff-appointment'] .column-report-grid {
        width: calc(100% / 5);
    }

    .general-report-grid[page='staff-attendance'] .column-report-grid {
        width: calc(100% / 5);
    }

    .general-report-grid[page='staff-attendance-detail'] .column-report-grid:first-child {
        width: 150px;
        
    }

    .general-report-grid[page='staff-attendance-detail'] .column-report-grid:last-child {
        width: 40px;
        font-size: 22px;
        cursor:pointer;
    }

    .general-report-grid[page='staff-attendance-detail'] .column-report-grid {
        width: calc((100% - 190px) / 7);
    }

    .general-report-grid[page='stats-trafficanalysis'] .column-report-grid {
        width: calc(100% / 6);
    }

    .general-report-grid[page='stats-appointment'] .column-report-grid {
        width: calc(100% / 5);
    }

    .general-report-grid[page='quickpeek-batch'] .column-report-grid {
        width: calc(100% / 12);
    }

    .general-report-grid[page='report-detail-list'] .column-report-grid:nth-child(3) {
        width: 300px;
    }

    .general-report-grid[page='report-detail-list'] .column-report-grid:nth-child(5) {
        width: 50px;
        font-size: 23px;
        cursor: pointer;
        color: var(--bs-blue);
    }

    .general-report-grid[page='report-detail-list'] .column-report-grid {
        width: calc((100% - 350px) / 3);
    }

.batch-summary-containter {
    width: 600px;
    height: 200px;
    border: 1px solid;
    padding: 15px;
    font-size: 15px;
    float: right;
    border: 1px solid #a29999;
    border-radius: 5px;
    overflow: hidden;
}

    .batch-summary-containter .batch-summary-detail {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-gap: 5px 20px;
        border-bottom: 1px solid #a29999;
    }

        .batch-summary-containter .batch-summary-detail .batch-detail-item {
            width: 100%;
            border-bottom: 1px solid #a29999;
            display: flex;
            justify-content: space-between;
            padding: 5px 0 5px 0;
        }

            .batch-summary-containter .batch-summary-detail .batch-detail-item:nth-child(10),
            .batch-summary-containter .batch-summary-detail .batch-detail-item:nth-child(11),
            .batch-summary-containter .batch-summary-detail .batch-detail-item:nth-child(12) {
                border: none;
            }

.batch-detail-total {
    display: flex;
    float: right;
    margin-top: 10px;
    font-weight: 700;
    font-size: 17px;
}

    .batch-detail-total div:last-child {
        padding-left: 20px;
    }

.general-report-grid[page="quickpeek-batch"] {
    height: calc(100vh - 450px);
    overflow: hidden;
}

.column-report-grid.num {
    justify-content: flex-end;
    text-align:right;
}

.column-report-grid.cen {
    justify-content: center;
}

.option-filter-button {
    display: flex;
    height: 40px;
    border: 1px solid var(--theme-mode-border);
    border-radius: 8px;
    background-color: var(--theme-mode-bs-200);
    margin-left: 10px;
}

    .option-filter-button div {
        padding: 8px;
    }

.select-filter-item {
    width: 100%;
}

    .select-filter-item label {
        padding: 0 0 5px 0;
        font-weight: 600;
    }

    .select-filter-item .select-filter {
        color: var(--theme-mode-text);
        outline: none;
        border-radius: 4px;
        height: var(--px-40);
        padding: 0 var(--px-16);
        border: 1px solid var(--theme-mode-border);
        width: -webkit-fill-available;
        font: normal normal 500 var(--s-16);
        background-color: var(--theme-mode-bs-200);
    }

    .select-filter-item:not(:first-child) {
        margin-top: 15px;
    }

.filter-choosed-list {
    width: 100%;
    height: 30px;
    background-color: red;
}

.general-report-grid[page="quickpeek-batch"] .column-report-grid.icon {
    font-size: 18px;
}

.box-report-detail {
    width: 100%;
    height: auto;
}

    .box-report-detail:not(:last-child) {
        border-bottom: 2px solid #8d7e7e;
    }

    .box-report-detail:not(:first-child) {
        margin-top: 10px;
    }

    .box-report-detail[name="attendance"] .column-report-grid {
        width: calc(100% / 3);
    }

    .box-report-detail .box-report-header {
        width: 100%;
        font-weight: 800;
        font-size: 18px;
    }

    .box-report-detail[name="sale"] .column-report-grid:nth-child(1) {
        width: 240px;
    }

    .box-report-detail[name="sale"] .column-report-grid:nth-child(2) {
        width: 160px;
        display: block;
        text-align: right;
    }

        .box-report-detail[name="sale"] .column-report-grid:nth-child(2) .price {
            width: 100%;
        }

        .box-report-detail[name="sale"] .column-report-grid:nth-child(2) .product-charge {
            width: 100%;
            display: none;
        }

    .box-report-detail[name="sale"] .column-report-grid {
        width: calc((100% - 400px) / 3);
    }

    .box-report-detail[name="sale"] .column-report-grid {
        width: calc((100% - 400px) / 3);
    }

.sale-ticket {
    width: 100%;
}

    .sale-ticket .line-general {
        width: 100%;
    }

        .sale-ticket .line-general .ticket-info {
            padding-top: 5px;
            font-weight: 600;
        }

sale-ticket .line-detail {
    width: 100%;
}

.sale-ticket .line-detail .ticket-info {
    padding-top: 5px;
    font-weight: 600;
}

.sale-ticket .line-detail {
    display: none;
}

.sale-ticket.detail .line-detail {
    display: block;
}

.sale-ticket.detail .line-general {
    display: none;
}

.report-popup-detail-header {
    width: auto;
    display: flex;
}

    .report-popup-detail-header .arrow-back {
        padding-right: 20px;
        font-size: 22px;
        cursor: pointer;
        display: none;
    }

    .report-popup-detail-header .staff-name {
        padding-right: 20px;
        font-size: 22px;
    }

    .report-popup-detail-header .report-period-time {
        padding-left: 20px;
        font-size: 14px;
        border-left: 1px dashed #948888;
        padding-top: 7px;
    }

    .report-popup-detail-header .report-day-time {
        padding-left: 20px;
        font-size: 14px;
        border-left: 1px dashed #948888;
        padding-top: 7px;
        display: none;
    }

    .report-popup-detail-header.day .arrow-back {
        display: block;
    }


    .report-popup-detail-header.day .report-day-time {
        display: block;
    }

    .report-popup-detail-header.day .report-period-time {
        display: none;
    }

.report-popup-option-header {
    width: auto;
    display: flex;
    margin-right: 20px;
}

    .report-popup-option-header .option-popup-header {
        font-size: 23px;
        padding: 0px 8px 0 8px;
        cursor: pointer;
        display: none;
    }

.report-popup-option-header.day .option-popup-header {
    display: block;
}

.line-popup-detail {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 0 10px 0;
    border-bottom: 1px solid var(--theme-mode-border);
}

.daily-tech-report {
    width: 100%;
}

.excute-option[name="batch"] .sub-options-container {
    left: -100px;
}

.excute-option[name="other-options"] .sub-options-container {
    width: 180px !important;
    left: -75px;
}
/*
.swal2-actions {
    justify-content: space-evenly;
}*/
/*
.swal2-styled {
    outline: none;
    border: none;
    min-height: 48px;
    min-width: 120px;
    font-size: 16px;
}
    .swal2-styled:focus {
        box-shadow: none !important;
    }*/

/*.swal2-title {
    width: 500px;
}
*/
.general-report-grid[page="batch-record"] .column-report-grid {
    width: calc((100% - 50px)/7);
}

    .general-report-grid[page="batch-record"] .column-report-grid:last-child {
        width: 50px;
        font-size: 23px;
        cursor: pointer;
        color: var(--bs-blue);
    }

.batch-detail-container {
    width: 100%;
}

.general-report-grid[page="batch-record-detail"] .column-report-grid {
    width: calc(100%/10);
}

.report-popup-detail-header[name="batch-record"] {
    align-items: center;
}

    .report-popup-detail-header[name="batch-record"] .header-record-detail {
        display: none;
    }

    .report-popup-detail-header[name="batch-record"] .arrow-back {
        display: none;
    }

    .report-popup-detail-header[name="batch-record"].detail .header-record-detail {
        display: flex;
    }

    .report-popup-detail-header[name="batch-record"].detail .header-record {
        display: none;
    }

    .report-popup-detail-header[name="batch-record"].detail .arrow-back {
        display: none;
    }

    .report-popup-detail-header[name="batch-record"] .header-record-detail div:nth-child(1) {
        display: flex;
    }

    .report-popup-detail-header[name="batch-record"] .header-record-detail div:nth-child(2) {
        padding-right: 20px;
        border-right: 1px dashed #906e6e;
        display: flex;
        align-items: center;
    }

    .report-popup-detail-header[name="batch-record"] .header-record-detail div:nth-child(3) {
        padding: 0 10px 0 10px;
        font-size: 15px;
        border-right: 1px dashed #906e6e;
        display: flex;
        align-items: center;
    }

    .report-popup-detail-header[name="batch-record"] .header-record-detail div:nth-child(4) {
        padding: 0 10px 0 10px;
        font-size: 15px;
        border-right: 1px dashed #906e6e;
        display: flex;
        align-items: center;
    }


.batch-record-total {
    width: 100%;
    border-top: 1px solid #6e6767
}

.general-report-grid[page="batch-record-total"] .column-report-grid:last-child {
    width: 250px;
    font-weight: 700;
    font-size: 17px;
}

.general-report-grid[page="batch-record-total"] .general-report-item-line {
    border-bottom: none
}

.general-report-grid[page="batch-record-total"] .column-report-grid {
    width: calc((100% - 250px) / 4);
    font-weight: 700;
    font-size: 17px;
}

.general-report-grid[page="batch-record-detail"] .general-report-list {
    height: calc(100vh - 510px);
    overflow: auto;
}

.income-excute-area {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

    .income-excute-area .income-info {
        width: 45%;
    }

    .income-excute-area .hour-worked-confirm {
        width: 100%;
        display:flex;
    }

.worked-confirm-area {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

    .worked-confirm-area .hour-worked-input {
        width: 70%;
        border-radius: 4px;
        border: 1px solid var(--theme-mode-border);
        overflow: hidden;
    }

        .worked-confirm-area .hour-worked-input input {
            color: var(--theme-mode-text);
            outline: none;
            border: none;
            height: var(--px-40);
            padding: 0 var(--px-16);
            width: -webkit-fill-available;
            font: normal normal 500 var(--s-16);
            background-color: var(--theme-mode-bs-200);
        }

    .worked-confirm-area .btn-confirm-hour-worked {
        border: 1px solid transparent;
        border-radius: 4px;
        height: var(--px-40);
        padding: 0 var(--px-16);
        font-size: 16px;
        color: #ffffff;
        display: flex;
        align-items: center;
        ransition: background 300ms, border 300ms, color 300ms;
        box-sizing: border-box;
        cursor:pointer;
    }

    .modalCustom .modalCustom-form .modalCustom-afterBody .box-report-header {
        margin-bottom: 10px;

    }


.general-report-grid .general-report-list .general-report-item-line.line-attendance-sub {
    display: none;
}

    .general-report-grid .general-report-list .general-report-item-line.line-attendance-sub.active {
        display: flex;
    }

.general-report-grid[page="stats-trafficanalysis"] .general-report-list {
    height: calc(100vh - 325px);
}
/* ==========================================================================
   REDESIGN POPUP ATTENDANCE & HOURS CONFIRM / TECH REPORT V2
   Scoped under .tech-report-v2-dialog to avoid side-effects on other modalCustom
   ========================================================================== */
/* High z-index to stay above #sc-tools-toggle (z-index: 1031) */
.modalCustom:has(.tech-report-v2-dialog) {
    z-index: 2100 !important;
}

.modalCustom .modalCustom-form.tech-report-v2-dialog {
    width: min(960px, calc(100% - 32px)) !important;
    max-width: 960px !important;
    height: min(880px, calc(100vh - 40px)) !important;
    max-height: 880px !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 24px 60px rgba(20, 20, 20, 0.22) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #1a1a1a !important;
    box-sizing: border-box !important;
    z-index: 2100 !important;
}

.modalCustom .modalCustom-form.tech-report-v2-dialog .modalCustom-header,
.modalCustom .modalCustom-form.tech-report-v2-dialog .modalCustom-footer,
.modalCustom .modalCustom-form.tech-report-v2-dialog .modalCustom-preBody,
.modalCustom .modalCustom-form.tech-report-v2-dialog .modalCustom-afterBody {
    display: none !important;
}

.modalCustom .modalCustom-form.tech-report-v2-dialog .modalCustom-body {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Internal elements */
.tr2-root {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}

.tr2-root * {
    box-sizing: border-box;
}

.tr2-num {
    font-variant-numeric: tabular-nums;
}

table.tr2-hide-sm {
    display: table;
}
thead.tr2-hide-sm {
    display: table-header-group;
}
tbody.tr2-hide-sm {
    display: table-row-group;
}
tr.tr2-hide-sm {
    display: table-row;
}
th.tr2-hide-sm, td.tr2-hide-sm {
    display: table-cell;
}
span.tr2-hide-sm, strong.tr2-hide-sm, b.tr2-hide-sm, em.tr2-hide-sm, i.tr2-hide-sm {
    display: inline;
}
div.tr2-hide-sm {
    display: block;
}

.tr2-show-sm {
    display: none !important;
}

.tr2-hdr {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 16px 24px;
    border-bottom: 1px solid #e6e6e4;
    background: #ffffff;
    flex-shrink: 0;
}

.tr2-hdr-spacer {
    flex: 1 1 0%;
}

.tr2-hdr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tr2-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fde8dc;
    color: #b84a12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}

.tr2-title-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tr2-staff-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    line-height: 1.2;
}

.tr2-date-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5f5f5c;
}

.tr2-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    flex-shrink: 0;
}

.tr2-pill.is-pending {
    background: #fdecea;
    color: #b42318;
}

.tr2-pill.is-confirmed {
    background: #fde8dc;
    color: #b84a12;
}

.tr2-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.tr2-tabs {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: #f1f1f0;
    border-radius: 10px;
    flex-shrink: 0;
}

.tr2-tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #5f5f5c;
    transition: all 0.15s ease;
}

.tr2-tab-btn.is-active {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(20,20,20,0.14);
}

.tr2-ghost-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.tr2-ghost-btn:hover {
    background: #f1f1f0;
}

/* Scrollable View Content */
.tr2-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafafa;
}

/* 4 Summary Tiles */
.tr2-tiles4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e6e6e4;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.tr2-tile {
    padding: 14px 16px;
    border-right: 1px solid #e6e6e4;
}

.tr2-tile:last-child {
    border-right: none;
}

.tr2-tile-lbl {
    font-size: 12px;
    color: #5f5f5c;
}

.tr2-tile-val {
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
    color: #1a1a1a;
}

.tr2-tile.highlight {
    background: #fef3ec;
}

.tr2-tile.highlight .tr2-tile-val {
    color: #b84a12;
}

/* Card Container */
.tr2-card {
    border: 1px solid #e6e6e4;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.tr2-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 6px;
}

.tr2-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.tr2-legend {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #5f5f5c;
}

.tr2-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tr2-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* Timeline */
.tr2-timeline-box {
    padding: 10px 18px 6px;
}

.tr2-timeline-bar {
    position: relative;
    height: 22px;
    background: #f1f1f0;
    border-radius: 6px;
    overflow: hidden;
}

.tr2-timeline-seg {
    position: absolute;
    top: 3px;
    bottom: 3px;
    background: #F26522;
    border-radius: 3px;
}

.tr2-timeline-seg.zero {
    top: -3px;
    bottom: -3px;
    width: 4px;
    background: #b42318;
    z-index: 2;
}

.tr2-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #5f5f5c;
    margin-top: 6px;
}

/* Table */
.tr2-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 6px;
}

.tr2-tbl thead tr {
    background: #f6f6f5;
    color: #5f5f5c;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tr2-tbl th {
    font-weight: 600;
    padding: 10px 12px;
}

.tr2-tbl th:first-child,
.tr2-tbl td:first-child {
    padding-left: 18px;
}

.tr2-tbl th:last-child,
.tr2-tbl td:last-child {
    padding-right: 18px;
}

.tr2-tbl-row {
    border-top: 1px solid #eeeeec;
    transition: background 0.15s ease;
}

.tr2-tbl-row:hover {
    background: #f7f7f6;
}

.tr2-tbl td {
    padding: 13px 12px;
    vertical-align: middle;
}

.tr2-badge-zero {
    font-size: 11px;
    font-weight: 600;
    color: #b42318;
    background: #fdecea;
    padding: 3px 8px;
    border-radius: 999px;
}

.tr2-tbl-total {
    border-top: 1px solid #e3e3e0;
    background: #fef3ec;
}

/* Hours Confirm Section */
.tr2-hc {
    border-top: 1px solid #e6e6e4;
    background: #ffffff;
    padding: 18px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.tr2-hc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tr2-hc-title-box h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.tr2-hc-title-sub {
    font-size: 12px;
    color: #5f5f5c;
    margin-top: 3px;
}

.tr2-radiogroup {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: #f1f1f0;
    border-radius: 9px;
}

.tr2-radio-btn {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #5f5f5c;
    transition: all 0.15s ease;
}

.tr2-radio-btn.is-active {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(20,20,20,0.14);
}

.tr2-hc-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.tr2-steppers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr2-stepper {
    display: flex;
    align-items: center;
    height: 60px;
    border: 1.5px solid #d4d4d0;
    border-radius: 12px;
    background: #ffffff;
}

.tr2-step-btn {
    width: 44px;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 20px;
    color: #5f5f5c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr2-step-btn:hover {
    background: #f1f1f0;
}

.tr2-stepper-label {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tr2-stepper-input {
    border: 0;
    outline: none;
    text-align: right;
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    background: transparent;
    padding: 0;
}

.tr2-stepper-input[type=number]::-webkit-inner-spin-button,
.tr2-stepper-input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tr2-stepper-input[type=number] {
    -moz-appearance: textfield;
}

.tr2-decbox {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
    padding: 0 16px;
    border: 1.5px solid #d4d4d0;
    border-radius: 12px;
    background: #ffffff;
    width: 260px;
}

.tr2-result-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-left: 4px;
    flex: 1 1 0%;
    min-width: 0;
}

.tr2-diff-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #b84a12;
}

.tr2-diff-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.tr2-btn-confirm {
    align-self: center;
    height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 12px;
    background: #F26522;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tr2-btn-confirm:hover {
    background: #d9541a;
}

.tr2-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tr2-chip {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #dcdcd9;
    background: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #3d3d3a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tr2-chip.soft {
    background: #f6f6f5;
}

.tr2-chip:hover {
    border-color: #F26522;
    color: #1a1a1a;
}

.tr2-chip.danger {
    border-color: transparent;
    background: transparent;
    color: #b23a2b;
}

.tr2-chip.danger:hover {
    background: #fdecea;
}

/* Confirmed panel */
.tr2-conf-panel {
    border-top: 1px solid #f9cdb3;
    background: #fef3ec;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.tr2-conf-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F26522;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr2-conf-info {
    flex: 1 1 0%;
    min-width: 0;
}

.tr2-conf-title {
    font-size: 18px;
    font-weight: 700;
}

.tr2-conf-title-dec {
    font-weight: 500;
    color: #5f5f5c;
    font-size: 14px;
}

.tr2-conf-sub {
    font-size: 12px;
    color: #5f5f5c;
    margin-top: 3px;
}

.tr2-conf-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tr2-btn-edit-hours {
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #dcdcd9;
}

.tr2-btn-view-report {
    height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    background: #1f1f1f;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tech Report Toolbar */
.tr2-rtb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid #e6e6e4;
    background: #f6f6f5;
    flex-shrink: 0;
}

.tr2-rtb-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tr2-hide-zero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3d3d3a;
    cursor: pointer;
    user-select: none;
}

.tr2-hide-zero-label input {
    width: 16px !important;
    height: 16px !important;
    accent-color: #F26522;
    cursor: pointer;
    visibility: visible !important;
}

.tr2-unconf-banner {
    font-size: 12px;
    font-weight: 600;
    color: #b42318;
    background: #fdecea;
    padding: 6px 10px;
    border-radius: 8px;
}

.tr2-btn-print-80 {
    height: 40px;
    padding: 0 16px;
    border: 0;
    background: #1f1f1f;
    color: #ffffff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tr2-btn-print-80:hover {
    background: #333333;
}

.tr2-tiles6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid #e6e6e4;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.tr2-tiles6 .tr2-tile {
    padding: 12px 14px;
}

.tr2-groups4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e6e6e4;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.tr2-group-card {
    padding: 14px 16px;
    border-right: 1px solid #e6e6e4;
}

.tr2-group-card:last-child {
    border-right: none;
}

.tr2-group-top {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    padding-bottom: 8px;
}

.tr2-group-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-top: 1px dashed #e6e6e4;
}

/* 80mm preview */
.tr2-80mm-wrap {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    background: #ececea;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.tr2-80mm-bill {
    width: 302px;
    flex: none;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(20,20,20,0.15);
    padding: 18px 16px 26px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    line-height: 1.55;
    color: #111111;
    align-self: flex-start;
}

.tr2-dashed-sep {
    border-top: 1px dashed #333333;
    margin: 8px 0;
}

/* Responsive Medium */
@media (max-width: 768px) {
    .modalCustom .modalCustom-form.tech-report-v2-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
    }
    .tr2-tiles6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .tr2-groups4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ==========================================================================
   MOBILE LAYOUT (Max-width: 560px) - Matching Design Mockups
   ========================================================================== */
@media (max-width: 560px) {
    .modalCustom .modalCustom-form.tech-report-v2-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
        position: fixed !important;
    }

    .tr2-hide-sm { display: none !important; }
    .tr2-show-sm { display: block !important; }

    /* Header Mobile: 2 lines */
    .tr2-hdr {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px 10px !important;
        padding: 12px 14px 10px !important;
        border-bottom: 1px solid #e6e6e4 !important;
    }
    .tr2-hdr-spacer {
        flex: 1 1 0% !important;
    }
    .tr2-hdr-actions {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .tr2-title-box {
        max-width: calc(100% - 170px) !important;
        min-width: 0 !important;
    }
    .tr2-staff-name {
        font-size: 18px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .tr2-date-sub {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    .tr2-pill {
        margin-left: 0 !important;
        font-size: 11px !important;
        padding: 3px 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .tr2-ghost-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .tr2-tabs {
        order: 10 !important;
        width: 100% !important;
        margin-top: 4px !important;
        display: flex !important;
        padding: 3px !important;
    }
    .tr2-tabs .tr2-tab-btn {
        flex: 1 1 0% !important;
        justify-content: center !important;
        height: 34px !important;
        font-size: 13px !important;
        padding: 0 8px !important;
    }

    /* Body Mobile */
    .tr2-body {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    /* 4 Tiles Mobile: 2x2 grid */
    .tr2-tiles4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1px !important;
        background: #e6e6e4 !important;
        border-radius: 10px !important;
    }
    .tr2-tiles4 .tr2-tile {
        background: #ffffff !important;
        padding: 8px 10px !important;
        border: none !important;
    }
    .tr2-tiles4 .tr2-tile.highlight {
        background: #fef3ec !important;
    }
    .tr2-tiles4 .tr2-tile-lbl {
        font-size: 11px !important;
    }
    .tr2-tiles4 .tr2-tile-val {
        font-size: 15px !important;
        margin-top: 2px !important;
    }

    /* Attendance Card Mobile */
    .tr2-card-header {
        padding: 12px 14px 6px !important;
    }
    .tr2-card-header h2 {
        font-size: 15px !important;
    }
    .tr2-timeline-box {
        padding: 6px 12px 6px !important;
    }
    .tr2-timeline-labels {
        font-size: 10px !important;
        margin-top: 4px !important;
        overflow: hidden !important;
    }
    .tr2-timeline-labels span {
        white-space: nowrap !important;
        letter-spacing: -0.5px !important;
    }

    /* Mobile Punch Card List */
    .tr2-phone-total {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 14px !important;
        border-top: 1px solid #eeeeec !important;
        background: #fafaf9 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    /* Hours Confirm Mobile */
    .tr2-hc {
        padding: 10px 12px 12px !important;
        gap: 8px !important;
    }
    .tr2-hc-top {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    .tr2-hc-title-box h2 {
        font-size: 15px !important;
    }
    .tr2-radiogroup .tr2-radio-btn {
        height: 28px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    /* Steppers + Confirm Grid in Mobile */
    .tr2-hc-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "in btn" "res res" !important;
        gap: 8px !important;
        align-items: center !important;
    }
    .tr2-steppers {
        grid-area: in !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .tr2-stepper {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        height: 48px !important;
        border-radius: 10px !important;
        justify-content: space-between !important;
    }
    .tr2-step-btn {
        width: 32px !important;
        flex: none !important;
        font-size: 18px !important;
    }
    .tr2-stepper-label {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        justify-content: center !important;
    }
    .tr2-stepper-input {
        font-size: 22px !important;
        width: 32px !important;
    }
    .tr2-decbox {
        grid-area: in !important;
        width: 100% !important;
        height: 48px !important;
        border-radius: 10px !important;
    }
    .tr2-decbox .tr2-stepper-input {
        font-size: 22px !important;
    }

    .tr2-btn-confirm {
        grid-area: btn !important;
        height: 48px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        align-self: center !important;
        width: auto !important;
    }

    .tr2-result-box {
        grid-area: res !important;
        padding-left: 0 !important;
        min-width: 0 !important;
    }
    .tr2-diff-badge {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Quick set Chips: Horizontal scrollable strip */
    .tr2-chips-row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overscroll-behavior-x: contain !important;
        scroll-snap-type: x proximity !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        scrollbar-width: thin !important;
    }
    .tr2-chip {
        flex: none !important;
        scroll-snap-align: start !important;
        height: 30px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    /* Confirmed Panel Mobile (2-row grid: Icon + Info + Edit Hours on Row 1, Full Width Button on Row 2) */
    .tr2-conf-panel {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
        grid-template-areas: 
            "ico info edit"
            "btn btn btn" !important;
        gap: 12px 10px !important;
        align-items: center !important;
        padding: 12px 14px !important;
        border-top: 1px solid #f9cdb3 !important;
        background: #fef3ec !important;
    }
    .tr2-conf-icon {
        grid-area: ico !important;
        width: 38px !important;
        height: 38px !important;
    }
    .tr2-conf-info {
        grid-area: info !important;
        min-width: 0 !important;
    }
    .tr2-conf-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .tr2-conf-title-dec {
        font-size: 12px !important;
        font-weight: 500 !important;
        color: #5f5f5c !important;
    }
    .tr2-conf-sub {
        font-size: 11px !important;
        color: #5f5f5c !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .tr2-conf-actions {
        display: contents !important;
    }
    .tr2-btn-edit-hours {
        grid-area: edit !important;
        height: 36px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e6e6e4 !important;
        white-space: nowrap !important;
    }
    .tr2-btn-view-report {
        grid-area: btn !important;
        width: 100% !important;
        height: 42px !important;
        justify-content: center !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        margin-top: 2px !important;
        background: #1f1f1f !important;
        color: #ffffff !important;
    }

    /* Tech Report Toolbar Mobile */
    .tr2-rtb {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 10px 12px !important;
    }
    .tr2-rtb-controls {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .tr2-unconf-banner {
        width: 100% !important;
        text-align: center !important;
    }
    .tr2-btn-print-80 {
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
    }

    /* Tech Report KPI Tiles Mobile: 2 columns */
    .tr2-tiles6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1px !important;
        background: #e6e6e4 !important;
    }
    .tr2-tiles6 .tr2-tile {
        background: #ffffff !important;
        padding: 9px 12px !important;
        border: none !important;
    }
    .tr2-tiles6 .tr2-tile.highlight {
        background: #fef3ec !important;
    }

    /* Tech Report Groups Mobile: 1 column */
    .tr2-groups4 {
        grid-template-columns: minmax(0, 1fr) !important;
        border: 1px solid #e6e6e4 !important;
    }
    .tr2-group-card {
        border-right: none !important;
        border-bottom: 1px solid #e6e6e4 !important;
        padding: 12px 14px !important;
    }
    .tr2-group-card:last-child {
        border-bottom: none !important;
    }

    .tr2-tbl th, .tr2-tbl td {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
