/* My account — Zenix-style profile strip + footer nav-underline tabs */
.noc-account-panel .card-header {
	background: transparent;
	border-bottom: 1px solid var(--bs-border-color);
}
.noc-account-panel .card-header .card-title {
	letter-spacing: 0.01em;
}
.noc-account-dl {
	font-size: 0.95rem;
}
#noc-overview-profile-extras .row,
.noc-account-dl .row {
	--bs-gutter-x: 0.75rem;
}
.noc-account-services-table th {
	white-space: nowrap;
}
.noc-account-profile-card .card-body {
	min-height: 0;
}

/* Profile hero avatar — square crop + circle mask; object-fit keeps landscape SVG uncropped */
.noc-account-profile-card .noc-account-profile-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 6rem;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50%;
	background: var(--bs-secondary-bg);
	box-sizing: border-box;
}
.noc-account-profile-card .noc-account-profile-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center;
}

.noc-account-profile-card .nav-underline .nav-link {
	color: var(--bs-body-color);
	border-bottom-width: 3px;
}

.noc-account-profile-card .nav-underline .nav-link:hover {
	color: var(--bs-primary);
}

.noc-account-profile-card .nav-underline .nav-link.active {
	color: var(--bs-primary);
	border-bottom-color: var(--bs-primary);
	font-weight: 600;
}

.noc-account-doc .card-body code {
	font-size: 0.85em;
	word-break: break-all;
}
.noc-account-doc__curl {
	margin-top: 0.35rem;
	padding: 0.85rem 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-all;
	color: var(--bs-body-color);
	background: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius, 0.375rem);
}
@media (min-width: 1200px) {
	.noc-account-doc__curl {
		font-size: 1.02rem;
		padding: 0.95rem 1.1rem;
	}
}

#noc-apikey-table .btn-icon {
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* API key modals — align with server-detail management modals (borderless + icon header) */
.noc-apikey-modal__icon {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.noc-apikey-modal .modal-content {
	background: var(--bs-body-bg);
	color: var(--bs-body-color);
}
.noc-apikey-modal .modal-header .modal-title,
.noc-apikey-modal .modal-header h5 {
	color: var(--bs-emphasis-color);
}
.noc-apikey-modal .modal-header p.text-muted,
.noc-apikey-modal .form-text {
	color: var(--bs-secondary-color) !important;
}
.noc-apikey-modal .form-label,
.noc-apikey-modal label.form-label {
	color: var(--bs-emphasis-color);
}
/* Dedicated servers: checkboxes in a fixed-width panel (no bootstrap-select) */
.noc-apikey-modal .noc-apikey-server-list {
	width: 100%;
	max-width: 100%;
	max-height: 14rem;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0.5rem 0.6rem;
	font-size: 0.9rem;
	line-height: 1.35;
	background-color: var(--bs-body-bg);
	color: var(--bs-body-color);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius, 0.375rem);
	box-sizing: border-box;
}
.noc-apikey-modal .noc-apikey-server-list__row {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
}
.noc-apikey-modal .noc-apikey-server-list__row .form-check-input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}
.noc-apikey-modal .noc-apikey-server-list__row .form-check-label {
	cursor: pointer;
	word-break: break-word;
}
.noc-apikey-modal .noc-apikey-server-list:focus-within {
	border-color: var(--bs-primary);
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.2);
}
#noc-create-caps,
#noc-scope-caps {
	max-height: 15rem;
	overflow: auto;
	border: 1px solid var(--bs-border-color) !important;
	background: var(--bs-tertiary-bg) !important;
	color: var(--bs-body-color);
}
#noc-create-caps .form-check,
#noc-scope-caps .form-check {
	margin-bottom: 0.4rem;
}
#noc-create-caps .form-check-label,
#noc-scope-caps .form-check-label {
	color: var(--bs-body-color);
	font-size: 0.9rem;
	line-height: 1.35;
}
#noc-create-caps .form-check-input,
#noc-scope-caps .form-check-input {
	margin-top: 0.2rem;
}

/* Invoices & credit — list scrolls, credit column stays compact and top-aligned */
.noc-account-billing-max {
	max-width: 72rem;
}
.noc-account-credit-floating {
	align-self: start;
}
.noc-invoices-scroll {
	max-height: min(22rem, 55vh);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.noc-invoices-scroll .table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--bs-light);
	box-shadow: 0 1px 0 var(--bs-border-color);
}
.noc-billing-sub-scroll {
	max-height: min(16rem, 40vh);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
#nocBillingSubTabContent .table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--bs-light);
	box-shadow: 0 1px 0 var(--bs-border-color);
}
#noc-invoices-err,
#noc-billing-pm-err,
#noc-billing-tx-err {
	font-size: 0.9rem;
}

/* Overview — custom fields readable, not a wall of numbers */
.noc-account-overview-customfields + .noc-account-cf-row {
	border-top-color: var(--bs-border-color) !important;
}
#noc-overview-profile-extras .noc-account-cf-row {
	align-items: baseline;
}

/* Overview — services table scrolls; cards are not h-100 so columns don’t stretch */
.noc-account-overview .noc-account-overview-noc {
	max-width: 100%;
}
.noc-overview-services-scroll {
	max-height: min(17.5rem, 42vh);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.noc-overview-services-scroll .table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--bs-light);
	color: var(--bs-emphasis-color);
	box-shadow: 0 1px 0 var(--bs-border-color);
}
