
/* ---- @import url('includes/elements.css'); ---- */

/* ------------------------------------------------------------
	Global
------------------------------------------------------------ */

/* --------- Insert your custom styles on next rows --------- */

.responsive .container {
	max-width: 100% !important;
}

/* Crossfade same-origin page navigations in supporting browsers (Chrome/Edge);
   others keep the instant swap */
@view-transition {
	navigation: auto;
}

/* Top-header mode (dashboard only): keep the wordmark at a header-friendly
   size instead of its natural 180px+ render (the logo is an inline SVG —
   Enfold's avia-svg-logo — so cover svg alongside img) */
.html_header_top #top .logo img,
.html_header_top #top .logo svg {
	max-height: 46px !important;
	width: auto !important;
}

.html_header_top #top .logo,
.html_header_top #top .logo a {
	display: flex;
	align-items: center;
}

/* the sticky header shrinks (~half height) after scrolling; shrink the
   wordmark with it */
.html_header_top #top #header.header-scrolled .logo img,
.html_header_top #top #header.header-scrolled .logo svg {
	max-height: 28px !important;
}

h3 {
	margin-bottom: 20px;
}

main.login-container {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
}

#gform_submit_button_5 {
  border-radius: 4px;
  border: none;
  padding: 20px!important;
  color: #fff;
  font-size: 20px;
  background-color: #da291c!important;
  transition: background-color 0.15s ease;
}

#gform_submit_button_5:hover {
  background-color: #b32217!important;
}

div#wpo365OpenIdRedirect {
	display: flex;
/*	justify-content: center; */
	button {
		background-color: #212529;
		border: none;
		border-radius: 4px;
		padding: 20px;
		color: #fff;
		font-size: 20px;
		transition: background-color 0.15s ease;
	}
	button:hover {
		background-color: #000;
	}
}

.wpo365-mssignin-wrapper {
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 12px 12px 24px 12px;
	text-align: center;
}
.wpo365-mssignin-spacearound {
	display: inline-block;
}
.wpo365-mssignin-wrapper form {
	display: none;
}
.wpo365-mssignin-button {
	border: 1px solid #8c8c8c;
	background: #ffffff;
	display: flex;
	display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	cursor: pointer;
	max-height: 41px;
	min-height: 41px;
	height: 41px;
}
.wpo365-mssignin-logo {
	padding-left: 12px;
	padding-right: 6px;
	-webkit-flex-shrink: 1;
	-moz-flex-shrink: 1;
	flex-shrink: 1;
	width: 21px;
	height: 21px;
	box-sizing: content-box;
	display: flex;
	display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
}
.wpo365-mssignin-label {
	padding-left: 6px;
	padding-right: 12px;
	font-weight: 600;
	color: #5e5e5e;
	font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	-webkit-flex-shrink: 1;
	-moz-flex-shrink: 1;
	flex-shrink: 1;
	height: 21px;
	line-height: 21px;
}

.mfp-content {
    position: relative;
    background: #FFF;
    padding: 20px;
    width: auto;
    max-width: 500px;
    margin: 20px auto;
}

.daterangepicker .drp-calendar {
  max-width: 100%;
}

span.dt-column-title {
	font-size: 14px;
}

/* Page headings: short brand-red underline. .acs-page-heading marks the
   hand-written page/section headers; h2.gform_title covers the pages whose
   header is a Gravity Forms form title (login, request form, visit summary) */
#top .acs-page-heading,
#top .template-page h2.gform_title {
	display: inline-block;
	font-size: 26px;
	padding-bottom: 8px;
	border-bottom: 3px solid #da291c;
	margin-bottom: 20px;
}

.dataTable tbody td {
	vertical-align: middle;
}

.dataTable tbody tr:hover > td {
	background-color: #f6f7fa;
}

/* Poll refresh (js/dashboard-poll.js): changed rows flash by stage
   transition — green for progress and new rows, red for regression
   (canceled/rejected), blue for activity that leaves the stage alone —
   fading back to normal */
.dataTable tbody tr.acs-row-flash--green > td {
	animation: acs-row-flash-green 2.5s ease-out;
}

.dataTable tbody tr.acs-row-flash--red > td {
	animation: acs-row-flash-red 2.5s ease-out;
}

.dataTable tbody tr.acs-row-flash--blue > td {
	animation: acs-row-flash-blue 2.5s ease-out;
}

@keyframes acs-row-flash-green {
	from { background-color: #cdeeda; }
}

@keyframes acs-row-flash-red {
	from { background-color: #f6cfd4; }
}

@keyframes acs-row-flash-blue {
	from { background-color: #cfe0f8; }
}

.dataTable thead tr th:first-child,
.dataTable tbody tr td:first-child {
  min-width: 8em;
}

.dataTable tr td:nth-child(2) {
	font-weight: 700;
	color: #000;
	min-width: 155px;
}

/* Stale mark (issue #85): a request locked for editing, labeled beside its
   stage on the dashboard and beside the RAI ID heading on the request view.
   Neutral grey from the locked/disabled-input palette: stale means frozen,
   not waiting or failed. Overrides the Stage column's bold #000 (nth-child(2)). */
#top .acs-stale-badge {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	border: 1px solid #bbbbbb66;
	border-radius: 4px;
	background-color: #f0f0f0;
	color: #444444;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	vertical-align: middle;
}

/* inside the Stage cell the label must not outweigh the stage it annotates */
#top .dataTable td .acs-stale-badge {
	padding: 0 6px;
	line-height: 1.3;
}

/* the RAI ID heading and its badge wrap as a pair on a narrow screen */
#top .acs-heading-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px; /* the heading's own spacing, moved to the row */
}

#top .acs-heading-row .acs-page-heading {
	margin-bottom: 0;
}

#top .acs-heading-row .acs-stale-badge {
	margin-left: 0;
}

/* text for screen readers only (the stale badge's date) */
.acs-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

#top .display-request p.acs-stale-notice {
	margin: 0 0 20px;
	font-size: 16px;
	color: #444444;
}

.dt-container .row:first-child {
	display: flex;
	justify-content: space-between;
}

.dt-length {
	display: flex;
	flex-direction: column;
}

.dt-length label {
	order: -1;
	margin-bottom: 5px; /* Adjust spacing as needed */
}

.dt-container {
	margin-bottom: 50px;
}

/* Rounded table chrome, echoing the rounded tiles of the logo's O */
.dt-container .dt-scroll {
	border: 1px solid #ebebeb;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

/* Brand-red sort arrows: vendor rest opacity (.125) keeps them faint; the
   ordered direction goes full strength (vendor's .6 fails 3:1 on the header
   grey) */
table.dataTable thead span.dt-column-order:before,
table.dataTable thead span.dt-column-order:after {
	color: #da291c;
}

table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before,
table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after {
	opacity: 1;
}

/* the footer clone keeps the theme's default table margin-bottom (the head
   clone gets zeroed by DataTables' own CSS), which shows as a blank strip
   inside the bordered container */
.dt-container .dt-scroll-foot table {
	margin-bottom: 0 !important;
}

.dt-container .form-control,
.dt-container .custom-select {
	border-radius: 8px;
}

/* Focus ring: full-strength red border is the indicator, the alpha wash is
   reinforcement — never remove focus visibility without replacing it.
   #top beats Enfold's own input:focus shadow. */
#top .dt-container .form-control:focus,
#top .dt-container .custom-select:focus {
	outline: none;
	border-color: #da291c;
	box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.2);
}

/* Pager boxes: the bs4 markup ships with no Bootstrap CSS behind it, so the
   links render as bare theme anchors — neutral chrome here, red reserved for
   the active page and hover text. #top beats Enfold's link color. */
#top .dt-container .pagination .page-link {
	/* Enfold fixes the chips at 35x35 with line-height 35px; padding inside
	   that box pushes the text off center, so flex-center instead */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	border: 1px solid #ebebeb;
	background-color: #fff;
	color: #444;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

#top .dt-container .pagination .page-item:not(.active) .page-link:hover {
	color: #da291c;
}

#top .dt-container .pagination .page-item.active .page-link {
	background-color: #da291c;
	border-color: #da291c;
	color: #fff;
	font-weight: 600;
}

#top .dt-container .pagination .page-item.disabled .page-link {
	color: #969696;
	background-color: #f8f8f8;
	cursor: not-allowed;
}

.dt-container .pagination .page-item:first-child .page-link {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}

.dt-container .pagination .page-item:last-child .page-link {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* Dashboard Action column: compact pills replacing the bare pipe-separated
   links. Tinted rest state, solid on hover; colors are the brand action
   quartet (see .claude/agents/brand-guardian.md). */
.rai-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 220px;
}

#top .rai-actions a.rai-action {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #ccc;
	border-radius: 999px;
	background-color: #f8f8f8;
	color: #444;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#top .rai-actions a.rai-action--view:hover,
#top .rai-actions a.rai-action--edit:hover,
#top .rai-actions a.rai-action--responses:hover {
	border-color: #da291c;
	color: #da291c;
	background-color: #fff;
}

#top .rai-actions a.rai-action--approve {
	border-color: #1a875466;
	background-color: #f2f9f5;
	color: #1a8754;
}

#top .rai-actions a.rai-action--approve:hover {
	background-color: #1a8754;
	border-color: #1a8754;
	color: #fff;
}

#top .rai-actions a.rai-action--reject {
	border-color: #dc354666;
	background-color: #fdf3f4;
	color: #dc3546;
}

#top .rai-actions a.rai-action--reject:hover {
	background-color: #dc3546;
	border-color: #dc3546;
	color: #fff;
}

#top .rai-actions a.rai-action--cancel {
	border-color: #ffc10688;
	background-color: #fff8e1;
	color: #8a6d00;
}

#top .rai-actions a.rai-action--cancel:hover {
	background-color: #ffc106;
	border-color: #ffc106;
	color: #333;
}

#top .rai-actions a.rai-action--summary {
	border-color: #0e6efd55;
	background-color: #f0f6ff;
	/* one step darker than the hover blue: #0e6efd on this tint is 4.1:1,
	   under the 4.5:1 AA floor; #0b5ed7 clears it at 5.4:1 */
	color: #0b5ed7;
}

#top .rai-actions a.rai-action--summary:hover {
	background-color: #0e6efd;
	border-color: #0e6efd;
	color: #fff;
}

/* Request <-> visit summary crosslink: the action pill at medium size,
   floated to the top right of the page content (issue #77). */
.rai-actions.acs-crosslink {
	float: right;
	min-width: 0;
	margin: 0 0 12px 16px;
}

#top .acs-crosslink a.rai-action {
	font-size: 15px;
	padding: 8px 18px;
}

.acs-crosslink .acs-crosslink-arrow {
	font-weight: 700;
}

fieldset#field_1_63 {
	width:160px;
}

.daterangepicker .drp-calendar {
	max-width: 100% !important;
}

a.btn-primary,
a.btn-approve,
a.btn-reject,
a.btn-cancel,
.acs-confirm__actions button.btn-approve {
    position: relative;
    top: 9px;
	color: #fff!important;
	font-size: 14px;
	padding: 12px 10px;
    margin-left: 10px;
	border-radius: 4px;
	text-decoration: none!important;
    text-align: center;
}

a.btn-primary {
    background-color: #0e6efd;
}

a.btn-primary:hover {
    background-color: #001ab3;
}

a.btn-approve,
.acs-confirm__actions button.btn-approve {
    background-color: #1a8754;
}

a.btn-approve:hover,
.acs-confirm__actions button.btn-approve:hover {
    background-color: #095531;
}

a.btn-reject {
    background-color: #dc3546;
}

a.btn-reject:hover {
    background-color: #af1b2a;
}

a.btn-cancel {
    background-color: #ffc106;
}

a.btn-cancel:hover {
    background-color: #c09000;
}

.buttons-csv {
	background-color: #da291c;
	border: none;
	border-radius: 8px;
	padding: 8px 20px;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.buttons-csv:hover {
	background-color: #b32217;
}

.gfield_required.gfield_required_text {
	color: #c81313 !important;
	font-size: 12px !important;
	margin-left: 5px;
}

.gform-theme--foundation .gform_fields {
	row-gap: 10px !important;
}

.attendees {
	width: 100%;
	border-collapse: collapse;
}

.attendees th, .attendees td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: left;
}

.gfield_list_group_item {
    height: 38px!important;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 20px!important;
    aspect-ratio: 1!important;
    display: grid!important;
    border-radius: 50%!important;
    background:
        linear-gradient(0deg, rgb(255 255 255/50%) 30%, #0000 0 70%, rgb(255 255 255/100%) 0) 50%/8% 100%,
        linear-gradient(90deg, rgb(255 255 255/25%) 30%, #0000 0 70%, rgb(255 255 255/75%) 0) 50%/100% 8%!important;
    background-repeat: no-repeat!important;
    animation: l23 1s infinite steps(12)!important;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    border-radius: 50%;
    background: inherit;
    opacity: 0.915;
    transform: rotate(30deg);
}

.loader::after {
    opacity: 0.83;
    transform: rotate(60deg);
}

@keyframes l23 {
    100% {
        transform: rotate(1turn)
    }
}

.main_color .attendees th {
	background-color: #f4f4f4;
	font-weight: bold;
}

.main_color .attendees tbody:nth-child(odd) {
	background-color: #fafafa;
}

.main_color .attendees tbody:nth-child(even) {
	background-color: #f0f0f0;
}

.form-header {
  font-size: 16px !important;
}

@media only screen and (min-width: 1100px) and (max-width: 1230px) {

}

@media only screen and (max-width: 1200px) {

}

@media only screen and (max-width: 1099px) {

}

@media only screen and (max-width: 900px) {

}

@media only screen and (max-width: 767px) {
    .gform_footer p {
        width: 100%;
    }
    .gform_footer input,
    .gform_footer a.btn-primary,
    .gform_footer a.btn-approve,
    .gform_footer a.btn-reject,
    .gform_footer a.btn-cancel {
        display: block!important;
        width: 100%!important;
        margin:0 0 15px 0;
    }
    .gform_footer input {
        height: 45px!important;
        margin-bottom: 9px!important;
    }
    /* login button carries 20px vertical padding; the 45px height above
       leaves a 5px content box that clips the label low */
    #gform_submit_button_5 {
        height: auto!important;
    }
}

@media only screen and (max-width: 480px) {

}

/* Flash toasts (functions/flash-messages.php + js/flash-toast.js): full-width
   bars in flow at the top of #main — under the site header, above the first
   heading. Success/warning auto-close with a progress bar that pauses on
   hover; errors persist until dismissed. The tinted background and the
   progress bar carry the status: no single-side edge (house rule). */
.acs-toast {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 56px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    overflow: hidden;
}

.acs-toast--success {
    background: #f2f9f5;
}

.acs-toast--warning {
    background: #fff8e1;
}

.acs-toast--error {
    background: #fdf3f4;
}

.acs-toast__close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 0 2px;
    font-size: 20px;
    line-height: 1;
    color: #969696;
    cursor: pointer;
}

.acs-toast__close:hover {
    color: #da291c;
}

.acs-toast__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: #1a875466;
    transform-origin: left;
    animation-name: acs-toast-drain;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.acs-toast--warning .acs-toast__progress {
    background: #e5a80066;
}

.acs-toast--error .acs-toast__progress {
    background: #dc354666;
}

.acs-toast:hover .acs-toast__progress {
    animation-play-state: paused;
}

@keyframes acs-toast-drain {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/*  Gravity Forms */
.gfield_required {
    margin-left: 5px;
}

.manage-gscs-input-container input:disabled {
    background-color: #f0f0f0!important;
    color: #999!important;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.square .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 4px;
}


.square .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 0;
}

.square input:checked+.slider {
    background-color: #4caf50;
}

.square input:checked+.slider:before {
    transform: translateX(30px);
}

/* Attendee response state on the RAI edit form (stage 1).
   The PHP filter renders a hidden marker span inside the email cell;
   fortinet-form.js reads it and marks the whole row: a colored border drawn by
   a ::before overlay (so it can stop at the last input, before the +/- icons —
   the icons-column width is measured by JS into --acs-icons-width) plus a
   single-color status icon in the left gutter. The gutter comes from padding
   on the field container, so columns and header stay aligned. */
.gfield_list_group_item .acs-attendee-status {
    display: none!important;
}

#field_1_30 .ginput_container_list {
    padding: 8px 0 4px 34px!important; /* left gutter for status icons; top room for the first row's border */
}

/* center inputs vertically in their 38px cells so the border spacing is even */
#field_1_30 .gfield_list_group_item {
    display: flex!important;
    align-items: center!important;
}

.gfield_list_group.acs-row-responded,
.gfield_list_group.acs-row-waiting,
.gfield_list_group.acs-row-federal {
    position: relative!important;
    margin-block-end: 16px!important; /* even gap between row borders */
}

.gfield_list_group.acs-row-responded::before,
.gfield_list_group.acs-row-waiting::before,
.gfield_list_group.acs-row-federal::before {
    content: ''!important;
    position: absolute!important;
    top: -5px!important;
    bottom: -5px!important;
    left: var(--acs-border-left, -6px)!important;   /* measured by JS: 5px left of the first input */
    right: var(--acs-border-right, 80px)!important; /* measured by JS: 5px right of the last input */
    border: 2px solid transparent!important;
    border-radius: 6px!important;
    pointer-events: none!important;
}

.gfield_list_group.acs-row-responded::before { border-color: #1a875466!important; }
.gfield_list_group.acs-row-waiting::before   { border-color: #e5a80066!important; }
.gfield_list_group.acs-row-federal::before   { border-color: #bbbbbb66!important; }

.acs-row-status-icon {
    position: absolute!important; /* out of flex flow: cannot shift the columns */
    left: -34px!important;
    top: 50%!important;
    transform: translateY(-50%)!important;
    line-height: 1!important;
    cursor: default!important;
}

.gfield_list_group.acs-row-responded .acs-row-status-icon { color: #1a8754!important; }
.gfield_list_group.acs-row-waiting .acs-row-status-icon   { color: #cf9700!important; }
.gfield_list_group.acs-row-federal .acs-row-status-icon   { color: #999!important; }

/* keep the +/- icons clear of the row border (the settled gap between the
   last input and the icons is only ~6px otherwise) */
#field_1_30 .gfield_list_icons {
    margin-left: 14px!important;
}

/* Compact icon resend button, centered inside the email cell */
#field_1_30 .gfield_list_30_cell2 {
    position: relative!important;
}

button.resend-attendee-email-btn {
    position: absolute!important;
    float: none!important;
    top: 50%!important;
    right: 5px!important;
    transform: translateY(-50%)!important;
    width: 26px!important;
    height: 26px!important;
    padding: 0!important;
    display: inline-flex!important;
    align-items: center!important;
    justify-content: center!important;
    border-radius: 4px!important;
}

/* Request form: rows locked because the attendee already validated them —
   clearly more muted than editable inputs, not less. The row's status border
   and gutter icon carry the rest of the signal. */
.gfield_list_group.acs-row-responded input[readonly] {
    background: #ededed!important;
    color: #a3a3a3!important;
    -webkit-text-fill-color: #a3a3a3!important;
    cursor: not-allowed!important;
}

/* Visit summary: rows nobody may edit or remove here — attendees who
   responded, federal employees, and the removed-for-no-response mirror rows.
   These have no status border to lean on, and the theme's own inputs are
   already grey text in a near-white hairline box, so muting one a shade
   further read as nothing. Dropping the box is what separates the two states:
   a locked row renders as plain text, an editable one keeps its field chrome
   and its +/- buttons. */
.gfield_list_group.acs-row-locked input[readonly] {
    background: transparent!important;
    border-color: transparent!important;
    box-shadow: none!important;
    color: #6b6b6b!important;
    -webkit-text-fill-color: #6b6b6b!important;
    cursor: default!important;
}

/* Response/decision confirmation card (attendee-row form 2 confirmation +
   page-gsc-action.php post-submit; built by functions/response-confirmations.php).
   White card on the table-chrome border tokens; the red accent comes from the
   .acs-page-heading underline inside, so the card border stays neutral.
   Key/value rows mirror the .display-request inline-styled rows
   (rai-request-display.php). */
.acs-confirm {
    max-width: 600px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
}

.acs-confirm__rows {
    margin-bottom: 20px;
}

.acs-confirm__row {
    display: flex;
}

.acs-confirm__key {
    font-weight: bold;
    margin-right: 10px;
}

.acs-confirm__value {
    font-weight: 700;
    color: #000;
}

/* Semantic echo colors follow the toast semantics: green for progress,
   red for regression. A recorded "Will Not Attend" stays neutral — it is a
   valid response, not a failure. */
.acs-confirm__value--approve { color: #1a8754; }
.acs-confirm__value--reject  { color: #dc3546; }

/* The approve confirm screen (page-approver-action.php, issue #88): the card
   closes with the POST form whose button records the approval, or, on the
   not-recorded card, with the way back. The button shares the a.btn-approve
   rules above (one approve green, no new variant); the quartet's footer
   offsets are reset here since it sits in the card, not a form footer. */
.acs-confirm__actions {
    margin-top: 20px;
}

.acs-confirm__actions button.btn-approve {
    top: 0;
    margin-left: 0;
    border: none;
    cursor: pointer;
}

.acs-confirm__actions .acs-confirm__back {
    margin-left: 15px;
}

/* Anonymous email-link shell (header-anon.php / footer-anon.php on
   /attendee-row and /gsc-action): no app nav for visitors who never log
   in. Canvas + white card echo the notification emails they arrive from. */
body.acs-anon {
    background-color: #f6f7fa;   /* app chrome bg (--enfold-header-color-bg) */
    color: #444444;              /* main text (--enfold-main-color-color) */
    min-height: 100vh;           /* cover the html canvas (Enfold paints it socket-dark) */
}

.acs-anon-shell {
    max-width: 600px;            /* email card width (email/default_header.html) */
    margin: 0 auto;
    padding: 0 20px;
}

/* GSC form state carries the request read-out + attendee tables:
   Enfold's own responsive container cap (enfold/css/grid.css) */
.acs-anon-shell--wide {
    max-width: 1010px;
}

.acs-anon-shell__header {
    display: flex;
    justify-content: center;
    padding: 50px 0 20px;
}

/* wordmark at the dashboard top-header size; Enfold positions .logo
   absolutely for its own headers — restore it to the flex flow here */
.acs-anon-shell__header .logo {
    position: static;
}

.acs-anon-shell__header .logo img,
.acs-anon-shell__header .logo svg {
    max-height: 46px;
    width: auto;
}

.acs-anon-shell__card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px;
}

/* inside the shell card, the confirmation card drops its own chrome
   (no card-in-card) */
.acs-anon-shell__card .acs-confirm {
    border: 0;
    border-radius: 0;
    padding: 0;
    max-width: none;
}

.acs-anon-shell__footer {
    padding: 20px 0 50px;
    text-align: center;
    font-size: 14px;
    color: #969696;              /* meta text (--enfold-main-color-meta) */
}

#top .acs-anon-shell__footer a {
    color: #969696;
    text-decoration: underline;
}

#top .acs-anon-shell__footer a:hover {
    color: #da291c;              /* brand red hover */
}

/* Anon-shell form layout (form 2 on /attendee-row). Wider form shell, and
   the three third-width fields re-spanned to halves: their long labels
   wrapped to different heights and left the row's inputs misaligned.
   Scoped to the anon shell only — the logged-in app keeps GF's layout. */

/* form-state width: Enfold's tablet container cap (enfold/css/grid.css),
   the tree's only step between the 600px email-card shell and 1010px --wide */
.acs-anon-shell--form {
    max-width: 782px;
}

/* Company + Position pair up; Citizenship leads the next row */
body.acs-anon .gform_wrapper #field_2_3,
body.acs-anon .gform_wrapper #field_2_4,
body.acs-anon .gform_wrapper #field_2_16 {
    grid-column: span 6;
}

/* Bottom-align inputs under unequal label wrap: field stretches to the grid
   row (default align stretch), label stays top, input pins to the bottom */
body.acs-anon .gform_wrapper .gfield:not(.gfield--type-radio) {
    display: flex;
    flex-direction: column;
}

body.acs-anon .gform_wrapper .gfield:not(.gfield--type-radio) .ginput_container {
    margin-top: auto;
}

/* Decision radios: horizontal pair, set off from the details block */
body.acs-anon .gform_wrapper .gfield--type-radio {
    margin-top: 20px;
}

body.acs-anon .gform_wrapper .gfield--type-radio .gfield_radio {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Submit: the app's GF submit treatment (login button). !important matches
   the login original's — GF's theme framework styles the button through
   higher-precedence custom properties otherwise */
body.acs-anon .gform_wrapper .gform_footer input[type="submit"],
body.acs-anon .gform_wrapper .gform_footer button {
    border: none;
    border-radius: 4px;
    padding: 20px !important;
    color: #fff !important;
    font-size: 20px;
    background-color: #da291c !important;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

body.acs-anon .gform_wrapper .gform_footer input[type="submit"]:hover,
body.acs-anon .gform_wrapper .gform_footer button:hover {
    background-color: #b32217 !important;
}

/* Mobile: our id-specificity spans would beat GF's own single-column
   collapse, so restore it, and go full-width block per the project's
   767px form-footer convention */
@media only screen and (max-width: 767px) {
    body.acs-anon .gform_wrapper #field_2_3,
    body.acs-anon .gform_wrapper #field_2_4,
    body.acs-anon .gform_wrapper #field_2_16 {
        grid-column: 1 / -1;
    }

    body.acs-anon .gform_wrapper .gfield--type-radio .gfield_radio {
        flex-direction: column;
        gap: 12px;
    }

    body.acs-anon .gform_wrapper .gform_footer input[type="submit"],
    body.acs-anon .gform_wrapper .gform_footer button {
        display: block;
        width: 100%;
    }
}
