:root {
    --ifce-green: #155e21;
    --ifce-green-dark: #114e1a;
    --ifce-green-light: #2d9e45;
    --ifce-green-soft: #e8f5eb;
    --ifce-red: #c62828;
    --ag-today: #1d4ed8;
    --ag-today-soft: #9cb8f0;
    --ag-text: #2c3e50;
    --ag-text-muted: #6b7280;
    --ag-border: #e5e9ee;
    --ag-body: #f7f9f8;
    --ag-card: #ffffff;
    --ag-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    --ag-shadow-hover: 0 3px 8px rgba(16, 24, 40, 0.08);
}

html {
    background: var(--ag-body);
}

body.ag-body {
    margin: 0;
    color: var(--ag-text);
    background: var(--ag-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

[x-cloak] {
    display: none !important;
}

.ag-topbar {
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--ag-border);
    box-shadow: none;
}

.ag-brand-logo {
    display: block;
    width: auto;
    height: 30px;
}

.ag-campus-logo {
    display: none;
    width: auto;
    height: 42px;
}

.ag-context-label {
    color: var(--ag-text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #cfe5d3;
    border-radius: 0.375rem;
    background: #fff;
    color: var(--ifce-green);
    padding: 0.48rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.ag-sidebar {
    background: var(--ifce-green-dark) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* O `-translate-x-full` da gaveta vem do :class do Alpine, que carrega com
   defer. Ate' la' ela ficaria em translateX(0), ou seja aberta, e a
   transicao animaria o fechamento a cada carregamento de pagina. Aqui ela
   ja' nasce fechada no celular e sem transicao; o Alpine marca
   data-pronto e so' entao a animacao passa a valer, para o usuario. */
.ag-sidebar:not([data-pronto]) {
    transition: none !important;
}

@media (max-width: 767.98px) {
    .ag-sidebar:not([data-pronto]) {
        transform: translateX(-100%);
    }
}

.ag-sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.08);
}

.ag-sidebar-brand p:first-child {
    color: #b9d8bf;
}

.ag-sidebar-brand p:last-child {
    color: #fff;
}

.ag-menu-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.4rem;
    padding: 0.65rem 0.75rem;
    color: #dcefe0;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 150ms ease, color 150ms ease;
}

.ag-menu-link > i,
.ag-menu-link > span > i {
    width: 1rem;
    color: #86bf91;
    text-align: center;
}

.ag-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ag-menu-link--active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ag-menu-link--active > i {
    color: #fff;
}

.ag-sidebar nav .text-gray-900,
.ag-sidebar nav .text-gray-600 {
    color: #fff;
}

.ag-sidebar nav .text-gray-400,
.ag-sidebar nav .text-gray-500 {
    color: #b9d8bf;
}

.ag-sidebar nav .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.12);
}

.ag-sidebar nav .bg-gray-100 {
    background: rgba(255, 255, 255, 0.1);
}

.ag-main {
    background: var(--ag-body);
}

.ag-content-shell {
    width: 100%;
    max-width: 86rem;
    margin: 0 auto;
}

.ag-main-content {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.ag-page-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.ag-page-heading-icon {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: var(--ifce-green-soft);
    color: var(--ifce-green);
}

.ag-page-heading h1,
.ag-page-heading h2 {
    margin: 0;
    color: var(--ag-text);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.ag-section-title {
    color: var(--ag-text);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.ag-section-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: var(--ifce-green);
}

.ag-surface,
.ag-card {
    border: 1px solid var(--ag-border);
    border-radius: 0.625rem;
    background: var(--ag-card);
    box-shadow: var(--ag-shadow);
}

.ag-card {
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

.ag-card:hover {
    border-color: #b9d8bf;
    box-shadow: var(--ag-shadow-hover);
}

.ag-input {
    min-height: 46px;
    border: 1px solid #d7dde3;
    border-radius: 0.4rem;
    background: #fff;
    color: var(--ag-text);
    padding: 0.7rem 0.85rem;
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ag-input:focus {
    border-color: var(--ifce-green-light);
    box-shadow: 0 0 0 3px rgba(45, 158, 69, 0.14);
    outline: none;
}

.ag-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--ifce-green);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
    transition: background 160ms ease;
}

.ag-btn-primary:hover {
    background: var(--ifce-green-dark);
    color: #fff;
}

.ag-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #b9d8bf;
    border-radius: 0.4rem;
    background: #fff;
    color: var(--ifce-green);
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease;
}

.ag-btn-secondary:hover {
    border-color: var(--ifce-green);
    background: var(--ifce-green-soft);
}

.ag-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--ifce-green);
}

.ag-hero::after {
    content: none;
}

.ag-hero > * {
    position: relative;
    z-index: 1;
}

.ag-footer {
    border-top: 0;
    background: var(--ifce-green-dark);
    color: #fff;
}

.ag-footer a {
    color: #d7efdc;
}

.ag-footer a:hover {
    color: #fff;
}

.ag-mobile-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-top: 1px solid var(--ag-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 10px rgba(16, 24, 40, 0.08);
}

.ag-mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 62px;
}

.ag-mobile-nav-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    color: #667085;
    font-size: 0.66rem;
    font-weight: 650;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.ag-mobile-nav-item i {
    color: var(--ifce-green);
    font-size: 1.05rem;
}

.ag-mobile-nav-item:active {
    background: var(--ifce-green-soft);
}

.ag-mobile-nav-item--menu {
    border: 0;
    background: transparent;
}

.ag-main-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ag-main-content select,
.ag-main-content textarea {
    border-color: #d7dde3;
    font-size: 16px;
}

.ag-main-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.ag-main-content select:focus,
.ag-main-content textarea:focus {
    border-color: var(--ifce-green-light) !important;
    box-shadow: 0 0 0 3px rgba(45, 158, 69, 0.14) !important;
    outline: none;
}

.ag-main-content table thead,
.ag-main-content .dataTables_wrapper table thead {
    background: #f0f7f1;
    color: var(--ifce-green-dark);
}

@media (max-width: 767px) {
    .ag-authenticated-main {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
    }

    .ag-main-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .ag-main-content button,
    .ag-main-content a[class*="btn"],
    .ag-main-content a[class*="px-"] {
        min-height: 44px;
    }

    .ag-main-content .dataTables_wrapper {
        max-width: calc(100vw - 2rem);
        overflow-x: auto;
    }
}

/* Normaliza componentes antigos para o mesmo acabamento institucional. */
.ag-main-content .rounded-2xl,
.ag-main-content .rounded-xl,
.ag-main-content .rounded-lg {
    border-radius: 0.625rem !important;
}

.ag-main-content .shadow-2xl,
.ag-main-content .shadow-xl,
.ag-main-content .shadow-lg,
.ag-main-content .shadow-md,
.ag-main-content .shadow-sm {
    box-shadow: var(--ag-shadow) !important;
}

.ag-main-content .hover\:scale-105:hover,
.ag-main-content .hover\:-translate-y-1:hover,
.ag-main-content .hover\:-translate-y-0\.5:hover {
    transform: none !important;
}

.ag-main-content button,
.ag-main-content a[class*="bg-green-"],
.ag-main-content a[class*="bg-gray-9"] {
    border-radius: 0.4rem !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(45, 158, 69, 0.45);
}

@media (min-width: 768px) {
    .ag-topbar {
        min-height: 72px;
    }

    .ag-brand-logo {
        height: 36px;
    }

    .ag-sidebar {
        background: #26323b !important;
        border-right: 0;
        box-shadow: 4px 0 18px rgba(16, 24, 40, 0.08);
    }

    .ag-sidebar-brand {
        border-bottom-color: rgba(255, 255, 255, 0.08);
        background: #202a32;
    }

    .ag-sidebar-brand p:first-child {
        color: #9ba8b2;
    }

    .ag-sidebar-brand p:last-child {
        color: #fff;
    }

    .ag-menu-link {
        color: #d6dde2;
    }

    .ag-menu-link > i,
    .ag-menu-link > span > i {
        color: #9ba8b2;
    }

    .ag-menu-link:hover {
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
    }

    .ag-menu-link--active {
        background: rgba(45, 158, 69, 0.18);
        color: #fff;
        box-shadow: inset 3px 0 0 var(--ifce-green-light);
    }

    .ag-menu-link--active > i {
        color: #77c487;
    }

    .ag-sidebar nav .text-gray-900 {
        color: #fff;
    }

    .ag-sidebar nav .text-gray-600 {
        color: #d6dde2;
    }

    .ag-sidebar nav .text-gray-400 {
        color: #8997a2;
    }

    .ag-sidebar nav .text-gray-500 {
        color: #aab5bd;
    }

    .ag-sidebar nav .border-gray-200 {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .ag-sidebar nav .bg-gray-100 {
        background: rgba(255, 255, 255, 0.08);
    }

    .ag-main {
        background: #edf1ef;
    }

    .ag-internal-header {
        position: relative;
        margin-bottom: 1.75rem !important;
        padding: 1.25rem 1.5rem !important;
        border: 1px solid #d8dfdb !important;
        border-left: 4px solid var(--ifce-green) !important;
        border-radius: 0.5rem !important;
        background: #f8faf9 !important;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    }

    .ag-internal-header h1,
    .ag-internal-header h2 {
        color: #1f2937 !important;
    }

    .ag-main-content .bg-white {
        border-color: #dfe5e2;
    }

    .ag-main-content > div > .bg-white,
    .ag-main-content form.bg-white {
        box-shadow: 0 2px 5px rgba(16, 24, 40, 0.05) !important;
    }

    .ag-hero {
        color: var(--ag-text);
        background: #fff;
        border-bottom: 1px solid var(--ag-border);
    }

    .ag-hero .text-green-100 {
        color: #6b7280 !important;
    }

    .ag-footer {
        border-top: 1px solid var(--ag-border);
        background: #fff;
        color: var(--ag-text-muted);
    }

    .ag-footer a,
    .ag-footer .text-white,
    .ag-footer .text-green-100,
    .ag-footer .text-green-200 {
        color: var(--ag-text-muted) !important;
    }

    .ag-footer h2 {
        color: #111827 !important;
    }

    .ag-footer > div > div:last-child {
        border-color: var(--ag-border);
    }

    .ag-auth-panel-header,
    .ag-login-intro {
        border-right: 1px solid var(--ag-border);
        background: #f7f8f8 !important;
        color: var(--ag-text) !important;
    }

    .ag-auth-panel-header .text-green-100,
    .ag-auth-panel-header .text-green-200,
    .ag-login-intro .text-green-100,
    .ag-login-intro .text-green-200 {
        color: var(--ag-text-muted) !important;
    }

    .ag-campus-logo {
        display: block;
    }

    .ag-main-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .ag-main-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .ag-main-content select,
    .ag-main-content textarea {
        font-size: inherit;
    }

    .ag-mobile-nav {
        display: none;
    }
}

.ag-public-body {
    background: #f1f4f2;
}

.ag-public-main {
    background: transparent;
}

.ag-public-card {
    border-color: #d8dfdb;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.07);
}

.ag-public-card:hover {
    border-color: #aebbb4;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.1);
}

@media (min-width: 768px) {
    .ag-public-hero {
        border: 0;
        background: #26323b;
        box-shadow: inset 0 -4px 0 var(--ifce-green-light);
        color: #fff;
    }

    .ag-public-hero .text-green-100 {
        color: #d6dde2 !important;
    }

    .ag-public-hero > div > p:first-child {
        color: #86bf91 !important;
    }

    .ag-public-footer {
        border-top: 0;
        background: #202a32;
        color: #d6dde2;
    }

    .ag-public-footer a,
    .ag-public-footer .text-green-100,
    .ag-public-footer .text-green-200 {
        color: #c1cbd2 !important;
    }

    .ag-public-footer h2,
    .ag-public-footer .text-white {
        color: #fff !important;
    }

    .ag-public-footer > div > div:last-child {
        border-color: rgba(255, 255, 255, 0.12);
    }
}

.ag-calendar-nav {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #d7ded9;
    border-radius: 0.75rem;
    color: #4b5563;
    background: #fff;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.ag-calendar-nav:hover,
.ag-calendar-nav:focus-visible {
    border-color: #9db8a2;
    color: var(--ifce-green);
    background: #f4faf5;
}

.ag-calendar-nav--disabled {
    border-color: #e5e7eb;
    color: #c3c8c5;
    background: #f5f6f6;
    pointer-events: none;
}

.ag-calendar-guide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e9e7;
    color: #4b5563;
    background: #f8faf9;
    font-size: 0.8rem;
    font-weight: 600;
}

.ag-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.ag-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.ag-calendar-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}

.ag-calendar-legend-dot--free {
    background: #2d9e45;
}

.ag-calendar-legend-dot--busy {
    background: #d39116;
}

.ag-calendar-legend-dot--past {
    background: #aab1ad;
}

.ag-calendar-legend-dot--today {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--ag-today);
}

.ag-calendar-swipe-hint {
    display: none;
}

[data-calendar-swipe="1"] {
    touch-action: pan-y;
}

.ag-calendar {
    width: 100%;
    background: #fff;
}

.ag-calendar-weekdays,
.ag-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ag-calendar-weekdays > div {
    padding: 0.55rem 0.15rem;
    border-right: 1px solid #e5e9e7;
    color: #64706a;
    background: #f4f6f5;
    font-size: 0.66rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.ag-calendar-weekdays > div:last-child,
.ag-calendar-day:last-child {
    border-right: 0;
}

.ag-calendar-day {
    min-width: 0;
    min-height: 4.75rem;
    border-right: 1px solid #e5e9e7;
    border-bottom: 1px solid #e5e9e7;
    background: #fff;
}

.ag-calendar-week:last-child .ag-calendar-day {
    border-bottom: 0;
}

.ag-calendar-day--empty {
    background: #f6f8f7;
}

.ag-calendar-day--busy {
    background: #fffaf0;
}

.ag-calendar-day--past {
    color: #9ca3af;
    background: #f2f4f3;
}

/* "Hoje" e' uma referencia de data, nao uma escolha do usuario: azul e so'
   contorno. Todo verde no calendario significa acao do usuario. */
.ag-calendar-day--today {
    box-shadow: inset 0 0 0 1px var(--ag-today-soft);
}

.ag-calendar-day--today .ag-calendar-date {
    color: var(--ag-today);
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--ag-today);
}

.ag-calendar-day--in-range {
    background: #ecfdf3;
}

.ag-calendar-day--in-range.ag-calendar-day--busy {
    background: linear-gradient(135deg, #ecfdf3 0%, #ecfdf3 48%, #fff4d9 48%, #fff4d9 100%);
}

/* Depois de --today de proposito: no empate de especificidade, a selecao
   tem de vencer quando o dia selecionado e' o proprio dia de hoje. */
.ag-calendar-day--selected {
    box-shadow: inset 0 0 0 3px var(--ifce-green);
}

.ag-calendar-day--selected .ag-calendar-date {
    color: #fff;
    background: var(--ifce-green);
    box-shadow: none;
}

.ag-calendar-select,
.ag-calendar-static {
    display: flex;
    min-height: 4.7rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.3rem;
    color: #374151;
    text-align: center;
    text-decoration: none;
}

.ag-calendar-select {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.ag-calendar-static .ag-calendar-day-state {
    color: #858d88;
    display: inline;
}

.ag-calendar-select:hover,
.ag-calendar-select:focus-visible {
    background: rgba(45, 158, 69, 0.08);
    outline: 2px solid var(--ifce-green-light);
    outline-offset: -2px;
}

.ag-calendar-date {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.ag-calendar-day-state {
    color: #27823a;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.15;
}

.ag-calendar-day--busy .ag-calendar-day-state {
    color: #9a6100;
}

.ag-calendar-count {
    display: inline-flex;
    min-width: 2.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    padding: 0.3rem 0.4rem;
    border: 1px solid #f0cf91;
    border-radius: 0.6rem;
    color: #8a5a09;
    background: #fff0cb;
    line-height: 1;
}

.ag-calendar-count strong {
    font-size: 0.95rem;
    font-weight: 900;
}

.ag-calendar-count span {
    font-size: 0.5rem;
    font-weight: 800;
}

.ag-day-modal {
    animation: ag-modal-fade 160ms ease-out;
}

.ag-day-modal-panel {
    animation: ag-modal-sheet 220ms ease-out;
}

.ag-day-modal-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

@keyframes ag-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ag-modal-sheet {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
    .ag-day-modal-panel {
        animation-name: ag-modal-dialog;
    }

    .ag-day-modal-footer {
        padding-bottom: 1rem;
    }

    .ag-calendar-guide {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }

    .ag-calendar-weekdays > div {
        padding: 0.7rem 0.25rem;
        font-size: 0.72rem;
    }

    .ag-calendar-day {
        min-height: 8.5rem;
        padding: 0.45rem;
    }

    .ag-calendar-select,
    .ag-calendar-static {
        min-height: 0;
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        text-align: left;
    }

    .ag-calendar-select,
    .ag-calendar-day--past .ag-calendar-static {
        min-height: 7.55rem;
    }

    .ag-calendar-date {
        font-size: 0.9rem;
    }

    .ag-calendar-day-state {
        padding-right: 0.15rem;
        font-size: 0.64rem;
    }

    .ag-calendar-count {
        min-width: 3.2rem;
        padding: 0.4rem 0.55rem;
    }

    .ag-calendar-count strong {
        font-size: 1.1rem;
    }

    .ag-calendar-count span {
        font-size: 0.58rem;
    }
}

@media (max-width: 639px) {
    .ag-calendar-swipe-hint {
        display: flex;
        min-height: 2.5rem;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.55rem 1rem;
        border-bottom: 1px solid #e5e9e7;
        color: #55705c;
        background: #f4faf5;
        font-size: 0.72rem;
        font-weight: 750;
        text-align: center;
    }
}

/* Instalação do aplicativo */
.ag-pwa-install-trigger[hidden],
.ag-pwa-install-banner[hidden],
.ag-pwa-dialog[hidden] {
    display: none !important;
}

.ag-pwa-install-trigger {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cfe0d2;
    border-radius: 0.75rem;
    color: var(--ifce-green-dark);
    background: #f4faf5;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.ag-pwa-install-trigger:hover,
.ag-pwa-install-trigger:focus-visible {
    border-color: var(--ifce-green-light);
    background: #eaf5ec;
    outline: none;
}

.ag-pwa-install-banner {
    position: fixed;
    right: 0.75rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    left: 0.75rem;
    z-index: 60;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.7rem;
    max-width: 34rem;
    margin: 0 auto;
    padding: 0.8rem;
    border: 1px solid #cfe0d2;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1rem 3rem rgba(17, 78, 26, 0.2);
    backdrop-filter: blur(12px);
}

.ag-pwa-install-banner__icon,
.ag-pwa-dialog__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ifce-green);
}

.ag-pwa-install-banner__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
}

.ag-pwa-install-banner__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.1rem;
}

.ag-pwa-install-banner__content strong {
    color: #1f2937;
    font-size: 0.78rem;
    line-height: 1.25;
}

.ag-pwa-install-banner__content span {
    display: none;
    color: #667085;
    font-size: 0.7rem;
}

.ag-pwa-install-banner__action,
.ag-pwa-dialog__done {
    min-height: 2.65rem;
    border: 0;
    border-radius: 0.7rem;
    color: #fff;
    background: var(--ifce-green);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.ag-pwa-install-banner__action {
    padding: 0.6rem 0.8rem;
}

.ag-pwa-install-banner__close,
.ag-pwa-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #7a857f;
    background: transparent;
    cursor: pointer;
}

.ag-pwa-install-banner__close {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
}

.ag-pwa-dialog {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 2rem;
    background: rgba(17, 24, 39, 0.64);
    backdrop-filter: blur(4px);
}

.ag-pwa-dialog__panel {
    position: relative;
    width: 100%;
    max-width: 30rem;
    padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    border-radius: 1.5rem 1.5rem 0 0;
    background: #fff;
    box-shadow: 0 -1rem 3rem rgba(0, 0, 0, 0.18);
    animation: ag-modal-sheet 220ms ease-out;
}

.ag-pwa-dialog__handle {
    width: 2.5rem;
    height: 0.28rem;
    margin: 0 auto 1.1rem;
    border-radius: 999px;
    background: #d6ddd8;
}

.ag-pwa-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    background: #f4f6f5;
}

.ag-pwa-dialog__mark {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    font-size: 1.35rem;
}

.ag-pwa-dialog h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 850;
}

.ag-pwa-dialog p {
    margin: 0.45rem 0 1rem;
    color: #667085;
    font-size: 0.9rem;
}

.ag-pwa-dialog ol {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ag-pwa-dialog li {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid #e1e7e3;
    border-radius: 0.85rem;
    color: #374151;
    background: #f8faf9;
    font-size: 0.86rem;
}

.ag-pwa-dialog li > span {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--ifce-green);
    font-size: 0.75rem;
    font-weight: 800;
}

.ag-pwa-dialog__done {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
}

.ag-modal-open {
    overflow: hidden;
}

.ag-time-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
}

.ag-time-picker select {
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 2rem 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    color: #111827;
    background-color: #f9fafb;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.ag-time-picker select:focus {
    border-color: var(--ifce-green);
    outline: 2px solid rgba(21, 94, 33, 0.2);
    outline-offset: 1px;
}

.ag-time-picker__separator {
    color: #4b5563;
    font-size: 1.25rem;
    font-weight: 800;
}

@media (min-width: 480px) {
    .ag-pwa-install-banner__content span {
        display: block;
    }
}

@media (min-width: 640px) {
    .ag-pwa-install-banner {
        right: 1.25rem;
        bottom: 1.25rem;
        left: auto;
        width: min(34rem, calc(100vw - 2.5rem));
    }

    .ag-pwa-dialog {
        align-items: center;
        padding: 1.5rem;
    }

    .ag-pwa-dialog__panel {
        padding: 1.5rem;
        border-radius: 1.25rem;
        animation-name: ag-modal-dialog;
    }

    .ag-pwa-dialog__handle {
        display: none;
    }
}

@keyframes ag-modal-dialog {
    from { opacity: 0; transform: translateY(0.5rem) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ag-day-modal,
    .ag-day-modal-panel,
    .ag-pwa-dialog__panel {
        animation: none;
    }
}

@media print {
    .ag-topbar,
    .ag-sidebar,
    .ag-footer,
    .no-print {
        display: none !important;
    }

    .ag-main {
        overflow: visible !important;
        background: #fff;
    }
}
