/* Debi beheer, in Debitan's house style (Dbo365.Debiteuren: Global.css, login.css): dark green, lime, Sora. */

@font-face { font-family: Sora; src: url("fonts/Sora-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Sora; src: url("fonts/Sora-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Sora; src: url("fonts/Sora-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
	color-scheme: light dark;
	--debitan-green: #133416;
	--debitan-lime: #d1f951;
	--debitan-lime-dark: #a1cf0b;
	--debitan-beige: #efede0;
	--debitan-medium-green: light-dark(#147a1c, #47cb51);
	--background: light-dark(#f2f4f2, #1d2025);
	--surface: light-dark(#ffffff, #1f2933);
	--surface-muted: light-dark(#f7f8f6, #252f3a);
	--text: light-dark(#151515, #f5f5f7);
	--text-muted: light-dark(#646464, #a9b1ba);
	--border: light-dark(#e2e5e1, #34404c);
	--like: light-dark(rgb(0,163,68), rgb(0,255,106));
	--dislike: light-dark(rgb(242,28,13), #ff6969);
	--warning-bg: light-dark(rgba(255,152,0,0.08), rgba(255,152,0,0.25));
	--radius: .5rem;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: Sora, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text);
	background: var(--background);
}

a { color: var(--debitan-medium-green); text-decoration: none; }
a:hover { color: #309f39; text-decoration: underline; }

/* Top bar */
.topbar {
	background: var(--debitan-green);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 0 1.5rem;
	height: 60px;
	position: sticky;
	top: 0;
	z-index: 10;
}
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 600; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand img.logo { height: 22px; }
.brand .product { padding-left: .75rem; border-left: 1px solid rgba(255,255,255,.3); }
.nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; }
.nav a {
	color: rgba(255,255,255,.8);
	padding: .45rem .8rem;
	border-radius: var(--radius);
	white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.active { color: var(--debitan-green); background: var(--debitan-lime); font-weight: 600; }
.user { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.85); white-space: nowrap; }
.user form { margin: 0; }

/* Content */
main { max-width: 1280px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 .25rem; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 2rem 0 .75rem; }
.lead { color: var(--text-muted); margin: 0 0 1.5rem; }
.muted { color: var(--text-muted); }
.small { font-size: .85em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
}
.card .label { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.card .value { font-size: 1.6rem; font-weight: 600; margin-top: .2rem; }
.card .sub { color: var(--text-muted); font-size: .85rem; }
.card.accent { border-left: 4px solid var(--debitan-lime); }

.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; font-size: .8rem; color: var(--text-muted); background: var(--surface-muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }

details summary { cursor: pointer; }
details .full { white-space: pre-wrap; margin-top: .5rem; padding: .6rem .75rem; background: var(--surface-muted); border-radius: var(--radius); }

.badge {
	display: inline-block;
	padding: .05rem .5rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
	background: var(--debitan-beige);
	color: var(--debitan-green);
	white-space: nowrap;
}
.badge.answer { background: var(--debitan-lime); }
.badge.error { background: var(--dislike); color: #fff; }
.badge.off { background: var(--border); color: var(--text-muted); }
.like { color: var(--like); font-weight: 600; }
.dislike { color: var(--dislike); font-weight: 600; }

/* Forms */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--text-muted); }
input, select, textarea {
	font: inherit;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: .45rem .6rem;
	min-width: 10rem;
}
.button {
	font: inherit;
	font-weight: 600;
	display: inline-block;
	border: 0;
	border-radius: var(--radius);
	padding: .5rem 1rem;
	cursor: pointer;
	background: var(--debitan-lime);
	color: var(--debitan-green);
}
.button:hover { background: var(--debitan-lime-dark); color: var(--debitan-green); text-decoration: none; }
.button.secondary { background: transparent; color: inherit; border: 1px solid currentColor; }
.button.secondary:hover { background: rgba(255,255,255,.1); }
.button.danger { background: transparent; color: var(--dislike); border: 1px solid var(--dislike); padding: .25rem .7rem; }
.button.small { padding: .25rem .7rem; font-size: .85rem; }

.form { display: grid; gap: 1rem; max-width: 42rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--text-muted); }
.form .row { display: flex; flex-wrap: wrap; gap: 1rem; }
.form textarea { min-height: 6rem; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; }

.notice { padding: .75rem 1rem; border-radius: var(--radius); background: var(--warning-bg); margin-bottom: 1rem; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

/* Sign-in page: Debitan's split layout, green panel and the Office button. */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 45%) 1fr; }
.signin .hero {
	background: var(--debitan-green);
	color: #fff;
	padding: 3rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.signin .hero img.logo { height: 28px; align-self: flex-start; }
.signin .hero h1 { font-size: 2.25rem; font-weight: 700; margin: 1rem 0 .5rem; }
.signin .hero h1 em { color: var(--debitan-lime); font-style: normal; }
.signin .hero p { color: rgba(255,255,255,.8); max-width: 28rem; }
.signin .form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--surface); }
.signin .box { width: 100%; max-width: 360px; }
.signin .box img.icon { width: 56px; height: 56px; border-radius: 12px; }
.signin .box h2 { font-size: 1.4rem; margin: 1rem 0 .25rem; }
.office {
	font: inherit;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	padding: .7rem 1rem;
	margin-top: 1.5rem;
	border: 1px solid light-dark(#8c8c8c, #2f2f2f);
	background: light-dark(#ffffff, #2f2f2f);
	color: light-dark(#5e5e5e, #ffffff);
	font-weight: 600;
	border-radius: 2px;
	cursor: pointer;
}
.office:hover { background: light-dark(#f5f5f5, #464646); }
.office:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 760px) {
	.signin { grid-template-columns: 1fr; }
	.signin .hero { padding: 2rem; }
	.topbar { gap: 1rem; padding: 0 1rem; }
	.brand .product, .user .name { display: none; }
}
