.brand-mark.has-logo {
  padding: 0;
  overflow: hidden;
  background: #14532d;
}

.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.create-nav-button {
  width: 100%;
  height: 46px;
  margin: 18px 0 8px;
  border: 1px solid #b9dbc5;
  border-radius: 12px;
  background: #e9f7ed;
  color: var(--green);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.create-nav-button:hover { background: #dcf3e3; }
.create-nav-button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 7px 18px rgba(20, 83, 45, .18);
}
.relation-filters { display: flex; gap: 10px; flex: 2; }
.relation-filters select { min-width: 150px; width: auto; flex: 1; }
.input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.input-action .compact { white-space: nowrap; padding: 0 12px; }
.form-grid input[readonly] { background: #edf3ef; color: #456050; cursor: not-allowed; }

.create-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.create-page-head h2 { margin: 6px 0 0; font-size: 26px; }
.create-page-head p:last-child { margin: 8px 0 0; color: var(--muted); }
.create-path {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
}
.create-step {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: #64776c;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  cursor: pointer;
}
.create-step span {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #edf3ef;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.create-step.done { border-color: #b9dbc5; color: var(--green); background: #f6fbf7; }
.create-step.active { border-color: var(--green); background: var(--green); color: #fff; }
.create-step.active span { color: var(--green); background: #fff; }
.create-step:disabled { opacity: .48; cursor: default; }
.create-path-arrow { color: #9aaba1; flex: 0 0 auto; }
.create-selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 4px 0 22px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f2f8f4;
}
.create-selection-summary span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dce9e0;
}
.create-selection-summary small { color: var(--muted); }
.create-selection-summary strong { color: var(--green); }
.create-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.create-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: default;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .025);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.create-card:hover {
  border-color: #7fbd92;
  box-shadow: 0 14px 30px rgba(20, 83, 45, .1);
  transform: translateY(-3px);
}
.create-card-kicker { color: #6d8276; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.create-card strong { display: block; margin-top: 13px; font-size: 22px; line-height: 1.35; }
.create-card small { display: block; margin-top: 6px; color: #587064; font-weight: 700; }
.create-card p { margin: 15px 0 28px; color: var(--muted); line-height: 1.5; }
.create-card-arrow { margin-top: auto; color: var(--green2); font-weight: 800; }
.create-card.is-inactive { background: #f7f8f7; border-color: #dfe5e1; }
.create-card.is-inactive > strong,
.create-card.is-inactive > small,
.create-card.is-inactive > p { opacity: .62; }
.create-card-topline { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.create-status { display: inline-flex; align-items: center; border: 1px solid; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.create-status.is-active { background: #ecfdf3; border-color: #b8e9c9; color: #107239; }
.create-status.is-inactive { background: #fff0f2; border-color: #f3c5cc; color: #a81f36; }
.create-card-primary {
  width: 100%;
  margin-top: auto;
  border: 0;
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.create-card-primary:hover { background: var(--green2); }
.create-card-primary:disabled { background: #c9d4cd; cursor: not-allowed; }
.create-card-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #d9e5dd; }
.card-action { flex: 1 1 110px; min-height: 39px; border: 1px solid #b9cdc0; border-radius: 10px; padding: 8px 11px; background: #fff; color: #234b34; font-size: 13px; font-weight: 800; cursor: pointer; }
.card-action:hover { border-color: #7fbd92; background: #f5fbf7; }
.card-action.delete { color: #a81f36; border-color: #efc9cf; }
.card-action.delete:hover { background: #fff2f4; border-color: #df8f9c; }
.card-action:disabled { opacity: .55; cursor: wait; }
.create-profile-section { margin: 22px 0 28px; padding: 20px; border: 1px solid #dce9e0; border-radius: 20px; background: #f5faf7; }
.create-subsection-head { margin: 22px 0 14px; }
.create-profile-section .create-subsection-head { margin: 0 0 16px; }
.create-subsection-head h3 { margin: 5px 0 0; font-size: 20px; }
.create-subsection-head p:last-child { margin: 7px 0 0; color: var(--muted); }
.create-profile-card { cursor: default; min-height: 280px; }
.create-profile-card:hover { transform: none; }
.create-profile-topics {
  width: 100%;
  margin: 18px 0;
  padding: 13px;
  border: 1px solid #dce9e0;
  border-radius: 14px;
  background: #f6faf7;
}
.create-profile-topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #4d6758;
  font-size: 13px;
  font-weight: 800;
}
.create-profile-topic-head button {
  border: 0;
  border-radius: 9px;
  padding: 7px 9px;
  background: #dff2e5;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.create-profile-topic-head button:disabled { opacity: .5; cursor: not-allowed; }

.health-banner {
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid #dce7df;
  border-radius: 15px;
  background: #fff;
  color: #385145;
  font-weight: 800;
}
.health-banner.healthy { background: #ecfdf3; border-color: #b8e9c9; color: #107239; }
.health-banner.warning { background: #fff8e7; border-color: #f7d88b; color: #9a5a00; }
.health-banner.critical { background: #fff0f2; border-color: #f3c5cc; color: #a81f36; }
.health-banner.is-loading { background: #f5f8f6; color: #607268; }
.health-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.health-kpi { min-height: 120px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.health-kpi span { display: block; color: var(--muted); font-size: 13px; }
.health-kpi strong { display: block; margin-top: 17px; font-size: 31px; }
.health-kpi.warning { border-top: 4px solid #f59e0b; }
.health-kpi.danger { border-top: 4px solid #e11d48; }
.health-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.health-panel { padding: 22px; }
.health-list { margin-top: 15px; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #edf1ee; }
.health-row span { color: #52675b; }
.health-row strong { min-width: 48px; text-align: right; }
.health-row.ok strong { color: #107239; }
.health-row.warning strong { color: #b45309; }
.health-row.danger strong { color: #be123c; }
.health-empty { padding: 24px; border-radius: 12px; background: #fff8e7; color: #8a5b13; line-height: 1.6; }
.health-generated { margin: 15px 0 0; text-align: right; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .health-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .health-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sidebar nav { grid-template-columns: repeat(4,1fr); }
  .create-nav-button { display: none; }
  .nav-item,.nav-item:not(.active) { font-size: 10px; padding: 8px 3px; }
  .health-kpis { grid-template-columns: 1fr 1fr; }
}
.create-topic-list { display: grid; gap: 7px; }
.create-topic-chip {
  width: 100%;
  border: 1px solid #dce7df;
  border-radius: 9px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: default;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
}
.create-topic-chip.is-inactive { background: #f6f7f6; opacity: .72; }
.create-topic-chip:hover { border-color: #7fbd92; background: #fafffb; }
.topic-main { min-width: 0; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 2px; cursor: pointer; }
.topic-main span { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; }
.topic-main small { display: block; margin: 3px 0 0; white-space: nowrap; font-size: 11px; }
.create-topic-chip .create-status { grid-column: 2; grid-row: 1; }
.create-topic-chip .create-card-actions { grid-column: 1/-1; margin-top: 2px; padding-top: 7px; }
.create-topic-empty { margin: 0; color: var(--muted); font-size: 13px; }
.create-profile-select {
  width: 100%;
  margin-top: auto;
  border: 0;
  border-radius: 11px;
  padding: 11px 13px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.create-profile-select:hover { background: var(--green2); }
.create-add-card {
  border: 2px dashed #9bc9aa;
  background: #f1faf4;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.create-add-card strong { font-size: 18px; }
.create-add-card p { margin: 8px 0 0; }
.create-add-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #d9f3e1;
  color: var(--green);
  font-size: 29px;
  font-weight: 500;
}
.create-page-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.danger-text { color: #b4233b; }
.confirm-message { margin: 0; color: var(--ink); font-size: 17px; font-weight: 750; line-height: 1.55; }
.confirm-warning { margin: 12px 0 0; padding: 12px 14px; border-radius: 11px; background: #fff4f5; color: #8d2638; font-size: 13px; line-height: 1.55; }
.danger-button { border: 0; border-radius: 12px; padding: 11px 17px; background: #b4233b; color: #fff; font-weight: 800; cursor: pointer; }
.danger-button:hover { background: #951c31; }
.danger-button:disabled { opacity: .55; cursor: wait; }
.confirm-dialog { width: min(720px, calc(100% - 32px)); }
.confirm-dialog form { max-height: min(86vh, 820px); overflow: auto; }
.delete-impact { display: grid; gap: 10px; margin-top: 14px; }
.delete-impact-loading { padding: 22px; border: 1px dashed #d7dfda; border-radius: 13px; color: #68786f; text-align: center; background: #fafcfb; }
.delete-impact-summary { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: #f4f8f5; border: 1px solid #e0e8e2; }
.delete-impact-summary strong { color: #173d29; }
.delete-impact-summary span { color: #66746c; font-size: 12px; }
.delete-impact-group { border: 1px solid #e4e9e6; border-radius: 13px; overflow: hidden; background: #fff; }
.delete-impact-group h3 { margin: 0; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; background: #f7faf8; color: #324a3c; font-size: 13px; }
.delete-impact-group h3 span { min-width: 26px; padding: 2px 7px; border-radius: 999px; background: #e4eee7; color: #245b38; text-align: center; }
.delete-impact-group ul { list-style: none; margin: 0; padding: 0; max-height: 160px; overflow: auto; }
.delete-impact-group li { min-height: 40px; padding: 8px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eef1ef; }
.delete-impact-group li strong { color: #1c3527; font-size: 13px; }
.delete-impact-group li code,.delete-impact-group li small { color: #69776f; font-size: 11px; text-align: right; }
.delete-retained { padding: 12px 14px; display: grid; gap: 3px; border-radius: 12px; background: #eef8f1; border: 1px solid #cfe7d5; color: #1f6036; }
.delete-retained span { font-size: 12px; line-height: 1.5; }
@media(max-width:700px){.confirm-dialog form{padding:20px}.delete-impact-group li{align-items:flex-start;flex-direction:column;gap:2px}.delete-impact-group li code,.delete-impact-group li small{text-align:left}}

@media (max-width: 1050px) and (min-width: 701px) {
  .create-nav-button { font-size: 0; }
  .create-nav-button span { font-size: 20px; }
  .create-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .create-nav-button { display: none; }
  .relation-filters { display: grid; }
  .relation-filters select { width: 100%; }
  .create-page-head { display: grid; }
  .create-page-head .secondary-button { width: 100%; }
  .create-card-grid { grid-template-columns: 1fr; }
  .create-card { min-height: 165px; }
}
/* Inspection Profile editor — v20.3.4 */
.inspection-profile-grid{display:grid;gap:18px;margin-top:18px}.inspection-profile-card{background:#fff;border:1px solid #dce8df;border-radius:22px;box-shadow:0 12px 30px rgba(20,83,45,.06);overflow:hidden;animation:profile-rise .32s cubic-bezier(.22,1,.36,1) both}.inspection-profile-card>header{display:flex;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #e7efe9;background:linear-gradient(135deg,#fbfefc,#f1faf4)}.inspection-profile-card h3{margin:4px 0;font-size:1.15rem}.inspection-profile-card p{margin:0;color:#64756a}.profile-code{font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#168245}.profile-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-topic-list{display:grid;gap:10px;padding:16px}.profile-topic-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;align-items:center;gap:14px;padding:10px;border:1px solid #e1ebe4;border-radius:16px;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.profile-topic-row:hover{transform:translateY(-2px);border-color:#a9d8b8;box-shadow:0 8px 20px rgba(20,83,45,.08)}.profile-topic-row.is-inactive{opacity:.58}.profile-topic-sample{width:88px;height:58px;object-fit:cover;border-radius:11px;background:#f0f6f2}.profile-topic-sample.empty{display:grid;place-items:center;text-align:center;color:#829087;font-size:.7rem}.profile-topic-copy{min-width:0;display:grid;gap:4px}.profile-topic-copy strong,.profile-topic-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-topic-copy small{color:#66776c}.topic-settings-dialog{width:min(1040px,calc(100vw - 28px));max-height:94dvh;overflow:hidden}.topic-settings-dialog form{max-height:94dvh;overflow:auto;padding-top:0}.topic-settings-head{position:sticky;top:0;z-index:4;padding-top:25px;padding-bottom:16px;margin-bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid #edf2ee}.topic-settings-meta{margin:6px 0 0;color:#718078;font-size:.78rem}.topic-config-section,.sample-editor,.question-editor{margin-top:18px;padding:18px;border:1px solid #dfe9e2;border-radius:18px;background:#fbfdfb}.topic-section-head,.sample-editor-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.topic-section-head>div,.sample-editor-head>div{display:grid;gap:3px}.topic-section-head small,.sample-editor small,.question-editor small{display:block;color:#728077;font-weight:400}.topic-general-grid,.topic-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.topic-general-grid label,.topic-rule-grid label,.sample-controls label{display:grid;gap:7px;font-weight:700}.topic-settings-dialog input,.topic-settings-dialog select,.topic-settings-dialog textarea{width:100%;min-height:44px;border:1px solid #d9e4dc;background:#fff;border-radius:11px;padding:9px 12px;color:var(--ink);outline:none;font:inherit}.topic-settings-dialog textarea{resize:vertical;line-height:1.5}.topic-settings-dialog input:focus,.topic-settings-dialog select:focus,.topic-settings-dialog textarea:focus{border-color:#65a87b;box-shadow:0 0 0 3px rgba(34,197,94,.1)}.topic-settings-dialog input[readonly]{background:#f0f5f2;color:#68786f}.sample-editor-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px}.sample-preview{height:145px;border-radius:14px;background:#f0f6f2;display:grid;place-items:center;overflow:hidden;color:#7c8a81}.sample-preview img{width:100%;height:100%;object-fit:cover;animation:sample-in .24s ease-out}.sample-controls{display:grid;align-content:start;gap:12px}.file-button{display:inline-flex!important;width:max-content;cursor:pointer}.upload-status{display:flex;align-items:center;gap:9px;min-height:42px;padding:10px 12px;border:1px solid #dce6df;border-radius:11px;background:#f5f8f6;color:#617168;font-size:.8rem}.upload-status span{width:10px;height:10px;border-radius:50%;background:#9ba7a0;flex:0 0 auto}.upload-status strong{font-weight:700}.upload-status[data-state="loading"]{background:#fff8e8;color:#8a5a00;border-color:#efd893}.upload-status[data-state="loading"] span{background:#e4a11a;animation:status-pulse .85s ease-in-out infinite}.upload-status[data-state="ready"]{background:#eef8f1;color:#176536;border-color:#bfe1c8}.upload-status[data-state="ready"] span,.upload-status[data-state="success"] span{background:#22a45b}.upload-status[data-state="success"]{background:#eaf8ee;color:#176536;border-color:#add9b9}.upload-status[data-state="error"]{background:#fff1f3;color:#a51f37;border-color:#efbcc5}.upload-status[data-state="error"] span{background:#cc2947}.topic-question-list{display:grid;gap:10px}.topic-question-row{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) auto 38px;gap:10px;align-items:end;padding:12px;border-radius:14px;background:#f4f8f5}.topic-question-row>span{align-self:center;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#dff5e7;color:#126936;font-weight:800}.topic-question-row label{display:grid;gap:5px;font-size:.78rem}.topic-question-row .question-required{display:flex;align-items:center;padding-bottom:12px;white-space:nowrap}.topic-question-row input[type=checkbox]{width:auto;min-height:0}.topic-settings-actions{position:sticky;bottom:0;z-index:4;justify-content:space-between;padding:16px 0 25px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid #edf2ee}.topic-settings-actions>div{display:flex;gap:9px}.danger-text{color:#b42336!important}@keyframes profile-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes sample-in{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@keyframes status-pulse{50%{opacity:.35;transform:scale(.72)}}@media(max-width:760px){.inspection-profile-card>header{display:grid}.profile-topic-row{grid-template-columns:70px minmax(0,1fr)}.profile-topic-sample{width:70px}.profile-topic-row .row-button{grid-column:1/-1}.topic-general-grid,.topic-rule-grid,.sample-editor-body{grid-template-columns:1fr}.topic-question-row{grid-template-columns:28px 1fr 38px}.topic-question-row label:nth-of-type(2),.topic-question-row .question-required{grid-column:2}.topic-settings-dialog{max-height:94dvh}.topic-settings-actions{align-items:stretch}.topic-settings-actions,.topic-settings-actions>div{display:grid;grid-template-columns:1fr}.topic-settings-actions>div{grid-template-columns:1fr 1fr}.topic-settings-actions .danger-button{grid-row:2}}

/* Admin theme aligned to the production 5S Dashboard. */
:root{--green:#15803d;--green2:#166534;--bg:#f4f8f5;--ink:#17251c;--muted:#65756a;--line:#dce7df;--pale:#eaf8ee;--shadow:0 14px 42px rgba(48,77,56,.08),0 2px 8px rgba(48,77,56,.05);--admin-sidebar:264px}
html{min-width:320px}body{font-family:"Noto Sans Thai",system-ui,-apple-system,sans-serif;background:radial-gradient(circle at 50% -10rem,rgba(34,197,94,.14),transparent 28rem),linear-gradient(180deg,#fbfefc 0%,var(--bg) 48%,#eef5f0 100%);font-size:14px;line-height:1.6}
.ui-icon{width:21px;height:21px;flex:0 0 21px;vertical-align:middle}.app-shell{display:block;min-height:100dvh;padding:14px 14px 14px calc(var(--admin-sidebar) + 28px)}
.sidebar{position:fixed;inset:14px auto 14px 14px;width:var(--admin-sidebar);height:auto;z-index:40;padding:20px 14px 16px;border:1px solid rgba(255,255,255,.18);border-radius:24px;color:#fff;background:radial-gradient(circle at 20% 0,rgba(255,255,255,.16),transparent 17rem),linear-gradient(165deg,#15803d 0%,#166534 58%,#14532d 100%);box-shadow:0 20px 55px rgba(20,83,45,.2);overflow:auto;scrollbar-width:thin}
.brand{padding:0 24px 20px 0;gap:10px;min-height:64px;border-bottom:1px solid #ffffff26}.brand-copy{min-width:0}.brand strong{font-size:14px;white-space:nowrap}.brand span{font-size:11px;color:#dcfce7}.brand-mark.small{width:38px;height:38px;flex:0 0 38px;border:1px solid #ffffff40}.sidebar-collapse{position:absolute;right:8px;top:25px;width:32px;height:36px;border:1px solid #ffffff38;background:#ffffff15;color:#fff;border-radius:10px;cursor:pointer;display:grid;place-items:center}
.nav-caption{font-size:10px;letter-spacing:.1em;color:#c8e4d0;margin:21px 12px 10px}.sidebar nav{display:grid;gap:6px}.nav-item,.nav-item:not(.active){font-size:14px;justify-content:flex-start;gap:12px;min-height:47px;color:#e5f5e9;padding:11px 12px;border:1px solid transparent;font-weight:600}.nav-item span.nav-label{width:auto;font-size:14px;text-align:left}.nav-item:hover{background:#ffffff15;color:#fff}.nav-item.active{background:#fff;border-color:#ffffffb3;color:#14532d;box-shadow:0 8px 20px #07321925}
.create-nav-button{display:flex;margin:0 0 14px;background:#ffffff12;border:1px solid #ffffff55;color:#fff;font-size:14px;min-height:46px}.create-nav-button:hover{background:#ffffff24}.create-nav-button.active{background:#fff;color:#14532d;border-color:#fff}.create-nav-button span{font-size:14px}
.sidebar-bottom{margin-top:auto;padding-top:32px}.dashboard-link,.account-link,.logout-button{display:flex;align-items:center;justify-content:flex-start;gap:12px;text-decoration:none;color:#ecfdf1;font-size:13px;width:100%;min-height:44px;padding:10px 12px;border-radius:11px}.dashboard-link{border:1px solid #ffffff30;background:#ffffff09}.dashboard-link:hover,.account-link:hover,.logout-button:hover{background:#ffffff18}.account{display:flex;margin:0;padding:10px 4px;background:transparent;border:0;gap:10px}.account-copy{min-width:0}.account strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.account span{color:#cee8d6;font-size:11px}.avatar{flex:0 0 38px;width:38px;height:38px;background:#eaf8ee;border-radius:12px;color:#166534}.sidebar .avatar{background:#ffffff24;color:#fff;border:1px solid #ffffff40}.logout-button{background:#ffffff0e;border:1px solid #ffffff30;cursor:pointer}.sidebar-bottom .nav-caption{margin-top:16px;margin-bottom:2px}.account-link{margin:6px 0;font-size:12px}
.topbar{height:auto;min-height:82px;top:14px;padding:16px 24px;border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 20px #304d3806;gap:16px;background:rgba(255,255,255,.94);z-index:20}.topbar-heading{display:flex;align-items:center;gap:12px;min-width:0}.topbar .eyebrow{font-size:10px;letter-spacing:.12em;color:var(--muted)}.topbar h1{font-size:21px;margin:1px 0 0;font-weight:700}.sync-state{background:#eaf8ee;color:#166534;display:flex;align-items:center;gap:6px;font-size:11px}.sync-state:before{content:"";width:6px;height:6px;border-radius:50%;background:#15803d}.top-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px}.secondary-button{color:#235638}.primary-button,.secondary-button{min-height:44px}.menu-toggle{display:none;border:1px solid var(--line);color:#166534;background:#eaf8ee;border-radius:11px;width:44px;height:44px;align-items:center;justify-content:center;flex:0 0 44px}.content{max-width:1480px;padding:30px 10px 24px}.overview-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 26px}.overview-intro h2{font-size:28px;font-weight:700;line-height:1.4;letter-spacing:-.6px;margin:6px 0 8px}.overview-intro p:last-child{margin:0;color:var(--muted)}.eyebrow{font-size:10px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat-card,.stat-card.amber,.stat-card.green,.stat-card.dark{background:#fff;border:1px solid var(--line);border-radius:20px;color:var(--ink);padding:22px;box-shadow:var(--shadow);min-height:174px}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-card .stat-top>span:first-child{font-size:13px;font-weight:500;color:#52675a}.stat-card span.stat-icon{width:36px;height:36px;flex:0 0 36px;background:#eaf8ee;display:grid;place-items:center;border-radius:12px;color:#15803d}.stat-card.amber .stat-icon{color:#b45309;background:#fff4dc}.stat-card strong{font-size:38px;line-height:1.1;margin:20px 0 8px;letter-spacing:-1px}.stat-card small,.stat-card.dark small{color:var(--muted);font-size:11px}.stat-card.amber strong{color:#b45309}.stat-card.green strong{color:#15803d}.stat-card [hidden]{display:none}
.panel{box-shadow:var(--shadow);border-radius:20px}.overview-grid{padding:26px;margin-top:24px;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:28px}.panel-heading h2,.section-heading h2{font-size:19px}.panel-heading p,.section-heading p{font-size:13px;line-height:1.6}.text-button{white-space:nowrap;min-height:40px}.activity-item{padding:17px 0}.activity-item strong{font-weight:600}.row-button{min-height:40px;font-size:12px;color:#166534;border-color:#cfe0d3}.structure-card{background:linear-gradient(145deg,#edf8f0,#f8fcf9);border:1px solid #d5e9db;color:#14532d;padding:22px;display:flex;flex-direction:column;align-items:flex-start}.structure-icon{background:#d9f0e1;border-radius:12px;padding:10px;display:grid;place-items:center;margin-bottom:14px}.structure-card span,.structure-card p{color:#567360}.structure-card strong{font-size:29px;letter-spacing:1px;margin:16px 0 6px}.structure-card p{font-size:12px}.structure-action{margin-top:22px;padding:8px 0;border:0;border-top:1px solid #cfe3d5;background:none;color:#166534;font-weight:600;width:100%;display:flex;justify-content:space-between;cursor:pointer;min-height:44px}
.toolbar{padding:14px;border-radius:16px;flex-wrap:wrap;box-shadow:0 2px 8px #304d3804}.search-box{min-width:160px}.relation-filters{min-width:0;flex-wrap:wrap}.toolbar select{max-width:100%}.table-scroll{scrollbar-width:thin}.table-scroll:focus-visible{outline-offset:-3px}th{font-size:12px;background:#f1f7f3;color:#5e7165}td{font-size:13px;padding:16px 18px}.user-cell .avatar{font-size:12px}.pill{font-weight:600}.master-tabs{background:#e9f1ec;padding:5px;border-radius:14px;max-width:100%;scrollbar-width:thin}.master-tabs button{min-height:42px}.master-tabs button.active{background:#fff;box-shadow:0 2px 6px #1735210a;color:#166534}.dialog{max-height:90dvh;border:1px solid var(--line)}.dialog h2{font-size:22px}.section-heading{margin:4px 0 24px}.login-card{box-shadow:var(--shadow)}.health-kpi{border-radius:18px}.admin-backdrop{display:none}.nav-item:focus-visible,.sidebar a:focus-visible,.sidebar button:focus-visible{outline:3px solid #bbf7d0;outline-offset:2px}
body.admin-sidebar-collapsed{--admin-sidebar:82px}body.admin-sidebar-collapsed .brand-copy,body.admin-sidebar-collapsed .nav-label,body.admin-sidebar-collapsed .nav-caption,body.admin-sidebar-collapsed .account-copy{display:none}body.admin-sidebar-collapsed .brand{padding:0 0 16px;justify-content:center}body.admin-sidebar-collapsed .sidebar-collapse{position:static;width:100%;margin:12px 0}body.admin-sidebar-collapsed .sidebar-collapse .ui-icon{transform:rotate(180deg)}body.admin-sidebar-collapsed .nav-item,body.admin-sidebar-collapsed .dashboard-link,body.admin-sidebar-collapsed .account-link,body.admin-sidebar-collapsed .logout-button{justify-content:center;padding:12px 0}body.admin-sidebar-collapsed .account{justify-content:center}body.admin-sidebar-collapsed .sidebar-bottom{padding-top:24px}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-intro h2{font-size:25px}.overview-grid{grid-template-columns:minmax(0,1fr)}.structure-card{display:grid;grid-template-columns:auto 1fr auto;gap:4px 18px;align-items:center}.structure-icon{grid-row:1/4;margin:0}.structure-card strong{margin:0;grid-column:3;grid-row:1/3}.structure-action{grid-column:2/4;margin:8px 0 0}.overview-intro>.primary-button{flex:0 0 auto}}
@media(max-width:800px){body,body.admin-sidebar-collapsed{--admin-sidebar:264px}.app-shell{padding:10px;display:block}.sidebar{inset:10px auto 10px 10px;width:min(290px,calc(100vw - 40px));height:auto;display:flex;transform:translateX(calc(-100% - 20px));visibility:hidden;z-index:60;padding:20px 14px}.admin-menu-open .sidebar{transform:none;visibility:visible}.admin-menu-open{overflow:hidden}.admin-menu-open .admin-backdrop{display:block;position:fixed;inset:0;border:0;background:#0a251a66;backdrop-filter:blur(3px);z-index:50}.sidebar nav{display:grid;grid-template-columns:1fr}.sidebar .brand,.sidebar .account{display:flex}.sidebar .create-nav-button{display:flex}.menu-toggle{display:inline-flex}.sidebar-collapse{position:absolute!important;right:12px!important;top:25px!important;width:34px!important;margin:0!important}.topbar{padding:12px;min-height:76px;top:10px;gap:6px}.topbar h1{font-size:17px}.topbar .eyebrow{font-size:8px;letter-spacing:.06em}.top-actions .sync-state{display:none}.top-actions .secondary-button{padding:10px;width:44px}.top-actions .secondary-button>span{display:none}.content{padding:24px 4px}.overview-intro{display:block;margin-top:0}.overview-intro h2{font-size:24px}.overview-intro>.primary-button{margin-top:18px}.overview-intro p:last-child{font-size:13px}.stats-grid{gap:12px}.stat-card,.stat-card.amber,.stat-card.green,.stat-card.dark{padding:16px;min-height:158px}.stat-top{align-items:flex-start;gap:4px}.stat-card .stat-top>span:first-child{font-size:12px}.stat-card span.stat-icon{width:28px;height:28px;flex-basis:28px;border-radius:9px}.stat-icon .ui-icon{width:17px;height:17px}.stat-card strong{font-size:32px;margin:14px 0 6px}.overview-grid{padding:18px;gap:22px}.panel-heading{gap:8px}.panel-heading h2{font-size:17px}.panel-heading p{font-size:12px}.structure-card{padding:16px;grid-template-columns:auto 1fr;gap:10px}.structure-card strong{grid-column:2;grid-row:2}.structure-icon{grid-row:1/4}.structure-card p{grid-column:2}.structure-action{grid-column:1/3}.toolbar{display:flex}.toolbar select,.search-box,.relation-filters{width:100%;flex-basis:100%}.relation-filters select{min-width:0}.create-page-head{display:grid}.create-card-grid{grid-template-columns:1fr}.create-card{min-height:165px}.section-heading.split{display:grid}.toast{left:14px;right:14px;bottom:14px}.dialog form{padding:18px}.input-action{grid-template-columns:minmax(0,1fr)}.dialog-head h2{font-size:19px}.dialog-actions{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.sidebar .account{justify-content:flex-start}.sidebar .account>.account-copy{display:block}body.admin-sidebar-collapsed .sidebar .account-copy{display:none}
