/* public/assets/app.css */
:root {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
body {
	margin:0;
	background:#f6f7f9;
	color:#111;
}
body.theme-dark {
	background:#0e1014;
	color:#e7e7ea;
}

.topbar {
	display:flex;
	align-items:center;
	gap:16px;
	padding:10px 14px;
	border-bottom:1px solid rgba(0,0,0,.08);
	background:#fff;
}
body.theme-dark .topbar {
	background:#121520;
	border-bottom-color: rgba(255,255,255,.10);
}

.brand {
	display:flex;
	align-items:center;
	gap:8px;
	font-weight:700;
}
.menu {
	display:flex;
	gap:12px;
	flex-wrap:wrap;
}
.menu a {
	text-decoration:none;
	color:inherit;
	opacity:.85;
	padding:6px 8px;
	border-radius:8px;
}
.menu a:hover {
	background:rgba(0,0,0,.05);
}
body.theme-dark .menu a:hover {
	background:rgba(255,255,255,.08);
}

.userbox {
	margin-left:auto;
}
.pill {
	display:flex;
	align-items:center;
	gap:10px;
	padding:6px 10px;
	border-radius:999px;
	background:rgba(0,0,0,.05);
}
body.theme-dark .pill {
	background:rgba(255,255,255,.08);
}
.btn-link {
	text-decoration:none;
	padding:6px 8px;
	border-radius:8px;
	background:transparent;
	color:inherit;
	opacity:.9;
}
.btn-link:hover {
	background:rgba(0,0,0,.06);
}
body.theme-dark .btn-link:hover {
	background:rgba(255,255,255,.10);
}

.container {
	max-width:1100px;
	margin:0 auto;
	padding:18px 14px;
}
.panel {
	background:#fff;
	border:1px solid rgba(0,0,0,.08);
	border-radius:14px;
	padding:14px;
}
body.theme-dark .panel {
	background:#121520;
	border-color:rgba(255,255,255,.10);
}

.field {
	display:grid;
	gap:6px;
	margin:10px 0;
}
.field input {
	padding:10px 12px;
	border-radius:10px;
	border:1px solid rgba(0,0,0,.15);
	background:#fff;
	color:#111;
}
body.theme-dark .field input {
	background:#0e1014;
	color:#e7e7ea;
	border-color:rgba(255,255,255,.15);
}

.row {
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	align-items:center;
}
.btn {
	padding:10px 12px;
	border-radius:12px;
	border:1px solid rgba(0,0,0,.18);
	background:#fff;
	cursor:pointer;
}
body.theme-dark .btn {
	background:#0e1014;
	color:#e7e7ea;
	border-color:rgba(255,255,255,.15);
}

.modal {
	position:fixed;
	inset:0;
	display:none;
	place-items:center;
	background:rgba(0,0,0,.35);
	padding:16px;
}
.modal.is-open {
	display:grid;
}
.modal__card {
	width:min(520px, 100%);
	background:#fff;
	border-radius:16px;
	padding:14px;
	border:1px solid rgba(0,0,0,.12);
}
body.theme-dark .modal__card {
	background:#121520;
	border-color:rgba(255,255,255,.12);
}
.modal__title {
	font-weight:700;
	margin-bottom:10px;
	text-transform:uppercase;
	font-size:12px;
	opacity:.75;
}
.modal__body {
	margin-bottom:12px;
}
.modal__actions {
	display:flex;
	justify-content:flex-end;
}
.tech {
	white-space:pre-wrap;
	font-size:12px;
	opacity:.85;
}



.tbl {
	width:100%;
	border-collapse:separate;
	border-spacing:0;
	margin-top:10px;
}
.tbl th, .tbl td {
	border-bottom:1px solid rgba(0,0,0,.08);
	padding:10px;
	vertical-align:top;
}
body.theme-dark .tbl th, body.theme-dark .tbl td {
	border-bottom-color: rgba(255,255,255,.10);
}
.tbl th {
	text-align:left;
	font-size:12px;
	text-transform:uppercase;
	opacity:.7;
	position:sticky;
	top:0;
	background:inherit;
}

.btn-small {
	padding:6px 10px;
	border-radius:10px;
	font-size:12px;
}
.muted {
	font-size:12px;
	opacity:.75;
	margin-top:4px;
}
.pre-mini {
	margin:0;
	white-space:pre-wrap;
	font-size:12px;
	opacity:.85;
}









/* --- Responsive helpers --- */
.hide-xs {
	display: inline;
}
.menu--desktop {
	display: none;
} /* включим на md+ */
#btnNav {
	display: inline-flex;
}

@media (min-width: 768px) { /* планшет+ */
	.menu--desktop {
		display: flex;
	}
	#btnNav {
		display: none;
	}
}

@media (min-width: 1024px) { /* ПК */
	.container {
		padding: 22px 18px;
	}
	.panel {
		padding: 16px;
	}
}

/* --- Icon button --- */
.iconbtn {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:38px;
	height:38px;
	border:1px solid rgba(0,0,0,.12);
	border-radius:12px;
	background:#fff;
	cursor:pointer;
}
body.theme-dark .iconbtn {
	background:#0e1014;
	color:#e7e7ea;
	border-color:rgba(255,255,255,.14);
}
.icon {
	font-size:18px;
	line-height:1;
}

/* --- Drawer --- */
.drawer {
	position: fixed;
	inset: 0;
	display:none;
	z-index: 50;
}
.drawer.is-open {
	display:block;
}
.drawer__backdrop {
	position:absolute;
	inset:0;
	background: rgba(0,0,0,.35);
}
.drawer__panel {
	position:absolute;
	top:0;
	left:0;
	height:100%;
	width: min(360px, 92vw);
	background:#fff;
	border-right:1px solid rgba(0,0,0,.12);
	display:flex;
	flex-direction:column;
}
body.theme-dark .drawer__panel {
	background:#121520;
	border-right-color:rgba(255,255,255,.12);
}

.drawer__head {
	display:flex;
	align-items:center;
	justify-content:space-between;
	padding:12px;
	border-bottom:1px solid rgba(0,0,0,.08);
}
body.theme-dark .drawer__head {
	border-bottom-color: rgba(255,255,255,.10);
}

.drawer__title {
	font-weight:700;
}
.menu--drawer {
	display:flex;
	flex-direction:column;
	gap:6px;
	padding:12px;
}
.menu--drawer a {
	padding:10px 10px;
	border-radius:12px;
	background: rgba(0,0,0,.04);
	text-decoration:none;
	color:inherit;
}
body.theme-dark .menu--drawer a {
	background: rgba(255,255,255,.08);
}
.menu--drawer hr {
	width:100%;
	border:0;
	border-top:1px solid rgba(0,0,0,.08);
	margin:8px 0;
}
body.theme-dark .menu--drawer hr {
	border-top-color: rgba(255,255,255,.10);
}

.drawer__foot {
	margin-top:auto;
	padding:12px;
	border-top:1px solid rgba(0,0,0,.08);
}
body.theme-dark .drawer__foot {
	border-top-color: rgba(255,255,255,.10);
}




@media (max-width: 767px) {
	.field input, .field select {
		font-size: 16px;
	} /* чтобы iOS не зумил */
}


.progress {
	margin-top:10px;
	height:10px;
	border-radius:999px;
	background:rgba(0,0,0,.08);
	overflow:hidden;
}
body.theme-dark .progress {
	background:rgba(255,255,255,.10);
}
.progress__bar {
	height:100%;
	background:rgba(0,0,0,.55);
	width:0%;
}
body.theme-dark .progress__bar {
	background:rgba(255,255,255,.55);
}


.field {
	position:relative;
	padding-right:34px;
}
.field__help {
	position:absolute;
	right:6px;
	top:28px;
}

.field--error input, .field--error select {
	border-color: rgba(180,0,0,.65);
}
.field--warn  input, .field--warn  select {
	border-color: rgba(180,90,0,.55);
}
.field--note  input, .field--note  select {
	border-color: rgba(180,180,0,.45);
}

.field__msg {
	margin-top:6px;
	font-size:12px;
	opacity:.9;
}
