:root {
    --agz-white: #ffffff;
    --agz-offwhite: #f3f3f7;
    --agz-gray: #85868f;
    --agz-dark: #122c3d;
    --agz-blue: #0614ff;
    --agz-green: #168a5e;
    --agz-red: #d93434;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(6, 20, 255, 0.08), transparent 32%),
        linear-gradient(180deg, #f8f8fb 0%, #ededf3 100%);
    color: var(--agz-dark);
    font-family: Arial, Helvetica, sans-serif;
}

.cc-page {
    width: 100%;
    padding: 34px;
}

.cc-header {
    max-width: 860px;
    margin-bottom: 26px;
}

.cc-header span {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--agz-gray);
}

.cc-header h1 {
    margin: 0;
    max-width: 760px;
    font-size: 42px;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.065em;
    color: var(--agz-dark);
}

.cc-header p {
    margin: 14px 0 0;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--agz-gray);
}

/* LINK INVÁLIDO */

.cc-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cc-auth-card {
    width: min(420px, 100%);
    padding: 34px;
    border-radius: 34px;
    background: var(--agz-white);
    text-align: center;
    box-shadow: 0 30px 80px rgba(18, 44, 61, 0.12);
}

.cc-auth-card .material-symbols-outlined {
    font-size: 42px;
    color: var(--agz-blue);
}

.cc-auth-card h1 {
    margin: 16px 0 8px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.cc-auth-card p {
    margin: 0;
    font-size: 14px;
    color: var(--agz-gray);
}

/* MESES */

.cc-month-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 50px rgba(18, 44, 61, 0.08);
}

.cc-month-nav a {
    min-width: 54px;
    height: 38px;
    border-radius: 999px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--agz-offwhite);
    color: var(--agz-dark);
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cc-month-nav a:hover {
    background: var(--agz-blue);
    color: var(--agz-white);
    transform: translateY(-1px);
}

/* LISTA DE DATAS */

.cc-dates-card {
    width: 100%;
    padding: 28px;
    border-radius: 34px;
    background: var(--agz-white);
    box-shadow: 0 24px 70px rgba(18, 44, 61, 0.08);
}

.cc-month-section {
    scroll-margin-top: 94px;
    padding-top: 8px;
    margin-bottom: 34px;
}

.cc-month-section:last-child {
    margin-bottom: 0;
}

.cc-month-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(18, 44, 61, 0.08);
}

.cc-month-title h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.cc-month-title small {
    font-size: 12px;
    font-weight: 900;
    color: var(--agz-gray);
}

.cc-empty-month {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 0 2px;
    color: var(--agz-gray);
    font-size: 13px;
    font-weight: 750;
}

.cc-date-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 34px 92px;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(18, 44, 61, 0.08);
    transition: opacity 0.2s ease;
}

.cc-date-row.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.cc-date-row.is-custom {
    opacity: 0.78;
}

.cc-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.cc-toggle input {
    display: none;
}

.cc-toggle span {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(133, 134, 143, 0.28);
    transition: background 0.2s ease;
}

.cc-toggle span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--agz-white);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(18, 44, 61, 0.16);
}

.cc-toggle input:checked + span,
.cc-toggle.is-fixed span {
    background: var(--agz-blue);
}

.cc-toggle input:checked + span::after,
.cc-toggle.is-fixed span::after {
    transform: translateX(20px);
}

.cc-date-info {
    min-width: 0;
}

.cc-date-info strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 850;
    color: var(--agz-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-date-info small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    color: var(--agz-gray);
    text-transform: uppercase;
}

.cc-alert-icon,
.cc-alert-space {
    width: 32px;
    height: 32px;
}

.cc-alert-icon {
    border-radius: 50%;
    background: rgba(6, 20, 255, 0.08);
    color: var(--agz-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cc-alert-icon .material-symbols-outlined {
    font-size: 18px;
}

.cc-date-status {
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--agz-offwhite);
    color: var(--agz-gray);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.cc-date-row.is-selected .cc-date-status {
    background: rgba(6, 20, 255, 0.08);
    color: var(--agz-blue);
}

.cc-date-row.is-custom .cc-date-status {
    background: rgba(22, 138, 94, 0.10);
    color: var(--agz-green);
}

/* COLUNA DIREITA */

.cc-side-col {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    z-index: 10;
}

.cc-side-card {
    position: relative;
    padding: 24px;
    border-radius: 34px;
    background: var(--agz-white);
    box-shadow: 0 24px 70px rgba(18, 44, 61, 0.08);
}

.cc-client-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.cc-client-box img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--agz-offwhite);
}

.cc-client-box span {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--agz-gray);
}

.cc-client-box h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.cc-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.cc-alert-success {
    background: rgba(22, 138, 94, 0.10);
    color: var(--agz-green);
}

.cc-alert-error {
    background: rgba(217, 52, 52, 0.10);
    color: var(--agz-red);
}

.cc-custom-form {
    padding-top: 18px;
    border-top: 1px solid rgba(18, 44, 61, 0.08);
}

.cc-form-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.cc-form-head .material-symbols-outlined {
    color: var(--agz-blue);
    font-size: 24px;
}

.cc-form-head strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--agz-dark);
}

.cc-form-head small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--agz-gray);
}

.cc-field {
    display: block;
    margin-bottom: 14px;
}

.cc-field span {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    color: var(--agz-gray);
}

.cc-field input {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 17px;
    background: var(--agz-offwhite);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 750;
    color: var(--agz-dark);
    outline: none;
}

.cc-field input:focus {
    box-shadow: 0 0 0 3px rgba(6, 20, 255, 0.13);
}

.cc-submit-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--agz-blue);
    color: var(--agz-white);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cc-submit-btn:hover {
    background: #0010d8;
    transform: translateY(-1px);
}

.cc-custom-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 44, 61, 0.08);
}

.cc-custom-list > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 900;
}

.cc-custom-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(18, 44, 61, 0.06);
}

.cc-custom-list-row:first-of-type {
    border-top: 0;
}

.cc-custom-list-info {
    min-width: 0;
}

.cc-custom-remove-form {
    margin: 0;
}

.cc-custom-remove-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(217, 52, 52, 0.08);
    color: var(--agz-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cc-custom-remove-btn:hover {
    background: var(--agz-red);
    color: var(--agz-white);
    transform: translateY(-1px);
}

.cc-custom-remove-btn .material-symbols-outlined {
    font-size: 18px;
}

.cc-custom-list span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: var(--agz-gray);
    text-transform: uppercase;
}

.cc-custom-list small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--agz-dark);
}

/* RESPONSIVO */

@media (max-width: 991.98px) {
    .cc-page {
        padding: 22px;
    }

    .cc-header h1 {
        font-size: 34px;
    }

    .cc-side-col {
		position: relative;
		top: auto;
	}

	.cc-side-card {
		position: relative;
	}

    .cc-month-nav {
        top: 0;
    }
}

@media (max-width: 575.98px) {
    .cc-page {
        padding: 16px;
    }

    .cc-header h1 {
        font-size: 29px;
    }

    .cc-header p {
        font-size: 13px;
    }

    .cc-dates-card,
    .cc-side-card {
        padding: 18px;
        border-radius: 28px;
    }

    .cc-month-title h2 {
        font-size: 24px;
    }

    .cc-date-row {
        grid-template-columns: 48px minmax(0, 1fr) 30px;
        gap: 10px;
    }

    .cc-date-status {
        grid-column: 2 / 4;
        justify-content: flex-start;
        width: fit-content;
    }

    .cc-client-box {
        align-items: flex-start;
    }

    .cc-client-box img {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .cc-client-box h2 {
        font-size: 19px;
    }
}


.cc-date-row {
    cursor: pointer;
}

.cc-date-row.is-custom {
    cursor: default;
}