/* agenda.css - visualização da agenda da tela principal do Cronoz */

#cz-agenda {
    --cz-bg: #f3f5f9;
    --cz-card: #ffffff;
    --cz-line: #edf0f5;
    --cz-line-hour: #dde2ea;
    --cz-text: #1e2a3b;
    --cz-muted: #7a8699;
    --cz-brand: #0b3a75;
    --cz-brand-2: #1557b0;
    --cz-brand-soft: #e8f0fb;
    --cz-now: #e5484d;
    --cz-radius: 14px;
    --cz-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    position: relative;
    height: 100%;
    font-family: "Segoe UI", "Inter", Roboto, Arial, sans-serif;
    font-size: 13px;
    color: var(--cz-text);
    background: var(--cz-bg);
    box-sizing: border-box;
}

#cz-agenda *, #cz-agenda *::before, #cz-agenda *::after { box-sizing: border-box; }
#cz-agenda button { font-family: inherit; cursor: pointer; }

#cz-agenda .cz-app {
    position: relative;
    display: flex;
    height: 100%;
    gap: 14px;
    padding: 14px;
}

/* ---------------------------------------------------------- barra lateral */

#cz-agenda .cz-side {
    flex: 0 0 256px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
}

#cz-agenda .cz-card {
    background: var(--cz-card);
    border-radius: var(--cz-radius);
    box-shadow: var(--cz-shadow);
    padding: 14px;
}

#cz-agenda .cz-side-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cz-muted);
    margin-bottom: 10px;
}

/* calendário */
#cz-agenda .cz-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
#cz-agenda .cz-cal-head strong { font-size: 15px; color: var(--cz-text); }
#cz-agenda .cz-cal-head strong span { font-weight: 400; color: var(--cz-muted); }
#cz-agenda .cz-cal-nav {
    width: 28px; height: 28px; border-radius: 8px;
    border: 0; background: transparent;
    font-size: 20px; line-height: 1; color: var(--cz-muted);
}
#cz-agenda .cz-cal-nav:hover { background: var(--cz-brand-soft); color: var(--cz-brand); }

#cz-agenda .cz-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
#cz-agenda .cz-cal-dow {
    text-align: center; font-size: 11px; font-weight: 600; color: var(--cz-muted);
    padding-bottom: 4px;
}
#cz-agenda .cz-cal-day {
    position: relative;
    height: 30px;
    border: 0; border-radius: 9px;
    background: transparent;
    font-size: 12.5px; color: var(--cz-text);
    transition: background .12s;
}
#cz-agenda .cz-cal-day:hover { background: var(--cz-brand-soft); }
#cz-agenda .cz-cal-day.out { color: #c3c9d4; }
#cz-agenda .cz-cal-day.sun:not(.sel) { color: #c0848a; }
#cz-agenda .cz-cal-day.out.sun { color: #e0c4c7; }
#cz-agenda .cz-cal-day.today { box-shadow: inset 0 0 0 1.5px var(--cz-brand-2); font-weight: 700; color: var(--cz-brand); }
#cz-agenda .cz-cal-day.sel { background: var(--cz-brand); color: #fff; font-weight: 600; }
#cz-agenda .cz-cal-day i {
    position: absolute; left: 50%; bottom: 3px;
    width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%; background: var(--cz-brand-2);
}
#cz-agenda .cz-cal-day.sel i { background: #fff; }
#cz-agenda .cz-cal-today {
    width: 100%; margin-top: 10px; height: 30px;
    border: 1px solid var(--cz-line-hour); border-radius: 9px;
    background: #fff; color: var(--cz-brand); font-weight: 600; font-size: 12px;
}
#cz-agenda .cz-cal-today:hover { background: var(--cz-brand-soft); }

/* colaboradores */
#cz-agenda .cz-prof-list { display: flex; flex-direction: column; gap: 2px; }
#cz-agenda .cz-prof {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 6px 8px;
    border: 0; border-radius: 10px; background: transparent;
    text-align: left; color: var(--cz-text);
}
#cz-agenda .cz-prof:hover { background: #f5f7fb; }
#cz-agenda .cz-prof-dot {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
#cz-agenda .cz-prof-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; }
#cz-agenda .cz-prof-name small { font-weight: 400; color: var(--cz-muted); font-size: 11px; }
#cz-agenda .cz-prof-name, #cz-agenda .cz-prof-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cz-agenda .cz-prof em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cz-muted); }
#cz-agenda .cz-prof.off { opacity: .4; }
#cz-agenda .cz-prof.off .cz-prof-dot { filter: grayscale(1); }
#cz-agenda .cz-side-empty { color: var(--cz-muted); font-size: 12px; }

/* resumo */
#cz-agenda .cz-kpis { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
#cz-agenda .cz-kpis div {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 8px 10px; border-radius: 10px; background: #f6f8fb;
}
#cz-agenda .cz-kpis b { font-size: 15px; color: var(--cz-brand); }
#cz-agenda .cz-kpis span { font-size: 12px; color: var(--cz-muted); }

#cz-agenda .cz-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#cz-agenda .cz-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 6px; border: 0; border-radius: 8px; background: transparent;
    font-size: 12px; color: var(--cz-text); text-align: left;
}
#cz-agenda .cz-chip:hover { background: #f5f7fb; }
#cz-agenda .cz-chip i { flex: none; width: 9px; height: 9px; border-radius: 3px; }
#cz-agenda .cz-chip em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--cz-muted); }
#cz-agenda .cz-chip.off { opacity: .35; text-decoration: line-through; }

/* ---------------------------------------------------------- área principal */

#cz-agenda .cz-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--cz-card);
    border-radius: var(--cz-radius);
    box-shadow: var(--cz-shadow);
    overflow: hidden;
}

#cz-agenda .cz-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cz-line);
}

#cz-agenda .cz-arrows { display: flex; gap: 4px; }
#cz-agenda .cz-icon {
    width: 32px; height: 32px; border-radius: 9px;
    border: 1px solid var(--cz-line-hour); background: #fff;
    font-size: 20px; line-height: 1; color: var(--cz-text);
}
#cz-agenda .cz-icon:hover { background: var(--cz-brand-soft); border-color: transparent; color: var(--cz-brand); }

#cz-agenda .cz-refresh { display: flex; align-items: center; justify-content: center; }
#cz-agenda .cz-refresh svg {
    width: 16px; height: 16px; fill: none; stroke: currentColor;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
#cz-agenda .cz-refresh.spin svg { animation: cz-spin .8s linear infinite; }
@keyframes cz-spin { to { transform: rotate(360deg); } }

#cz-agenda .cz-period { display: flex; flex-direction: column; line-height: 1.2; }
#cz-agenda .cz-period strong { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
#cz-agenda .cz-period > span { font-size: 12px; color: var(--cz-muted); }
#cz-agenda .cz-today-pill {
    font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px;
    background: var(--cz-brand-soft); color: var(--cz-brand);
}

#cz-agenda .cz-link {
    border: 0; background: transparent; padding: 4px 6px;
    color: var(--cz-brand-2); font-weight: 600; font-size: 12px;
}
#cz-agenda .cz-link:hover { text-decoration: underline; }

#cz-agenda .cz-spacer { flex: 1; }

#cz-agenda .cz-search {
    display: flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 10px;
    border-radius: 9px; background: #f3f5f9;
    min-width: 220px; color: var(--cz-muted);
}
#cz-agenda .cz-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#cz-agenda .cz-search input { border: 0; outline: 0; flex: 1; font: inherit; color: var(--cz-text); background: transparent; }
#cz-agenda .cz-search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--cz-brand-soft), inset 0 0 0 1px var(--cz-brand-2); }

#cz-agenda .cz-switch { display: inline-flex; background: #f3f5f9; border-radius: 9px; padding: 3px; }
#cz-agenda .cz-switch button {
    border: 0; background: transparent;
    padding: 5px 14px; border-radius: 7px;
    font-weight: 600; font-size: 12.5px; color: var(--cz-muted);
}
#cz-agenda .cz-switch button.on { background: #fff; color: var(--cz-brand); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

#cz-agenda .cz-primary {
    height: 34px; padding: 0 14px;
    border: 0; border-radius: 9px;
    background: var(--cz-brand); color: #fff;
    font-weight: 600; font-size: 13px;
    transition: background .15s, box-shadow .15s;
}
#cz-agenda .cz-primary span { font-size: 16px; margin-right: 2px; }
#cz-agenda .cz-primary:hover { background: var(--cz-brand-2); box-shadow: 0 4px 10px rgba(11, 58, 117, .25); }

/* ---------------------------------------------------------- grade */

#cz-agenda .cz-board { flex: 1; min-height: 0; overflow: auto; }

#cz-agenda .cz-grid { display: grid; position: relative; min-width: 100%; }

#cz-agenda .cz-corner,
#cz-agenda .cz-colhead {
    position: sticky; top: 0; z-index: 5;
    height: 54px;
    background: #fff;
    border-bottom: 1px solid var(--cz-line-hour);
}
#cz-agenda .cz-corner { left: 0; z-index: 6; }

#cz-agenda .cz-colhead {
    display: flex; align-items: center; gap: 9px;
    padding: 0 12px;
    border-top: 3px solid transparent;
    border-left: 1px solid var(--cz-line);
}
#cz-agenda .cz-avatar {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
}
#cz-agenda .cz-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
#cz-agenda .cz-who strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cz-agenda .cz-who span { font-size: 11px; color: var(--cz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#cz-agenda .cz-dayhead { justify-content: center; gap: 8px; cursor: pointer; }
#cz-agenda .cz-dayhead:hover { background: #f7f9fc; }
#cz-agenda .cz-dayhead .cz-dow { font-size: 12px; font-weight: 600; color: var(--cz-muted); text-transform: uppercase; }
#cz-agenda .cz-dayhead .cz-dnum {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
#cz-agenda .cz-dayhead.today .cz-dow { color: var(--cz-brand); }
#cz-agenda .cz-dayhead.today .cz-dnum { background: var(--cz-brand); color: #fff; }

#cz-agenda .cz-times { position: sticky; left: 0; z-index: 4; background: #fff; }
#cz-agenda .cz-time {
    position: relative;
    font-size: 11px; color: var(--cz-muted);
    text-align: right; padding-right: 8px;
}
#cz-agenda .cz-time.hour { font-weight: 600; color: #56627a; transform: translateY(-7px); }
#cz-agenda .cz-now-label {
    position: absolute; right: 4px; z-index: 2;
    transform: translateY(-50%);
    padding: 1px 5px; border-radius: 6px;
    background: var(--cz-now); color: #fff;
    font-size: 10px; font-weight: 700;
}

#cz-agenda .cz-colbody { position: relative; border-left: 1px solid var(--cz-line); }

#cz-agenda .cz-slot { position: relative; cursor: pointer; border-top: 1px solid transparent; }
#cz-agenda .cz-slot.hour { border-top-color: var(--cz-line-hour); }
#cz-agenda .cz-slot:not(.hour) { border-top: 1px dashed var(--cz-line); }
#cz-agenda .cz-slot.off { background: repeating-linear-gradient(-45deg, #f7f8fa, #f7f8fa 5px, #e8ebf0 5px, #e8ebf0 10px); }
#cz-agenda .cz-slot.past { background-color: #fcfcfd; }
#cz-agenda .cz-slot span {
    display: none;
    position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
    font-size: 11px; font-weight: 600; color: var(--cz-brand-2);
}
#cz-agenda .cz-slot:hover { background: var(--cz-brand-soft); }
#cz-agenda .cz-slot:hover span { display: block; }

/* ---------------------------------------------------------- eventos */

#cz-agenda .cz-event {
    position: absolute;
    z-index: 2;
    display: flex; flex-direction: column; gap: 1px;
    border-radius: 7px;
    border-left: 4px solid #90A4AE;
    padding: 4px 7px;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.25;
    transition: box-shadow .15s, transform .15s;
}
#cz-agenda .cz-event:hover { box-shadow: 0 6px 16px rgba(16, 24, 40, .16); transform: translateY(-1px); z-index: 3; }

#cz-agenda .cz-ev-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
#cz-agenda .cz-ev-time { flex: none; font-size: 11px; font-weight: 600; color: #4b5567; }
#cz-agenda .cz-ev-client {
    flex: 1; min-width: 0;
    font-weight: 700; font-size: 12.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#cz-agenda .cz-ev-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
#cz-agenda .cz-ev-line {
    font-size: 11.5px; color: #4b5567;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#cz-agenda .cz-ev-line i {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    margin-right: 5px; vertical-align: middle;
}

/* layout padrão: horário em cima, cliente embaixo */
#cz-agenda .cz-event:not(.compact):not(.short) .cz-ev-head { flex-wrap: wrap; row-gap: 0; }
#cz-agenda .cz-event:not(.compact):not(.short) .cz-ev-time { flex: 1 0 auto; }
#cz-agenda .cz-event:not(.compact):not(.short) .cz-ev-client { order: 3; flex-basis: 100%; }

#cz-agenda .cz-event.compact { flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 0; }
#cz-agenda .cz-event.compact .cz-ev-head { flex: 0 1 auto; }
#cz-agenda .cz-event.compact .cz-ev-line { flex: 1 1 0; min-width: 0; margin-left: 6px; }
#cz-agenda .cz-event.compact .cz-ev-line i { display: none; }
#cz-agenda .cz-event.compact .cz-ev-line::before { content: "· "; color: #9aa3b2; }
#cz-agenda .cz-event.compact .cz-ev-line + .cz-ev-line { display: none; }

#cz-agenda .cz-alert {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; margin-right: 4px;
    border-radius: 50%; background: var(--cz-now); color: #fff; font-size: 10px;
    vertical-align: 1px;
}
#cz-agenda .cz-event.inactive { opacity: .5; }
#cz-agenda .cz-event.inactive .cz-ev-client { text-decoration: line-through; }

#cz-agenda .cz-now {
    position: absolute; left: 0; right: 0; z-index: 4;
    height: 2px; background: var(--cz-now);
    pointer-events: none;
}
#cz-agenda .cz-now::before {
    content: ""; position: absolute; left: -4px; top: -3px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--cz-now);
}

#cz-agenda .cz-empty {
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: var(--cz-muted);
}
#cz-agenda .cz-empty b { font-size: 15px; color: var(--cz-text); }

/* ---------------------------------------------------------- popover */

#cz-agenda .cz-pop {
    position: absolute; z-index: 20;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .08);
    overflow: hidden;
    animation: cz-in .12s ease-out;
}
@keyframes cz-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

#cz-agenda .cz-pop-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
    padding: 12px 14px 8px;
    border-top: 4px solid var(--cz-brand);
}
#cz-agenda .cz-pop-when { font-size: 12px; color: var(--cz-muted); }
#cz-agenda .cz-pop-head h3 { margin: 2px 0 0; font-size: 16px; }
#cz-agenda .cz-pop-x {
    border: 0; background: transparent; color: var(--cz-muted);
    font-size: 22px; line-height: 1; border-radius: 8px; width: 28px; height: 28px;
}
#cz-agenda .cz-pop-x:hover { background: #f3f5f9; }

#cz-agenda .cz-pop-body { padding: 4px 14px 4px; }
#cz-agenda .cz-pop-alert {
    background: #fdecec; color: #b42318;
    border-radius: 8px; padding: 6px 8px; margin-bottom: 8px; font-size: 12px;
}
#cz-agenda .cz-pop-body dl { display: grid; grid-template-columns: 84px 1fr; gap: 5px 8px; margin: 4px 0 12px; }
#cz-agenda .cz-pop-body dt { color: var(--cz-muted); font-size: 12px; }
#cz-agenda .cz-pop-body dd { margin: 0; font-weight: 600; }
#cz-agenda .cz-pop-body dd i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
/* atendimento com vários serviços */
#cz-agenda .cz-pop-itens { list-style: none; margin: 0; padding: 0; }
#cz-agenda .cz-pop-itens li { padding: 2px 0; font-weight: 500; }
#cz-agenda .cz-pop-itens li.on b { text-decoration: underline; }
#cz-agenda .cz-pop-itens li span { color: #6b7280; font-size: 12px; }
#cz-agenda .cz-pop-itens li em { font-style: normal; color: #4b5563; font-size: 12px; margin-left: 4px; }
#cz-agenda .cz-pop-itens li em i { width: 7px; height: 7px; margin: 0 3px 0 0; }
#cz-agenda .cz-ev-mais { font-size: 10px; font-weight: 700; background: rgba(0,0,0,.08); border-radius: 8px; padding: 0 5px; margin-left: 4px; }
#cz-agenda .cz-pop-body small { color: var(--cz-muted); font-weight: 400; margin-left: 4px; }
#cz-agenda .cz-pop-label { font-size: 12px; color: var(--cz-muted); margin-bottom: 6px; }

#cz-agenda .cz-pop-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
#cz-agenda .cz-st {
    border: 1px solid var(--c); background: #fff; color: var(--c);
    border-radius: 7px; padding: 5px 2px;
    font-size: 10.5px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#cz-agenda .cz-st:hover, #cz-agenda .cz-st.on { background: var(--c); color: var(--t); }

#cz-agenda .cz-pop-foot { padding: 12px 14px 14px; display: flex; justify-content: flex-end; }

/* ---------------------------------------------------------- pagamento */

#cz-agenda .cz-ev-pay {
    flex: none; width: 15px; height: 15px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: #fff;
}
#cz-agenda .cz-ev-pay.pago { background: #1a9e5c; }
#cz-agenda .cz-ev-pay.parcial { background: #e08a00; }

#cz-agenda .cz-pop { width: 340px; max-height: calc(100% - 16px); overflow-y: auto; }

#cz-agenda .cz-pay {
    margin-top: 12px; padding: 10px; border-radius: 12px;
    background: #f7f9fc; border: 1px solid var(--cz-line);
}
#cz-agenda .cz-pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#cz-agenda .cz-pay-head span { font-size: 12px; font-weight: 700; color: var(--cz-muted); text-transform: uppercase; letter-spacing: .05em; }
#cz-agenda .cz-pay-head em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; padding: 2px 10px; border-radius: 999px; }
#cz-agenda .cz-pay-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
#cz-agenda .cz-pay-vals div { background: #fff; border-radius: 9px; padding: 6px 8px; }
#cz-agenda .cz-pay-vals small { display: block; font-size: 10.5px; color: var(--cz-muted); }
#cz-agenda .cz-pay-vals b { font-size: 13px; }
#cz-agenda .cz-pay-vals b.ok { color: #1a9e5c; }
#cz-agenda .cz-pay-vals b.warn { color: #e08a00; }

#cz-agenda .cz-pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#cz-agenda .cz-paybtn {
    height: 34px; border-radius: 9px; font-weight: 700; font-size: 12.5px;
    border: 1.5px solid; background: #fff;
}
#cz-agenda .cz-paybtn.total { border-color: #1a9e5c; color: #1a9e5c; }
#cz-agenda .cz-paybtn.parcial { border-color: #e08a00; color: #e08a00; }
#cz-agenda .cz-paybtn.total:hover, #cz-agenda .cz-paybtn.total.on { background: #1a9e5c; color: #fff; }
#cz-agenda .cz-paybtn.parcial:hover, #cz-agenda .cz-paybtn.parcial.on { background: #e08a00; color: #fff; }
#cz-agenda .cz-paybtn:disabled { opacity: .4; cursor: not-allowed; background: #fff !important; color: var(--cz-muted) !important; border-color: var(--cz-line-hour) !important; }

#cz-agenda .cz-pay-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
#cz-agenda .cz-pay-form[hidden] { display: none; }
#cz-agenda .cz-pay-form label span { display: block; font-size: 11px; font-weight: 600; color: var(--cz-muted); margin-bottom: 3px; }
#cz-agenda .cz-pay-form input, #cz-agenda .cz-pay-form select {
    width: 100%; height: 32px; border: 1px solid var(--cz-line-hour); border-radius: 8px;
    padding: 0 8px; font: inherit; background: #fff;
}
#cz-agenda .cz-pay-form input[readonly] { background: #eef2f7; color: var(--cz-muted); }
#cz-agenda .cz-pay-form .cz-primary { grid-column: 1 / -1; }

#cz-agenda .cz-toast {
    position: absolute; left: 50%; bottom: 24px; z-index: 30;
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    padding: 10px 18px; border-radius: 12px; background: #1e2a3b; color: #fff;
    font-weight: 600; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    transition: opacity .2s, transform .2s;
}
#cz-agenda .cz-toast.show { opacity: 1; transform: translate(-50%, 0); }
#cz-agenda .cz-toast.err { background: #b42318; }

/* lista de pagamentos lançados */
#cz-agenda .cz-pay-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
#cz-agenda .cz-pay-list li {
    display: grid; grid-template-columns: 38px 1fr auto auto auto; align-items: center; gap: 6px;
    background: #fff; border: 1px solid transparent; border-radius: 9px; padding: 5px 6px 5px 8px; font-size: 12.5px;
}
#cz-agenda .cz-pay-list li.on { border-color: #7aa7ff; background: #f2f6ff; }
#cz-agenda .cz-pay-list .d { color: var(--cz-muted); font-size: 11.5px; }
#cz-agenda .cz-pay-list .f { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cz-agenda .cz-pay-list b { color: #1a9e5c; }
#cz-agenda .cz-pay-list button {
    border: 0; background: transparent; cursor: pointer; border-radius: 6px;
    min-width: 24px; height: 24px; font-size: 14px; line-height: 1; color: var(--cz-muted);
}
#cz-agenda .cz-pay-list .cz-pg-ed:hover { background: #e8efff; color: #2f6fed; }
#cz-agenda .cz-pay-list .cz-pg-del:hover { background: #fdecec; color: #d64545; }
#cz-agenda .cz-pay-list .cz-pg-del.confirm { background: #d64545; color: #fff; font-size: 11px; font-weight: 700; padding: 0 8px; }
#cz-agenda .cz-pay-tip { margin: 8px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--cz-muted); }
#cz-agenda .cz-pay-title { grid-column: 1 / -1; font-size: 12px; font-weight: 700; }

/* perfil sem Incluir: horários não são clicáveis */
#cz-agenda .cz-slot.ro { cursor: default; }

#cz-agenda .cz-slot.ro:hover { background: transparent; }

/* confirmação da troca de situação */
#cz-agenda .cz-st.ask { outline: 2px solid #1d63d1; outline-offset: 1px; }
#cz-agenda .cz-st-confirm {
    margin: 8px 0 4px; padding: 10px; border-radius: 10px; background: #fff7e6; border: 1px solid #ffd591;
    font-size: 12.5px; display: grid; gap: 8px;
}
#cz-agenda .cz-st-confirm > div { display: flex; gap: 6px; justify-content: flex-end; }
#cz-agenda .cz-st-confirm button { border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
#cz-agenda .cz-btn-no { background: #eef2f7; color: #344054; }
#cz-agenda .cz-btn-yes { background: #1d63d1; color: #fff; }

/* finalizar pagamento */
#cz-agenda .cz-fin { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--cz-muted); }
#cz-agenda .cz-fin.on span { color: #1a9e5c; font-weight: 700; }
#cz-agenda .cz-link { border: 1px solid #c9d3e0; background: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; font-weight: 700; color: #0b3a75; cursor: pointer; }
#cz-agenda .cz-link.confirm { background: #0b3a75; color: #fff; border-color: #0b3a75; }
#cz-agenda .cz-pay-vals b.info { color: #5c6bc0; }
#cz-agenda .cz-brinde { font-size: 10px; font-weight: 700; color: #8f5cff; background: #f1eaff; padding: 1px 5px; border-radius: 6px; }

/* crédito do cliente */
#cz-agenda .cz-cred { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #e8f7ef; color: #146c43; font-size: 12.5px; display: grid; gap: 2px; }
#cz-agenda .cz-cred span { font-size: 11.5px; color: #3a7d5c; }
#cz-agenda .cz-outros { margin-top: 6px; padding: 7px 10px; border-radius: 10px; background: #fff4e5; color: #9a5b00; font-size: 12.5px; }
#cz-agenda .cz-usacred { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #146c43; }
#cz-agenda .cz-sobra { grid-column: 1 / -1; padding: 10px; border-radius: 10px; background: #fff7e6; border: 1px solid #ffd591; font-size: 12.5px; display: grid; gap: 8px; }
#cz-agenda .cz-sobra > div { display: flex; gap: 6px; justify-content: flex-end; }
#cz-agenda .cz-sobra button { border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------------------------------------------------------- visual moderno da grade */

#cz-agenda .cz-board { background: #f6f8fb; }
#cz-agenda .cz-grid { min-width: 0; width: max-content; max-width: 100%; column-gap: 10px; padding: 10px 14px 14px 0; }
#cz-agenda .cz-corner { background: #f6f8fb; border-bottom: 0; }
#cz-agenda .cz-colhead {
    border: 0; border-radius: 14px 14px 0 0;
    box-shadow: 0 -1px 0 rgba(16, 24, 40, .04);
}
#cz-agenda .cz-profhead { padding: 0 12px; height: 58px; }
#cz-agenda .cz-profhead .cz-who span { color: inherit; opacity: .85; }
#cz-agenda .cz-profhead .cz-who strong { font-size: 14px; letter-spacing: .01em; }
#cz-agenda .cz-profhead .cz-avatar { width: 38px; height: 38px; font-size: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 2px 6px rgba(0, 0, 0, .18); }
#cz-agenda .cz-dayhead { background: #fff; }
#cz-agenda .cz-colbody {
    border-left: 0; background: #fff; border-radius: 0 0 14px 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .07);
}
#cz-agenda .cz-colbody .cz-slot:last-child { border-radius: 0 0 14px 14px; }
#cz-agenda .cz-times { background: #f6f8fb; }
#cz-agenda .cz-photo { background-size: cover !important; background-position: center !important; background-color: #dfe5ee; }
#cz-agenda .cz-event { border-radius: 9px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }

/* ---------------------------------------------------------- aniversariantes */

#cz-agenda .cz-niver-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px;
    border: 1px solid #f5c2d6; border-radius: 9px;
    background: #fff0f6; color: #b0185c;
    font-weight: 600; font-size: 13px;
    transition: background .15s, box-shadow .15s;
}
#cz-agenda .cz-niver-btn:hover { background: #ffe3ef; box-shadow: 0 4px 10px rgba(176, 24, 92, .15); }
#cz-agenda .cz-niver-ico { font-size: 15px; }
#cz-agenda .cz-niver-btn b {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: #d6336c; color: #fff; font-size: 11.5px;
    display: inline-flex; align-items: center; justify-content: center;
}

#cz-agenda .cz-niver-pop { width: 360px; }
#cz-agenda .cz-niver-pop .cz-pop-head { border-top-color: #d6336c; }
#cz-agenda .cz-niver-list { list-style: none; margin: 0; padding: 4px 14px 14px; }
#cz-agenda .cz-niver-list li { padding: 10px 0; border-top: 1px solid var(--cz-line); }
#cz-agenda .cz-niver-list li:first-child { border-top: 0; }
#cz-agenda .cz-niver-nome { font-weight: 700; font-size: 14px; }
#cz-agenda .cz-niver-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; }
#cz-agenda .cz-niver-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
#cz-agenda .cz-niver-tag.vida { background: #fff0f6; color: #b0185c; }
#cz-agenda .cz-niver-tag.casam { background: #f3edff; color: #6741d9; }
#cz-agenda .cz-niver-fone { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--cz-text); }
#cz-agenda .cz-niver-fone .sem { color: var(--cz-muted); font-size: 12px; }
#cz-agenda .cz-niver-zap {
    padding: 4px 10px; border-radius: 8px;
    background: #25d366; color: #fff; text-decoration: none;
    font-weight: 600; font-size: 12px;
}
#cz-agenda .cz-niver-zap:hover { background: #1ebe5a; }

/* juros do cartão no pagamento */
#cz-agenda .cz-pay-form .cz-juros { align-self: end; font-size: 12px; color: #0b3a75; padding-bottom: 8px; }
#cz-agenda .cz-juros-pg { display: block; font-size: 10px; font-weight: 600; color: #0b3a75; }
