/* Full-width portal page, including Elementor and common WordPress theme wrappers. */
.dca-imam-portal-page .entry-title,
.dca-imam-portal-page .page-title,
.dca-imam-portal-page .page-header,
.dca-imam-portal-page .entry-header,
.dca-imam-portal-page .breadcrumb,
.dca-imam-portal-page .breadcrumbs { display: none !important; }
.dca-imam-portal-page .site-content,
.dca-imam-portal-page .content-area,
.dca-imam-portal-page .site-main,
.dca-imam-portal-page .entry-content,
.dca-imam-portal-page .elementor-location-single,
.dca-imam-portal-page .elementor-widget-shortcode,
.dca-imam-portal-page .elementor-widget-shortcode > .elementor-widget-container { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.dca-imam-portal-page main > .container,
.dca-imam-portal-page #content > .container,
.dca-imam-portal-page #primary { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.dca-imam-portal-page .elementor-section.elementor-section-boxed > .elementor-container,
.dca-imam-portal-page .e-con.e-con-boxed > .e-con-inner { max-width: none !important; }

.dca-portal-shell { width: 100%; box-sizing: border-box; padding: 52px clamp(18px, 4vw, 72px); background: linear-gradient(145deg, #f4f8f5 0%, #fff 54%, #faf7ee 100%); }
.dca-portal {
	--dca-green: #064d2d;
	--dca-green-dark: #033b22;
	--dca-gold: #c49a24;
	--dca-ink: #1c2d24;
	width: 100%; max-width: 1180px; margin: 0 auto; box-sizing: border-box; color: var(--dca-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dca-portal-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 30px; padding: 0 4px; }
.dca-portal h2 { margin: 5px 0 8px; color: var(--dca-green); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.025em; }
.dca-portal-header p, .dca-portal-login > p { margin: 0; color: #617068; font-size: 16px; }
.dca-portal-eyebrow { color: var(--dca-gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dca-portal-link { color: var(--dca-green); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.dca-portal-link { padding: 10px 16px; white-space: nowrap; border: 1px solid #cbd8d0; border-radius: 9px; background: #fff; }
.dca-portal-link:hover { color: var(--dca-green-dark); text-decoration: none; border-color: var(--dca-green); }
.dca-portal-notice { margin-bottom: 20px; padding: 14px 17px; border-radius: 10px; font-weight: 700; }
.dca-portal-notice.success { border: 1px solid #b8dfc3; background: #edf8f0; color: #17612c; }
.dca-portal-notice.error { border: 1px solid #efc1c1; background: #fff1f1; color: #9b2020; }
.dca-portal-tabs { display: inline-flex; gap: 5px; margin-bottom: 24px; padding: 5px; border: 1px solid #dce5df; border-radius: 11px; background: #fff; box-shadow: 0 5px 18px rgba(10,60,35,.05); }
.dca-portal-tabs button { padding: 11px 18px; border: 0; border-radius: 8px; background: transparent; color: #5c6c62; font: inherit; font-weight: 750; cursor: pointer; }
.dca-portal-tabs button:hover { background: #f0f5f2; color: var(--dca-green); }
.dca-portal-tabs button.active { background: var(--dca-green); color: #fff; box-shadow: 0 3px 9px rgba(6,77,45,.2); }
.dca-portal-panel[hidden] { display: none !important; }

.dca-portal-card { margin-bottom: 22px; padding: clamp(22px, 3vw, 34px); border: 1px solid #dfe8e2; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(10,60,35,.055); }
.dca-card-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 25px; }
.dca-card-heading > span { display: flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--dca-green); color: #fff; font-weight: 800; }
.dca-card-heading h3 { margin: 1px 0 4px; color: var(--dca-green); font-size: 21px; }
.dca-card-heading p { margin: 0; color: #718078; font-size: 14px; }

.dca-days-list { overflow: hidden; border: 1px solid #e1e7e3; border-radius: 12px; }
.dca-day-row { display: grid; grid-template-columns: minmax(145px, .7fr) 105px minmax(410px, 1.5fr); gap: 20px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #e7ece8; transition: background .2s, opacity .2s; }
.dca-day-row:last-child { border-bottom: 0; }
.dca-day-row:nth-child(even) { background: #fafcfb; }
.dca-day-row.is-closed { background: #f6f7f6; }
.dca-day-name strong { display: block; color: #26372d; font-size: 15px; }
.dca-day-name span { display: block; margin-top: 2px; color: #6a7a70; font-size: 12px; }
.dca-day-row.is-closed .dca-day-periods { opacity: .38; pointer-events: none; }
.dca-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.dca-switch input { position: absolute; opacity: 0; pointer-events: none; }
.dca-switch > span { position: relative; width: 43px; height: 24px; border-radius: 20px; background: #aeb9b2; transition: background .2s; }
.dca-switch > span:after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.dca-switch input:checked + span { background: var(--dca-green); }
.dca-switch input:checked + span:after { transform: translateX(19px); }
.dca-switch input:focus-visible + span { outline: 3px solid rgba(196,154,36,.32); outline-offset: 2px; }
.dca-switch em { color: #526158; font-size: 13px; font-style: normal; font-weight: 700; }
.dca-day-periods { min-width: 0; }
.dca-period-list { display: grid; gap: 8px; }
.dca-period-row { display: grid; grid-template-columns: 1fr 22px 1fr 30px; gap: 7px; align-items: end; }
.dca-period-row label { margin: 0; }
.dca-period-row label span { display: block; margin-bottom: 4px; color: #68776e; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.dca-period-row i { padding-bottom: 13px; color: #849188; font-style: normal; text-align: center; }
.dca-remove-period { display: grid; width: 30px; height: 44px; padding: 0; place-items: center; border: 1px solid #e0c9c9; border-radius: 7px; background: #fff8f8; color: #9e3f3f; font-size: 18px; cursor: pointer; }
.dca-remove-period:disabled { opacity: .35; cursor: default; }
.dca-add-period { margin-top: 8px; padding: 5px 0; border: 0; background: transparent; color: var(--dca-green); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.dca-add-period:hover { text-decoration: underline; }
.dca-add-period:disabled { opacity: .4; cursor: default; text-decoration: none; }

.dca-field-group { margin-bottom: 3px; }
.dca-field-group > label { display: block; margin-bottom: 7px; color: #34433a; font-size: 14px; font-weight: 750; }
.dca-field-group input, .dca-field-group select, .dca-field-group textarea, .dca-period-row input { width: 100%; min-height: 46px; padding: 10px 13px; box-sizing: border-box; border: 1px solid #cad5ce; border-radius: 8px; background: #fcfdfc; color: #243129; font: inherit; }
.dca-field-group input:focus, .dca-field-group select:focus, .dca-period-row input:focus { outline: 0; border-color: var(--dca-gold); box-shadow: 0 0 0 3px rgba(196,154,36,.15); background: #fff; }
.dca-field-group small { display: block; margin-top: 7px; color: #718077; line-height: 1.45; }
.dca-buffer-field { max-width: 300px; margin-top: 22px; }
.dca-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dca-availability-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 18px; margin-top: 22px; }

.dca-special-date-builder { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.dca-special-date-builder .dca-secondary-button { margin-bottom: 3px; }
.dca-special-date-list { display: grid; gap: 8px; margin-top: 18px; }
.dca-special-date-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 11px 13px; border: 1px solid #dce5df; border-radius: 9px; background: #fafcfb; }
.dca-special-date-item strong, .dca-special-date-item span { display: block; }
.dca-special-date-item strong { color: #304339; font-size: 14px; }
.dca-special-date-item span { margin-top: 2px; color: #6f7d74; font-size: 12px; }
.dca-special-date-item button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #f1e5e5; color: #9e3b3b; font-size: 18px; cursor: pointer; }
.dca-special-date-item button:hover { background: #a83030; color: #fff; }
.dca-vacation-box { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 18px; border: 1px solid #dce5df; border-radius: 11px; background: #fafcfb; }
.dca-vacation-box.is-disabled .dca-vacation-dates { opacity: .4; }
.dca-vacation-dates { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 12px; transition: opacity .2s; }
.dca-card-divider { height: 1px; margin: 24px 0; border: 0; background: #e2e8e4; }

.dca-appointment-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.dca-appointment-summary > div { display: flex; justify-content: space-between; align-items: center; min-height: 84px; padding: 17px 20px; box-sizing: border-box; border: 1px solid #dce6df; border-radius: 13px; background: #fff; box-shadow: 0 6px 20px rgba(10,60,35,.045); }
.dca-appointment-summary span { color: #65756b; font-size: 13px; font-weight: 750; }
.dca-appointment-summary strong { color: var(--dca-green); font-size: 28px; line-height: 1; }
.dca-appointments-card { min-height: 300px; }
.dca-appointments-card .dca-card-heading > span { width: auto; min-width: 34px; padding: 0 9px; border-radius: 18px; }
.dca-appointment-tools { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.dca-appointment-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dca-appointment-filters button { padding: 8px 12px; border: 1px solid #d8e1db; border-radius: 7px; background: #fff; color: #596a60; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.dca-appointment-filters button:hover, .dca-appointment-filters button.active { border-color: var(--dca-green); background: #edf5f0; color: var(--dca-green); }
.dca-appointment-search { width: min(330px, 100%); }
.dca-appointment-search input { width: 100%; min-height: 42px; padding: 9px 12px; box-sizing: border-box; border: 1px solid #ccd7d0; border-radius: 8px; background: #fcfdfc; font: inherit; font-size: 14px; }
.dca-appointment-search input:focus { outline: 0; border-color: var(--dca-gold); box-shadow: 0 0 0 3px rgba(196,154,36,.15); }
.dca-appointment-list { display: grid; gap: 11px; }
.dca-appointment-item { overflow: hidden; border: 1px solid #dfe6e1; border-radius: 11px; background: #fff; }
.dca-appointment-item[hidden] { display: none !important; }
.dca-appointment-main { display: grid; grid-template-columns: 58px minmax(200px, 1fr) auto auto; gap: 15px; align-items: center; padding: 14px 16px; }
.dca-appointment-date { display: grid; width: 52px; height: 55px; place-content: center; border-radius: 9px; background: #eef5f1; color: var(--dca-green); text-align: center; }
.dca-appointment-date span { font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dca-appointment-date strong { font-size: 22px; line-height: 1.05; }
.dca-appointment-person h4 { margin: 0 0 3px; color: #24372c; font-size: 16px; }
.dca-appointment-person p { margin: 0; color: #6b786f; font-size: 13px; }
.dca-appointment-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dca-status, .dca-format { display: inline-flex; padding: 5px 9px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: capitalize; }
.dca-status { background: #fff3d6; color: #8a6100; }
.dca-status-confirmed { background: #e5f5e9; color: #197137; }
.dca-status-rejected, .dca-status-cancelled { background: #fde9e9; color: #a52d2d; }
.dca-status-rescheduled { background: #fff0df; color: #a45b0e; }
.dca-format { background: #edf0f6; color: #536079; }
.dca-details-toggle { padding: 8px 11px; border: 1px solid #ccd8d0; border-radius: 7px; background: #fff; color: var(--dca-green); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.dca-details-toggle:hover { border-color: var(--dca-green); background: #f0f6f2; }
.dca-appointment-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 18px 20px; border-top: 1px solid #e5ebe7; background: #fafcfb; }
.dca-appointment-details[hidden] { display: none !important; }
.dca-appointment-details > div > span { display: block; margin-bottom: 4px; color: #78867d; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.dca-appointment-details strong, .dca-appointment-details a, .dca-appointment-details p { color: #2b3c32; font-size: 13px; font-weight: 650; line-height: 1.5; }
.dca-appointment-details a { color: var(--dca-green); text-decoration: none; }
.dca-appointment-details a:hover { text-decoration: underline; }
.dca-appointment-details p { margin: 0; font-weight: 500; }
.dca-appointment-details .wide { grid-column: 1 / -1; padding-top: 3px; }
.dca-list-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.dca-status-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dca-status-actions button { padding: 7px 9px; border: 1px solid; border-radius: 7px; background: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.dca-status-actions .approve { border-color: #78ad88; color: #176633; }
.dca-status-actions .approve:hover { background: #176633; color: #fff; }
.dca-status-actions .reschedule { border-color: #e2ae6d; color: #9a570b; }
.dca-status-actions .reschedule:hover { background: #a86415; color: #fff; }
.dca-status-actions .decline { border-color: #db9292; color: #a62d2d; }
.dca-status-actions .decline:hover { background: #a62d2d; color: #fff; }

.dca-today-card { border-color: #cadfd1; }
.dca-today-list { display: grid; gap: 9px; }
.dca-today-item { display: grid; grid-template-columns: 90px minmax(180px, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 15px; border: 1px solid #e0e8e2; border-radius: 10px; background: #fbfdfb; }
.dca-today-time { color: var(--dca-green); font-size: 16px; font-weight: 850; }
.dca-today-person strong, .dca-today-person span { display: block; }
.dca-today-person strong { color: #263a2e; font-size: 15px; }
.dca-today-person span { margin-top: 2px; color: #6c7b71; font-size: 12px; }

.dca-calendar-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.dca-calendar-header h3 { margin: 0 0 4px; color: var(--dca-green); font-size: 21px; }
.dca-calendar-header p { margin: 0; color: #718078; font-size: 13px; }
.dca-calendar-nav { display: flex; align-items: center; gap: 10px; }
.dca-calendar-nav strong { min-width: 145px; color: #314338; text-align: center; }
.dca-calendar-nav button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid #d1ddd5; border-radius: 8px; background: #fff; color: var(--dca-green); font-size: 25px; cursor: pointer; }
.dca-calendar-nav button:hover { border-color: var(--dca-green); background: #eff6f1; }
.dca-calendar-weekdays, .dca-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dca-calendar-weekdays { margin-bottom: 6px; }
.dca-calendar-weekdays span { padding: 5px; color: #7a887f; font-size: 10px; font-weight: 850; text-align: center; text-transform: uppercase; }
.dca-calendar-day { display: flex; min-height: 92px; padding: 8px; box-sizing: border-box; flex-direction: column; gap: 4px; border: 1px solid #e2e8e4; border-radius: 8px; background: #fcfdfc; color: #394b40; text-align: left; }
button.dca-calendar-day { font: inherit; cursor: pointer; }
button.dca-calendar-day:hover { border-color: var(--dca-green); box-shadow: 0 3px 10px rgba(6,77,45,.1); }
.dca-calendar-day.empty { border-color: transparent; background: transparent; }
.dca-calendar-day.is-today { border-color: var(--dca-gold); background: #fffcf2; }
.dca-calendar-day > strong { font-size: 13px; }
.dca-calendar-day small { overflow: hidden; padding: 3px 5px; border-left: 3px solid #d09b1d; border-radius: 3px; background: #fff5d9; color: #6d520f; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.dca-calendar-day small.status-confirmed { border-color: #2e8a4a; background: #e9f7ed; color: #216c38; }
.dca-calendar-day small.status-rejected, .dca-calendar-day small.status-cancelled { border-color: #b84a4a; background: #fbeaea; color: #963838; }
.dca-calendar-day small.status-rescheduled { border-color: #c27421; background: #fff0df; color: #914f09; }
.dca-calendar-day em { color: #758279; font-size: 9px; font-style: normal; font-weight: 750; }

.dca-appointment-details { display: block; padding: 20px; }
.dca-requested-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; background: #f0f5f2; }
.dca-requested-meta > span { margin: 0 !important; }
.dca-requested-meta a { margin-left: auto; }
.dca-requested-meta a + a { margin-left: 0; }
.dca-appointment-edit-form { margin: 0; }
.dca-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dca-edit-grid label > span { display: block; margin-bottom: 5px; color: #64746a; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.dca-edit-grid input, .dca-edit-grid select, .dca-edit-grid textarea { width: 100%; min-height: 44px; padding: 9px 11px; box-sizing: border-box; border: 1px solid #cad5ce; border-radius: 7px; background: #fff; color: #27392e; font: inherit; font-size: 14px; }
.dca-edit-grid textarea { resize: vertical; }
.dca-edit-grid input:focus, .dca-edit-grid select:focus, .dca-edit-grid textarea:focus { outline: 0; border-color: var(--dca-gold); box-shadow: 0 0 0 3px rgba(196,154,36,.14); }
.dca-edit-grid .wide { grid-column: 1 / -1; }
.dca-last-action-note { margin: 15px 0 0; padding: 11px 13px; border-left: 3px solid #c58a38; border-radius: 0 7px 7px 0; background: #fff7e9; color: #604a29; font-size: 12px; line-height: 1.5; }
.dca-edit-actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8e4; }
.dca-edit-actions small { max-width: 610px; color: #718077; line-height: 1.45; }
.dca-edit-actions button { flex: 0 0 auto; padding: 11px 17px; border: 0; border-radius: 8px; background: var(--dca-green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.dca-edit-actions button:hover { background: var(--dca-green-dark); }

.dca-modal-open { overflow: hidden; }
.dca-action-modal { position: fixed; inset: 0; z-index: 999999; display: grid; padding: 20px; place-items: center; }
.dca-action-modal[hidden] { display: none !important; }
.dca-action-modal-backdrop { position: absolute; inset: 0; background: rgba(8,22,14,.62); backdrop-filter: blur(3px); }
.dca-action-dialog { position: relative; width: min(500px, 100%); padding: 28px; box-sizing: border-box; border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.dca-action-dialog h3 { margin: 0 32px 8px 0; color: var(--dca-green); font-size: 22px; }
.dca-action-dialog > p { margin: 0 0 20px; color: #66756c; line-height: 1.5; }
.dca-action-dialog label { display: block; margin-bottom: 7px; color: #34463b; font-weight: 800; }
.dca-action-dialog label small { color: #7b8980; font-weight: 500; }
.dca-action-dialog textarea { width: 100%; padding: 11px; box-sizing: border-box; border: 1px solid #cbd6cf; border-radius: 8px; font: inherit; resize: vertical; }
.dca-modal-close { position: absolute; top: 15px; right: 15px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #edf1ee; color: #526158; font-size: 21px; cursor: pointer; }
.dca-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.dca-modal-actions button { padding: 10px 15px; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.dca-modal-actions .cancel { border: 1px solid #ccd6d0; background: #fff; color: #59685f; }
.dca-modal-actions .confirm { border: 0; background: var(--dca-green); color: #fff; }
.dca-modal-actions .confirm.rescheduled { background: #a86415; }
.dca-modal-actions .confirm.rejected { background: #a62d2d; }
.dca-no-appointments { margin: 12px 0 0; padding: 30px 18px; border: 1px dashed #cbd6cf; border-radius: 9px; color: #728078; text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.dca-date-picker-row { display: flex; align-items: flex-end; gap: 12px; max-width: 580px; }
.dca-date-picker-row .dca-field-group { flex: 1; }
.dca-secondary-button { min-height: 46px; padding: 10px 18px; border: 1px solid var(--dca-green); border-radius: 8px; background: #eff7f2; color: var(--dca-green); font: inherit; font-weight: 750; cursor: pointer; }
.dca-secondary-button:hover { background: var(--dca-green); color: #fff; }
.dca-date-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.dca-date-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 10px 9px 13px; border: 1px solid #d5ded8; border-radius: 9px; background: #f8faf8; color: #2c4034; font-weight: 700; }
.dca-date-chip button { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #e5ebe7; color: #57675d; font-size: 18px; line-height: 1; cursor: pointer; }
.dca-date-chip button:hover { background: #a72a2a; color: #fff; }
.dca-empty-dates { margin: 17px 0 0; padding: 16px; border: 1px dashed #ccd6cf; border-radius: 9px; color: #77847c; text-align: center; }
.dca-sync-badge { display: inline-block; margin-left: 5px; padding: 2px 7px; border-radius: 20px; background: #eaf7ee; color: #23713b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dca-portal-actions { position: sticky; bottom: 14px; display: flex; justify-content: flex-end; padding: 14px; border: 1px solid #dce5df; border-radius: 13px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(8,49,27,.13); backdrop-filter: blur(8px); z-index: 4; }
.dca-portal-actions button, .dca-login-button { padding: 14px 25px; border: 0; border-radius: 9px; background: var(--dca-green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 5px 14px rgba(12,62,33,.18); }
.dca-portal-actions button:hover, .dca-login-button:hover { background: var(--dca-green-dark); }

.dca-portal-login { max-width: 480px; margin: 50px auto; padding: 34px; border: 1px solid #dfe7e1; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(12,62,33,.09); }
.dca-portal-login form { margin-top: 24px; }
.dca-portal-login .dca-portal-notice { margin-top: 20px; margin-bottom: -5px; }
.dca-portal-login label { display: block; margin-bottom: 6px; font-weight: 700; }
.dca-portal-login .dca-login-form > p { margin: 0 0 17px; }
.dca-portal-login input[type="text"], .dca-portal-login input[type="password"] { width: 100%; min-height: 48px; padding: 10px 12px; box-sizing: border-box; border: 1px solid #ccd5cf; border-radius: 8px; font: inherit; }
.dca-portal-login input[type="text"]:focus, .dca-portal-login input[type="password"]:focus { outline: 0; border-color: var(--dca-gold); box-shadow: 0 0 0 3px rgba(196,154,36,.15); }
.dca-remember { display: flex !important; gap: 8px; align-items: center; margin-bottom: 18px !important; font-weight: 500 !important; }
.dca-login-button { width: 100%; }
.dca-logout-form { margin: 0; }
.dca-portal-message { max-width: 620px; margin: 40px auto; padding: 35px; text-align: center; }

@media (max-width: 800px) {
	.dca-portal-shell { padding: 28px 14px; }
	.dca-day-row { grid-template-columns: 1fr 105px; gap: 10px; }
	.dca-day-periods { grid-column: 1 / -1; }
	.dca-portal-grid { grid-template-columns: 1fr; }
	.dca-special-date-builder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dca-special-date-builder .dca-secondary-button { grid-column: 1 / -1; }
	.dca-appointment-summary { grid-template-columns: repeat(2, 1fr); }
	.dca-appointment-tools { align-items: stretch; flex-direction: column; }
	.dca-appointment-search { width: 100%; }
	.dca-appointment-main { grid-template-columns: 58px 1fr auto; }
	.dca-appointment-tags { grid-column: 2 / 3; justify-content: flex-start; }
	.dca-list-actions { grid-column: 3; grid-row: 1 / 3; align-items: stretch; flex-direction: column; }
	.dca-today-item { grid-template-columns: 80px 1fr auto; }
	.dca-today-item .dca-status-actions { grid-column: 2 / -1; }
	.dca-calendar-day { min-height: 78px; }
}
@media (max-width: 520px) {
	.dca-portal-header { display: block; }
	.dca-portal-header .dca-portal-link { display: inline-block; margin-top: 14px; }
	.dca-portal-card { padding: 18px 14px; }
	.dca-day-row { padding: 14px 12px; }
	.dca-period-row { grid-template-columns: 1fr 20px 1fr 28px; }
	.dca-date-picker-row { align-items: stretch; flex-direction: column; }
	.dca-buffer-field { max-width: none; }
	.dca-availability-limits { grid-template-columns: 1fr; }
	.dca-special-date-builder { grid-template-columns: 1fr; }
	.dca-special-date-builder .dca-secondary-button { grid-column: auto; }
	.dca-vacation-box { align-items: stretch; flex-direction: column; }
	.dca-vacation-dates { grid-template-columns: 1fr; }
	.dca-portal-actions button { width: 100%; }
	.dca-portal-tabs { display: flex; }
	.dca-portal-tabs button { flex: 1; padding: 10px; }
	.dca-appointment-summary { gap: 8px; }
	.dca-appointment-summary > div { min-height: 70px; padding: 13px; }
	.dca-appointment-summary strong { font-size: 23px; }
	.dca-appointment-main { grid-template-columns: 49px 1fr; gap: 10px; padding: 12px; }
	.dca-appointment-date { width: 46px; height: 50px; }
	.dca-appointment-tags { grid-column: 2; }
	.dca-list-actions { grid-column: 1 / -1; grid-row: auto; width: 100%; }
	.dca-list-actions .dca-status-actions, .dca-list-actions .dca-details-toggle { width: 100%; }
	.dca-list-actions .dca-status-actions button { flex: 1; }
	.dca-today-item { grid-template-columns: 65px 1fr; }
	.dca-today-item > .dca-status { justify-self: start; }
	.dca-today-item .dca-status-actions { grid-column: 1 / -1; }
	.dca-calendar-header { align-items: flex-start; flex-direction: column; }
	.dca-calendar-nav { width: 100%; justify-content: space-between; }
	.dca-calendar-weekdays, .dca-calendar-grid { gap: 3px; }
	.dca-calendar-day { min-height: 54px; padding: 5px; }
	.dca-calendar-day small { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d09b1d; color: transparent; }
	.dca-calendar-day small.status-confirmed { background: #2e8a4a; }
	.dca-calendar-day small.status-rejected, .dca-calendar-day small.status-cancelled { background: #b84a4a; }
	.dca-calendar-day em { display: none; }
	.dca-edit-grid { grid-template-columns: 1fr; }
	.dca-edit-grid .wide { grid-column: auto; }
	.dca-edit-actions { align-items: stretch; flex-direction: column; }
	.dca-edit-actions button { width: 100%; }
	.dca-requested-meta a { margin-left: 0; }
}
