/* ============================================
   Topo - layout geral (reaproveitável)
   ============================================ */

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.login-logo img {
    height: 46px;
    max-width: 190px;
}

.login-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    position: relative;
    font-size: 22px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notifications-panel {
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    max-height: 380px;
    background: #ffffff;
    color: #333333;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 12000;
}

.notifications-panel.show {
    display: flex;
}

.notifications-panel-header {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notifications-panel-clear {
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
}

.notifications-panel-body {
    padding: 4px 0;
    overflow-y: auto;
}

.notifications-panel-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: #777777;
}

.notifications-panel-item {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.notifications-panel-item:last-child {
    border-bottom: none;
}

.notifications-panel-item.unread {
    background: #f5f9ff;
}

.notifications-panel-item-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.notifications-panel-item-message {
    font-size: 12px;
    color: #666666;
}

.pill-button-notifications {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 10px 48px 10px 40px;
    background-color: #0084ff;
    background-image: url("../images/digital.png");
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 60px auto;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ============================================
   Modais administrativos (funcionários, locais, feriados etc.)
   Reutiliza o mesmo layout de pill inputs dos formulários do app.
   ============================================ */

.admin-employee-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 12000;
    overflow-y: auto;
    padding: 40px 16px;
}

@media (min-width: 600px) {
    .admin-employee-modal-backdrop {
        align-items: center;
        padding: 60px 16px;
    }
}

.admin-employee-modal-backdrop.show {
    display: flex;
}

.admin-employee-modal {
    background: transparent;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 20px 10px 24px;
    position: relative;
}

.admin-employee-modal-title {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
    font-weight: 300;
}

.admin-employee-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
}

.admin-employee-modal-actions {
    margin-top: 10px;
    text-align: center;
}

.admin-employee-modal .field-wrapper {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    max-width: 380px;
}

.admin-employee-modal .field-wrapper + .field-wrapper {
    margin-top: 14px;
}

.admin-employee-modal .field-input {
    border: none;
    margin: 0;
    outline: none;
}

.admin-employee-modal input[type=text],
.admin-employee-modal input[type=email],
.admin-employee-modal input[type=password] {
    margin-bottom: 0;
    border: none;
}

.admin-employee-modal .btn-submit {
    width: 100%;
    max-width: 380px;
    margin: 18px auto 0;
}

/* Padrão de input em formato de "pílula" usado nos modais admin */
.admin-input-pill {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-width: 380px;
    margin: 0 auto 12px;
    color: #ffffff;
    font-size: 13px;
}

.admin-input-pill span {
    text-align: left;
}

.admin-input-pill input,
.admin-input-pill select {
    width: 100%;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-size: 14px;
    color: #333333;
}

.admin-input-pill input::placeholder {
    color: #b3b9c5;
}

.admin-input-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.admin-submit-button {
    width: 100%;
    max-width: 380px;
    margin: 18px auto 0;
    display: block;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: #00c851;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ============================================
   Página: Login
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #ffffff;
    color: #ffffff;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: linear-gradient(135deg, #0084ff 0%, #0072f5 60%, #0066e6 100%);
    position: relative;
    overflow: hidden;
}

.login-page::after {
    content: "";
    position: absolute;
    top: 80px;
    right: -40px;
    width: 280px;
    height: 280px;
    background-image: url("../images/digital-fundo.png");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.login-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 96px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-datetime {
    margin-bottom: 40px;
}

.login-date {
    font-size: 14px;
    opacity: 0.9;
    text-transform: lowercase;
}

.login-time {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    margin-top: 6px;
}

.login-card {
    margin-top: 24px;
    background: transparent;
}

.login-card-title {
    font-size: 26px;
    font-weight: 300;
    margin-bottom: 24px;
}

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

.field-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.field-wrapper + .field-wrapper {
    margin-top: 12px;
}

.field-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    color: #333333;
    background: transparent;
}

.field-input::placeholder {
    color: #b3b9c5;
}

.field-icon {
    margin-left: 10px;
    color: #b3b9c5;
    font-size: 18px;
}

.btn-submit {
    margin-top: 18px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    background: #00c851;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit span.arrow {
    font-size: 20px;
}

.forgot-password {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #0072f5;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.bottom-white {
    background: #ffffff;
    border-top-left-radius: 50% 18%;
    border-top-right-radius: 50% 18%;
    padding-bottom: 24px;
    padding-top: 20px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
}

.error {
    background: rgba(248, 215, 218, 0.95);
    color: #721c24;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

@media (min-width: 480px) {
    .login-inner {
        padding-top: 32px;
    }
    .login-time {
        font-size: 42px;
    }
}

.login-header-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* ============================================
   Página: Dashboard Funcionário
   ============================================ */

.home-page {
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.home-top {
    background: linear-gradient(135deg, #0084ff 0%, #0072f5 60%, #0066e6 100%);
    border-bottom-left-radius: 50% 18%;
    border-bottom-right-radius: 50% 18%;
    padding: 24px 24px 40px;
    position: relative;
    color: #ffffff;
}

.home-top::after {
    content: "";
    position: absolute;
    top: 88px;
    right: -40px;
    width: 220px;
    height: 220px;
    background-image: url("../images/digital-fundo.png");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.home-top-inner {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 999;
}

.home-datetime {
    margin-top: 12px;
    margin-bottom: 32px;
    text-align: center;
}

.home-date {
    font-size: 14px;
    opacity: 0.9;
    text-transform: lowercase;
}

.home-time {
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    margin-top: 6px;
}

.home-main {
    flex: 1;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 24px;
}

.employee-card-wrapper {
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.employee-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 38px 16px 16px;
    text-align: center;
    position: relative;
}

.employee-avatar {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-name {
    color: #1f74ff;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 4px;
}

.employee-role {
    color: #777777;
    font-size: 14px;
}

.next-punch {
    margin-top: 22px;
    text-align: center;
    font-size: 16px;
    color: #555555;
}

.next-punch .time {
    color: #1f74ff;
    font-weight: 500;
}

.next-punch-hint {
    margin-top: 4px;
    font-size: 13px;
}

.next-punch-hint.on-time {
    color: #28a745;
}

.next-punch-hint.late {
    color: #dc3545;
}

.punch-call {
    margin-top: 32px;
    text-align: center;
}

.punch-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.punch-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.punch-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 8px;
}

.punch-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.punch-text-primary {
    color: #1f74ff;
    font-size: 18px;
}

.punch-text-secondary {
    color: #555555;
    font-size: 14px;
}

.pending-warning {
    margin-top: 72px;
    margin-bottom: 72px;
    text-align: center;
    padding: 0 24px;
}

.pending-warning-icon {
    font-size: 48px;
    color: #1f74ff;
    margin-bottom: 20px;
}

.pending-warning-title {
    font-size: 28px;
    color: #1f74ff;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 400;
}

.pending-warning-text {
    font-size: 13px;
    color: #333333;
    margin-top: 4px;
}

.message {
    max-width: 480px;
    margin: 20px auto 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.history-section {
    margin-top: 40px;
}

.history-title {
    font-size: 16px;
    color: #333333;
    margin-bottom: 12px;
}

.history-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.history-card {
    min-width: 120px;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex: 0 0 auto;
}

.history-date {
    font-size: 11px;
    color: #888888;
    margin-bottom: 6px;
}

.history-time-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.history-icon {
    font-size: 13px;
}

.history-time {
    font-size: 18px;
    font-weight: 500;
}

.history-label {
    font-size: 12px;
    color: #777777;
}

.history-card.entrada .history-time {
    color: #28a745;
}

.history-card.entrada .history-icon {
    color: #28a745;
}

.history-card.saida .history-time {
    color: #dc3545;
}

.history-card.saida .history-icon {
    color: #dc3545;
}

.history-card.pending {
    cursor: pointer;
}

.history-pending-flag {
    color: #ff9800;
    font-size: 13px;
    margin-left: 4px;
}

/* Modal de câmera - Dashboard Funcionário */

.camera-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.camera-modal.show {
    display: flex;
}

.camera-box {
    background: transparent;
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    padding: 0 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.camera-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    color: #ffffff;
}

.video-container {
    display: none;
}

.camera-frame {
    background: #ffffff;
    border-radius: 24px;
    padding: 8px;
    border: 3px solid #ffffff;
    overflow: hidden;
    max-height: 440px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.camera-frame video,
.camera-frame canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

.camera-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.camera-btn-text {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.camera-btn-text span.label {
    text-transform: lowercase;
}

.camera-btn-cancel {
    color: #ff3b30;
}

.camera-btn-retake {
    color: #1f74ff;
}

.camera-btn-text i {
    font-size: 18px;
}

.camera-btn-shutter {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 5px solid #b3b9c5;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.camera-btn-shutter-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-btn-shutter i {
    color: #b3b9c5;
    font-size: 22px;
}

.camera-btn-shutter:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.camera-footer {
    margin-top: 8px;
    width: 100%;
}

.camera-footer-button {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    background: #007bff;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-image: url("../images/digital-fundo.png");
    background-repeat: no-repeat;
    background-size: 90px auto;
    background-position: 18px center;
}

.camera-footer-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Página: Registros Funcionário
   ============================================ */

.records-header-title {
    margin-top: 40px;
    text-align: center;
}

.records-header-title-line {
    font-size: 24px;
    color: #ffffff;
    line-height: 1.3;
}

.records-main {
    flex: 1;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 24px;
}

.records-list {
    margin-top: 32px;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.record-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    font-size: 16px;
}

.record-row:nth-child(even) {
    background: #f7f7f7;
}

.record-col-type {
    flex: 1 1 auto;
    color: #aaaaaa;
}

.record-col-time {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-right: 16px;
}

.record-col-time i {
    font-size: 14px;
}

.record-col-date {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 13px;
    color: #999999;
}

.record-row.entrada .record-col-time {
    color: #28a745;
}

.record-row.entrada .record-col-time i {
    color: #28a745;
}

.record-row.saida .record-col-time {
    color: #dc3545;
}

.record-row.saida .record-col-time i {
    color: #dc3545;
}

.record-row.pending {
    cursor: pointer;
}

/* ============================================
   Página: Perfil Funcionário
   ============================================ */

.profile-header-title {
    margin-top: 40px;
    text-align: center;
}

.profile-header-title-line {
    font-size: 24px;
    color: #ffffff;
    line-height: 1.3;
}

.profile-main {
    flex: 1;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.profile-field {
    margin-top: 32px;
}

.profile-label {
    font-size: 14px;
    color: #555555;
    margin-bottom: 8px;
}

.profile-value-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.profile-value-text {
    font-size: 20px;
    color: #1f74ff;
}

.profile-photo-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-photo-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-photo-actions button,
.profile-photo-actions label {
    border: none;
    background: transparent;
    color: #1f74ff;
    font-size: 14px;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.profile-photo-actions button.remove {
    color: #e53935;
}

.profile-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
}

.profile-modal-backdrop.show {
    display: flex;
}

.profile-modal-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 320px;
    width: 85%;
    padding: 18px 20px 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.profile-modal-text {
    font-size: 15px;
    color: #333333;
    margin-bottom: 14px;
}

.profile-modal-button {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    background: #007bff;
    color: #ffffff;
    cursor: pointer;
}

/* ============================================
   Página: Dashboard Admin
   ============================================ */

.admin-page {
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.admin-top {
    background: linear-gradient(135deg, #0084ff 0%, #0072f5 60%, #0066e6 100%);
    border-bottom-left-radius: 50% 18%;
    border-bottom-right-radius: 50% 18%;
    padding: 24px 24px 40px;
    position: relative;
    color: #ffffff;
}

.admin-top::after {
    content: "";
    position: absolute;
    top: 88px;
    right: -40px;
    width: 220px;
    height: 220px;
    background-image: url("../images/digital-fundo.png");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.admin-top-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.admin-company-name {
    margin-top: 24px;
    font-size: 26px;
    text-align: center;
}

.admin-main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 40px;
}

.admin-section-title {
    font-size: 18px;
    margin: 0;
    color: #333333;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 32px 0 16px;
}

.admin-section-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-section-toolbar-right {
    justify-content: flex-end;
}

.admin-inline-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #f0f4ff;
    color: #0072f5;
    font-size: 13px;
    cursor: pointer;
}

.admin-small-button-danger {
    background: #ffe5e5;
    color: #ff3b30;
}

.admin-primary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    background-color: #0084ff;
    background-image: url("../images/digital.png");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 70px auto;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    padding-left: 56px;
}

.admin-primary-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background-color: #0084ff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

a.admin-primary-solid,
a.admin-primary-solid-link {
    text-decoration: none;
}

/* Botões e filtros reutilizados com layout de relatórios */
.reports-search-row {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reports-filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.reports-search-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reports-search-field {
    flex: 1 1 auto;
}

.reports-filter-button,
.reports-export-button {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    color: #007bff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.reports-export-button {
    white-space: nowrap;
}

.reports-filter-button i,
.reports-export-button i {
    font-size: 16px;
}

.reports-filters-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 260px;
    padding: 14px 16px 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.16);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 15000;
}

.reports-filters-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reports-filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.reports-filter-field {
    flex: 1 1 120px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #333333;
}

.reports-filter-field label {
    font-size: 13px;
}

.reports-filter-field select,
.reports-filter-field input[type="number"] {
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

.reports-filters-actions {
    margin-top: 12px;
    text-align: right;
}

.reports-apply-button {
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: #007bff;
    color: #ffffff;
}

.admin-overview-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.admin-overview-row {
    display: flex;
    gap: 18px;
    min-width: 620px;
}

.admin-overview-card {
    flex: 0 0 170px;
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.admin-overview-value {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333333;
}

.admin-overview-label {
    font-size: 13px;
    color: #777777;
}

.admin-list {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.admin-list-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
}

.admin-list-row:nth-child(even) {
    background: #f7f7f7;
}

.admin-list-col-name {
    flex: 1 1 auto;
    color: #333333;
}

.admin-list-col-time {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.admin-list-col-time i {
    font-size: 13px;
}

.admin-list-col-extra {
    flex: 0 0 230px;
    text-align: left;
    font-size: 12px;
    color: #333333;
}

.admin-list-col-code {
    flex: 0 0 180px;
    color: #333333;
}

.admin-list-col-extra.center {
    text-align: center;
}

.admin-list-col-actions {
    flex: 0 0 190px;
    text-align: left;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Botões de aprovação/reprovação (compartilhados entre Aprovações e Atestados) */
.approval-btn-approve,
.approval-btn-reject {
    border-radius: 999px;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}
.approval-btn-approve {
    background: #2bbf4b;
}
.approval-btn-reject {
    background: #ff3b30;
}

.admin-list-col-actions i.fa-file-image {
    font-size: 18px;
}

/* Garante que cabeçalho e linhas tenham a mesma largura de colunas */
.admin-list-row-header .admin-list-col-name,
.admin-list-row .admin-list-col-name {
    flex: 1 1 auto;
}

.admin-list-row-header .admin-list-col-code,
.admin-list-row .admin-list-col-code {
    flex: 0 0 170px;
}

.admin-list-row-header .admin-list-col-extra,
.admin-list-row .admin-list-col-extra {
    flex: 0 0 80px;
}

.admin-list-row-header .admin-list-col-actions,
.admin-list-row .admin-list-col-actions {
    flex: 0 0 210px;
}

.admin-list-row.entrada .admin-list-col-time {
    color: #28a745;
}

.admin-list-row.entrada .admin-list-col-time i {
    color: #28a745;
}

.admin-list-row.saida .admin-list-col-time {
    color: #dc3545;
}

.admin-list-row.saida .admin-list-col-time i {
    color: #dc3545;
}

.admin-status-ok {
    color: #28a745;
}

.admin-status-late {
    color: #dc3545;
}

.admin-load-more {
    margin-top: 10px;
    text-align: center;
}

.admin-load-more button {
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    background: #007bff;
    color: #ffffff;
    cursor: pointer;
}

.admin-last-row.hidden,
.admin-status-row.hidden {
    display: none;
}

/* ============================================
   Menu overlay (dashboard)
   ============================================ */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 132, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 32px;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 13000;
}

.menu-overlay.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-overlay-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.menu-overlay-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

.menu-overlay-body {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    overflow-y: auto;
    padding: 24px 0;
}

.menu-item {
    font-size: 24px;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.menu-overlay.open .menu-item {
    animation: menuItemIn 0.45s ease forwards;
}

.menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.15s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.25s;
}

.menu-overlay-footer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.menu-logout-button {
    min-width: 180px;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 18px;
    background: #e53935;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

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

/* ============================================
   Admin - Atestados
   ============================================ */

.admin-attestados-history {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .admin-attestados-history {
        flex-direction: row;
        align-items: flex-start;
    }
}

.admin-attestados-column {
    flex: 1 1 0;
}

.admin-attestados-column h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #333333;
}

.admin-attestados-column .admin-list a {
    text-decoration: none;
}

/* Formulário de atestados do funcionário */
.employee-attestados-form-title {
    font-size: 16px;
    color: #333333;
    margin-bottom: 12px;
}

.employee-attestados-form .admin-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.employee-attestados-form .admin-form-field {
    flex: 1 1 100%;
}

.employee-attestados-form .admin-form-field-half {
    flex: 1 1 calc(50% - 8px);
}

.employee-attestados-form .admin-form-field label {
    display: block;
    font-size: 13px;
    color: #333333;
    margin-bottom: 6px;
}

.employee-attestados-form .admin-form-field input[type="date"],
.employee-attestados-form .admin-form-field input[type="file"] {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    padding: 10px 14px;
    font-size: 14px;
    background: #ffffff;
    color: #333333;
}

.employee-attestados-form .admin-form-field textarea {
    width: 100%;
    min-height: 80px;
    border-radius: 16px;
    border: 1px solid #d0d0d0;
    padding: 10px 14px;
    font-size: 14px;
    resize: vertical;
}

.employee-attestados-form .admin-submit-button {
    max-width: 260px;
    margin: 20px auto 0;
}

.employee-attestados-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* Formularios admin genéricos (filtros / cadastros simples) */

.admin-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
}

.admin-form-field {
    flex: 1 1 200px;
}

.admin-form-field-search {
    flex: 1 1 auto;
}

.admin-form-field-filters {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
