body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    padding: 30px;
    display: flex;
    justify-content: center;
}
@media (max-width: 600px) {
    body {
        padding: 0;
        margin: 0;
        background-color: white;
    }
    .container {
        width: 100%;
        padding: 0px !important;
        box-shadow: none;
    }
    .container.print .footer br {
        display: block !important;
    }
    .container.print .imgfooter {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }
}

.container {
    max-width: 800px;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
}

h1 {
    text-align: center;
    color: #2c3e50;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

select,
.day-selector button,
#todayBtn,
#doVeSo,
#lastTwoCheckbox {
    margin: 4px;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.day-selector button,
#todayBtn {
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}
.day-selector button {
    background: #4f4f4f;
}

#doVeSo {
    background: #3437db;
    color: white;
    border: none;
    cursor: pointer;
}
#todayBtn:hover {
    background: #2980b9;
}
.day-selector button:hover {
    background: #757575;
}
.day-selector button.selected {
    background: #3498db !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #2980b9;
    color: white;
}

tr.special td {
    background-color: #e74c3c !important;
    color: white;
    font-weight: bold;
}

.calendar-table {
    width: 350px;
    margin: 10px auto 0 auto;
}
.calendar-table td {
    padding: 0px;
    border: 1px solid #ffffff;
}

.number-cell {
    font-weight: bold;
    font-size: 20px;
}

.checkbox-wrapper {
    margin-top: 10px;
    text-align: center;
}

.checkbox-wrapper label {
    font-size: 14px;
    cursor: pointer;
    margin-left: 6px;
}

.footer,
.footer2 {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: #666;
}

.highlight {
    background-color: yellow !important;
    animation: blink 0.5s step-start 0s 3;
}
.red {
    color: red;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

#modalContent {
    background: white;
    padding: 20px;
    border-radius: 6px;
    width: 300px;
}

#modalContent select,
#modalContent input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

#modalContent button {
    width: 100%;
    padding: 8px;
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
}

@media print {
    @page {
        margin: 0.5cm;
        margin-top: 0.3cm;
        margin-bottom: 0.3cm;
        margin-left: 0.5cm;
        margin-right: 0.5cm;
    }
    body,
    .container {
        padding: 0;
    }
    h1 {
        font-size: 20px;
    }
    .controls,
    .checkbox-wrapper,
    #modal,
    .mini-menu {
        display: none !important;
    }

    tr.special td,
    th {
        background: none !important;
        color: black !important;
    }
    .footer {
        display: block;
    }
    .container {
        margin-top: 30px;
        box-shadow: none !important;
    }
    .tabs,
    .pagination {
        display: none !important;
    }
}
.container.print {
    max-width: 500px;
}
.container.print .imgfooter {
    width: 60px !important;
    position: absolute;
    top: 2px;
    left: 18px;
}
.container.print .footer br {
    display: none;
}

.container.print h1 {
    font-size: 20px;
}
.container.print .controls,
.container.print .checkbox-wrapper,
.container.print #modal,
.container.print .mini-menu {
    display: none !important;
}
.container.print tr.special td,
.container.print th {
    background: none !important;
    color: black !important;
}
.container.print .footer {
    display: block;
}
.container.print .container {
    box-shadow: none !important;
}

#alertBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#alertContent {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 16px;
    gap: 4px;
}
.tab {
    padding: 10px 24px;
    cursor: pointer;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: -2px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.tab:not(.active):hover {
    background: #ececec;
    color: #1976d2;
}
.tab.active {
    background: #fff;
    color: #1976d2;
    font-weight: bold;
    border-bottom: 2px solid #fff;
    z-index: 1;
}
