:root {
	--ubos-navy: #082b67;
	--ubos-navy-2: #061d47;
	--ubos-orange: #ff6a00;
	--ubos-orange-2: #ff8a32;
	--ubos-green: #159a67;
	--ubos-red: #d83c4a;
	--ubos-blue: #2676e5;
	--ubos-yellow: #df9b12;
	--ubos-bg: #f3f6fa;
	--ubos-card: #ffffff;
	--ubos-ink: #162136;
	--ubos-muted: #6b7890;
	--ubos-line: #e1e7f0;
	--ubos-soft-navy: #edf3fc;
	--ubos-soft-orange: #fff1e7;
	--ubos-soft-green: #e8f7f1;
	--ubos-radius: 18px;
	--ubos-shadow: 0 10px 35px rgba(8, 43, 103, .06);
}

.ubos-fullscreen-page,
.ubos-fullscreen-page body {
	margin: 0;
	background: var(--ubos-bg);
}

.ubos-fullscreen-page #wpadminbar {
	display: none !important;
}

.ubos-fullscreen-page {
	margin-top: 0 !important;
}

.ubos-fullscreen-page *,
.ubos-fullscreen-page *::before,
.ubos-fullscreen-page *::after {
	box-sizing: border-box;
}

.ubos-fullscreen-page button,
.ubos-fullscreen-page input,
.ubos-fullscreen-page select,
.ubos-fullscreen-page textarea {
	font: inherit;
}

.ubos-fullscreen-page button {
	-webkit-tap-highlight-color: transparent;
}

.ubos-svg {
	width: 21px;
	height: 21px;
	flex: 0 0 auto;
}

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

.ubos-eyebrow {
	margin: 0 0 8px;
	color: var(--ubos-orange);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1.3px;
	text-transform: uppercase;
}

.ubos-primary,
.ubos-secondary,
.ubos-danger,
.ubos-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 16px;
	border: 0;
	border-radius: 11px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ubos-primary {
	background: linear-gradient(135deg, var(--ubos-orange), var(--ubos-orange-2));
	color: #fff;
	box-shadow: 0 9px 22px rgba(255, 106, 0, .22);
}

.ubos-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(255, 106, 0, .28);
}

.ubos-secondary {
	border: 1px solid var(--ubos-line);
	background: #fff;
	color: var(--ubos-navy);
}

.ubos-secondary:hover,
.ubos-ghost:hover {
	background: var(--ubos-soft-navy);
}

.ubos-danger {
	background: #fff0f1;
	color: var(--ubos-red);
}

.ubos-ghost {
	background: transparent;
	color: var(--ubos-navy);
}

.ubos-primary:disabled,
.ubos-secondary:disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

/* Login */
.ubos-login-shell {
	display: grid;
	grid-template-columns: minmax(440px, 1.05fr) minmax(440px, .95fr);
	min-height: 100vh;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ubos-login-showcase {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	padding: 44px clamp(40px, 6vw, 90px);
	background:
		radial-gradient(circle at 82% 18%, rgba(255, 106, 0, .24), transparent 32%),
		radial-gradient(circle at 15% 82%, rgba(44, 111, 207, .30), transparent 36%),
		linear-gradient(145deg, #061d47 0%, #082b67 54%, #0e428f 100%);
	color: #fff;
}

.ubos-login-showcase::before,
.ubos-login-showcase::after {
	position: absolute;
	content: "";
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 50%;
}

.ubos-login-showcase::before {
	width: 520px;
	height: 520px;
	right: -270px;
	top: 8%;
}

.ubos-login-showcase::after {
	width: 720px;
	height: 720px;
	left: -450px;
	bottom: -440px;
}

.ubos-login-brand {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 18px;
}

.ubos-login-brand img {
	width: 188px;
	height: auto;
}

.ubos-login-brand span {
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 1.5px;
}

.ubos-login-copy {
	position: relative;
	z-index: 1;
	max-width: 630px;
	padding: 70px 0;
}

.ubos-login-copy h1 {
	margin: 0;
	max-width: 620px;
	font-size: clamp(40px, 4.5vw, 68px);
	line-height: 1.04;
	letter-spacing: -2.8px;
}

.ubos-login-copy > p:not(.ubos-eyebrow) {
	max-width: 560px;
	margin: 24px 0;
	color: rgba(255, 255, 255, .73);
	font-size: 17px;
	line-height: 1.7;
}

.ubos-login-features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.ubos-login-features span {
	padding: 10px 13px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	font-size: 12px;
	font-weight: 750;
	backdrop-filter: blur(8px);
}

.ubos-login-showcase > small {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, .48);
}

.ubos-login-panel {
	display: grid;
	place-items: center;
	padding: 45px;
	background: #f7f9fc;
}

.ubos-login-card {
	width: min(440px, 100%);
	padding: 38px;
	border: 1px solid #e4e9f1;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 28px 70px rgba(8, 43, 103, .10);
}

.ubos-login-card h2 {
	margin: 0 0 9px;
	color: var(--ubos-navy);
	font-size: 28px;
	letter-spacing: -.6px;
}

.ubos-login-card .ubos-muted {
	margin: 0 0 26px;
	font-size: 14px;
}

.ubos-login-mobile-logo {
	display: none;
	width: 180px;
	margin-bottom: 28px;
}

.ubos-login-card form p {
	margin: 0 0 15px;
}

.ubos-login-card label {
	display: block;
	margin-bottom: 7px;
	color: var(--ubos-ink);
	font-size: 13px;
	font-weight: 800;
}

.ubos-login-card input[type="text"],
.ubos-login-card input[type="password"] {
	width: 100%;
	height: 48px;
	padding: 0 13px;
	border: 1px solid var(--ubos-line);
	border-radius: 11px;
	outline: 0;
	background: #fbfcfe;
	color: var(--ubos-ink);
}

.ubos-login-card input:focus {
	border-color: var(--ubos-blue);
	box-shadow: 0 0 0 3px rgba(38, 118, 229, .10);
}

.ubos-login-card .forgetmenot {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ubos-login-card .forgetmenot label {
	display: inline;
	margin: 0;
	color: var(--ubos-muted);
	font-weight: 600;
}

.ubos-login-card .login-submit input {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--ubos-orange), var(--ubos-orange-2));
	color: #fff;
	font-weight: 850;
	cursor: pointer;
	box-shadow: 0 11px 25px rgba(255, 106, 0, .22);
}

.ubos-forgot-link {
	display: block;
	margin-top: 12px;
	color: var(--ubos-navy);
	font-size: 13px;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
}

.ubos-login-security {
	display: flex;
	gap: 11px;
	align-items: center;
	margin-top: 26px;
	padding: 13px;
	border: 1px solid #dceee6;
	border-radius: 12px;
	background: #f2fbf7;
}

.ubos-login-security p {
	margin: 0 !important;
}

.ubos-login-security strong,
.ubos-login-security small {
	display: block;
}

.ubos-login-security strong {
	color: #176c4d;
	font-size: 12px;
}

.ubos-login-security small {
	margin-top: 3px;
	color: #5b7b6e;
	font-size: 10px;
}

.ubos-login-status,
.ubos-access-denied {
	width: min(500px, calc(100% - 30px));
	margin: 10vh auto;
	padding: 40px;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--ubos-shadow);
	text-align: center;
}

.ubos-login-status img {
	width: 210px;
}

.ubos-login-status a {
	display: inline-block;
	margin-top: 10px;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--ubos-orange);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

/* App shell */
.ubos-app {
	min-height: 100vh;
	background: var(--ubos-bg);
	color: var(--ubos-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ubos-sidebar {
	position: fixed;
	z-index: 60;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	width: 272px;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 10%, rgba(255, 106, 0, .13), transparent 26%),
		linear-gradient(180deg, var(--ubos-navy-2), var(--ubos-navy));
	color: #fff;
}

.ubos-brand {
	flex: 0 0 auto;
	padding: 24px 22px 19px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ubos-brand img {
	display: block;
	width: 184px;
	max-height: 61px;
	object-fit: contain;
	object-position: left center;
}

.ubos-brand span {
	display: inline-block;
	margin: 8px 0 0 46px;
	color: rgba(255, 255, 255, .54);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 2px;
}

.ubos-nav {
	flex: 1;
	overflow-y: auto;
	padding: 13px 14px 20px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.ubos-nav > p {
	margin: 19px 12px 7px;
	color: rgba(255, 255, 255, .38);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 1.5px;
}

.ubos-nav-button {
	position: relative;
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	margin: 2px 0;
	padding: 11px 13px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #bac8db;
	font-size: 13px;
	font-weight: 650;
	text-align: left;
	cursor: pointer;
}

.ubos-nav-button:hover {
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.ubos-nav-button.active {
	background: linear-gradient(90deg, rgba(255, 106, 0, .24), rgba(255, 255, 255, .08));
	color: #fff;
	box-shadow: inset 3px 0 0 var(--ubos-orange);
}

.ubos-nav-button.active .ubos-svg {
	color: var(--ubos-orange);
}

.ubos-sidebar-footer {
	flex: 0 0 auto;
	padding: 14px;
	border-top: 1px solid rgba(255, 255, 255, .09);
	background: rgba(0, 0, 0, .08);
}

.ubos-mini-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px 13px;
}

.ubos-mini-user > span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--ubos-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

.ubos-mini-user p {
	min-width: 0;
	margin: 0;
}

.ubos-mini-user strong,
.ubos-mini-user small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ubos-mini-user strong {
	max-width: 170px;
	font-size: 12px;
}

.ubos-mini-user small {
	margin-top: 3px;
	color: rgba(255, 255, 255, .47);
	font-size: 9px;
}

.ubos-sidebar-footer > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 11px;
	border-radius: 9px;
	color: #aebdd1;
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}

.ubos-sidebar-footer > a:hover {
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.ubos-sidebar-footer > a .ubos-svg {
	width: 18px;
}

.ubos-main {
	min-height: 100vh;
	margin-left: 272px;
}

.ubos-topbar {
	position: sticky;
	z-index: 35;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 80px;
	padding: 15px clamp(18px, 2.5vw, 36px);
	border-bottom: 1px solid rgba(225, 231, 240, .88);
	background: rgba(247, 249, 252, .91);
	backdrop-filter: blur(18px);
}

.ubos-topbar-title {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ubos-topbar-title h1 {
	margin: 0;
	color: var(--ubos-navy);
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -.35px;
}

.ubos-topbar-title p {
	margin: 5px 0 0;
	color: var(--ubos-muted);
	font-size: 11px;
}

.ubos-menu-toggle {
	display: none;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--ubos-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ubos-navy);
}

.ubos-topbar-actions {
	display: flex;
	align-items: center;
	gap: 9px;
}

.ubos-icon-button {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--ubos-line);
	border-radius: 11px;
	background: #fff;
	color: var(--ubos-navy);
	cursor: pointer;
}

.ubos-icon-button i {
	position: absolute;
	top: 8px;
	right: 8px;
	display: none;
	width: 7px;
	height: 7px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--ubos-red);
}

.ubos-icon-button i.active {
	display: block;
}

.ubos-topbar .ubos-primary .ubos-svg {
	width: 18px;
}

.ubos-content {
	max-width: 1600px;
	margin: 0 auto;
	padding: clamp(18px, 2.6vw, 38px);
}

.ubos-loading-card {
	display: grid;
	place-items: center;
	min-height: 260px;
	border: 1px solid var(--ubos-line);
	border-radius: var(--ubos-radius);
	background: #fff;
	color: var(--ubos-muted);
	box-shadow: var(--ubos-shadow);
}

.ubos-loading-card > span {
	width: 34px;
	height: 34px;
	border: 3px solid #e7edf5;
	border-top-color: var(--ubos-orange);
	border-radius: 50%;
	animation: ubos-spin .75s linear infinite;
}

.ubos-loading-card p {
	margin: -70px 0 0;
	font-size: 13px;
}

@keyframes ubos-spin {
	to { transform: rotate(360deg); }
}

.ubos-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.ubos-page-head h2 {
	margin: 0;
	color: var(--ubos-navy);
	font-size: 21px;
	letter-spacing: -.35px;
}

.ubos-page-head p {
	margin: 5px 0 0;
	color: var(--ubos-muted);
	font-size: 12px;
}

.ubos-page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.ubos-page-actions .ubos-secondary,
.ubos-page-actions .ubos-primary {
	min-height: 38px;
	padding: 8px 13px;
	font-size: 12px;
}

/* Cards and dashboard */
.ubos-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(145px, 1fr));
	gap: 13px;
	margin-bottom: 17px;
}

.ubos-stat {
	position: relative;
	min-height: 116px;
	overflow: hidden;
	padding: 18px;
	border: 1px solid var(--ubos-line);
	border-radius: 16px;
	background: #fff;
	color: var(--ubos-ink);
	text-align: left;
	cursor: pointer;
	box-shadow: 0 8px 25px rgba(8, 43, 103, .035);
}

.ubos-stat::after {
	position: absolute;
	right: -21px;
	bottom: -26px;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--stat-soft, var(--ubos-soft-navy));
	content: "";
}

.ubos-stat .ubos-stat-icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-bottom: 14px;
	border-radius: 9px;
	background: var(--stat-soft, var(--ubos-soft-navy));
	color: var(--stat-color, var(--ubos-blue));
	font-weight: 900;
}

.ubos-stat span {
	display: block;
	color: var(--ubos-muted);
	font-size: 10px;
	font-weight: 750;
}

.ubos-stat strong {
	display: block;
	margin-top: 5px;
	color: var(--ubos-navy);
	font-size: 22px;
	letter-spacing: -.5px;
}

.ubos-stat small {
	display: block;
	margin-top: 5px;
	color: #8a96a8;
	font-size: 9px;
}

.ubos-stat.is-orange { --stat-soft: var(--ubos-soft-orange); --stat-color: var(--ubos-orange); }
.ubos-stat.is-green { --stat-soft: var(--ubos-soft-green); --stat-color: var(--ubos-green); }
.ubos-stat.is-red { --stat-soft: #fff0f1; --stat-color: var(--ubos-red); }
.ubos-stat.is-yellow { --stat-soft: #fff8e7; --stat-color: var(--ubos-yellow); }

.ubos-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
	gap: 16px;
}

.ubos-grid-equal {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ubos-panel {
	min-width: 0;
	padding: 19px;
	border: 1px solid var(--ubos-line);
	border-radius: var(--ubos-radius);
	background: #fff;
	box-shadow: var(--ubos-shadow);
}

.ubos-panel + .ubos-panel {
	margin-top: 16px;
}

.ubos-grid > .ubos-panel + .ubos-panel {
	margin-top: 0;
}

.ubos-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 13px;
	margin-bottom: 16px;
}

.ubos-panel-head h3 {
	margin: 0;
	color: var(--ubos-navy);
	font-size: 15px;
}

.ubos-panel-head p {
	margin: 4px 0 0;
	color: var(--ubos-muted);
	font-size: 10px;
}

.ubos-panel-head a,
.ubos-panel-head button:not(.ubos-primary):not(.ubos-secondary) {
	border: 0;
	background: transparent;
	color: var(--ubos-orange);
	font-size: 11px;
	font-weight: 850;
	cursor: pointer;
	text-decoration: none;
}

.ubos-pipeline-mini {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.ubos-pipeline-mini button {
	padding: 12px;
	border: 1px solid var(--ubos-line);
	border-radius: 12px;
	background: #fbfcfe;
	color: var(--ubos-ink);
	text-align: left;
	cursor: pointer;
}

.ubos-pipeline-mini span,
.ubos-pipeline-mini small {
	display: block;
	overflow: hidden;
	color: var(--ubos-muted);
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ubos-pipeline-mini strong {
	display: block;
	margin: 7px 0 5px;
	color: var(--ubos-navy);
	font-size: 18px;
}

.ubos-work-list,
.ubos-activity-list,
.ubos-announcement-list {
	display: grid;
	gap: 0;
}

.ubos-work-row,
.ubos-activity-row,
.ubos-announcement {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 2px;
	border-bottom: 1px solid #edf1f5;
}

.ubos-work-row:last-child,
.ubos-activity-row:last-child,
.ubos-announcement:last-child {
	border-bottom: 0;
}

.ubos-work-row > i,
.ubos-activity-row > i {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ubos-blue);
	box-shadow: 0 0 0 4px var(--ubos-soft-navy);
}

.ubos-work-row.is-overdue > i {
	background: var(--ubos-red);
	box-shadow: 0 0 0 4px #fff0f1;
}

.ubos-work-row p,
.ubos-activity-row p,
.ubos-announcement p {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.ubos-work-row strong,
.ubos-activity-row strong,
.ubos-announcement strong {
	display: block;
	overflow: hidden;
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ubos-work-row small,
.ubos-activity-row small,
.ubos-announcement small {
	display: block;
	margin-top: 4px;
	color: var(--ubos-muted);
	font-size: 9px;
}

.ubos-work-row time {
	flex: 0 0 auto;
	color: var(--ubos-muted);
	font-size: 9px;
	font-weight: 750;
}

.ubos-attendance-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 16px;
	border: 1px solid #dceee6;
	border-radius: 14px;
	background: linear-gradient(135deg, #f3fbf8, #fff);
}

.ubos-attendance-card strong,
.ubos-attendance-card small {
	display: block;
}

.ubos-attendance-card strong {
	color: #146748;
	font-size: 13px;
}

.ubos-attendance-card small {
	margin-top: 4px;
	color: #668476;
	font-size: 9px;
}

.ubos-attendance-card button {
	min-height: 35px;
	font-size: 10px;
}

/* Toolbar, tables and lists */
.ubos-toolbar {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
}

.ubos-search {
	position: relative;
	flex: 1;
	max-width: 420px;
}

.ubos-search input {
	width: 100%;
	height: 40px;
	padding: 0 13px 0 37px;
	border: 1px solid var(--ubos-line);
	border-radius: 10px;
	outline: 0;
	background: #fff;
	color: var(--ubos-ink);
	font-size: 12px;
}

.ubos-search::before {
	position: absolute;
	top: 11px;
	left: 13px;
	width: 15px;
	height: 15px;
	border: 1.8px solid #8692a5;
	border-radius: 50%;
	content: "";
}

.ubos-search::after {
	position: absolute;
	top: 25px;
	left: 27px;
	width: 6px;
	height: 2px;
	background: #8692a5;
	transform: rotate(45deg);
	content: "";
}

.ubos-toolbar select,
.ubos-toolbar input[type="date"] {
	height: 40px;
	max-width: 180px;
	padding: 0 31px 0 11px;
	border: 1px solid var(--ubos-line);
	border-radius: 10px;
	outline: 0;
	background: #fff;
	color: var(--ubos-ink);
	font-size: 11px;
}

.ubos-view-toggle {
	display: flex;
	padding: 3px;
	border: 1px solid var(--ubos-line);
	border-radius: 10px;
	background: #fff;
}

.ubos-view-toggle button {
	padding: 7px 9px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--ubos-muted);
	font-size: 10px;
	font-weight: 750;
	cursor: pointer;
}

.ubos-view-toggle button.active {
	background: var(--ubos-soft-navy);
	color: var(--ubos-navy);
}

.ubos-table-card {
	overflow: hidden;
	border: 1px solid var(--ubos-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: var(--ubos-shadow);
}

.ubos-table-wrap {
	overflow-x: auto;
}

.ubos-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
}

.ubos-table th {
	padding: 11px 13px;
	border-bottom: 1px solid var(--ubos-line);
	background: #f8fafc;
	color: #758196;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .45px;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.ubos-table td {
	padding: 12px 13px;
	border-bottom: 1px solid #edf1f5;
	color: #344057;
	vertical-align: middle;
}

.ubos-table tr:last-child td {
	border-bottom: 0;
}

.ubos-table tbody tr:hover {
	background: #fbfcfe;
}

.ubos-table td strong {
	display: block;
	color: var(--ubos-ink);
	font-size: 11px;
}

.ubos-table td small {
	display: block;
	margin-top: 3px;
	color: var(--ubos-muted);
	font-size: 9px;
}

.ubos-table td a {
	color: var(--ubos-navy);
	font-weight: 750;
	text-decoration: none;
}

.ubos-row-link {
	display: block;
	max-width: 280px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.ubos-row-link:hover strong {
	color: var(--ubos-orange);
}

.ubos-table-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

.ubos-table-actions button,
.ubos-table-actions a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--ubos-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ubos-navy);
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
}

.ubos-table-actions .is-danger {
	border-color: #f4dfe2;
	background: #fff7f8;
	color: var(--ubos-red);
}

.ubos-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--ubos-soft-navy);
	color: var(--ubos-navy);
	font-size: 9px;
	font-weight: 850;
	white-space: nowrap;
}

.ubos-badge::before {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.ubos-badge.is-green,
.ubos-badge[data-status="Paid"],
.ubos-badge[data-status="Done"],
.ubos-badge[data-status="Completed"],
.ubos-badge[data-status="Won"],
.ubos-badge[data-status="Published"],
.ubos-badge[data-status="Present"] {
	background: var(--ubos-soft-green);
	color: var(--ubos-green);
}

.ubos-badge.is-red,
.ubos-badge[data-status="Overdue"],
.ubos-badge[data-status="Lost"],
.ubos-badge[data-status="Cancelled"],
.ubos-badge[data-status="Rejected"] {
	background: #fff0f1;
	color: var(--ubos-red);
}

.ubos-badge.is-orange,
.ubos-badge[data-status="Partial"],
.ubos-badge[data-status="Pending"],
.ubos-badge[data-status="In Review"],
.ubos-badge[data-status="Proposal Sent"],
.ubos-badge[data-status="Negotiation"] {
	background: var(--ubos-soft-orange);
	color: var(--ubos-orange);
}

.ubos-money {
	color: var(--ubos-navy);
	font-weight: 850;
	white-space: nowrap;
}

.ubos-progress {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ubos-progress > i {
	width: 78px;
	height: 6px;
	overflow: hidden;
	border-radius: 99px;
	background: #e9eef5;
}

.ubos-progress > i span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ubos-blue), #55a4f4);
}

.ubos-progress small {
	margin: 0 !important;
	font-weight: 800;
}

.ubos-empty-state {
	display: grid;
	place-items: center;
	min-height: 260px;
	padding: 40px 20px;
	color: var(--ubos-muted);
	text-align: center;
}

.ubos-empty-state i {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 15px;
	border-radius: 17px;
	background: var(--ubos-soft-navy);
	color: var(--ubos-blue);
	font-style: normal;
	font-size: 25px;
}

.ubos-empty-state strong {
	display: block;
	color: var(--ubos-navy);
	font-size: 14px;
}

.ubos-empty-state p {
	max-width: 360px;
	margin: 7px 0 17px;
	font-size: 11px;
	line-height: 1.55;
}

.ubos-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	border-top: 1px solid var(--ubos-line);
	color: var(--ubos-muted);
	font-size: 9px;
}

.ubos-pagination div {
	display: flex;
	gap: 6px;
}

.ubos-pagination button {
	min-width: 31px;
	height: 31px;
	padding: 0 8px;
	border: 1px solid var(--ubos-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ubos-navy);
	font-size: 10px;
	font-weight: 800;
	cursor: pointer;
}

/* Kanban */
.ubos-kanban {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 1fr);
	gap: 12px;
	overflow-x: auto;
	padding: 2px 2px 14px;
	scroll-snap-type: x proximity;
}

.ubos-kanban-column {
	min-height: 420px;
	padding: 11px;
	border: 1px solid var(--ubos-line);
	border-radius: 14px;
	background: #eef2f7;
	scroll-snap-align: start;
}

.ubos-kanban-column > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2px 4px 11px;
}

.ubos-kanban-column > header h3 {
	margin: 0;
	color: var(--ubos-navy);
	font-size: 11px;
}

.ubos-kanban-column > header span {
	display: grid;
	place-items: center;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--ubos-muted);
	font-size: 9px;
	font-weight: 850;
}

.ubos-kanban-dropzone {
	display: grid;
	gap: 8px;
	min-height: 350px;
}

.ubos-kanban-card {
	padding: 13px;
	border: 1px solid #dde4ed;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 5px 14px rgba(8, 43, 103, .045);
	cursor: grab;
}

.ubos-kanban-card.dragging {
	opacity: .45;
}

.ubos-kanban-card h4 {
	margin: 0;
	color: var(--ubos-ink);
	font-size: 11px;
	line-height: 1.4;
}

.ubos-kanban-card > p {
	margin: 6px 0 10px;
	color: var(--ubos-muted);
	font-size: 9px;
	line-height: 1.4;
}

.ubos-kanban-card > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 7px;
}

.ubos-kanban-card time,
.ubos-kanban-card small {
	color: var(--ubos-muted);
	font-size: 8px;
}

.ubos-kanban-card .ubos-card-value {
	color: var(--ubos-navy);
	font-size: 10px;
	font-weight: 850;
}

/* Modal and forms */
.ubos-modal {
	position: fixed;
	z-index: 110;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: rgba(3, 15, 35, .68);
	backdrop-filter: blur(5px);
}

.ubos-modal.open {
	display: flex;
}

.ubos-modal-card {
	width: min(820px, 100%);
	max-height: min(92vh, 920px);
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 35px 90px rgba(0, 0, 0, .28);
}

.ubos-modal-card.is-wide {
	width: min(1120px, 100%);
}

.ubos-modal-card > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 19px 22px;
	border-bottom: 1px solid var(--ubos-line);
}

.ubos-modal-card > header p {
	margin: 0 0 4px;
	color: var(--ubos-orange);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 1px;
}

.ubos-modal-card > header h2 {
	margin: 0;
	color: var(--ubos-navy);
	font-size: 19px;
}

.ubos-close {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef2f6;
	color: var(--ubos-navy);
	font-size: 22px;
	cursor: pointer;
}

#ubos-modal-body {
	max-height: calc(92vh - 75px);
	overflow-y: auto;
	padding: 22px;
}

.ubos-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ubos-form .ubos-field {
	min-width: 0;
}

.ubos-field.is-full,
.ubos-form-actions,
.ubos-form-section,
.ubos-document-lines {
	grid-column: 1 / -1;
}

.ubos-field label {
	display: block;
	margin-bottom: 6px;
	color: #435067;
	font-size: 10px;
	font-weight: 850;
}

.ubos-field label b {
	color: var(--ubos-red);
}

.ubos-field input,
.ubos-field select,
.ubos-field textarea {
	width: 100%;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid var(--ubos-line);
	border-radius: 9px;
	outline: 0;
	background: #fff;
	color: var(--ubos-ink);
	font-size: 11px;
}

.ubos-field textarea {
	min-height: 92px;
	resize: vertical;
}

.ubos-field input:focus,
.ubos-field select:focus,
.ubos-field textarea:focus {
	border-color: var(--ubos-blue);
	box-shadow: 0 0 0 3px rgba(38, 118, 229, .09);
}

.ubos-field small {
	display: block;
	margin-top: 5px;
	color: var(--ubos-muted);
	font-size: 8px;
	line-height: 1.45;
}

.ubos-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
}

.ubos-checkbox input {
	width: 17px;
	min-height: 17px;
}

.ubos-checkbox label {
	margin: 0;
}

.ubos-form-section {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 0;
	color: var(--ubos-navy);
	font-size: 11px;
	font-weight: 900;
}

.ubos-form-section::after {
	flex: 1;
	height: 1px;
	background: var(--ubos-line);
	content: "";
}

.ubos-form-actions {
	position: sticky;
	bottom: -22px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	margin: 8px -22px -22px;
	padding: 14px 22px;
	border-top: 1px solid var(--ubos-line);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(12px);
}

.ubos-form-errors {
	grid-column: 1/-1;
	padding: 10px 12px;
	border: 1px solid #f0cfd3;
	border-radius: 9px;
	background: #fff5f6;
	color: var(--ubos-red);
	font-size: 10px;
}

.ubos-upload-box {
	display: flex;
	align-items: center;
	gap: 9px;
}

.ubos-upload-box input[type="url"] {
	flex: 1;
}

.ubos-upload-box button {
	flex: 0 0 auto;
	min-height: 42px;
}

/* Document editor */
.ubos-document-lines {
	overflow-x: auto;
	padding: 1px;
}

.ubos-line-table {
	min-width: 870px;
	border: 1px solid var(--ubos-line);
	border-radius: 11px;
	background: #fbfcfe;
}

.ubos-line-head,
.ubos-line-row {
	display: grid;
	grid-template-columns: 42px minmax(210px, 1fr) 75px 85px 105px 90px 82px 112px 36px;
	gap: 7px;
	align-items: center;
	padding: 8px;
}

.ubos-line-head {
	border-bottom: 1px solid var(--ubos-line);
	color: var(--ubos-muted);
	font-size: 8px;
	font-weight: 900;
	text-transform: uppercase;
}

.ubos-line-row {
	border-bottom: 1px solid #e8edf3;
	background: #fff;
}

.ubos-line-row:last-child {
	border-bottom: 0;
}

.ubos-line-row input,
.ubos-line-row select,
.ubos-line-row textarea {
	width: 100%;
	min-height: 36px;
	padding: 6px 7px;
	border: 1px solid #dfe6ee;
	border-radius: 7px;
	outline: 0;
	font-size: 9px;
}

.ubos-line-row textarea {
	height: 48px;
	resize: vertical;
}

.ubos-line-row .ubos-line-total {
	color: var(--ubos-navy);
	font-size: 10px;
	font-weight: 850;
	text-align: right;
}

.ubos-line-row .ubos-remove-line {
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: #fff0f1;
	color: var(--ubos-red);
	cursor: pointer;
}

.ubos-add-line {
	margin-top: 9px;
	min-height: 35px;
	font-size: 10px;
}

.ubos-document-summary {
	display: grid;
	grid-template-columns: 1fr 330px;
	gap: 18px;
	grid-column: 1/-1;
}

.ubos-document-total-box {
	padding: 13px;
	border: 1px solid var(--ubos-line);
	border-radius: 11px;
	background: #fbfcfe;
}

.ubos-document-total-box > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 2px;
	border-bottom: 1px dashed var(--ubos-line);
	font-size: 10px;
}

.ubos-document-total-box > div:last-child {
	border-bottom: 0;
}

.ubos-document-total-box .grand {
	color: var(--ubos-navy);
	font-size: 14px;
	font-weight: 900;
}

/* Calendar */
.ubos-calendar-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 16px;
}

.ubos-calendar {
	padding: 15px;
	border: 1px solid var(--ubos-line);
	border-radius: var(--ubos-radius);
	background: #fff;
	box-shadow: var(--ubos-shadow);
}

.ubos-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 13px;
}

.ubos-calendar-header h3 {
	margin: 0;
	color: var(--ubos-navy);
	font-size: 15px;
}

.ubos-calendar-header div {
	display: flex;
	gap: 5px;
}

.ubos-calendar-header button {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--ubos-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ubos-navy);
	cursor: pointer;
}

.ubos-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid var(--ubos-line);
	border-left: 1px solid var(--ubos-line);
}

.ubos-calendar-weekday {
	padding: 8px 4px;
	border-right: 1px solid var(--ubos-line);
	border-bottom: 1px solid var(--ubos-line);
	background: #f8fafc;
	color: var(--ubos-muted);
	font-size: 8px;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
}

.ubos-calendar-day {
	min-height: 104px;
	padding: 7px;
	border-right: 1px solid var(--ubos-line);
	border-bottom: 1px solid var(--ubos-line);
	background: #fff;
}

.ubos-calendar-day.is-other {
	background: #fafbfd;
	color: #b2bac7;
}

.ubos-calendar-day.is-today > b {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ubos-orange);
	color: #fff;
}

.ubos-calendar-day > b {
	display: block;
	margin-bottom: 5px;
	font-size: 9px;
}

.ubos-calendar-event {
	display: block;
	overflow: hidden;
	margin: 3px 0;
	padding: 4px 5px;
	border-left: 3px solid var(--ubos-blue);
	border-radius: 5px;
	background: var(--ubos-soft-navy);
	color: var(--ubos-navy);
	font-size: 7px;
	font-weight: 750;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ubos-calendar-event.is-payment { border-color: var(--ubos-red); background: #fff0f1; color: var(--ubos-red); }
.ubos-calendar-event.is-task { border-color: var(--ubos-green); background: var(--ubos-soft-green); color: #157552; }
.ubos-calendar-event.is-content { border-color: var(--ubos-orange); background: var(--ubos-soft-orange); color: #b44d08; }

.ubos-agenda {
	padding: 17px;
	border: 1px solid var(--ubos-line);
	border-radius: var(--ubos-radius);
	background: #fff;
	box-shadow: var(--ubos-shadow);
}

.ubos-agenda h3 {
	margin: 0 0 13px;
	color: var(--ubos-navy);
	font-size: 14px;
}

.ubos-agenda-item {
	position: relative;
	padding: 0 0 14px 17px;
	border-left: 1px solid #dfe6ee;
}

.ubos-agenda-item::before {
	position: absolute;
	top: 2px;
	left: -5px;
	width: 9px;
	height: 9px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--ubos-blue);
	box-shadow: 0 0 0 1px var(--ubos-blue);
	content: "";
}

.ubos-agenda-item time,
.ubos-agenda-item strong,
.ubos-agenda-item small {
	display: block;
}

.ubos-agenda-item time {
	color: var(--ubos-orange);
	font-size: 8px;
	font-weight: 850;
}

.ubos-agenda-item strong {
	margin-top: 4px;
	font-size: 10px;
}

.ubos-agenda-item small {
	margin-top: 3px;
	color: var(--ubos-muted);
	font-size: 8px;
}

/* Reports */
.ubos-report-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13px;
	margin-bottom: 16px;
}

.ubos-report-metric {
	padding: 17px;
	border: 1px solid var(--ubos-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: var(--ubos-shadow);
}

.ubos-report-metric span,
.ubos-report-metric small {
	display: block;
	color: var(--ubos-muted);
	font-size: 9px;
}

.ubos-report-metric strong {
	display: block;
	margin: 7px 0;
	color: var(--ubos-navy);
	font-size: 21px;
}

.ubos-bar-chart {
	display: flex;
	align-items: flex-end;
	gap: 13px;
	height: 220px;
	padding: 22px 10px 0;
	border-bottom: 1px solid var(--ubos-line);
}

.ubos-bar-group {
	display: flex;
	flex: 1;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
	height: 100%;
}

.ubos-bar {
	position: relative;
	width: min(32px, 42%);
	min-height: 2px;
	border-radius: 5px 5px 0 0;
	background: var(--ubos-blue);
}

.ubos-bar.is-expense {
	background: var(--ubos-orange);
}

.ubos-bar span {
	position: absolute;
	bottom: -19px;
	left: 50%;
	color: var(--ubos-muted);
	font-size: 7px;
	transform: translateX(-50%);
	white-space: nowrap;
}

.ubos-chart-legend {
	display: flex;
	gap: 15px;
	margin-top: 28px;
	color: var(--ubos-muted);
	font-size: 9px;
}

.ubos-chart-legend span::before {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 5px;
	border-radius: 2px;
	background: var(--ubos-blue);
	content: "";
}

.ubos-chart-legend span:last-child::before {
	background: var(--ubos-orange);
}

/* Team and cards */
.ubos-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 13px;
}

.ubos-person-card {
	padding: 16px;
	border: 1px solid var(--ubos-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: var(--ubos-shadow);
}

.ubos-person-head {
	display: flex;
	align-items: center;
	gap: 11px;
}

.ubos-avatar {
	display: grid;
	place-items: center;
	width: 43px;
	height: 43px;
	border-radius: 13px;
	background: var(--ubos-soft-navy);
	color: var(--ubos-navy);
	font-size: 11px;
	font-weight: 900;
}

.ubos-person-head p {
	min-width: 0;
	margin: 0;
}

.ubos-person-head strong,
.ubos-person-head small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ubos-person-head strong {
	font-size: 11px;
}

.ubos-person-head small {
	margin-top: 4px;
	color: var(--ubos-muted);
	font-size: 8px;
}

.ubos-person-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
	margin-top: 14px;
}

.ubos-person-metrics div {
	padding: 9px;
	border-radius: 9px;
	background: #f7f9fc;
}

.ubos-person-metrics span,
.ubos-person-metrics strong {
	display: block;
}

.ubos-person-metrics span {
	color: var(--ubos-muted);
	font-size: 8px;
}

.ubos-person-metrics strong {
	margin-top: 4px;
	color: var(--ubos-navy);
	font-size: 11px;
}

/* Drawer, quick menu and toast */
.ubos-drawer {
	position: fixed;
	z-index: 100;
	inset: 0 -390px 0 auto;
	display: flex;
	flex-direction: column;
	width: min(380px, 94vw);
	border-left: 1px solid var(--ubos-line);
	background: #fff;
	box-shadow: -20px 0 55px rgba(8, 43, 103, .13);
	transition: right .25s ease;
}

.ubos-drawer.open {
	right: 0;
}

.ubos-drawer > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid var(--ubos-line);
}

.ubos-drawer > header p {
	margin: 0 0 4px;
	color: var(--ubos-orange);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 1px;
}

.ubos-drawer > header h2 {
	margin: 0;
	color: var(--ubos-navy);
	font-size: 18px;
}

.ubos-drawer > header button {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #eef2f6;
	font-size: 19px;
	cursor: pointer;
}

.ubos-drawer > div {
	flex: 1;
	overflow-y: auto;
	padding: 17px;
}

.ubos-drawer > footer {
	padding: 15px;
	border-top: 1px solid var(--ubos-line);
}

.ubos-drawer > footer button {
	width: 100%;
}

.ubos-quick-menu {
	position: fixed;
	z-index: 105;
	top: 70px;
	right: 34px;
	width: 270px;
	padding: 8px;
	border: 1px solid var(--ubos-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(8, 43, 103, .18);
}

.ubos-quick-menu[hidden] {
	display: none;
}

.ubos-quick-menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 9px;
	background: #fff;
	color: var(--ubos-navy);
	font-size: 11px;
	font-weight: 750;
	text-align: left;
	cursor: pointer;
}

.ubos-quick-menu button:hover {
	background: #f5f8fc;
}

.ubos-quick-menu button i {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--ubos-soft-orange);
	color: var(--ubos-orange);
	font-style: normal;
}

.ubos-toast-region {
	position: fixed;
	z-index: 140;
	right: 20px;
	bottom: 20px;
	display: grid;
	gap: 8px;
	width: min(360px, calc(100vw - 30px));
}

.ubos-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 15px;
	border: 1px solid #dfe6ee;
	border-radius: 12px;
	background: #fff;
	color: var(--ubos-ink);
	font-size: 11px;
	box-shadow: 0 18px 45px rgba(8, 43, 103, .18);
	animation: ubos-toast-in .2s ease;
}

.ubos-toast::before {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ubos-green);
	content: "";
}

.ubos-toast.is-error::before {
	background: var(--ubos-red);
}

@keyframes ubos-toast-in {
	from { opacity: 0; transform: translateY(8px); }
}

.ubos-bottom-nav {
	display: none;
}

.ubos-mobile-overlay {
	display: none;
}

/* Client portal */
.ubos-client-portal {
	min-height: 100vh;
	background: #f4f7fb;
	color: var(--ubos-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ubos-portal-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 17px max(22px, calc((100vw - 1240px) / 2));
	border-bottom: 1px solid var(--ubos-line);
	background: #fff;
}

.ubos-portal-topbar img {
	width: 190px;
	max-height: 62px;
	object-fit: contain;
}

.ubos-portal-topbar > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ubos-portal-topbar > div > span {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--ubos-soft-navy);
	color: var(--ubos-navy);
	font-size: 11px;
	font-weight: 900;
}

.ubos-portal-topbar p {
	margin: 0;
}

.ubos-portal-topbar strong,
.ubos-portal-topbar a {
	display: block;
}

.ubos-portal-topbar strong {
	font-size: 10px;
}

.ubos-portal-topbar a {
	margin-top: 3px;
	color: var(--ubos-muted);
	font-size: 8px;
	text-decoration: none;
}

.ubos-portal-nav {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	padding: 10px max(22px, calc((100vw - 1240px) / 2));
	border-bottom: 1px solid var(--ubos-line);
	background: #fff;
}

.ubos-portal-nav button {
	padding: 9px 13px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--ubos-muted);
	font-size: 10px;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
}

.ubos-portal-nav button.active {
	background: var(--ubos-soft-navy);
	color: var(--ubos-navy);
}

#ubos-portal-content {
	max-width: 1240px;
	min-height: 70vh;
	margin: 0 auto;
	padding: 30px 22px;
}

.ubos-portal-hero {
	position: relative;
	overflow: hidden;
	padding: 28px;
	border-radius: 20px;
	background:
		radial-gradient(circle at 88% 30%, rgba(255, 106, 0, .28), transparent 30%),
		linear-gradient(135deg, var(--ubos-navy-2), var(--ubos-navy));
	color: #fff;
}

.ubos-portal-hero::after {
	position: absolute;
	right: -90px;
	bottom: -120px;
	width: 310px;
	height: 310px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
	content: "";
}

.ubos-portal-hero p {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, .65);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.ubos-portal-hero h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 29px;
}

.ubos-portal-hero small {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 600px;
	margin-top: 10px;
	color: rgba(255, 255, 255, .65);
	font-size: 11px;
	line-height: 1.6;
}

.ubos-portal-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 15px 0;
}

.ubos-portal-stat {
	padding: 16px;
	border: 1px solid var(--ubos-line);
	border-radius: 14px;
	background: #fff;
}

.ubos-portal-stat span,
.ubos-portal-stat strong {
	display: block;
}

.ubos-portal-stat span {
	color: var(--ubos-muted);
	font-size: 9px;
}

.ubos-portal-stat strong {
	margin-top: 7px;
	color: var(--ubos-navy);
	font-size: 19px;
}

.ubos-portal-section {
	margin-top: 15px;
	padding: 19px;
	border: 1px solid var(--ubos-line);
	border-radius: 16px;
	background: #fff;
}

.ubos-portal-section > h2 {
	margin: 0 0 15px;
	color: var(--ubos-navy);
	font-size: 16px;
}

.ubos-project-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.ubos-project-card {
	padding: 15px;
	border: 1px solid var(--ubos-line);
	border-radius: 13px;
	background: #fbfcfe;
}

.ubos-project-card header {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.ubos-project-card h3 {
	margin: 0;
	font-size: 12px;
}

.ubos-project-card p {
	margin: 7px 0 12px;
	color: var(--ubos-muted);
	font-size: 9px;
}

.ubos-project-card dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin: 12px 0 0;
}

.ubos-project-card dl div {
	padding: 8px;
	border-radius: 8px;
	background: #fff;
}

.ubos-project-card dt {
	color: var(--ubos-muted);
	font-size: 7px;
}

.ubos-project-card dd {
	margin: 3px 0 0;
	color: var(--ubos-navy);
	font-size: 9px;
	font-weight: 800;
}

.ubos-file-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ubos-file-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px;
	border: 1px solid var(--ubos-line);
	border-radius: 12px;
	color: var(--ubos-ink);
	text-decoration: none;
}

.ubos-file-card i {
	display: grid;
	place-items: center;
	width: 35px;
	height: 35px;
	border-radius: 10px;
	background: var(--ubos-soft-orange);
	color: var(--ubos-orange);
	font-style: normal;
	font-weight: 900;
}

.ubos-file-card p {
	min-width: 0;
	margin: 0;
}

.ubos-file-card strong,
.ubos-file-card small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ubos-file-card strong {
	font-size: 10px;
}

.ubos-file-card small {
	margin-top: 3px;
	color: var(--ubos-muted);
	font-size: 8px;
}

.ubos-portal-footer {
	display: flex;
	justify-content: space-between;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 22px 30px;
	color: var(--ubos-muted);
	font-size: 8px;
}

@media (max-width: 1240px) {
	.ubos-stats { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
	.ubos-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
	.ubos-sidebar {
		width: 82px;
	}

	.ubos-brand {
		padding: 20px 13px;
	}

	.ubos-brand img {
		width: 54px;
		height: 48px;
		object-fit: cover;
		object-position: left center;
	}

	.ubos-brand span,
	.ubos-nav-button span,
	.ubos-nav > p,
	.ubos-mini-user p,
	.ubos-sidebar-footer > a span {
		display: none;
	}

	.ubos-nav-button {
		justify-content: center;
		padding: 12px;
	}

	.ubos-mini-user {
		justify-content: center;
	}

	.ubos-sidebar-footer > a {
		justify-content: center;
	}

	.ubos-main {
		margin-left: 82px;
	}

	.ubos-grid,
	.ubos-calendar-layout {
		grid-template-columns: 1fr;
	}

	.ubos-report-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ubos-login-shell {
		display: block;
	}

	.ubos-login-showcase {
		display: none;
	}

	.ubos-login-panel {
		min-height: 100vh;
		padding: 24px 17px;
	}

	.ubos-login-card {
		padding: 28px 22px;
	}

	.ubos-login-mobile-logo {
		display: block;
	}

	.ubos-sidebar {
		width: min(290px, 87vw);
		transform: translateX(-102%);
		transition: transform .24s ease;
	}

	.ubos-app.sidebar-open .ubos-sidebar {
		transform: translateX(0);
	}

	.ubos-mobile-overlay {
		position: fixed;
		z-index: 55;
		inset: 0;
		background: rgba(5, 18, 39, .55);
		backdrop-filter: blur(2px);
	}

	.ubos-app.sidebar-open .ubos-mobile-overlay {
		display: block;
	}

	.ubos-brand img {
		width: 184px;
		height: auto;
		object-fit: contain;
	}

	.ubos-brand span,
	.ubos-nav-button span,
	.ubos-nav > p,
	.ubos-mini-user p,
	.ubos-sidebar-footer > a span {
		display: block;
	}

	.ubos-nav-button,
	.ubos-sidebar-footer > a {
		justify-content: flex-start;
	}

	.ubos-main {
		margin: 0;
		padding-bottom: 72px;
	}

	.ubos-topbar {
		min-height: 68px;
		padding: 10px 13px;
	}

	.ubos-menu-toggle {
		display: grid;
	}

	.ubos-topbar-title h1 {
		max-width: 190px;
		overflow: hidden;
		font-size: 17px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ubos-topbar-title p {
		display: none;
	}

	.ubos-topbar .ubos-primary {
		width: 42px;
		min-height: 42px;
		padding: 0;
		border-radius: 12px;
	}

	.ubos-topbar .ubos-primary span {
		display: none;
	}

	.ubos-content {
		padding: 14px;
	}

	.ubos-page-head {
		align-items: flex-start;
	}

	.ubos-page-head h2 {
		font-size: 18px;
	}

	.ubos-page-actions .ubos-secondary span,
	.ubos-page-actions .ubos-primary span {
		display: none;
	}

	.ubos-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.ubos-stat {
		min-height: 105px;
		padding: 14px;
	}

	.ubos-stat .ubos-stat-icon {
		margin-bottom: 10px;
	}

	.ubos-stat strong {
		font-size: 18px;
	}

	.ubos-grid,
	.ubos-grid-equal {
		grid-template-columns: 1fr;
		gap: 11px;
	}

	.ubos-pipeline-mini {
		grid-template-columns: repeat(2, 1fr);
	}

	.ubos-panel {
		padding: 14px;
	}

	.ubos-toolbar {
		flex-wrap: wrap;
	}

	.ubos-search {
		flex-basis: 100%;
		max-width: none;
	}

	.ubos-toolbar select {
		flex: 1;
		max-width: none;
	}

	.ubos-table-card {
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.ubos-table-wrap {
		overflow: visible;
	}

	.ubos-table thead {
		display: none;
	}

	.ubos-table,
	.ubos-table tbody,
	.ubos-table tr,
	.ubos-table td {
		display: block;
		width: 100%;
	}

	.ubos-table tr {
		margin-bottom: 9px;
		padding: 9px 11px;
		border: 1px solid var(--ubos-line);
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 6px 18px rgba(8, 43, 103, .035);
	}

	.ubos-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 6px 0;
		border: 0;
		text-align: right;
	}

	.ubos-table td::before {
		flex: 0 0 40%;
		color: var(--ubos-muted);
		font-size: 8px;
		font-weight: 850;
		text-align: left;
		text-transform: uppercase;
		content: attr(data-label);
	}

	.ubos-table td > * {
		max-width: 60%;
	}

	.ubos-table-actions {
		max-width: none !important;
	}

	.ubos-table td.ubos-actions-cell::before {
		content: "";
	}

	.ubos-kanban {
		grid-auto-columns: 82vw;
	}

	.ubos-modal {
		align-items: flex-end;
		padding: 0;
	}

	.ubos-modal-card,
	.ubos-modal-card.is-wide {
		width: 100%;
		max-height: 94vh;
		border-radius: 20px 20px 0 0;
	}

	#ubos-modal-body {
		max-height: calc(94vh - 72px);
		padding: 17px;
	}

	.ubos-form {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ubos-field.is-full,
	.ubos-form-actions,
	.ubos-form-section,
	.ubos-document-lines,
	.ubos-document-summary {
		grid-column: auto;
	}

	.ubos-form-actions {
		bottom: -17px;
		margin: 8px -17px -17px;
		padding: 12px 17px;
	}

	.ubos-document-summary {
		grid-template-columns: 1fr;
	}

	.ubos-calendar-day {
		min-height: 70px;
		padding: 4px;
	}

	.ubos-calendar-event {
		padding: 2px 3px;
		font-size: 0;
	}

	.ubos-calendar-event::after {
		font-size: 7px;
		content: "•";
	}

	.ubos-card-grid,
	.ubos-report-metrics,
	.ubos-project-card-grid,
	.ubos-file-grid {
		grid-template-columns: 1fr;
	}

	.ubos-bottom-nav {
		position: fixed;
		z-index: 45;
		inset: auto 0 0;
		display: flex;
		align-items: center;
		justify-content: space-around;
		height: 66px;
		padding: 5px 8px max(5px, env(safe-area-inset-bottom));
		border-top: 1px solid var(--ubos-line);
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -8px 25px rgba(8, 43, 103, .06);
		backdrop-filter: blur(15px);
	}

	.ubos-bottom-nav button {
		display: grid;
		place-items: center;
		gap: 2px;
		min-width: 48px;
		padding: 4px;
		border: 0;
		background: transparent;
		color: var(--ubos-muted);
		cursor: pointer;
	}

	.ubos-bottom-nav button.active {
		color: var(--ubos-orange);
	}

	.ubos-bottom-nav small {
		font-size: 8px;
	}

	.ubos-bottom-nav .ubos-svg {
		width: 20px;
		height: 20px;
	}

	.ubos-bottom-nav .ubos-bottom-add {
		width: 48px;
		height: 48px;
		margin-top: -23px;
		border: 5px solid #f4f7fb;
		border-radius: 50%;
		background: var(--ubos-orange);
		color: #fff;
		box-shadow: 0 8px 22px rgba(255, 106, 0, .28);
	}

	.ubos-quick-menu {
		top: auto;
		right: 12px;
		bottom: 74px;
		left: 12px;
		width: auto;
	}

	.ubos-toast-region {
		right: 12px;
		bottom: 78px;
		left: 12px;
		width: auto;
	}

	.ubos-portal-topbar,
	.ubos-portal-nav {
		padding-right: 15px;
		padding-left: 15px;
	}

	.ubos-portal-topbar img {
		width: 145px;
	}

	#ubos-portal-content {
		padding: 18px 14px;
	}

	.ubos-portal-hero {
		padding: 22px 18px;
	}

	.ubos-portal-hero h1 {
		font-size: 23px;
	}

	.ubos-portal-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 9px;
	}

	.ubos-portal-footer {
		display: grid;
		gap: 5px;
		padding: 18px 15px 25px;
	}
}

@media (max-width: 380px) {
	.ubos-stats {
		grid-template-columns: 1fr;
	}

	.ubos-icon-button {
		width: 38px;
		height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ubos-fullscreen-page *,
	.ubos-fullscreen-page *::before,
	.ubos-fullscreen-page *::after {
		scroll-behavior: auto !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}
