/* ==========================================================================
   DL VEWS Client Portal — front end
   Matches dlvews.com (Elementor kit): Raleway headings, Work Sans body,
   #003F57 navy, #E22701 accent, square buttons/inputs, dark photo banners.
   Everything is scoped to .dlv-portal so it can't affect the rest of the site.
   ========================================================================== */

.dlv-portal {
	--dlv-navy: var(--e-global-color-secondary, #003F57);
	--dlv-navy-dk: #002d3f;
	--dlv-accent: var(--e-global-color-accent, #E22701);
	--dlv-accent-dk: #b81f00;
	--dlv-text: var(--e-global-color-text, #292929);
	--dlv-muted: #5f6770;
	--dlv-border: var(--e-global-color-34042e15, #D3D3D3);
	--dlv-line: #e7e7e7;
	--dlv-soft: #f4f6f7;
	--dlv-head: "Raleway", sans-serif;
	--dlv-body: "Work Sans", sans-serif;

	font-family: var(--dlv-body);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.6;
	color: var(--dlv-text);
	-webkit-font-smoothing: antialiased;
}
.dlv-portal *, .dlv-portal *::before, .dlv-portal *::after { box-sizing: border-box; }
.dlv-portal p { margin: 0 0 1em; }
.dlv-portal a { color: var(--dlv-navy); text-decoration: none; transition: color .2s; }
.dlv-portal a:hover { color: var(--dlv-accent); }
.dlv-portal strong { font-weight: 500; }
body.dlv-portal-page { overflow-x: clip; }

.dlv-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px 80px; }

/* ---------- Typography ---------- */
.dlv-portal .dlv-h2 {
	font-family: var(--dlv-head); font-weight: 300; font-size: 26px; line-height: 1.25;
	color: var(--dlv-navy); text-transform: capitalize; margin: 0 0 20px;
}
.dlv-portal .dlv-h2--spaced { margin-top: 36px; }
.dlv-portal .dlv-h4 {
	font-family: var(--dlv-body); font-weight: 600; font-size: 16px; letter-spacing: .2px;
	text-transform: uppercase; color: #fff; margin: 0 0 16px;
}
.dlv-portal .dlv-h4--dark { color: var(--dlv-navy); }
.dlv-portal .dlv-lead { font-size: 18px; color: var(--dlv-muted); max-width: 720px; margin-bottom: 36px; }
.dlv-eyebrow {
	font-family: var(--dlv-body); font-weight: 400; font-size: 14px; letter-spacing: 2px;
	text-transform: uppercase; color: rgba(255,255,255,.8); margin: 0 0 14px !important;
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Hero banner (mirrors the site's inner-page headers) ---------- */
.dlv-hero {
	position: relative; color: #fff; text-align: center;
	padding: 170px 20px 90px; margin-bottom: 48px;
	background: var(--dlv-navy) var(--dlv-hero-img, none) center / cover no-repeat;
}
.dlv-hero::before { content: ""; position: absolute; inset: 0; background: rgba(2,0,0,.71); }
.dlv-hero--full { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.dlv-hero__inner { position: relative; max-width: 860px; margin: 0 auto; }
.dlv-portal .dlv-hero__title {
	font-family: var(--dlv-head); font-weight: 200; color: #fff; text-transform: capitalize;
	font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; margin: 0;
}
.dlv-hero__sub { font-size: 18px; margin: 16px 0 0 !important; color: rgba(255,255,255,.88); }

/* ---------- Buttons (same as the site's submit buttons) ---------- */
.dlv-portal .dlv-btn,
.dlv-portal button.dlv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--dlv-body); font-weight: 300; font-size: 14px; line-height: 1;
	letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
	color: #fff; background: var(--dlv-accent); border: 1px solid var(--dlv-accent);
	border-radius: 0; padding: 15px 30px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.dlv-portal .dlv-btn:hover, .dlv-portal .dlv-btn:focus-visible { background: var(--dlv-accent-dk); border-color: var(--dlv-accent-dk); color: #fff; }
.dlv-portal .dlv-btn--block { width: 100%; padding: 17px 30px; }
.dlv-portal .dlv-btn--ghost, .dlv-portal button.dlv-btn--ghost { background: transparent; color: var(--dlv-navy); border-color: var(--dlv-border); padding: 12px 20px; }
.dlv-portal .dlv-btn--ghost:hover, .dlv-portal button.dlv-btn--ghost:hover { background: var(--dlv-navy); border-color: var(--dlv-navy); color: #fff; }
.dlv-portal .dlv-btn--outline-light { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 3px; padding: 12px 24px; }
.dlv-portal .dlv-btn--outline-light:hover { background: #fff; color: var(--dlv-navy); border-color: #fff; }
.dlv-portal .dlv-link { font-size: 15px; font-weight: 400; color: var(--dlv-navy); }
.dlv-portal .dlv-link:hover { color: var(--dlv-accent); }
.dlv-portal :focus-visible { outline: 2px solid var(--dlv-accent); outline-offset: 2px; }

/* ---------- Forms (same as the site's contact form fields) ---------- */
.dlv-form { margin: 0; }
.dlv-field { margin-bottom: 20px; }
.dlv-portal .dlv-field label {
	display: block; font-family: var(--dlv-body); font-weight: 500; font-size: 13px;
	letter-spacing: .6px; text-transform: uppercase; color: var(--dlv-navy); margin-bottom: 8px;
}
.dlv-portal input[type=text], .dlv-portal input[type=email], .dlv-portal input[type=password],
.dlv-portal input[type=tel], .dlv-portal input[type=search] {
	width: 100%; min-height: 50px; font-family: var(--dlv-body); font-weight: 300; font-size: 17px;
	color: #000; background: #fff; border: 1px solid var(--dlv-border); border-radius: 0;
	padding: 6px 16px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.dlv-portal input:focus { outline: none; border-color: var(--dlv-navy); box-shadow: 0 0 0 1px var(--dlv-navy); }
.dlv-portal input:disabled { background: var(--dlv-soft); color: var(--dlv-muted); }
.dlv-pass { position: relative; }
.dlv-pass input { padding-right: 76px; }
.dlv-portal .dlv-pass__toggle {
	position: absolute; right: 1px; top: 1px; bottom: 1px; width: 68px; border: 0; border-left: 1px solid var(--dlv-line);
	background: #fff; color: var(--dlv-navy); font-family: var(--dlv-body); font-size: 12px; font-weight: 500;
	letter-spacing: .6px; text-transform: uppercase; cursor: pointer; padding: 0; border-radius: 0;
}
.dlv-portal .dlv-pass__toggle:hover { background: var(--dlv-soft); color: var(--dlv-navy); }
.dlv-form__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 24px; }
.dlv-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.dlv-check input { width: 18px; height: 18px; accent-color: var(--dlv-navy); margin: 0; }
.dlv-form__back { text-align: center; margin: 20px 0 0 !important; }
.dlv-form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.dlv-help { display: block; font-size: 14px; color: var(--dlv-muted); margin-top: 6px; }
.dlv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Alerts ---------- */
.dlv-alert { padding: 14px 18px; margin: 0 0 24px; font-size: 15px; border-left: 4px solid; background: var(--dlv-soft); }
.dlv-alert--error { border-color: var(--dlv-accent); background: #fdf1ee; color: #7a1600; }
.dlv-alert--success { border-color: #2e7d4f; background: #eef7f1; color: #1d5233; }

/* ---------- Login layout ---------- */
.dlv-auth { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); max-width: 980px; box-shadow: 0 20px 50px rgba(0,30,45,.12); padding: 0; margin: -110px auto 80px; position: relative; z-index: 2; }
.dlv-portal--auth .dlv-hero { padding-bottom: 170px; margin-bottom: 0; }
.dlv-auth__card { background: #fff; padding: 48px 48px 44px; }
.dlv-auth__aside { background: var(--dlv-navy); color: rgba(255,255,255,.88); padding: 48px 40px; font-size: 16px; }
.dlv-auth__aside .dlv-aside__phone a { font-family: var(--dlv-head); font-weight: 300; font-size: 26px; color: #fff; }
.dlv-auth__aside .dlv-aside__phone a:hover { color: #fff; opacity: .8; }

/* ---------- Dashboard sub-navigation ---------- */
.dlv-subnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--dlv-line); margin: 0 0 36px; }
.dlv-subnav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.dlv-portal .dlv-subnav a {
	display: block; padding: 14px 0; font-size: 15px; font-weight: 400; text-transform: capitalize;
	color: var(--dlv-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.dlv-portal .dlv-subnav a:hover, .dlv-portal .dlv-subnav a.is-active { color: var(--dlv-navy); border-bottom-color: var(--dlv-accent); }
.dlv-portal .dlv-subnav .dlv-subnav__out { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; border: 0; }
.dlv-portal--auth .dlv-subnav { display: none; }

/* ---------- Dashboard grid ---------- */
.dlv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.dlv-section { margin-bottom: 48px; }
.dlv-aside { display: grid; gap: 24px; position: sticky; top: 110px; }

.dlv-card { background: #fff; border: 1px solid var(--dlv-line); padding: 28px; }
.dlv-card--navy { background: var(--dlv-navy); border-color: var(--dlv-navy); color: rgba(255,255,255,.9); }
.dlv-card__actions { margin: 20px 0 0 !important; }
.dlv-empty { text-align: center; padding: 40px 28px; color: var(--dlv-muted); }
.dlv-empty p:last-child { margin-bottom: 0; }

.dlv-dl { margin: 0; font-size: 15px; }
.dlv-dl dt { font-size: 12px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 12px; }
.dlv-dl dt:first-child { margin-top: 0; }
.dlv-dl dd { margin: 2px 0 0; color: #fff; word-break: break-word; }

.dlv-contact { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.dlv-contact li { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.dlv-contact .dlv-icon { color: var(--dlv-accent); flex: none; }

/* Price list cards */
.dlv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.dlv-pcard {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dlv-line);
	border-top: 3px solid var(--dlv-navy); padding: 26px 26px 28px; transition: box-shadow .25s, transform .25s;
}
.dlv-pcard:hover { box-shadow: 0 14px 34px rgba(0,30,45,.12); transform: translateY(-2px); }
.dlv-pcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dlv-pcard__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--dlv-soft); color: var(--dlv-navy); }
.dlv-pcard__types { font-size: 12px; font-weight: 500; letter-spacing: .8px; color: var(--dlv-muted); }
.dlv-portal .dlv-pcard__title { font-family: var(--dlv-head); font-weight: 400; font-size: 22px; line-height: 1.3; color: var(--dlv-navy); margin: 0 0 10px; text-transform: none; }
.dlv-pcard__text { font-size: 15px; color: var(--dlv-muted); }
.dlv-pcard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--dlv-muted); margin-top: auto !important; padding-top: 6px; margin-bottom: 20px !important; }
.dlv-pcard .dlv-btn { align-self: flex-start; }

/* Resources */
.dlv-resources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dlv-line); }
.dlv-resources li { border-bottom: 1px solid var(--dlv-line); }
.dlv-portal .dlv-resources a { display: flex; align-items: center; gap: 14px; padding: 18px 4px; font-size: 17px; color: var(--dlv-text); }
.dlv-portal .dlv-resources a:hover { color: var(--dlv-navy); background: var(--dlv-soft); }
.dlv-resources__icon { color: var(--dlv-navy); display: inline-flex; }
.dlv-resources__arrow { margin-left: auto; color: var(--dlv-accent); transition: transform .2s; }
.dlv-resources a:hover .dlv-resources__arrow { transform: translateX(4px); }

/* ---------- Single price list ---------- */
.dlv-pl-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.dlv-pl-head__meta { font-size: 14px; color: var(--dlv-muted); margin-left: auto; }
.dlv-content { max-width: 820px; margin-bottom: 40px; }
.dlv-content h2, .dlv-content h3 { font-family: var(--dlv-head); font-weight: 300; color: var(--dlv-navy); }

.dlv-table-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.dlv-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.dlv-search .dlv-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dlv-muted); pointer-events: none; }
.dlv-portal .dlv-search input { padding-left: 44px; }
.dlv-table-count { font-size: 14px; color: var(--dlv-muted); }
.dlv-table-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--dlv-line); background: #fff; }
.dlv-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.dlv-portal .dlv-table th {
	position: sticky; top: 0; z-index: 1; background: var(--dlv-navy); color: #fff; text-align: left;
	font-family: var(--dlv-body); font-weight: 500; font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
	padding: 14px 16px; white-space: nowrap; border: 0;
}
.dlv-portal .dlv-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--dlv-line); vertical-align: top; background: transparent; }
.dlv-portal .dlv-table tbody tr:nth-child(even) td { background: #fafbfb; }
.dlv-portal .dlv-table tbody tr:hover td { background: #eef3f5; }
.dlv-table td.is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dlv-table mark { background: #ffe3dc; color: inherit; padding: 0; }
.dlv-table-none { padding: 24px; text-align: center; color: var(--dlv-muted); margin: 0 !important; }

.dlv-files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dlv-line); }
.dlv-file { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--dlv-line); flex-wrap: wrap; }
.dlv-file__badge { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; font-size: 12px; font-weight: 600; letter-spacing: .6px; color: #fff; background: var(--dlv-navy); }
.dlv-file__badge--pdf { background: var(--dlv-accent); }
.dlv-file__badge--xlsx, .dlv-file__badge--xls, .dlv-file__badge--csv { background: #2e6b4f; }
.dlv-file__name { flex: 1 1 240px; font-weight: 400; word-break: break-word; }
.dlv-file__name small { display: block; font-size: 13px; font-weight: 300; color: var(--dlv-muted); }
.dlv-file__actions { display: flex; gap: 10px; }
.dlv-disclaimer { font-size: 13px; color: var(--dlv-muted); border-top: 1px solid var(--dlv-line); padding-top: 20px; margin-top: 20px !important; }

.dlv-logout { font-family: var(--dlv-body); }
.dlv-print-title { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.dlv-grid { grid-template-columns: 1fr; }
	.dlv-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.dlv-portal { font-size: 16px; }
	.dlv-hero { padding: 130px 16px 60px; margin-bottom: 32px; }
	.dlv-portal--auth .dlv-hero { padding-bottom: 120px; }
	.dlv-wrap { padding: 0 16px 60px; }
	.dlv-wrap.dlv-auth { grid-template-columns: 1fr; margin: -80px 16px 60px; padding: 0; }
	.dlv-auth__card { padding: 32px 22px; }
	.dlv-auth__aside { padding: 32px 22px; }
	.dlv-aside { grid-template-columns: 1fr; }
	.dlv-form__cols { grid-template-columns: 1fr; }
	.dlv-subnav ul { gap: 20px; }
	.dlv-pl-head__meta { margin-left: 0; width: 100%; order: 3; }
	.dlv-file__actions { width: 100%; }
	.dlv-file__actions .dlv-btn { flex: 1; }

	/* Price tables become stacked cards on phones. */
	.dlv-table-wrap { max-height: none; border: 0; background: transparent; }
	.dlv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dlv-table, .dlv-table tbody, .dlv-table tr, .dlv-table td { display: block; width: 100%; }
	.dlv-portal .dlv-table tr { border: 1px solid var(--dlv-line); border-top: 3px solid var(--dlv-navy); margin-bottom: 12px; background: #fff; }
	.dlv-portal .dlv-table td, .dlv-portal .dlv-table tbody tr:nth-child(even) td { display: flex; justify-content: space-between; gap: 16px; text-align: right; padding: 10px 14px; background: #fff; }
	.dlv-table td::before { content: attr(data-label); font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: var(--dlv-muted); text-align: left; flex: none; max-width: 45%; }
	.dlv-table td:empty { display: none; }
}

/* ---------- Print: clean price sheet ---------- */
@media print {
	.elementor-location-header, .elementor-location-footer, header, footer,
	.dlv-hero, .dlv-subnav, .dlv-pl-head .dlv-btn, .dlv-pl-head .dlv-link, .dlv-table-tools, .dlv-files, .dlv-section > .dlv-h2 { display: none !important; }
	.dlv-print-title { display: block; font-size: 16pt; margin-bottom: 12pt; }
	.dlv-table-wrap { max-height: none; overflow: visible; border: 0; }
	.dlv-portal .dlv-table th { position: static; background: #fff; color: #000; border-bottom: 2px solid #000; }
	.dlv-portal .dlv-table td { font-size: 11pt; }
	.dlv-portal .dlv-table tr { display: table-row !important; }
}
