/* Onefold Agency ERP: client portal frame (header, navigation, home, updates, payments). */

.ofc {
	--ofc-violet: #6C5CE7;
	--ofc-blue: #00C2FF;
	--ofc-ink: #0B1020;
	--ofc-muted: #5A6075;
	--ofc-line: #E3E6F0;
	--ofc-soft: #F7F8FC;
	--ofc-green: #0F7B4A;
	--ofc-red: #B0263F;
	--ofc-grad: linear-gradient(135deg, #6C5CE7 0%, #3D8BF2 60%, #00C2FF 100%);
	--ofc-shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 12px 32px rgba(11, 16, 32, 0.06);
	--ofc-radius: 20px;
	max-width: 1120px;
	margin-inline: auto;
	gap: 18px;
	color: var(--ofc-ink);
}

.ofc .ofc-icon {
	flex: none;
}

.ofc-muted {
	color: var(--ofc-muted);
}

.ofc-small {
	font-size: 0.8125rem;
}

.ofc-h2 {
	margin: 6px 0 -4px !important;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ofc-card {
	padding: 18px 20px;
	border: 1px solid var(--ofc-line);
	border-radius: var(--ofc-radius);
	background: #FFFFFF;
	box-shadow: var(--ofc-shadow);
}

.ofc-preview {
	padding: 10px 16px;
	border-radius: 12px;
	background: #FFF4D6;
	color: #6B4E00;
	font-weight: 600;
}

.ofc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--ofc-grad);
	color: #FFFFFF !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
}

.ofc-btn:focus-visible {
	outline: 3px solid rgba(108, 92, 231, 0.35);
	outline-offset: 2px;
}

.ofc-btn--sm {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 0.875rem;
}

.ofc-link {
	color: #5B4BD8;
	font-size: 0.875rem;
	font-weight: 600;
}

/* Header */
.ofc-top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 20px 22px;
	overflow: hidden;
	border-radius: 24px;
	background:
		radial-gradient(420px 180px at 100% 0%, rgba(0, 194, 255, 0.45), transparent 65%),
		var(--ofc-grad);
	color: #FFFFFF;
	box-shadow: 0 16px 36px rgba(108, 92, 231, 0.25);
}

.ofc-who {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ofc-avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.ofc-eyebrow {
	margin: 0 !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.88;
}

.ofc .ofc-hello {
	margin: 2px 0 0 !important;
	overflow: hidden;
	color: #FFFFFF;
	font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ofc-bell {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #FFFFFF !important;
	text-decoration: none;
}

.ofc-bell:hover,
.ofc-bell:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

.ofc-bell:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.ofc-bell__n {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border: 2px solid #FFFFFF;
	border-radius: 999px;
	background: #E5484D;
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.ofc-bell.has-new .ofc-icon {
	animation: ofc-ring 2.4s ease-in-out 1;
	transform-origin: 50% 10%;
}

@keyframes ofc-ring {
	0%, 60%, 100% { transform: rotate(0); }
	10%, 30% { transform: rotate(12deg); }
	20%, 40% { transform: rotate(-12deg); }
}

/* Navigation */
.ofc-nav {
	position: relative;
	display: flex;
	gap: 6px;
	padding: 6px;
	border: 1px solid var(--ofc-line);
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: var(--ofc-shadow);
}

.ofc-nav__item {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 12px;
	border-radius: 13px;
	color: var(--ofc-ink) !important;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	list-style: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.ofc-nav__item::-webkit-details-marker {
	display: none;
}

.ofc-nav__item:hover {
	background: var(--ofc-soft);
}

.ofc-nav__item:focus-visible {
	outline: 3px solid rgba(108, 92, 231, 0.35);
	outline-offset: 1px;
}

.ofc-nav__item.is-on,
.ofc-more.is-on > .ofc-nav__item {
	background: var(--ofc-grad);
	color: #FFFFFF !important;
	box-shadow: 0 8px 18px rgba(108, 92, 231, 0.28);
}

.ofc-nav__icon {
	position: relative;
	display: inline-flex;
}

.ofc-dotn {
	position: absolute;
	top: -7px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border: 2px solid #FFFFFF;
	border-radius: 999px;
	background: #E5484D;
	color: #FFFFFF;
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 14px;
	text-align: center;
}

.ofc-more {
	position: relative;
	display: flex;
	flex: 1;
}

.ofc-more > .ofc-nav__item {
	width: 100%;
}

.ofc-more__menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 10px);
	right: 0;
	display: grid;
	gap: 2px;
	width: 240px;
	padding: 8px;
	border: 1px solid var(--ofc-line);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 20px 50px rgba(11, 16, 32, 0.16);
}

.ofc-more__menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px;
	border-radius: 11px;
	color: var(--ofc-ink) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.ofc-more__menu a:hover,
.ofc-more__menu a:focus-visible {
	background: var(--ofc-soft);
}

.ofc-more__menu .ofc-icon {
	color: var(--ofc-violet);
}

/* Home: what to do now */
.ofc-todo {
	display: grid;
	gap: 10px;
}

.ofc-nav__label--short {
	display: none;
}

.ofc-actions {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ofc-action {
	--tone: var(--ofc-violet);
	--tone-bg: #EDEBFF;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--ofc-line);
	border-left: 4px solid var(--tone);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: var(--ofc-shadow);
}

.ofc-action--red { --tone: #D0364E; --tone-bg: #FCECEE; }
.ofc-action--blue { --tone: #0B7BC2; --tone-bg: #E6F4FF; }

.ofc-action__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: var(--tone-bg);
	color: var(--tone);
}

.ofc-action__text {
	display: grid;
	flex: 1;
	gap: 2px;
	min-width: 0;
}

.ofc-action__text span {
	color: var(--ofc-muted);
	font-size: 0.875rem;
}

.ofc-allset {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid #BFE8D0;
	border-radius: 16px;
	background: #EEFAF3;
	color: #0D5B33;
}

.ofc-allset p {
	margin: 0 !important;
}

/* Home: summaries */
.ofc-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ofc-stat {
	display: grid;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--ofc-line);
	border-radius: 18px;
	background: #FFFFFF;
	color: var(--ofc-ink) !important;
	text-decoration: none !important;
	box-shadow: var(--ofc-shadow);
}

.ofc-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 4px;
	border-radius: 12px;
	background: #EDEBFF;
	color: var(--ofc-violet);
}

.ofc-stat.is-due .ofc-stat__icon {
	background: #FFF4D6;
	color: #8A5A00;
}

.ofc-stat__num {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.ofc-stat__num--money {
	font-size: 1.375rem;
}

.ofc-stat__label {
	color: var(--ofc-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

/* Project cards from Onefold Agency, a little tidier inside the frame */
.ofc .ofp-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 14px;
}

.ofc .ofp-card {
	border: 1px solid var(--ofc-line);
	border-radius: var(--ofc-radius);
	box-shadow: var(--ofc-shadow);
}

.ofc .ofp-row h3 {
	min-width: 0;
	font-size: 1.125rem;
	line-height: 1.3;
}

.ofc-main {
	display: grid;
	gap: 16px;
	min-width: 0;
}

/* Updates */
.ofc-feed {
	display: grid;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--ofc-line);
	border-radius: var(--ofc-radius);
	background: #FFFFFF;
	list-style: none;
	box-shadow: var(--ofc-shadow);
}

.ofc-feed__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 12px;
	border-radius: 14px;
}

.ofc-feed__item + .ofc-feed__item {
	border-top: 1px solid var(--ofc-line);
	border-radius: 0;
}

.ofc-feed__item.is-new {
	background: #F6F4FF;
}

.ofc-feed__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #EDEBFF;
	color: var(--ofc-violet);
}

.ofc-feed__icon--paid,
.ofc-feed__icon--done { background: #DDF5E7; color: var(--ofc-green); }
.ofc-feed__icon--invoice { background: #E6F4FF; color: #0B7BC2; }
.ofc-feed__icon--support { background: #FFF4D6; color: #8A5A00; }

.ofc-feed__text {
	display: grid;
	gap: 3px;
	min-width: 0;
	color: var(--ofc-ink) !important;
	text-decoration: none !important;
}

.ofc-feed__text > span:first-child {
	font-weight: 600;
	line-height: 1.4;
}

.ofc-new {
	color: var(--ofc-violet);
}

/* Payments */
.ofc-due {
	padding: 22px 24px;
	border-radius: 24px;
	background:
		radial-gradient(380px 160px at 100% 0%, rgba(0, 194, 255, 0.45), transparent 65%),
		var(--ofc-grad);
	color: #FFFFFF;
	box-shadow: 0 16px 36px rgba(108, 92, 231, 0.25);
}

.ofc-due.is-zero {
	background: linear-gradient(135deg, #0F7B4A, #1BA36A);
	box-shadow: 0 16px 36px rgba(15, 123, 74, 0.2);
}

.ofc-due p {
	margin: 0 !important;
}

.ofc-due__label {
	font-size: 0.875rem;
	font-weight: 700;
	opacity: 0.9;
}

.ofc-due__amount {
	margin: 4px 0 !important;
	font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.ofc-due__sub {
	font-size: 0.875rem;
	opacity: 0.9;
}

.ofc-bills {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ofc-bill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--ofc-line);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: var(--ofc-shadow);
}

.ofc-bill.is-late {
	border-color: #F3C6CE;
}

.ofc-bill__main,
.ofc-bill__side {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.ofc-bill__side {
	text-align: right;
}

.ofc-bill__no {
	font-weight: 800;
}

.ofc-bill__title,
.ofc-bill__due {
	color: var(--ofc-muted);
	font-size: 0.875rem;
}

.ofc-bill.is-late .ofc-bill__due {
	color: var(--ofc-red);
	font-weight: 700;
}

.ofc-bill__amount {
	font-size: 1.25rem;
	font-weight: 800;
	white-space: nowrap;
}

.ofc-howto {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--ofc-line);
	border-radius: var(--ofc-radius);
	background: #FFFFFF;
	list-style: none;
	box-shadow: var(--ofc-shadow);
}

.ofc-howto li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.ofc-howto li > span {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ofc-grad);
	color: #FFFFFF;
	font-size: 0.875rem;
	font-weight: 800;
}

.ofc-methods {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 14px;
}

.ofc-method {
	--brand: #6C5CE7;
	--brand-bg: #EDEBFF;
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--ofc-line);
	border-top: 4px solid var(--brand);
	border-radius: var(--ofc-radius);
	background: #FFFFFF;
	box-shadow: var(--ofc-shadow);
}

.ofc-method--bkash { --brand: #E2136E; --brand-bg: #FDE7F1; }
.ofc-method--nagad { --brand: #F26722; --brand-bg: #FEEDE3; }
.ofc-method--rocket { --brand: #8C3494; --brand-bg: #F4E8F5; }
.ofc-method--bank { --brand: #0B5A8C; --brand-bg: #E6F4FF; }
.ofc-method--cash { --brand: #0F7B4A; --brand-bg: #DDF5E7; }
.ofc-method--intl { --brand: #3D8BF2; --brand-bg: #E8F1FE; }

.ofc-method__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ofc-method__logo {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--brand-bg);
	color: var(--brand);
}

.ofc .ofc-method__name {
	margin: 0 !important;
	color: var(--brand);
	font-size: 1.125rem;
	font-weight: 800;
}

.ofc-method__tag {
	color: var(--ofc-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.ofc-method__rows {
	display: grid;
	gap: 8px;
	margin: 0;
}

.ofc-copyrow {
	display: grid;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--ofc-soft);
}

.ofc-copyrow dt {
	color: var(--ofc-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ofc-copyrow dd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
}

.ofc-copyrow__value {
	min-width: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	word-break: break-word;
	font-variant-numeric: tabular-nums;
}

.ofc-copy {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid var(--ofc-line);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--brand, #6C5CE7);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
}

.ofc-copy .ofc-icon {
	width: 16px;
	height: 16px;
}

.ofc-copy:hover {
	border-color: var(--brand, #6C5CE7);
}

.ofc-copy:focus-visible {
	outline: 3px solid rgba(108, 92, 231, 0.3);
	outline-offset: 1px;
}

.ofc-copy.is-done {
	border-color: #BFE8D0;
	background: #EEFAF3;
	color: var(--ofc-green);
}

.ofc-method__note {
	margin: 0 !important;
	color: var(--ofc-muted);
	font-size: 0.875rem;
}

.ofc-proof {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px dashed #C9C2F5;
	border-radius: var(--ofc-radius);
	background: #F6F4FF;
	color: #3F34A8;
}

.ofc-proof p {
	flex: 1;
	margin: 0 !important;
	color: var(--ofc-ink);
}

/* Quotes and invoices table: cards on phones */
@media (max-width: 640px) {
	.ofc .ofp-tablewrap {
		overflow: visible;
	}

	.ofc .ofp-docs,
	.ofc .ofp-docs tbody,
	.ofc .ofp-docs tr,
	.ofc .ofp-docs td {
		display: block;
		width: 100%;
	}

	.ofc .ofp-docs thead {
		display: none;
	}

	.ofc .ofp-docs tr {
		margin: 0 0 10px;
		padding: 12px 14px;
		border: 1px solid var(--ofc-line);
		border-radius: 14px;
		background: var(--ofc-soft);
	}

	.ofc .ofp-docs td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 5px 0;
		border: 0;
		text-align: right !important;
	}

	.ofc .ofp-docs td:first-child {
		display: block;
		padding-bottom: 8px;
		text-align: left !important;
	}

	.ofc .ofp-docs td[data-label]:not(:first-child)::before {
		content: attr(data-label);
		color: var(--ofc-muted);
		font-size: 0.8125rem;
		font-weight: 600;
		text-align: left;
	}
}

/* Phones */
@media (max-width: 720px) {
	.ofc {
		gap: 14px;
	}

	.ofc-top {
		padding: 16px;
		border-radius: 20px;
	}

	.ofc-avatar {
		width: 44px;
		height: 44px;
		font-size: 1rem;
	}

	.ofc-bell {
		width: 44px;
		height: 44px;
	}

	.ofc-nav {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 4px;
		padding: 5px;
	}

	.ofc-nav__item {
		flex-direction: column;
		gap: 4px;
		min-height: 62px;
		padding: 8px 2px;
		font-size: 0.6875rem;
		line-height: 1.1;
		text-align: center;
	}

	.ofc-nav__label {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ofc-nav__item:has(.ofc-nav__label--short) .ofc-nav__label:not(.ofc-nav__label--short) {
		display: none;
	}

	.ofc-nav__label--short {
		display: block;
	}

	.ofc-eyebrow__date {
		display: none;
	}

	.ofc-more__menu {
		position: fixed;
		z-index: 100001;
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		padding: 10px;
		border-radius: 20px;
		box-shadow: 0 -10px 60px rgba(11, 16, 32, 0.28);
	}

	.ofc-more__menu a {
		padding: 14px;
		font-size: 1rem;
	}

	.ofc-more[open]::before {
		content: "";
		position: fixed;
		z-index: 100000;
		inset: 0;
		background: rgba(11, 16, 32, 0.35);
	}

	.ofc-action {
		flex-wrap: wrap;
		gap: 12px;
	}

	.ofc-action .ofc-btn {
		width: 100%;
	}

	.ofc-stats {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.ofc-stat:first-child {
		grid-column: 1 / -1;
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: 12px;
	}

	.ofc-stat:first-child .ofc-stat__icon {
		grid-row: span 2;
		margin: 0;
	}

	.ofc-stat {
		padding: 14px;
	}

	.ofc-stat__num {
		font-size: 1.5rem;
	}

	.ofc-stat__num--money {
		font-size: 1.125rem;
	}

	.ofc-bill {
		flex-direction: column;
		align-items: stretch;
	}

	.ofc-bill__side {
		display: flex;
		align-items: center;
		justify-content: space-between;
		text-align: left;
	}

	.ofc-proof {
		flex-wrap: wrap;
	}

	.ofc-proof .ofc-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ofc-bell.has-new .ofc-icon {
		animation: none;
	}

	.ofc-nav__item {
		transition: none;
	}
}

/* Payment proofs ("I have paid"). */
.ofc-bill__links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	justify-content: flex-end;
}

.ofc-proofs {
	display: grid;
	gap: 14px;
	scroll-margin-top: 90px;
}

.ofc-alert {
	margin: 0 !important;
	padding: 12px 16px;
	border-radius: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.ofc-alert.is-ok {
	background: #DDF5E7;
	color: #0D5B33;
}

.ofc-alert.is-error {
	background: #FCECEE;
	color: #8E1F33;
}

.ofc-paid {
	border: 1px solid var(--ofc-line);
	border-radius: var(--ofc-radius);
	background: #FFFFFF;
	box-shadow: var(--ofc-shadow);
	overflow: hidden;
}

.ofc-paid__summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
}

.ofc-paid__summary::-webkit-details-marker {
	display: none;
}

.ofc-paid__summary::after {
	content: "";
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-right: 2px solid var(--ofc-muted);
	border-bottom: 2px solid var(--ofc-muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.ofc-paid[open] .ofc-paid__summary::after {
	transform: rotate(-135deg);
}

.ofc-paid__summary > span:nth-child(2) {
	display: grid;
	gap: 2px;
}

.ofc-paid__summary > span:nth-child(2) span {
	color: var(--ofc-muted);
	font-size: 0.875rem;
}

.ofc-paid__icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 14px;
	background: var(--ofc-grad);
	color: #FFFFFF;
}

.ofc-form {
	padding: 4px 20px 20px;
	border-top: 1px solid var(--ofc-line);
}

.ofc-form fieldset {
	display: grid;
	gap: 14px;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ofc-form fieldset[disabled] {
	opacity: 0.6;
}

.ofc-field {
	display: grid;
	gap: 6px;
	margin: 0 !important;
	min-width: 0;
}

.ofc-field label,
.ofc-label {
	font-size: 0.875rem;
	font-weight: 600;
}

.ofc-form input[type="text"],
.ofc-form input[type="date"],
.ofc-form select,
.ofc-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--ofc-line);
	border-radius: 12px;
	background: var(--ofc-soft);
	color: var(--ofc-ink);
	font-size: 16px;
	box-sizing: border-box;
}

.ofc-form input:focus,
.ofc-form select:focus,
.ofc-form textarea:focus {
	outline: 3px solid rgba(108, 92, 231, 0.25);
	border-color: var(--ofc-violet);
	background: #FFFFFF;
}

.ofc-form input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1.5px dashed #C9CEE0;
	border-radius: 12px;
	background: var(--ofc-soft);
	font-size: 0.875rem;
	box-sizing: border-box;
}

.ofc-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ofc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ofc-chip {
	position: relative;
	cursor: pointer;
}

.ofc-chip input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.ofc-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	border: 1.5px solid var(--ofc-line);
	border-radius: 999px;
	background: #FFFFFF;
	font-weight: 600;
	font-size: 0.9375rem;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ofc-chip input:checked + span {
	border-color: var(--ofc-violet);
	background: #EDEBFF;
	color: #4B3BC9;
}

.ofc-chip input:focus-visible + span {
	outline: 3px solid rgba(108, 92, 231, 0.35);
}

.ofc-form .ofc-btn {
	justify-self: start;
	min-height: 46px;
	padding-inline: 24px;
	cursor: pointer;
}

.ofc-prooflist {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ofc-proofrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--ofc-line);
	border-radius: 16px;
	background: #FFFFFF;
}

.ofc-proofrow > div:first-child {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.ofc-proofrow > div:first-child span {
	overflow-wrap: anywhere;
}

.ofc-proofrow__why {
	color: var(--ofc-red);
	font-size: 0.875rem;
}

.ofc-proofrow__side {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
}

.ofc-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
}

.ofc-pill--pending { background: #FFF4D6; color: #6B4E00; }
.ofc-pill--approved { background: #DDF5E7; color: #0D5B33; }
.ofc-pill--rejected { background: #FCECEE; color: #8E1F33; }

@media (max-width: 640px) {
	.ofc-row2 {
		grid-template-columns: 1fr;
	}

	.ofc-form {
		padding: 4px 16px 18px;
	}

	.ofc-paid__summary {
		padding: 14px 16px;
	}

	.ofc-form .ofc-btn {
		justify-self: stretch;
	}

	.ofc-proofrow {
		flex-direction: column;
		align-items: flex-start;
	}

	.ofc-bill__links {
		justify-content: flex-start;
	}
}
