/* ISB UX Style Guidelines 2.0 tokens */
:root {
  --blue-100: #D9EFFF; --blue-600: #267FBF; --blue-700: #1D6091;
  --n-50: #FBFBFB; --n-100: #EBEBEB; --n-200: #DEDEDE; --n-300: #D1D1D1; --n-600: #797979; --n-700: #5B5B5B; --n-800: #494949; --n-900: #333333;
  --ok: #2A673B; --warn: #A76D2B; --bad: #A92C37;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Open Sans", Arial, sans-serif; font-size: 14px; color: var(--n-900); background: #fff; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-header { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 24px; background: #fff; border-bottom: 1px solid #000; }
.brand { display: flex; align-items: center; gap: 16px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: 1px; color: #000; }
.logo-img { height: 23px; max-width: 181px; object-fit: contain; display: block; }
.divider { width: 1px; height: 28px; background: var(--n-400, #B5B5B5); }
.app-header h1 { margin: 0; font-size: 20px; font-weight: 600; }
.env { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--n-700); }
.global { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.global a { color: var(--blue-700); font-weight: 600; text-decoration: none; }
.global a:hover { text-decoration: underline; }
.global .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-700); font-weight: 600; cursor: pointer; }
.global .linkish:hover { text-decoration: underline; }
.splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--n-700, #555); }
.body { flex: 1; display: flex; }
.sidenav { width: 240px; background: var(--n-100); border-right: 1px solid var(--n-300); }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav a { display: block; padding: 12px 16px; color: var(--n-900); text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--n-200); }
.sidenav li.active a { background: var(--n-700); color: #fff; }
.sidenav a:hover { background: var(--n-200); }
.sidenav li.active a:hover { background: var(--n-800); }
.content { flex: 1; padding: 24px 32px; max-width: 1100px; }
.page-title { font-size: 24px; font-weight: 600; margin: 0 0 24px; }
.card { border: 1px solid var(--n-300); border-radius: 4px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 2px rgba(181,181,181,.4); }
.card h2 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--n-700); }
.ok { color: var(--ok); } .err { color: var(--bad); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--n-600); }
.success .dot { background: var(--ok); } .error .dot { background: var(--bad); } .warning .dot { background: var(--warn); }
.spinner { width: 12px; height: 12px; border: 2px solid var(--n-300); border-top-color: var(--warn); border-radius: 50%; animation: spin 0.9s linear infinite; }
.progress { height: 4px; background: var(--n-200); border-radius: 2px; overflow: hidden; margin: 8px 0 16px; }
.progress .bar { height: 100%; width: 35%; background: var(--blue-600); border-radius: 2px; animation: slide 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .spinner, .progress .bar { animation-duration: 3s; } }
table { border-collapse: collapse; width: 100%; margin-top: 16px; }
th { background: var(--blue-600); color: #fff; text-align: left; padding: 8px 12px; font-weight: 600; }
td { padding: 8px 12px; border-bottom: 1px solid var(--n-200); }
.field { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
input, select { width: 100%; padding: 8px 12px; border: 1px solid var(--n-600); border-radius: 4px; font: inherit; background: #fff; }
input:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { padding: 8px 16px; border: 1px solid transparent; border-radius: 4px; font: inherit; font-weight: 600; text-transform: uppercase; font-size: 12px; cursor: pointer; }
.btn.primary { background: var(--blue-600); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--blue-700); }
.btn.secondary { background: var(--n-100); color: var(--n-900); border-color: var(--n-400, #B5B5B5); } .btn.secondary:hover:not(:disabled) { background: var(--n-200); }
.btn.danger { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
pre { background: var(--n-50); border: 1px solid var(--n-200); padding: 12px; font-size: 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; margin: 16px 0 0; }
.small { font-size: 12px; margin: -8px 0 12px; }
.req { color: var(--bad); font-weight: 700; }
.opt { font-weight: 400; color: var(--n-700); }
.help { display: block; font-size: 12px; color: var(--n-700); margin-top: 4px; }
.help.err { color: var(--bad); }
.field.invalid input { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.savings { margin-top: 16px; font-size: 12px; color: var(--n-700); }
.savings summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.savings summary::-webkit-details-marker { display: none; }
.savings summary:hover { color: var(--n-900); }
.savings strong { color: var(--ok); }
.savings ul { margin: 8px 0 0; padding-left: 28px; }
.eco-icon { width: 18px; height: 18px; flex: none; color: var(--n-800); }
.eco-fill { fill: var(--ok); }
.app-footer { background: var(--blue-600); color: #fff; padding: 16px 24px; font-size: 12px; }
@media (max-width: 800px) { .sidenav { display: none; } .grid { grid-template-columns: 1fr; } }
.pending { border-left: 4px solid var(--warn); background: #FBF4EC; padding: 10px 12px; margin: 8px 0; }
.check { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; margin: 0 0 12px; font-size: 13px; font-weight: 400; color: var(--n-800); cursor: pointer; }
.check input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0; flex: 0 0 16px; border: 0; cursor: pointer; accent-color: var(--blue-600); }
.actions + .actions { margin-top: 8px; }
