.prof-top {
	background: #fff;
	border-radius: 5px;
	padding: 20px 25px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.tabs {
	margin: -10px -25px;
}
.tabs-item {
	padding: 10px 25px;
	cursor: pointer;
}
.tabs-item > i {
	margin-right: 5px;
	display: inline-block;
	vertical-align: middle;
}
.tabs-item:after {
	content: '';
	width: 0px;
	height: 4px;
	background: var(--green-color);
	display: block;
	margin: 8px 0 0 0;
	transition: 300ms;
}
.tabs-item.active:after {
	width: 80px;
}
.prof-div {
	padding: 45px 0 0 0;
}
.prof-row {
	margin: -15px;
}
.prof-col {
	width: 50%;
	padding: 15px;
}
.box {
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	overflow: hidden;
}
.box-title {
	background: #dcdcdc;
	height: 70px;
	padding: 0 29px;
	font-size: 24px;
	font-weight: 600;
	align-items: center;
}
.box-content {
	padding: 35px 28px;
}
.labels {
	margin: -11px -13.5px;
}
.label {
	padding: 11px 13.5px;
	width: 100%;
}
.label.width-50 {
	width: 50%;
}
.label > label {
	display: block;
	color: #7085a9;
	font-size: 15px;
	margin-bottom: 14px;
}
.label > label > i {
	display: block;
	font-size: 12px;
	font-style: normal;
	opacity: 0.8;
}
.prof-is {
	margin: -15px;
}
.prof-is-col {
	padding: 15px;
}
.prof-is-col-1 {
	width: 250px;
}
.prof-is-col-2 {
	width: calc(100% - 250px);
	margin-left: auto;
}
.prof-ava {
	width: 150px;
	margin: 0 auto;
	position: relative;
	border-radius: 50%;
	overflow: hidden;
}
.prof-ava-image > img {
	width: 100%;
	display: block;
}
.prof-ava-edit {
	background: rgba(0,0,0,0.75);
	position: absolute;
	width: 100%;
	height: 100%;
	transition: 200ms;
	top: 0; left: 0;
	z-index: 5;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	opacity: 0;
}
.prof-ava-edit span {
	display: block;
	font-size: 12px;
	margin-top: 10px;
}
.prof-ava:hover .prof-ava-edit {
	opacity: 1;
}
.prof-do {
	margin-top: 30px;
}
.divs > div:not(:first-child) {
	display: none;
}
.cr-boundary {
	max-height:calc(80vh - 100px);
}
.cr-boundary img,
.cr-overlay {
	max-width:100%;
	max-height:100%;
}
.arcticmodal-container {
	z-index:500000;
}
.profile-modal-photo {
	height: calc(90vh - 100px)!important;
}
.arcticmodal-close + div {
	height: 100%;
}
.drop-container {
	position: relative;
	min-height: 200px;
	padding: 40px 20px;
	border-radius: 10px;
	border: 2px dashed #555;
	color: #444;
	cursor: pointer;
	transition: background .2s ease-in-out, border .2s ease-in-out;
	display: block;
}

.drop-title {
	color: #444;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	transition: color .2s ease-in-out;
}

.drop-container > span {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

span.loaded {
	display: none;
	text-align: center;
	justify-content: center;
}

.loaded-title {
	width: 100%;
	font-weight: bold;
	margin-bottom: 10px;
	display: block;
	text-align: center;
}

.loaded ul {
	margin-bottom: 20px;
}
.exp-form-inputs {
	display: grid;
	grid-template-columns: 100%;
	gap: 10px;
	margin-bottom: 20px;
}
.exp-form-inputs input[type="checkbox"] {
	width: 14px;
	height: 14px;
}
/* Unified upload dropzones */
.drop-container,
.template-import__drop {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 250px !important;
	padding: 42px 28px !important;
	border: 2px dashed #8b98aa !important;
	border-radius: 26px !important;
	background: #f8fafc !important;
	box-shadow: none !important;
	color: #111827 !important;
	cursor: pointer !important;
	text-align: center !important;
	box-sizing: border-box !important;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease !important;
}
.drop-container.is-dragover,
.template-import__drop.is-dragover {
	border-color: #24eebc !important;
	background: rgba(36, 238, 188, 0.08) !important;
	box-shadow: 0 18px 50px rgba(36, 238, 188, 0.18) !important;
	transform: none !important;
}
.drop-container > span {
	position: relative;
	z-index: 1;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	width: 100% !important;
	height: 100% !important;
}
.drop-title,
.template-import__drop-title {
	font-size: 28px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	color: #111827 !important;
}
.drop-subtitle,
.template-import__drop-link {
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #555 !important;
}
.drop-hint {
	margin-top: 22px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	color: #6b7280;
}
.drop-container input[type="file"],
.template-import__drop input[type="file"] {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 0 !important;
	cursor: pointer !important;
	z-index: 2 !important;
}
.template-import__drop {
	flex-direction: column !important;
	gap: 12px !important;
}

/* Super-admin section uses the same menu item styling as the main sidebar. */
.menu__item--super-divider {
    margin: 12px 14px 10px;
    pointer-events: none;
}
.menu__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.14);
}
.body--hide-menu .menu__item--super-divider {
    margin-left: 18px;
    margin-right: 18px;
}
.super-admin-page {
    --super-bg: #f5f7fb;
    --super-card: #ffffff;
    --super-border: #e4ebf4;
    --super-text: #132238;
    --super-muted: #6b7586;
    --super-primary: #6b46ff;
    --super-accent: #00b894;
    --super-danger: #ef4444;
    --super-warning: #f59e0b;
    color: var(--super-text);
}
.super-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 24px;
}
.super-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--super-primary);
    font-weight: 900;
    margin-bottom: 8px;
}
.super-page-head h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
}
.super-page-head p { margin: 0; color: var(--super-muted); font-size: 15px; }
.super-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.super-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.super-metric,
.super-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--super-border);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15,23,42,.06);
}
.super-metric { padding: 20px; }
.super-metric span { display: block; color: var(--super-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.super-metric strong { display: block; margin-top: 10px; font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.super-metric em { display: block; margin-top: 9px; font-style: normal; color: var(--super-muted); font-size: 13px; }
.super-card { padding: 22px; margin-bottom: 20px; }
.super-card h3 { margin: 0 0 18px; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.super-filter-grid,
.super-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 14px;
    align-items: end;
}
.super-layout-2 {
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(520px, 1.05fr);
    gap: 20px;
    align-items: start;
}
.super-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
}
.super-full { grid-column: 1 / -1; }
.super-admin-page label { margin: 0; display: flex; flex-direction: column; gap: 7px; color: var(--super-muted); font-size: 12px; font-weight: 800; }
.super-admin-page input[type="text"],
.super-admin-page input[type="number"],
.super-admin-page input[type="file"],
.super-admin-page select,
.super-admin-page textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--super-border);
    border-radius: 13px;
    padding: 10px 12px;
    background: #fff;
    color: var(--super-text);
    outline: none;
}
.super-admin-page textarea { min-height: 180px; }
.super-admin-page input:focus,
.super-admin-page select:focus,
.super-admin-page textarea:focus {
    border-color: rgba(107,70,255,.72);
    box-shadow: 0 0 0 4px rgba(107,70,255,.11);
}
.super-filter-actions,
.super-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.super-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 13px;
    border: 1px solid var(--super-border);
    background: #fff;
    color: var(--super-text);
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: .18s ease;
}
.super-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.super-btn--primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--super-primary), var(--super-accent)); }
.super-btn--danger { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ef4444, #f97316); }
.super-btn--small { min-height: 34px; padding: 7px 12px; border-radius: 10px; font-size: 12px; }
.super-table-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #f8fbff;
    border: 1px solid var(--super-border);
    border-radius: 16px;
}
.super-table-tools label { flex-direction: row; align-items: center; gap: 8px; color: var(--super-text); }
.super-table-wrap { overflow: auto; border-radius: 16px; border: 1px solid var(--super-border); }
.super-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
.super-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px;
    background: #f8fbff;
    color: var(--super-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--super-border);
}
.super-table td { padding: 14px; border-bottom: 1px solid #edf2f7; vertical-align: middle; }
.super-table tr:hover td { background: #f8fbff; }
.super-table strong { font-weight: 900; }
.super-table small { display: block; margin-top: 4px; color: var(--super-muted); font-size: 12px; line-height: 1.35; }
.super-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 1; }
.super-badge--success { background: #dcfce7; color: #166534; }
.super-badge--warning { background: #fef3c7; color: #92400e; }
.super-badge--danger { background: #fee2e2; color: #991b1b; }
.super-badge--primary { background: #dbeafe; color: #1d4ed8; }
.super-badge--muted, .super-badge--neutral { background: #eef2f7; color: #475569; }
.super-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; color: var(--super-muted); }
.super-pagination div { display: flex; gap: 8px; }
.super-dl { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin: 0; }
.super-dl dt { color: var(--super-muted); font-weight: 800; }
.super-dl dd { margin: 0; font-weight: 700; }
.super-upload-inline { display: flex; gap: 8px; align-items: center; min-width: 340px; }
.super-upload-inline input[type="file"] { min-height: 34px; padding: 5px; }
.super-notice { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; font-weight: 800; }
.super-notice--success { background: #dcfce7; color: #166534; }
.super-notice--danger, .super-alert { background: #fee2e2; color: #991b1b; }
.cke { border-radius: 14px !important; overflow: hidden; border-color: var(--super-border) !important; }
@media (max-width: 1280px) { .super-metrics { grid-template-columns: repeat(2, 1fr); } .super-layout-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .super-page-head, .super-profile-grid { grid-template-columns: 1fr; display: block; } .super-filter-grid, .super-form-grid { grid-template-columns: 1fr; } .super-metrics { grid-template-columns: 1fr; } .super-page-actions { margin-top: 14px; } }

/* Super mode project settings */
.super-settings-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.super-settings-nav {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--super-border);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(15,23,42,.05);
}
.super-settings-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--super-text);
    font-weight: 850;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.super-settings-nav a:hover {
    transform: translateX(2px);
    background: #f3f6ff;
    color: var(--super-primary);
}
.super-settings-content {
    min-width: 0;
}
.super-settings-page .super-card {
    scroll-margin-top: 20px;
}

.super-registration-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
.super-registration-list {
    min-width: 0;
}
.super-registration-list + .super-registration-list {
    border-left: 1px solid var(--super-border);
    padding-left: 28px;
}
.super-registration-list h3 {
    margin-bottom: 18px;
}
.super-registration-list label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.super-registration-list textarea {
    min-height: 170px;
}
@media (max-width: 900px) {
    .super-registration-lists { grid-template-columns: 1fr; }
    .super-registration-list + .super-registration-list { border-left: 0; border-top: 1px solid var(--super-border); padding-left: 0; padding-top: 22px; }
}

.super-settings-page .super-form-grid label small {
    margin-top: -2px;
    color: var(--super-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}
.super-checkline {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--super-border);
    border-radius: 14px;
    background: #fff;
    color: var(--super-text);
    font-size: 14px;
    font-weight: 850;
}
.super-checkline input {
    width: 18px;
    height: 18px;
}
.super-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 92px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fbff;
}
.super-image-preview--favicon img {
    max-width: 54px;
    max-height: 54px;
}
.super-image-preview--logo {
    background: #0f172a;
}
.super-image-preview--logo img {
    max-width: 230px;
    max-height: 90px;
}
.super-settings-alert {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eef6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    line-height: 1.45;
}
.super-sticky-save {
    position: sticky;
    bottom: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    margin-top: 20px;
    border: 1px solid var(--super-border);
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 44px rgba(15,23,42,.12);
    backdrop-filter: blur(14px);
}
.super-sticky-save span {
    color: var(--super-muted);
    font-size: 13px;
    font-weight: 750;
}
@media (max-width: 1100px) {
    .super-settings-layout { grid-template-columns: 1fr; }
    .super-settings-nav { position: static; flex-direction: row; overflow: auto; }
    .super-settings-nav a { white-space: nowrap; }
}
@media (max-width: 700px) {
    .super-sticky-save { flex-direction: column; align-items: stretch; }
}

/* Super admin user edit page */
.super-admin-edit-grid {
    align-items: stretch;
}
.super-admin-edit-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.super-card-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}
.super-card-headline h3 {
    margin-bottom: 6px;
}
.super-card-headline p {
    margin: 0;
    color: var(--super-muted);
    font-size: 13px;
    line-height: 1.45;
}
.super-admin-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.super-admin-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.super-admin-fields--rate {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.super-admin-field-wide {
    grid-column: 1 / -1;
}
.super-admin-page input[type="email"],
.super-admin-page input[type="datetime-local"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--super-border);
    border-radius: 13px;
    padding: 10px 12px;
    background: #fff;
    color: var(--super-text);
    outline: none;
}
.super-admin-page input[type="email"]:focus,
.super-admin-page input[type="datetime-local"]:focus {
    border-color: rgba(107,70,255,.72);
    box-shadow: 0 0 0 4px rgba(107,70,255,.11);
}
.super-admin-edit-card textarea {
    min-height: 92px;
    resize: vertical;
}

.super-admin-contact-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.super-admin-contact-footer .super-admin-form-actions {
    margin-top: 0;
}
.super-admin-contact-footer .super-admin-summary-line {
    min-width: 250px;
}

.super-admin-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--super-muted);
    font-size: 13px;
}
.super-admin-summary-line strong {
    color: var(--super-text);
}
.super-admin-form-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 2px;
}
@media (max-width: 1280px) {
    .super-admin-fields--rate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .super-card-headline { flex-direction: column; }
    .super-admin-fields,
    .super-admin-fields--rate { grid-template-columns: 1fr; }
    .super-admin-contact-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .super-admin-contact-footer .super-admin-summary-line {
        min-width: 0;
    }
}

/* Super admin: safe impersonation link page */
.super-impersonate-card{
    max-width: 860px;
}
.super-impersonate-card h2{
    margin: 0 0 10px;
    font-size: 22px;
    color: #111827;
}
.super-impersonate-card p{
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 18px;
}
.super-impersonate-link-wrap{
    margin: 18px 0;
}
.super-impersonate-link{
    width: 100%;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 14px;
    color: #152238;
}
.super-impersonate-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}
.super-muted{
    color: #94a3b8 !important;
    font-size: 13px;
    margin-top: 16px !important;
}


/* Shared sent-offers widgets for reused admin pages */
.sent-offers-page{
    --so-primary:#16c7a8;
    --so-blue:#3b82f6;
    --so-violet:#7c3aed;
    --so-green:#22c55e;
    --so-orange:#f59e0b;
    --so-red:#ef4444;
    --so-text:#0f172a;
    --so-muted:#64748b;
    --so-border:#e9edf3;
    color:var(--so-text);
    padding:8px 0 30px;
}
.sent-offers-page *{box-sizing:border-box;}
.sent-offers-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 22px;}
.sent-offers-head h1{margin:0 0 12px;font-size:32px;line-height:1.15;font-weight:800;color:#0f172a;}
.sent-offers-head__count{font-size:16px;color:#475569;}
.sent-offers-head__note{margin-top:4px;color:#64748b;font-size:13px;}
.sent-offers-head__actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:6px;}
.so-card{background:#fff;border:1px solid var(--so-border);border-radius:16px;box-shadow:0 6px 20px rgba(15,23,42,.04);padding:20px;}
.so-btn{border:0;border-radius:10px;height:40px;padding:0 16px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:.16s ease;}
.so-btn--white{background:#fff;border:1px solid #e2e8f0;color:#1f2937;}
.so-btn--primary{background:linear-gradient(135deg,#5b55f6,#10b8a6);color:#fff;}
.so-btn--danger{background:#fee2e2;color:#991b1b;}
.so-btn:disabled{opacity:.45;cursor:not-allowed;}
.so-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px;}
.so-kpi{display:flex;align-items:center;gap:16px;min-height:116px;position:relative;overflow:hidden;}
.so-kpi__icon{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;flex:0 0 auto;}
.so-kpi--blue .so-kpi__icon{background:#eaf2ff;color:#2563eb;}
.so-kpi--violet .so-kpi__icon{background:#ede9fe;color:#7c3aed;}
.so-kpi--green .so-kpi__icon{background:#dcfce7;color:#16a34a;}
.so-kpi--orange .so-kpi__icon{background:#fff7ed;color:#ea580c;}
.so-kpi span:not(.so-kpi__icon){display:block;font-size:13px;color:#64748b;margin-bottom:5px;}
.so-kpi strong{display:block;font-size:26px;line-height:1;font-weight:800;color:#0f172a;}
.so-kpi em{display:block;margin-top:10px;font-style:normal;color:#16a34a;font-size:12px;font-weight:700;}
.so-kpi svg{margin-left:auto;width:110px;height:40px;align-self:flex-end;}
.so-filter-card{margin-bottom:16px;}
.so-filter-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.so-filter-head h3{margin:0;font-size:16px;font-weight:800;color:#0f172a;}
.so-filter-head button{border:0;background:none;color:#64748b;cursor:pointer;font-weight:700;}
.so-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:end;}
.so-filter-grid label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700;color:#334155;margin:0;}
.so-filter-grid input,.so-filter-grid select,.so-table-toolbar select,.so-period-panel input{height:38px;border:1px solid #dbe3ef;border-radius:9px;background:#fff;padding:0 10px;color:#334155;min-width:0;width:100%;}
.so-filter-reset{display:flex;gap:10px;align-items:center;}
.so-table-card{padding:0;overflow:hidden;margin-top:14px;}
.so-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e9edf3;min-height:70px;background:#fff;}
.so-table-toolbar>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.so-table-scroll{width:100%;overflow-x:auto;}
.so-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;min-width:1060px;}
.so-table th{background:#fff!important;color:#0f172a!important;font-size:13px;font-weight:800;padding:14px 12px!important;border-bottom:1px solid #e9edf3!important;white-space:nowrap;text-align:left;}
.so-table td{padding:14px 12px!important;border-bottom:1px solid #e9edf3!important;color:#334155;vertical-align:middle;background:#fff!important;font-size:13px;}
.so-table tbody tr:hover td{background:#f8fafc!important;}
.so-table a{color:#1f2937;text-decoration:none;}
.so-table small{display:block;color:#94a3b8;margin-top:4px;}
.so-actions{display:flex;gap:8px;align-items:center;}
.so-actions .is-table__action{width:38px;height:38px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;color:#334155;}
.so-actions .is-table__action:hover{background:#f8fafc!important;border-color:#cbd5e1!important;box-shadow:0 6px 16px rgba(15,23,42,.08)!important;}
.so-period-panel{position:absolute;right:32px;z-index:20;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.15);padding:14px;}
.so-period-panel[hidden]{display:none!important;}
@media(max-width:1200px){.so-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.so-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.so-kpi svg{display:none;}}
@media(max-width:767px){.sent-offers-head,.so-table-toolbar{flex-direction:column;align-items:flex-start;}.so-kpi-grid,.so-filter-grid{grid-template-columns:1fr;}.so-period-panel{left:16px;right:16px;}.sent-offers-head h1{font-size:26px;}}

/* Top bar breadcrumbs and compact account status */
.top__left{
    min-width:0;
    gap:18px;
}
.top__right{
    gap:18px;
}
.top-breadcrumbs{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    color:#64748b;
    font-size:14px;
    line-height:1.2;
}
.top-breadcrumbs__link{
    color:#475569;
    text-decoration:none;
    transition:.16s ease;
}
.top-breadcrumbs__link:hover{
    color:#16b8a6;
    text-decoration:none;
}
.top-breadcrumbs__sep{
    color:#94a3b8;
    flex:0 0 auto;
}
.top-breadcrumbs__current{
    color:#0f172a;
    overflow:hidden;
    text-overflow:ellipsis;
    min-width:0;
}
body .top .top__status--right{
    margin-left:0;
    display:flex;
    flex-direction:column;
    gap:2px;
    align-items:flex-end;
    text-align:right;
    font-size:13px;
    line-height:1.25;
    color:#1f2937;
    white-space:nowrap;
}
body .top .top__status--right b{
    color:#0f172a;
    font-weight:800;
}
body .top .top__status--right span:nth-child(2) b{
    color:var(--purple-color);
}
body .top .top__status--right em{
    color:#64748b;
    font-style:normal;
}
@media(max-width:1200px){
    body .top .top__status--right{
        display:none;
    }
}
@media(max-width:767px){
    .top-breadcrumbs{
        display:none;
    }
}

/* Shared sent-offers date range picker reused in super admin pages */
.so-period-panel{position:fixed!important;left:var(--so-period-left,auto)!important;right:auto!important;top:var(--so-period-top,96px)!important;z-index:1000!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;display:block!important;align-items:initial!important;gap:0!important;flex-wrap:nowrap!important;}
.so-period-panel[hidden]{display:none!important;}
.so-date-range-picker{width:min(850px,calc(100vw - 48px));background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 22px 60px rgba(15,23,42,.18);overflow:hidden;color:#1f2937;}
.so-date-range-picker__title{height:64px;display:flex;align-items:center;justify-content:center;gap:12px;border-bottom:1px solid #eef2f7;font-size:20px;font-weight:800;color:#111827;cursor:text;}
.so-date-range-picker__title input{width:132px!important;height:auto!important;border:0!important;background:transparent!important;text-align:center;font:inherit;font-weight:800;color:#111827;border-radius:8px;padding:7px 8px!important;outline:none;min-width:0!important;}
.so-date-range-picker__title input:hover,.so-date-range-picker__title input:focus{background:#eff6ff!important;box-shadow:0 0 0 2px #bfdbfe;}
.so-date-range-picker__title input.is-invalid{background:#fee2e2!important;box-shadow:0 0 0 2px #fecaca;color:#b91c1c;}
.so-date-range-picker__body{display:grid;grid-template-columns:220px 1fr;min-height:360px;}
.so-date-range-picker__presets{border-right:1px solid #eef2f7;background:#fbfdff;display:flex;flex-direction:column;}
.so-date-range-picker__presets button{height:48px;border:0;border-bottom:1px solid #eef2f7;background:transparent;text-align:left;padding:0 22px;font-size:15px;font-weight:700;color:#475569;cursor:pointer;transition:background .15s ease,color .15s ease;}
.so-date-range-picker__presets button:hover{background:#f1f5f9;color:#0f172a;}
.so-date-range-picker__presets button.is-active{background:#e8f6ff;color:#0f83d8;}
.so-date-range-picker__calendars{position:relative;padding:24px 28px 18px;display:flex;flex-direction:column;justify-content:space-between;}
.so-date-range-picker__months{display:grid;grid-template-columns:1fr 1fr;gap:34px;}
.so-date-range-picker__usage{margin-top:18px;padding:12px 14px;border:1px solid #dbeafe;background:#eff6ff;border-radius:12px;color:#475569;font-size:13px;font-weight:700;line-height:1.45;text-align:left;align-self:stretch;}
.so-calendar__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px;}
.so-calendar__month{text-align:left;font-size:24px;font-weight:800;color:#334155;}
.so-calendar__nav{display:flex;gap:8px;}
.so-calendar__nav button{width:32px;height:32px;border:0;border-radius:8px;background:#eff6ff;color:#0f83d8;font-size:24px;line-height:1;cursor:pointer;transition:background .15s ease,transform .12s ease,opacity .15s ease;}
.so-calendar__nav button:hover:not(:disabled){background:#dbeafe;}
.so-calendar__nav button:active:not(:disabled){transform:scale(.94);}
.so-calendar__nav button:disabled{opacity:.35;cursor:not-allowed;}
.so-calendar__week,.so-calendar__days{display:grid;grid-template-columns:repeat(7,38px);justify-content:center;}
.so-calendar__week span{height:30px;display:flex;align-items:center;justify-content:center;color:#334155;font-weight:800;font-size:13px;}
.so-calendar__day{position:relative;width:38px;height:38px;border:0;background:transparent;color:#64748b;font-size:15px;border-radius:0;cursor:pointer;z-index:1;transition:color .15s ease,background .15s ease;}
.so-calendar__day:hover:not(:disabled){background:#eef6ff;color:#0f83d8;border-radius:9px;}
.so-calendar__day:disabled{color:#cbd5e1;cursor:default;}
.so-calendar__day.is-other{color:#cbd5e1;}
.so-calendar__day.is-in-range{background:#e8f6ff;color:#334155;}
.so-calendar__day.is-start,.so-calendar__day.is-end{background:#168eea!important;color:#fff!important;font-weight:800;border-radius:10px;box-shadow:0 8px 16px rgba(22,142,234,.24);}
.so-calendar__day.is-start:not(.is-end){border-radius:10px 0 0 10px;}
.so-calendar__day.is-end:not(.is-start){border-radius:0 10px 10px 0;}
.so-date-range-picker__footer{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #eef2f7;padding:14px 20px 16px;}
.so-date-range-picker__hint{color:#64748b;font-size:13px;font-weight:600;}
.so-date-range-picker__footer .so-btn{min-width:150px;height:46px;border-radius:10px;background:#0f8fe8;}
@media(max-width:920px){.so-period-panel{left:16px!important;right:16px!important;}.so-date-range-picker{width:100%;}.so-date-range-picker__body{grid-template-columns:1fr;}.so-date-range-picker__presets{border-right:0;border-bottom:1px solid #eef2f7;display:grid;grid-template-columns:repeat(2,1fr);}.so-date-range-picker__months{grid-template-columns:1fr;}.so-date-range-picker__usage{text-align:left;}.so-calendar__week,.so-calendar__days{grid-template-columns:repeat(7,minmax(32px,1fr));}.so-calendar__day{width:100%;}}

@media(max-width:920px){.so-period-panel{left:16px!important;right:16px!important;top:var(--so-period-top,80px)!important;}.so-date-range-picker{max-width:calc(100vw - 32px);}}

/* Super settings left-column save card */
.super-settings-save-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    margin-top: 10px;
    border: 1px solid var(--super-border);
    border-radius: 18px;
    background: rgba(248,251,255,.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.super-settings-save-card .super-btn {
    width: 100%;
    justify-content: center;
}
.super-settings-save-card span {
    color: var(--super-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}
@media (max-width: 1100px) {
    .super-settings-save-card {
        min-width: 260px;
        margin-top: 0;
    }
}

/* Shared checkbox component from the "Готовые КП" table */
.so-table input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.so-table input[type="checkbox"]:hover {
    border-color: #16c7a8;
    box-shadow: 0 0 0 4px rgba(22,199,168,.12);
}
.so-table input[type="checkbox"]:active {
    transform: scale(.88);
}
.so-table input[type="checkbox"]:checked {
    background: #16c7a8;
    border-color: #16c7a8;
    box-shadow: 0 6px 14px rgba(22,199,168,.28);
}
.so-table input[type="checkbox"]:checked:before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
    animation: soCheckPop .16s ease-out;
}
@keyframes soCheckPop {
    from { opacity: 0; transform: scale(.4) rotate(-45deg); }
    to { opacity: 1; transform: scale(1) rotate(-45deg); }
}
.super-checkline.so-table {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
}
.super-checkline.so-table input[type="checkbox"] {
    flex: 0 0 22px;
    margin: 0;
}
.super-checkline.so-table span {
    flex: 1 1 auto;
    min-width: 0;
}

/* Sent offers KPI adaptive fix 2026-06-27 */
.sent-offers-page .so-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:stretch;}
.sent-offers-page .so-kpi{display:grid;grid-template-columns:44px minmax(118px,auto) minmax(96px,1fr);align-items:center;gap:14px;min-width:0;padding:18px;}
.sent-offers-page .so-kpi>div{min-width:0;}
.sent-offers-page .so-kpi span:not(.so-kpi__icon){display:block;font-size:clamp(12px,1.05vw,13px);line-height:1.16;margin-bottom:7px;white-space:nowrap;}
.sent-offers-page .so-kpi strong{font-size:clamp(20px,1.85vw,26px);line-height:1.05;white-space:nowrap;letter-spacing:-.02em;}
.sent-offers-page .so-kpi em{display:none!important;}
.sent-offers-page .so-kpi svg{display:block;width:100%;min-width:84px;height:42px;margin-left:0;justify-self:stretch;align-self:end;}
@media(max-width:1440px){.sent-offers-page .so-kpi{grid-template-columns:44px minmax(104px,auto) minmax(86px,1fr);gap:12px}.sent-offers-page .so-kpi svg{width:100%;min-width:76px}}
@media(max-width:1280px){.sent-offers-page .so-kpi-grid{grid-template-columns:repeat(2,minmax(240px,1fr));}.sent-offers-page .so-kpi{grid-template-columns:44px minmax(118px,auto) minmax(100px,1fr)}.sent-offers-page .so-kpi svg{display:block;width:100%;min-width:96px}}
@media(max-width:920px){.sent-offers-page .so-kpi{grid-template-columns:44px minmax(112px,auto) minmax(90px,1fr);}.sent-offers-page .so-kpi svg{display:block;width:100%;min-width:86px}.sent-offers-page .so-kpi strong{font-size:24px}}
@media(max-width:620px){.sent-offers-page .so-kpi-grid{grid-template-columns:1fr}.sent-offers-page .so-kpi{grid-template-columns:44px minmax(112px,auto) minmax(100px,1fr);min-height:auto;padding:16px}.sent-offers-page .so-kpi strong{font-size:22px}}
@media(max-width:420px){.sent-offers-page .so-kpi{grid-template-columns:44px minmax(0,1fr);}.sent-offers-page .so-kpi svg{grid-column:1 / -1;height:38px;margin-top:8px;}}


/* Sent offers donut widgets adaptive fix 2026-06-27 */
.sent-offers-page .so-donut-wrap{grid-template-columns:minmax(110px,150px) minmax(0,1fr);gap:clamp(12px,1.2vw,18px);align-items:center;}
.sent-offers-page .so-donut{width:clamp(110px,9vw,150px);height:clamp(110px,9vw,150px);flex:0 0 auto;}
.sent-offers-page .so-donut:after{inset:clamp(28px,2.3vw,38px);}
.sent-offers-page .so-list{min-width:0;width:100%;}
.sent-offers-page .so-list-row{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-width:0;}
.sent-offers-page .so-list-row__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sent-offers-page .so-list-row__value{display:flex;flex-direction:column;align-items:flex-end;gap:2px;line-height:1.15;white-space:nowrap;}
.sent-offers-page .so-list-row__value span{display:block;}
@media(max-width:1440px){
    .sent-offers-page .so-donut-wrap{grid-template-columns:120px minmax(0,1fr);gap:14px;}
    .sent-offers-page .so-donut{width:120px;height:120px;}
    .sent-offers-page .so-donut:after{inset:30px;}
    .sent-offers-page .so-list-row{gap:7px;font-size:12px;}
}
@media(max-width:1320px){
    .sent-offers-page .so-donut-wrap{grid-template-columns:1fr;justify-items:center;align-items:start;}
    .sent-offers-page .so-list{width:100%;}
    .sent-offers-page .so-list-row{grid-template-columns:auto minmax(0,1fr) auto;}
    .sent-offers-page .so-list-row__value{flex-direction:row;gap:6px;align-items:baseline;}
}
@media(max-width:767px){
    .sent-offers-page .so-donut-wrap{grid-template-columns:120px minmax(0,1fr);justify-items:stretch;}
    .sent-offers-page .so-list-row__value{flex-direction:column;gap:2px;align-items:flex-end;}
}
@media(max-width:520px){
    .sent-offers-page .so-card-head{align-items:flex-start;flex-direction:column;}
    .sent-offers-page .so-card-head select{width:100%;}
    .sent-offers-page .so-donut-wrap{grid-template-columns:1fr;justify-items:center;}
    .sent-offers-page .so-list-row__value{flex-direction:row;gap:6px;}
}

/* Sent offers chart type icon buttons 2026-06-27 */
.sent-offers-page .so-chart-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;flex:0 0 auto;}
.sent-offers-page .so-chart-switch button{width:40px;height:36px;border:0;border-radius:9px;background:transparent;color:#64748b;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease;}
.sent-offers-page .so-chart-switch button:hover{background:#eef2ff;color:#2563eb;}
.sent-offers-page .so-chart-switch button.is-active{background:#2563eb;color:#fff;box-shadow:0 6px 14px rgba(37,99,235,.22);}
.sent-offers-page .so-chart-switch svg{width:22px;height:22px;display:block;fill:currentColor;}
.sent-offers-page .so-chart svg .so-chart-bar{transition:opacity .15s ease;}
.sent-offers-page .so-chart svg .so-chart-bar:hover{opacity:.86;}
@media(max-width:520px){.sent-offers-page .so-chart-switch{width:100%;justify-content:flex-end}.sent-offers-page .so-chart-switch button{flex:0 0 42px}}


/* Sent offers KPI: bottom full-width sparklines */
.sent-offers-page .so-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:stretch;}
.sent-offers-page .so-kpi{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;grid-template-rows:auto 58px!important;align-items:center!important;column-gap:16px!important;row-gap:12px!important;min-height:150px!important;padding:20px 20px 16px!important;}
.sent-offers-page .so-kpi__icon{grid-column:1;grid-row:1;}
.sent-offers-page .so-kpi>div{grid-column:2;grid-row:1;min-width:0;}
.sent-offers-page .so-kpi span:not(.so-kpi__icon){font-size:14px!important;line-height:1.2!important;margin-bottom:8px!important;white-space:nowrap!important;}
.sent-offers-page .so-kpi strong{font-size:clamp(24px,2vw,30px)!important;line-height:1.05!important;white-space:nowrap!important;letter-spacing:-.03em!important;}
.sent-offers-page .so-kpi svg{grid-column:1 / -1!important;grid-row:2!important;display:block!important;width:100%!important;min-width:0!important;height:58px!important;margin:0!important;align-self:end!important;justify-self:stretch!important;}
@media(max-width:1280px){.sent-offers-page .so-kpi-grid{grid-template-columns:repeat(2,minmax(250px,1fr));}.sent-offers-page .so-kpi strong{font-size:28px!important;}}
@media(max-width:620px){.sent-offers-page .so-kpi-grid{grid-template-columns:1fr;}.sent-offers-page .so-kpi{min-height:142px!important;padding:18px 18px 14px!important;}.sent-offers-page .so-kpi strong{font-size:26px!important;}}
.sent-offers-page .so-kpi svg [data-so-spark-hover-zone]{cursor:crosshair;}
.sent-offers-page .so-kpi-tooltip{position:absolute;z-index:15;min-width:112px;max-width:180px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:11px;background:rgba(255,255,255,.96);box-shadow:0 12px 28px rgba(15,23,42,.14);color:#0f172a;font-size:12px;line-height:1.25;pointer-events:none;transform:translate(-50%,-100%);white-space:nowrap;opacity:0;transition:opacity .12s ease;}
.sent-offers-page .so-kpi-tooltip.is-visible{opacity:1;}
.sent-offers-page .so-kpi-tooltip__date{display:block;color:#64748b;font-weight:700;margin-bottom:3px;}
.sent-offers-page .so-kpi-tooltip__value{display:block;font-size:14px;font-weight:800;color:#0f172a;}
.sent-offers-page .so-kpi-tooltip:after{content:"";position:absolute;left:50%;bottom:-6px;width:10px;height:10px;background:rgba(255,255,255,.96);border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;transform:translateX(-50%) rotate(45deg);}
