* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f5;
    display: flex;
    height: 100vh;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1e2d3d;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 24px 20px 18px;
    border-bottom: 1px solid #28394d;
    text-align: center;
}

    .sidebar-logo img {
        width: 80px;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .sidebar-logo .sidebar-tagline {
        margin-top: 10px;
        font-size: 12.5px;
        font-weight: 600;
        letter-spacing: 4px;
        text-transform: uppercase;
        color: #e39111;
    }

.sidebar nav ul {
    list-style: none;
    padding: 10px 0;
}

    .sidebar nav ul li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        color: #9ab4c8;
        text-decoration: none;
        font-size: 13.5px;
        transition: background 0.15s;
        border-left: 3px solid transparent;
    }

        .sidebar nav ul li a:hover {
            background: #28394d;
            color: #fff;
        }

        .sidebar nav ul li a.active {
            background: #28394d;
            color: #fff;
            border-left: 3px solid #e39111;
        }

.status-box {
    background: #f7f9fb;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

    .status-box label {
        display: block;
        font-size: 12.5px;
        font-weight: 700;
        color: #1e2d3d;
        margin-bottom: 8px;
    }

    .status-box select {
        width: 100%;
        padding: 10px 12px;
        border: 1.5px solid #cbd5e0;
        border-radius: 8px;
        font-size: 14px;
        font-family: inherit;
        background: #fff;
    }

/* Main */
.main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

    .topbar .page-title {
        font-size: 15px;
        font-weight: 600;
        color: #1e2d3d;
    }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .user-name {
    font-size: 13px;
    color: #7a9ab5;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e39111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

/* Content */
.content {
    padding: 24px;
    flex: 1;
}

/* Page header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

    .page-header h1 {
        font-size: 24px;
        font-weight: 700;
        color: #1e2d3d;
    }

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e2d3d;
    margin: 18px 0 6px;
}

.subsection-title {
    font-size: 13px;
    font-weight: 700;
    color: #7a9ab5;
    margin: 16px 0 8px;
}

.section-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

.hint {
    font-size: 12px;
    color: #9ab4c8;
    margin: 4px 0 12px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #e39111;
    color: #fff;
}

    .btn-primary:hover {
        background: #c17c0e;
    }

.btn-secondary {
    background: #eef1f4;
    color: #4a5568;
}

    .btn-secondary:hover {
        background: #e2e8f0;
    }

/* Tables */
.admin-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

    .admin-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .admin-table th {
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #9ab4c8;
        padding: 12px 16px;
        border-bottom: 1px solid #eef1f4;
        background: #fafbfc;
    }

    .admin-table td {
        padding: 12px 16px;
        font-size: 13.5px;
        border-bottom: 1px solid #f2f4f7;
        vertical-align: middle;
    }

    .admin-table tr:last-child td {
        border-bottom: none;
    }

.empty-row {
    text-align: center;
    color: #aab8c2;
    padding: 30px 16px !important;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .row-actions .mini-btn {
        border: 1px solid #e2e8f0 !important;
        background: #fff !important;
    }

        .row-actions .mini-btn.danger {
            border-color: #f2d3d8 !important;
        }
 

.btn-sm {
    padding: 4px 11px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-edit {
    background: #fdeef0;
    color: #4a5568;
}

    .btn-edit:hover {
        background: #f6dde1;
    }

.btn-delete {
    background: #fdeef0;
    color: #e39111;
}

    .btn-delete:hover {
        background: #fbdde2;
    }

.btn-confirm {
    background: #edf7f0;
    color: #2a9a52;
}

    .btn-confirm:hover {
        background: #d6f0e0;
    }

/* Badges */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.badge-ok { background: #e9f5ee; color: #2f8f5b; }
.badge-off { background: #f2f4f7; color: #8a96a3; }

.status-pending { background: #faf1e2; color: #b8842a; }
.status-confirmed { background: #e9f5ee; color: #2f8f5b; }
.status-cancelled { background: #f2f4f7; color: #8a96a3; }
.status-completed { background: #eef1f4; color: #4a5568; }

/* Forms */
.admin-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.field {
    margin-bottom: 16px;
}

    .field label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: #4a5568;
        margin-bottom: 6px;
    }

    .field input:not([type="checkbox"]), .field select, .field textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 14px;
        font-family: inherit;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            outline: none;
            border-color: #e39111;
        }

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    cursor: pointer;
}

    .checkbox-item label {
        display: flex !important;
        align-items: center;
        gap: 6px;
        width: auto;
    }

.field-row {
    display: flex;
    gap: 16px;
}

    .field-row .field {
        flex: 1;
    }

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    padding: 10px 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

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

    .inline-form input, .inline-form select {
        padding: 8px 10px;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 13px;
        font-family: inherit;
    }

/* Hours grid */
.hours-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 8px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

    .hours-table th {
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: #9ab4c8;
        padding: 8px 8px;
    }

    .hours-table td {
        padding: 6px 8px;
    }

    .hours-table input[type="time"] {
        width: 100%;
        padding: 7px 8px;
        border: 1.5px solid #e2e8f0;
        border-radius: 6px;
        font-size: 13px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        color: #1e2d3d;
    }




/* ===== Appointments board (por profissional) ===== */
.day-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 12.5px;
    color: #7a9ab5;
}

    .day-summary b {
        color: #1e2d3d;
        text-transform: capitalize;
        font-weight: 600;
        font-size: 13px;
    }

.pending-pill {
    background: #faf1e2;
    color: #b8842a;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.day-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .day-controls input, .day-controls select {
        padding: 8px 10px;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 13px;
        font-family: inherit;
    }

.daynav {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #4a5568;
    font-size: 15px;
}

    .daynav:hover {
        border-color: #e39111;
        color: #e39111;
    }

.board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    align-items: flex-start;
}

.prof-col {
    background: #fff;
    border-radius: 14px;
    flex: 0 0 280px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.prof-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f4;
    background: #fafbfc;
}

.prof-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e2d3d;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex: none;
}

.prof-info b {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    color: #1e2d3d;
}

.prof-info span {
    font-size: 11.5px;
    color: #9ab4c8;
}

.prof-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prof-empty {
    text-align: center;
    color: #c1ccd6;
    font-size: 12.5px;
    padding: 24px 8px;
}

.appt-card {
    background: #fafbfc;
    border-radius: 10px;
    padding: 10px 12px;
    border-left: 3px solid #e39111;
}

.status-border-pending {
    border-left-color: #b8842a;
}

.status-border-confirmed {
    border-left-color: #2f8f5b;
}

.status-border-cancelled {
    border-left-color: #c1ccd6;
    opacity: .65;
}

.status-border-completed {
    border-left-color: #7a9ab5;
}

.appt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.appt-time {
    font-size: 15px;
    font-weight: 700;
    color: #1e2d3d;
}

.appt-service {
    font-size: 13px;
    font-weight: 620;
    color: #1e2d3d;
    margin-bottom: 2px;
}

.appt-client {
    font-size: 12px;
    color: #7a9ab5;
    margin-bottom: 8px;
}

.appt-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mini-btn {
    border: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 650;
    padding: 5px 9px;
    cursor: pointer;
}

    .mini-btn.ok {
        color: #2f8f5b;
        border-color: #cdeadb;
    }

    .mini-btn.danger {
        color: #e39111;
        border-color: #f2d3d8;
    }

    .mini-btn.neutral {
        color: #4a5568;
    }

.free-chip {
    display: block;
    border: 1.5px dashed #cdeadb;
    background: #f4fbf7;
    color: #2f8f5b;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

    .free-chip:hover {
        background: #eaf7f0;
    }

.free-range {
    font-size: 11px;
    font-weight: 700;
    color: #2f8f5b;
    margin-bottom: 6px;
}

.free-times {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.time-pill {
    background: #fff;
    border: 1px solid #cdeadb;
    color: #2f8f5b;
    font-size: 11.5px;
    font-weight: 650;
    padding: 3px 8px;
    border-radius: 20px;
}

.form-error {
    background: #fdf0f1;
    border: 1px solid #f2d3d8;
    color: #e39111;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    max-width: 560px;
}


/* ===== Dashboard ===== */
.today-strip {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

    .stat-card .num {
        font-size: 26px;
        font-weight: 700;
        color: #1e2d3d;
    }

    .stat-card .lbl {
        font-size: 11px;
        color: #9ab4c8;
        font-weight: 600;
        margin-top: 2px;
        letter-spacing: .3px;
    }

    .stat-card.accent .num {
        color: #e39111;
    }

.alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.reconfirm-card {
    background: #fdeef0;
    border: 1px solid #f2c6cd;
    border-radius: 12px;
    overflow: hidden;
}

    .reconfirm-card.new-bookings {
        background: #eaf2fb;
        border-color: #c7dbf2;
    }

        .reconfirm-card.new-bookings .reconfirm-head .txt span {
            color: #3a6fa8;
        }

.reconfirm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

    .reconfirm-head .ic {
        font-size: 18px;
        flex: none;
    }

    .reconfirm-head .txt b {
        font-size: 13.5px;
        font-weight: 650;
        color: #1e2d3d;
        display: block;
    }

    .reconfirm-head .txt span {
        font-size: 12.5px;
        color: #a34255;
    }

.reconfirm-list {
    background: #fff;
    margin: 0 8px 8px;
    border-radius: 9px;
    overflow: hidden;
}

.reconfirm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f5eef0;
}

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

    .reconfirm-item .info {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

        .reconfirm-item .info b {
            font-size: 13px;
            font-weight: 650;
            color: #1e2d3d;
        }

        .reconfirm-item .info span {
            font-size: 11.5px;
            color: #9ab4c8;
        }

            .reconfirm-item .info span.phone {
                color: #6b7c8c;
                font-weight: 600;
                margin-top: 2px;
            }

.item-actions {
    display: flex;
    gap: 6px;
    flex: none;
}

.btn-reconfirm {
    border: none;
    background: #e39111;
    color: #fff;
    font-size: 11.5px;
    font-weight: 650;
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-reconfirm:hover {
        background: #c17c0e;
    }

.btn-accept {
    border: none;
    background: #2f6fb0;
    color: #fff;
    font-size: 11.5px;
    font-weight: 650;
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-accept:hover {
        background: #255a8f;
    }

.btn-decline {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #8a96a3;
    font-size: 11.5px;
    font-weight: 650;
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-decline:hover {
        background: #f7f9fb;
    }

.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.activity-col {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.activity-col-head {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f4;
    font-size: 13px;
    font-weight: 700;
    color: #1e2d3d;
}

.activity-scroll {
    max-height: 420px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border-bottom: 1px solid #f2f4f7;
}

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

    .activity-item .av {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #1e2d3d;
        color: #fff;
        display: grid;
        place-items: center;
        font-weight: 700;
        font-size: 12px;
        flex: none;
    }

        .activity-item .av.cancel {
            background: #f2f4f7;
            color: #8a96a3;
        }

    .activity-item .info {
        flex: 1;
        min-width: 0;
    }

        .activity-item .info b {
            font-size: 13px;
            font-weight: 620;
            color: #1e2d3d;
            display: block;
        }

        .activity-item .info span {
            font-size: 11.5px;
            color: #9ab4c8;
        }

    .activity-item .time {
        font-size: 11px;
        color: #c1ccd6;
        white-space: nowrap;
    }




/* ===== Seletor de data com calendário (Admin/Appointments) ===== */
.admin-datepicker {
    position: relative;
    width: 100%;
}

.date-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1e2d3d;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

.admin-cal-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px;
    width: 260px;
}

.admin-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .admin-cal-head b {
        font-size: 13px;
        font-weight: 700;
        color: #1e2d3d;
    }

    .admin-cal-head button {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        border: 1px solid #e2e8f0;
        background: #fafbfc;
        cursor: pointer;
        font-size: 13px;
        color: #4a5568;
    }

.admin-cal-dow {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 2px;
    margin-bottom: 4px;
}

    .admin-cal-dow span {
        text-align: center;
        font-size: 10px;
        font-weight: 700;
        color: #9ab4c8;
    }

.admin-cal-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 3px;
}

.admin-cal-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: default;
    color: #c1ccd6;
}

    .admin-cal-day.pad {
        visibility: hidden;
    }

    .admin-cal-day.closed {
        background: transparent;
    }

    .admin-cal-day.open {
        background: #edf7f0;
        color: #1e2d3d;
        cursor: pointer;
    }

        .admin-cal-day.open:hover {
            background: #d6f0e0;
        }

    .admin-cal-day.sel {
        background: #e39111;
        color: #fff;
    }




.reconfirm-day-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #a34255;
    padding: 10px 14px 2px;
    background: #fff;
}



.timeline {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 4px 16px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10px;
    flex: none;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2f8f5b;
    flex: none;
}

.timeline-item.cancelled .timeline-dot {
    background: #e39111;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: #eef1f4;
    margin-top: 4px;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
}

.timeline-main {
    font-size: 13px;
    font-weight: 500;
    color: #1e2d3d;
}

    .timeline-main b {
        font-weight: 700;
    }

.timeline-item.cancelled .timeline-main {
    color: #e39111;
    text-decoration: line-through;
}

.timeline-sub {
    font-size: 11.5px;
    color: #9ab4c8;
    margin-top: 2px;
}

.timeline-time {
    font-size: 11px;
    color: #c1ccd6;
    white-space: nowrap;
    flex: none;
}