* { 
    box-sizing: border-box; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #2d8a1f 0%, #75a830 100%);
    min-height: 100vh;
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    background: white; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.header { 
    text-align: center; 
    margin-bottom: 40px; 
    padding-bottom: 20px;
    border-bottom: 3px solid #2d8a1f;
}

.header h1 { 
    color: #2c3e50; 
    font-size: 2.8em; 
    margin-bottom: 10px; 
    font-weight: 700;
}

.header p { 
    color: #7f8c8d; 
    font-size: 1.3em; 
    margin: 0;
}

.tabs { 
    display: flex; 
    border-bottom: 3px solid #ecf0f1; 
    margin-bottom: 30px; 
    overflow-x: auto;
}

.tab { 
    flex: 1; 
    padding: 18px 15px; 
    text-align: center; 
    background: #f8f9fa; 
    border: none; 
    cursor: pointer; 
    font-size: 1.1em;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
    margin-right: 2px;
}

.tab:hover { 
    background: #e9ecef; 
    color: #495057;
}

.tab.active { 
    background: #2d8a1f; 
    color: white; 
    border-bottom: 3px solid #2d8a1f;
}

.tab-content { 
    display: none; 
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active { 
    display: block !important; 
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card { 
    background: #f8f9fa; 
    padding: 25px; 
    margin: 20px 0; 
    border-radius: 12px; 
    border-left: 5px solid #2d8a1f; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card h3 { 
    color: #2c3e50; 
    margin-top: 0; 
    font-size: 1.4em; 
    font-weight: 600;
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #495057;
}

.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #e9ecef; 
    border-radius: 8px; 
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2d8a1f;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn { 
    background: #2d8a1f; 
    color: white; 
    padding: 12px 24px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 1em; 
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    text-decoration: none;
}

.btn:hover { 
    background: #2d8a1f; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary { 
    background: #6c757d; 
}

.btn-secondary:hover { 
    background: #5a6268; 
}

.btn-success { 
    background: #28a745; 
}

.btn-success:hover { 
    background: #218838; 
}

.btn-danger { 
    background: #dc3545; 
}

.btn-danger:hover { 
    background: #c82333; 
}

.btn-warning { 
    background: #ffc107; 
    color: #212529;
}

.btn-warning:hover { 
    background: #e0a800; 
}

.btn-small { 
    padding: 8px 16px; 
    font-size: 0.9em; 
}

.btn-large { 
    padding: 15px 30px; 
    font-size: 1.2em; 
}

/* Floating notification bubbles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification { 
    padding: 12px 16px; 
    margin-bottom: 10px; 
    border-radius: 6px; 
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInFromRight 0.3s ease-out;
    max-width: 300px;
    pointer-events: auto;
}

.notification.success { 
    background: #10b981; 
    color: white; 
}

.notification.error { 
    background: #ef4444; 
    color: white; 
}

.notification.info { 
    background: #2d8a1f; 
    color: white; 
}

.notification.warning { 
    background: #f59e0b; 
    color: white; 
}

@keyframes slideInFromRight {
    from { 
        opacity: 0; 
        transform: translateX(100%); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.table-container { 
    overflow-x: auto; 
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    background: white;
}

th, td { 
    padding: 12px; 
    text-align: left; 
    border-bottom: 1px solid #dee2e6; 
}

th { 
    background: #2d8a1f; 
    color: white; 
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:hover { 
    background: #f8f9fa; 
}

.status-badge { 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.85em; 
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { 
    background: #fff3cd; 
    color: #856404; 
}

.status-completed { 
    background: #d4edda; 
    color: #155724; 
}

.status-discrepancy { 
    background: #f8d7da; 
    color: #721c24; 
}

.grid { 
    display: grid; 
    gap: 20px; 
    margin: 20px 0;
}

.grid-2 { 
    grid-template-columns: 1fr 1fr; 
}

.grid-3 { 
    grid-template-columns: 1fr 1fr 1fr; 
}

.grid-4 { 
    grid-template-columns: repeat(4, 1fr); 
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr; 
    }
    .header h1 { 
        font-size: 2em; 
    }
    .tabs { 
        flex-direction: column; 
    }
    .tab { 
        margin-right: 0; 
        margin-bottom: 2px; 
    }
}

/* Cash Counter Specific Styles */
.counter-display {
    background: linear-gradient(135deg, #2d8a1f 0%, #75a830 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.counter-display .amount {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.counter-display .count {
    font-size: 1.5em;
    opacity: 0.9;
}

.bill-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.bill-type {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #2d8a1f;
}

.bill-type .denomination {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.bill-type .count {
    font-size: 2em;
    font-weight: bold;
    color: #2d8a1f;
    margin-bottom: 5px;
}

.bill-type .total {
    color: #6c757d;
    font-size: 1.1em;
}

.device-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #28a745;
}

.serial-data {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0;
    border: 1px solid #dee2e6;
}

.holding-area {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.holding-area h4 {
    color: #856404;
    margin-top: 0;
}

.session-info {
    background: #d1ecf1;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 5px solid #2d8a1f;
}

.batch-summary {
    background: #d4edda;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #28a745;
}

.filter-section {
    background: #e9ecef;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

.dropdown-button {
    background: white;
    border: 2px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    min-width: 150px;
    text-align: left;
    position: relative;
}

.dropdown-button:after {
    content: '⌄';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 8px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d8a1f 0%, #75a830 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.reconciliation-item {
    background: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    border-left: 5px solid #2d8a1f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.amount-highlight {
    font-size: 1.3em;
    font-weight: bold;
    color: #2d8a1f;
}

.variance-positive {
    color: #28a745;
}

.variance-negative {
    color: #dc3545;
}

.system-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 1000;
    max-width: 300px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Weekly Reconciliation Table Styles */
.weekly-table-container {
    width: 100%;
    max-height: 70vh;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.weekly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    table-layout: fixed;
    background: white;
}

.weekly-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #495057;
}

.weekly-table th,
.weekly-table td {
    border: 1px solid #495057;
    text-align: center;
    vertical-align: middle;
    padding: 6px 4px;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weekly-table .store-column {
    width: 18%;
    text-align: left;
    font-weight: 600;
    background: #495057;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: sticky;
    left: 0;
    z-index: 5;
}

.weekly-table .day-column {
    width: 10%;
    font-size: 0.8em;
    font-weight: 600;
    background: #495057;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.weekly-table .total-column {
    width: 10%;
    background: transparent;
    color: white;
    font-weight: 700;
    position: sticky;
    right: 0;
    z-index: 5;
    border: 1px solid #dee2e6 !important; /* Light border for total column */
}

.weekly-table .date-text {
    font-size: 0.9em;
    font-weight: 400;
}

.weekly-table tbody tr:hover {
    background: #f8f9fa;
}

.weekly-table tbody tr:hover .store-column {
    background: #6c757d !important;
    color: white !important;
}

.weekly-table tbody tr:hover .total-column {
    background: #495057 !important;
    color: white !important;
}

/* Status-based cell styling with high contrast */
.weekly-table .day-cell {
    font-size: 0.85em;
    font-weight: 500;
}

.weekly-table .status-completed {
    background: #28a745 !important;
    color: white !important;
}

.weekly-table .status-pending {
    background: #ffc107 !important;
    color: black !important;
    font-weight: 600;
}

.weekly-table .status-discrepancy {
    background: #dc3545 !important;
    color: white !important;
}

.weekly-table .totals-row {
    background: #343a40;
    font-weight: bold;
    border-top: 3px solid #2d8a1f;
}

.weekly-table .totals-row td {
    border: 1px solid #dee2e6 !important; /* Light border for totals row */
}

.weekly-table .totals-cell {
    background: transparent !important;
    color: white !important;
    font-weight: 700;
}

.weekly-table .grand-total {
    background: transparent !important;
    color: white !important;
    font-weight: 900;
    font-size: 1.1em;
}

/* Mobile and tablet responsiveness */
@media (max-width: 1200px) {
    .weekly-table {
        font-size: 0.8em;
    }
    
    .weekly-table th,
    .weekly-table td {
        padding: 4px 2px;
    }
    
    .weekly-table .store-column {
        width: 16%;
    }
    
    .weekly-table .day-column {
        width: 11%;
    }
    
    .weekly-table .total-column {
        width: 12%;
    }
}

@media (max-width: 992px) {
    .weekly-table {
        font-size: 0.75em;
    }
    
    .weekly-table .day-column {
        font-size: 0.7em;
    }
    
    .weekly-table .date-text {
        display: block;
        font-size: 0.85em;
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    .weekly-table {
        font-size: 0.7em;
    }
    
    .weekly-table th,
    .weekly-table td {
        padding: 3px 1px;
    }
    
    .weekly-table .store-column {
        width: 15%;
        font-size: 0.8em;
    }
    
    .weekly-table .day-column {
        width: 11.5%;
    }
    
    .weekly-table .total-column {
        width: 13%;
    }
    
    .weekly-table .date-text {
        font-size: 0.8em;
    }
}

@media (max-width: 576px) {
    .weekly-table {
        font-size: 0.65em;
    }
    
    .weekly-table .store-column {
        width: 14%;
    }
    
    .weekly-table .day-column {
        width: 12%;
        font-size: 0.6em;
    }
    
    .weekly-table .total-column {
        width: 14%;
    }
    
    /* Abbreviate day names on very small screens */
    .weekly-table .day-column::before {
        content: attr(data-short);
    }
    
    .weekly-table-container {
        max-height: 60vh;
    }
}

/* Compact view for very small heights */
@media (max-height: 600px) {
    .weekly-table-container {
        max-height: 50vh;
    }
    
    .weekly-table {
        font-size: 0.75em;
    }
    
    .weekly-table th,
    .weekly-table td {
        padding: 2px 1px;
    }
}

/* Duplicate Reconciliation Dialog Styles */
.duplicate-dialog {
    max-width: 600px;
    margin: 0 auto;
}

.duplicate-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffc107;
}

.duplicate-header h3 {
    color: #856404;
    margin: 0;
    font-size: 1.5em;
}

.duplicate-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.existing-info,
.current-info {
    margin: 15px 0;
    padding: 15px;
    border-left: 4px solid #2d8a1f;
    background: white;
}

.existing-info {
    border-left-color: #dc3545;
}

.current-info {
    border-left-color: #28a745;
}

.existing-info p,
.current-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

.duplicate-options {
    text-align: center;
    margin: 20px 0;
}

.option-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.option-buttons .btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.option-buttons .btn-warning {
    background: #ffc107;
    color: #212529;
}

.option-buttons .btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.option-buttons .btn-info {
    background: #2d8a1f;
    color: white;
}

.option-buttons .btn-info:hover {
    background: #2d8a1f;
    transform: translateY(-2px);
}

.option-buttons .btn-secondary {
    background: #6c757d;
    color: white;
}

.option-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.duplicate-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

/* Deposit Review Styles */
.deposit-review {
    max-width: 700px;
    margin: 0 auto;
}

.comparison-table {
    margin: 20px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.comparison-table th {
    background: #343a40;
    color: white;
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.review-actions {
    text-align: center;
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Mobile responsiveness for duplicate dialog */
@media (max-width: 768px) {
    .duplicate-dialog {
        padding: 15px;
        max-width: 95%;
    }
    
    .option-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .option-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 5px 0;
    }
    
    .review-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .review-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .comparison-table {
        font-size: 0.9em;
    }
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dialog {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.dialog-overlay.show .dialog {
    transform: scale(1);
}

.dialog-header {
    background: #2d8a1f;
    color: white;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: between;
    align-items: center;
}

.dialog-header h3 {
    margin: 0;
    flex-grow: 1;
}

.dialog-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.dialog-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dialog-content {
    padding: 20px;
}

.duplicate-dialog .duplicate-header {
    margin-bottom: 16px;
}

.duplicate-dialog .duplicate-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.duplicate-dialog .existing-info,
.duplicate-dialog .current-info {
    background: white;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
    border-left: 4px solid #2d8a1f;
}

.duplicate-dialog .current-info {
    border-left-color: #28a745;
}

.duplicate-dialog .duplicate-options {
    margin-bottom: 16px;
}

.duplicate-dialog .option-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duplicate-dialog .option-buttons .btn {
    margin: 0;
    padding: 12px 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duplicate-dialog .duplicate-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .dialog {
        width: 95%;
        margin: 20px;
    }
    
    .dialog-content {
        padding: 16px;
    }
    
    .duplicate-dialog .option-buttons {
        gap: 12px;
    }
}

/* Triangular Split Total Cells */
.total-breakdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Green triangle (top-left) for reconciled amount */
.total-breakdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #28a745 49%, transparent 50%, transparent 51%, #ffc107 51%);
    z-index: 1;
}

/* Position amounts in their respective triangles */
.reconciled-total {
    position: absolute;
    top: 3px;
    left: 4px;
    color: white;
    font-weight: 700;
    font-size: 0.8em;
    z-index: 2;
    line-height: 1;
}

.expected-total {
    position: absolute;
    bottom: 3px;
    right: 4px;
    color: #000;
    font-weight: 600;
    font-size: 0.8em;
    z-index: 2;
    line-height: 1;
}

/* Special styling for grand total (bottom-right corner) - solid green */
.grand-total .total-breakdown::before {
    background: #28a745; /* Solid green background */
}

.grand-total .reconciled-total {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 0.85em;
}

/* Reset cell padding to maintain original size */
.totals-cell,
.total-column {
    position: relative;
    padding: 0px;
    height: 30px;
    vertical-align: middle;
    border: 1px solid #dee2e6 !important; /* Use light gray border to reduce visual weight */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .reconciled-total,
    .expected-total {
        font-size: 0.7em;
    }
    
    .reconciled-total {
        top: 2px;
        left: 3px;
    }
    
    .expected-total {
        bottom: 2px;
        right: 3px;
    }
    
    .grand-total .reconciled-total {
        font-size: 0.75em;
    }
    
    .totals-cell,
    .total-column {
        height: 25px;
        padding: 0px;
        border: 1px solid #dee2e6 !important; /* Consistent light border on mobile */
    }
}

/* Simple tooltip styling - browser's built-in title attribute */
.day-cell[title] {
    cursor: help;
}

/* Expandable store rows styling */
.chevron-toggle {
    cursor: pointer;
    margin-right: 8px;
    font-size: 0.8em;
    color: #2d8a1f;
    user-select: none;
    transition: transform 0.2s ease;
    display: inline-block;
    width: 12px;
    text-align: center;
}

.chevron-toggle.master-chevron {
    color: #28a745;
    font-weight: 700;
    font-size: 0.9em;
    margin-right: 10px;
}

.chevron-toggle:hover {
    color: #2d8a1f;
    transform: scale(1.1);
}

.chevron-toggle.master-chevron:hover {
    color: #218838;
    transform: scale(1.15);
}

.chevron-toggle.expanded {
    transform: rotate(180deg);
}

.store-detail-row {
    background: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}

.store-detail-row td {
    padding: 0 !important;
    border-bottom: 2px solid #2d8a1f !important;
}

.store-details {
    padding: 15px 20px;
    background: #f8f9fa;
}

.week-bubbles {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

.day-bubble {
    flex: 1;
    background: white;
    padding: 8px 6px;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: transform 0.2s ease;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
}

.day-bubble:hover {
    transform: translateY(-2px);
}

.day-bubble.status-completed {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

.day-bubble.status-completed .bubble-header {
    border-bottom-color: rgba(255,255,255,0.3);
}

.day-bubble.status-pending {
    border-color: #ffc107;
    background: #ffc107;
    color: black;
}

.day-bubble.status-pending .bubble-header {
    border-bottom-color: rgba(0,0,0,0.2);
}

.day-bubble.status-discrepancy {
    border-color: #dc3545;
    background: #dc3545;
    color: white;
}

.day-bubble.status-discrepancy .bubble-header {
    border-bottom-color: rgba(255,255,255,0.3);
}

.day-bubble.no-data {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
    justify-content: center;
}

.bubble-header {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.bubble-row {
    font-size: 0.72em;
    font-weight: 600;
    text-align: left;
    padding: 1px 2px;
    line-height: 1.2;
}

.bubble-no-data {
    font-size: 0.65em;
    font-style: italic;
    margin-top: auto;
    margin-bottom: auto;
}

/* Mobile responsive for detail rows */
@media (max-width: 768px) {
    .store-details {
        padding: 10px 15px;
    }
    
    .week-bubbles {
        gap: 4px;
    }
    
    .day-bubble {
        padding: 6px 3px;
        min-height: 80px;
    }
    
    .bubble-header {
        font-size: 0.7em;
        margin-bottom: 3px;
    }
    
    .bubble-row {
        font-size: 0.65em;
    }
    
    .bubble-no-data {
        font-size: 0.55em;
    }
    
    .chevron-toggle {
        font-size: 0.7em;
        margin-right: 6px;
    }
    
    .chevron-toggle.master-chevron {
        font-size: 0.8em;
        margin-right: 8px;
    }
}