/* Standalone app shell (top bar, login, small extras on top of admin.css) */
html, body { margin: 0; padding: 0; }
body.nismc-app {
	--a-dark: #0B4A2B; --a-darker: #073019; --a-bright: #1E9E4A; --a-light: #EAF6EE; --a-light2: #D2EDDB;
	--a-yellow: #F5C220; --a-red: #D93025; --a-red-light: #FCEDEC; --a-ink: #14251b; --a-muted: #5d6f64; --a-line: #e1e9e3;
	background: #f1f5f2; color: #14251b; min-height: 100vh;
	font-family: 'NISMC Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 14px;
	-webkit-font-smoothing: antialiased;
}
.nismc-app *, .nismc-app *::before, .nismc-app *::after { box-sizing: border-box; }
.nismc-app a { color: #0B4A2B; }
.nismc-app .nismc-wrap { margin: 0 auto; padding: 0 20px 40px; max-width: 1320px; }
.nismc-app [hidden] { display: none !important; }
.nismc-small { font-size: 12.5px; margin: -6px 0 14px; }

/* Top bar */
.nismc-topbar {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
	padding: 10px 20px; background: #073019; color: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nismc-topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff !important; }
.nismc-topbar__logo {
	display: inline-flex; align-items: center; height: 40px; padding: 4px 10px;
	background: #fff; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nismc-topbar__logo img { display: block; max-height: 32px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.nismc-topbar__title { font: 700 16px 'NISMC Poppins', Arial, sans-serif; }
.nismc-hero__mark--sm { min-width: 0; height: 34px; padding: 0 9px; border-radius: 9px; font-size: 12px; }
.nismc-topnav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nismc-topnav a, .nismc-topnav__logout {
	color: #d7efe0 !important; text-decoration: none; padding: 8px 12px; border-radius: 8px;
	font: 600 13px/1 'NISMC Inter', Arial, sans-serif; background: none; border: 0; cursor: pointer;
}
.nismc-topnav a:hover, .nismc-topnav__logout:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.nismc-topnav a.is-active { background: rgba(255,255,255,.14); color: #fff !important; }
.nismc-topnav a.is-cta { background: #F5C220; color: #073019 !important; }
.nismc-topnav a.is-cta:hover { background: #ffd54a; }
.nismc-topnav__spacer { flex: 1; }
.nismc-topnav__user small { opacity: .7; font-weight: 500; margin-left: 4px; }
.nismc-navtoggle, .nismc-burger { display: none; }

/* Hero inside app: no logo mark needed */
.nismc-app .nismc-hero { margin-top: 20px; }

/* Buttons that look like links (POST actions) */
.nismc-inline-form { display: inline; margin: 0; }
.nismc-linkbtn {
	background: none; border: 0; padding: 0; margin: 0 8px 4px 0; cursor: pointer;
	font: 600 13px 'NISMC Inter', Arial, sans-serif; color: #0B4A2B;
}
.nismc-linkbtn:hover { color: #1E9E4A; text-decoration: underline; }
.nismc-linkbtn.nismc-danger { color: #D93025; }
.nismc-btn--block { width: 100%; }

/* "Receipt ready" action bar */
.nismc-ready {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	margin: 0 0 14px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1.5px solid #D2EDDB;
}
.nismc-ready.is-new { background: #EAF6EE; border-color: #1E9E4A; box-shadow: 0 6px 20px rgba(30,158,74,.15); }
.nismc-ready__text { display: flex; flex-direction: column; gap: 4px; }
.nismc-ready__text strong { font: 700 17px 'NISMC Poppins', Arial, sans-serif; color: #0B4A2B; }
.nismc-ready__text span { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.nismc-ready__btns { display: flex; gap: 8px; flex-wrap: wrap; }

.nismc-paytypes { display: flex; flex-wrap: wrap; gap: 8px; }
.nismc-paytype {
	padding: 9px 16px; border-radius: 999px; border: 1.5px solid #cfdcd3; background: #fff; cursor: pointer;
	font: 600 13px 'NISMC Inter', Arial, sans-serif; color: #0B4A2B;
}
.nismc-paytype:hover { border-color: #1E9E4A; }
.nismc-paytype.is-active { background: #0B4A2B; border-color: #0B4A2B; color: #fff; }
.nismc-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.nismc-branch { position: relative; cursor: pointer; margin: 0; }
.nismc-branch input { position: absolute; opacity: 0; pointer-events: none; }
.nismc-branch span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cfdcd3; background: #fff; }
.nismc-branch strong { font: 700 14px 'NISMC Poppins', Arial, sans-serif; color: #0B4A2B; }
.nismc-branch small { font-size: 12px; color: #5d6f64; line-height: 1.4; }
.nismc-branch input:checked + span { border-color: #0B4A2B; background: #EAF6EE; box-shadow: 0 0 0 3px rgba(30,158,74,.18); }
.nismc-branch input:checked + span strong::before { content: '✓ '; color: #1E9E4A; }
.nismc-branch input:focus-visible + span { outline: 2px solid #1E9E4A; }
.nismc-branch-fixed { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #EAF6EE; border: 1.5px solid #D2EDDB; }
.nismc-branch-fixed strong { color: #0B4A2B; }
.nismc-branch-fixed span { font-size: 12.5px; color: #5d6f64; }
.nismc-branch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.nismc-branch-tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #D2EDDB; text-decoration: none; font-weight: 600; font-size: 13px; }
.nismc-branch-tabs a.is-active { background: #0B4A2B; color: #fff !important; border-color: #0B4A2B; }
.nismc-group-row td { background: #EAF6EE; color: #0B4A2B; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px; }
.nismc-narrow { max-width: 520px; }
.nismc-app input[type="file"] { font-size: 13px; }

/* Login / installer */
body.nismc-auth {
	display: flex; align-items: center; justify-content: center; padding: 24px 16px;
	background: radial-gradient(1200px 600px at 10% -10%, #1E9E4A 0%, transparent 60%), linear-gradient(135deg, #073019 0%, #0B4A2B 100%);
}
.nismc-auth__card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 30px 28px 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.nismc-auth__card--wide { max-width: 760px; }
.nismc-auth__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.nismc-auth__brand h1 { margin: 0; font: 700 21px 'NISMC Poppins', Arial, sans-serif; color: #14251b; }
.nismc-auth__brand p { margin: 2px 0 0; color: #5d6f64; font-size: 13px; }
.nismc-auth__logo { max-height: 56px; max-width: 160px; width: auto; height: auto; }
.nismc-auth__form .nismc-field { margin-bottom: 14px; }
.nismc-auth__foot { margin: 18px 0 0; text-align: center; color: #b08a00; font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.nismc-app input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), .nismc-app select, .nismc-app textarea {
	width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 9px; border: 1.5px solid #cfdcd3; background: #fff; color: #14251b; font-size: 15px; font-family: inherit;
}
.nismc-app input:focus, .nismc-app select:focus, .nismc-app textarea:focus { border-color: #1E9E4A; box-shadow: 0 0 0 3px rgba(30,158,74,.15); outline: none; }
.nismc-app input[readonly], .nismc-app input:disabled, .nismc-app select:disabled, .nismc-app textarea:disabled { background: #f4f7f5; color: #3f5247; }
.nismc-app input.is-invalid { border-color: #D93025; box-shadow: 0 0 0 3px rgba(217,48,37,.12); }
.nismc-fieldset { border: 1px solid #e1e9e3; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.nismc-fieldset legend { font-weight: 700; padding: 0 6px; }
.nismc-checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; font-size: 13px; }
.nismc-checklist .ok { color: #0B4A2B; }
.nismc-checklist .bad { color: #D93025; font-weight: 700; }
.nismc-segmented--block { margin-bottom: 8px; }

@media (max-width: 900px) {
	.nismc-burger { display: flex; flex-direction: column; gap: 4px; margin-left: auto; padding: 10px; cursor: pointer; }
	.nismc-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
	.nismc-topnav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 6px; }
	.nismc-navtoggle:checked ~ .nismc-topnav { display: flex; }
	.nismc-topnav a, .nismc-topnav__logout { padding: 12px; text-align: left; width: 100%; }
	.nismc-topnav__spacer { display: none; }
	.nismc-app .nismc-wrap { padding: 0 12px 32px; }
}
