.tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.time-tile {
    background-color: #f5f6fa;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 250px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

    .time-tile:hover {
        transform: translateY(-5px);
    }

.full-width {
    width: 100%;
    max-width: 600px;
}

.tile-header {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1b6ec2;
}

.tile-body p {
    margin: 0.3rem 0;
}

.btn {
    background-color: #1b6ec2;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    margin: 0.3rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .btn:hover {
        background-color: #145a9c;
    }

.btn-out {
    background-color: #e74c3c;
}

    .btn-out:hover {
        background-color: #c0392b;
    }

.btn-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .tiles-container {
        flex-direction: column;
        align-items: center;
    }

    .time-tile {
        width: 90%;
    }
}

.action-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .action-table th, .action-table td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: center;
    }

    .action-table th {
        background-color: #1b6ec2;
        color: white;
    }

    .action-table tbody tr:nth-child(even) {
        background-color: #f2f2f2;
    }

.total-row {
    background-color: #ffe680; /* light yellow */
    font-weight: bold;
}

.rotate-90 {
    transform: rotate(90deg);
    transition: transform 0.2s;
}
/* Mobile-first styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 100% !important; 
    padding: 15px;
}

.btn {
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
}

.table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

th, td {
    text-align: left;
    vertical-align: middle;
}

/* Larger screens */
@media (min-width: 768px) {
    .container {
        max-width: 100%;
    }

    .table {
        font-size: 1rem;
    }
}
/* Ensure buttons have equal height in each row */
.row.g-2 .btn {
    min-height: 60px; /* good tap target size on mobile */
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    white-space: normal; /* allow text to wrap if needed */
    line-height: 1.4;
}

@media (max-width: 576px) {
    .row.g-2 .btn {
        min-height: 68px; /* slightly taller on very small screens */
        font-size: 0.9rem;
    }

    .btn span {
        font-size: 0.9rem;
    }
}

/* Optional: make icon slightly bigger on mobile */
@media (max-width: 576px) {
    .btn i.bi {
        font-size: 1.4rem;
    }
}
/* =========================================================
   TOTAL WORK DURATION
   ========================================================= */

.total-work-header {
    background: #dcfce7 !important;
    color: #166534 !important;
    font-weight: 700;
    min-width: 160px;
    z-index: 5 !important;
}

.total-work-cell {
    background: #f0fdf4 !important;
    color: #15803d;
    font-size: 15px;
    font-weight: 700;
    min-width: 160px;
    z-index: 3;
    border-left: 3px solid #22c55e !important;
}

    .total-work-cell strong {
        display: inline-block;
        padding: 5px 9px;
        border-radius: 6px;
        background: #dcfce7;
    }

.total-work-total {
    background: #bbf7d0 !important;
    color: #14532d;
    font-size: 16px;
    min-width: 160px;
    z-index: 4;
    border-left: 3px solid #16a34a !important;
}

    .total-work-total strong {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 6px;
        background: #86efac;
    }


/* =========================================================
   GRAND TOTAL ROW
   ========================================================= */

.grand-total-row {
    background: #ecfdf5 !important;
    font-size: 15px;
    border-top: 3px solid #22c55e;
    border-bottom: 2px solid #22c55e;
}


/* =========================================================
   DATE TOTAL
   ========================================================= */

.date-total-row {
    background: #eff6ff !important;
    color: #1e3a8a;
}

.date-total-duration {
    background: #dbeafe !important;
    color: #1e40af;
    min-width: 160px;
    z-index: 3;
}

    .date-total-duration strong {
        display: inline-block;
        padding: 5px 9px;
        border-radius: 6px;
        background: #bfdbfe;
    }


/* =========================================================
   BREAK DURATIONS
   ========================================================= */

.break-duration {
    font-weight: 600;
    text-align: center;
}


/* Morning Break */

.morning-break-cell {
    background: #fffbeb !important;
    color: #b45309;
}

    .morning-break-cell::before {
        content: "☕ ";
    }


/* Lunch */

.lunch-cell {
    background: #eff6ff !important;
    color: #1d4ed8;
}

    .lunch-cell::before {
        content: "🍽️ ";
    }


/* Afternoon Break */

.afternoon-break-cell {
    background: #f5f3ff !important;
    color: #6d28d9;
}

    .afternoon-break-cell::before {
        content: "🧃 ";
    }


/* =========================================================
   STICKY COLUMN
   ========================================================= */

.sticky-column {
    position: sticky;
    right: 0;
    z-index: 3;
    box-shadow: -3px 0 6px rgba(0,0,0,.08);
}


/* Header must be above body */

thead .sticky-column {
    z-index: 10 !important;
}


/* =========================================================
   COLLAPSE ARROW
   ========================================================= */

.rotate-90 {
    transform: rotate(90deg);
    display: inline-block;
    transition: transform .2s ease;
}
/* =========================================
   BREAK / LUNCH BUTTON ALIGNMENT
   ========================================= */

.break-btn {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px;
    padding-left: 50px !important;
    padding-right: 15px !important;
}

    .break-btn i {
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 25px;
        height: 25px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0;
    }

    .break-btn span {
        display: block;
        width: 100%;
        text-align: center;
        line-height: 1.2;
    }

    /* Keep icon position when button is active */
    .break-btn.btn-active i {
        left: 15px !important;
    }

    /* Disabled button */
    .break-btn:disabled {
        opacity: 0.65;
    }

/* Mobile adjustment */
@media (max-width: 576px) {
    .break-btn {
        padding-left: 42px !important;
        padding-right: 8px !important;
        font-size: 13px;
    }

        .break-btn i {
            left: 10px !important;
            width: 22px;
            height: 22px;
        }
}
/* =========================================================
   DURATION CELLS - FIXED ICON ALIGNMENT
   ========================================================= */

.duration-cell {
    position: relative !important;
    min-width: 155px !important;
    width: 155px !important;
    height: 42px;
    padding: 0 10px 0 42px !important;
    text-align: left !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* Fixed icon position */
.duration-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    width: 20px !important;
    height: 20px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    flex-shrink: 0;
}

/* Duration text / dash */
.duration-value {
    display: inline-block !important;
    width: 100% !important;
    min-width: 90px !important;
    text-align: left !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   MORNING BREAK
   ========================================================= */

.morning-break-cell {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    font-weight: 600;
}

    .morning-break-cell .duration-icon {
        color: #92400e;
    }


/* =========================================================
   LUNCH
   ========================================================= */

.lunch-cell {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600;
}

    .lunch-cell .duration-icon {
        color: #1e40af;
    }


/* =========================================================
   AFTERNOON BREAK
   ========================================================= */

.afternoon-break-cell {
    background-color: #f5f3ff !important;
    color: #6d28d9 !important;
    font-weight: 600;
}

    .afternoon-break-cell .duration-icon {
        color: #5b21b6;
    }


/* =========================================================
   TOTAL WORK DURATION
   ========================================================= */

.total-work-header {
    background: #dcfce7 !important;
    color: #166534 !important;
    font-weight: 700;
    min-width: 160px;
    width: 160px;
    z-index: 10 !important;
}

.total-work-cell {
    background: #f0fdf4 !important;
    color: #15803d !important;
    font-size: 15px;
    font-weight: 700;
    min-width: 160px;
    width: 160px;
    z-index: 3;
    border-left: 3px solid #22c55e !important;
    position: sticky !important;
    right: 0;
}

    .total-work-cell strong {
        display: inline-block;
        padding: 5px 9px;
        border-radius: 6px;
        background: #dcfce7;
    }

.total-work-total {
    background: #bbf7d0 !important;
    color: #14532d !important;
    font-size: 16px;
    min-width: 160px;
    width: 160px;
    z-index: 4;
    border-left: 3px solid #16a34a !important;
}

    .total-work-total strong {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 6px;
        background: #86efac;
    }


/* =========================================================
   GRAND TOTAL ROW
   ========================================================= */

.grand-total-row {
    background: #ecfdf5 !important;
    font-size: 15px;
    font-weight: 700;
    border-top: 3px solid #22c55e;
    border-bottom: 2px solid #22c55e;
}


/* =========================================================
   DATE TOTAL
   ========================================================= */

.date-total-row {
    background: #eff6ff !important;
    color: #1e3a8a;
}

.date-total-duration {
    background: #dbeafe !important;
    color: #1e40af;
    min-width: 160px;
    width: 160px;
    z-index: 3;
}

    .date-total-duration strong {
        display: inline-block;
        padding: 5px 9px;
        border-radius: 6px;
        background: #bfdbfe;
    }


/* =========================================================
   STICKY LAST COLUMN
   ========================================================= */

.sticky-column {
    position: sticky !important;
    right: 0 !important;
    z-index: 3 !important;
    box-shadow: -3px 0 6px rgba(0, 0, 0, .08);
}

/* Header above everything */
thead .sticky-column {
    z-index: 10 !important;
}


/* =========================================================
   COLLAPSE ARROW
   ========================================================= */

.rotate-90 {
    transform: rotate(90deg);
    display: inline-block;
    transition: transform .2s ease;
}


/* =========================================================
   BREAK / LUNCH BUTTON ALIGNMENT
   ========================================================= */

.break-btn {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px;
    padding-left: 50px !important;
    padding-right: 15px !important;
}

    .break-btn i {
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 25px;
        height: 25px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0;
    }

    .break-btn span {
        display: block;
        width: 100%;
        text-align: center;
        line-height: 1.2;
    }

    .break-btn.btn-active i {
        left: 15px !important;
    }

    .break-btn:disabled {
        opacity: 0.65;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .break-btn {
        padding-left: 42px !important;
        padding-right: 8px !important;
        font-size: 13px;
    }

        .break-btn i {
            left: 10px !important;
            width: 22px;
            height: 22px;
        }

    .duration-cell {
        min-width: 145px !important;
        width: 145px !important;
        padding-left: 38px !important;
    }

    .duration-icon {
        left: 10px !important;
        width: 20px !important;
        height: 20px !important;
    }

    .duration-value {
        min-width: 85px !important;
    }
}
