body {

    margin: 0;
    padding: 0;
    background: #eef2f7;

    font-family: Arial, sans-serif;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    min-height: 100vh;
}


.container {

    background: white;

    width: 350px;

    padding: 40px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 5px 20px rgba(0,0,0,0.15);

    margin: 30px 0;

}


h1 {

    color: #1565c0;

    margin-bottom: 30px;

}


h3 {

    color: #555;

}


button {

    width: 100%;

    padding: 18px;

    margin: 10px 0;

    border: none;

    border-radius: 12px;

    background: #1976d2;

    color: white;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;

    font-size: 18px;

    cursor: pointer;

}


button:hover {

    background: #0d47a1;

}


.manager {

    background: #2e7d32;

}


.manager:hover {

    background: #1b5e20;

}

.backup-reminder {
    background: #c62828;
    animation: backup-pulse 1.6s ease-in-out infinite;
}

.backup-reminder:hover {
    background: #8e0000;
}

@keyframes backup-pulse {
    0%   { background-color: #c62828; }
    50%  { background-color: #e57373; }
    100% { background-color: #c62828; }
}

.backup-status {
    font-size: 14px;
    color: #555;
    margin: 4px 0 12px;
}

.backup-status.overdue {
    color: #c62828;
    font-weight: bold;
}
.container.wide {
    width: 480px;
    max-width: 92vw;
}

.clock-logo {
    display: block;
    margin: 0 auto 8px;
}

.add-staff-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.add-staff-row input[type="text"] {
    flex: 1;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
}

.add-staff-row button {
    width: auto;
    padding: 12px 16px;
    margin: 0;
}

.staff-list {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 10px;
    text-align: left;
}

.staff-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.remove-btn {
    width: auto;
    padding: 6px 12px;
    margin: 0;
    font-size: 13px;
    background: #c62828;
}

.remove-btn:hover {
    background: #8e0000;
}

.over-limit-list {
    margin-bottom: 10px;
}

.over-limit-row {
    background: #fdecea;
    color: #c62828;
    font-weight: bold;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 15px;
}

.empty-note {
    color: #777;
    font-size: 14px;
    margin: 6px 0;
}

tr.over-limit td {
    background: #fdecea;
    color: #c62828;
    font-weight: bold;
}

.over-limit-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.over-limit-actions button {
    width: auto;
    padding: 10px 16px;
    margin: 0;
    font-size: 14px;
}

.print-only {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    #printArea, #printArea * {
        visibility: visible;
    }
    #printArea {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px;
    }
    #printArea table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 12px;
    }
    #printArea th, #printArea td {
        border: 1px solid #333;
        padding: 8px;
        text-align: left;
    }
}

#searchBox {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
}

#searchBox:focus {
    outline: none;
    border-color: #1976d2;
}

.employee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 4px;
}

.employee-btn {
    width: 100%;
    padding: 14px 8px;
    margin: 0;
    font-size: 15px;
}

.employee-btn.on-break {
    background: #c62828;
}

.employee-btn.on-break:hover {
    background: #8e0000;
}

input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
}

.error-text {
    color: #c62828;
    min-height: 20px;
    font-size: 14px;
}

button.secondary {
    background: #757575;
}

button.secondary:hover {
    background: #555;
}

button.danger {
    background: #c62828;
}

button.danger:hover {
    background: #8e0000;
}

.table-wrap {
    max-height: 350px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

th {
    color: #1565c0;
    position: sticky;
    top: 0;
    background: white;
}
