/* RDS Lager Mini */

:root{
  --rds-green:#008532;
  --rds-amber:#f29f05;
  --bg:#f6f7f8;
  --border:#e6e6e6;
  --text:#222;
}

body.app-body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-size:16px;
  line-height:1.4;
  font-family:Arial, Helvetica, sans-serif;
}

.app-wrap{
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
}

.app-wrap.narrow{
  max-width:560px;
  margin:0 auto;
}

.app-wrap-inner.narrow-form{
  max-width:820px;
}

.app-header{
  background:#fff;
  width:100%;
  padding:12px 0;
  border-bottom:3px solid var(--rds-green);
}

.header-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.header-left{flex:0 0 auto;}
.header-center{flex:1 1 auto; text-align:center;}
.header-right{flex:0 0 auto;}

.logo-badge{
  width:52px;
  height:52px;
  border-radius:12px;
  background:var(--rds-green);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  letter-spacing:1px;
}

.user-chip{
  background:#f7faf8;
  border:1px solid #dbe7de;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  color:#2c5237;
  white-space:nowrap;
}

.header-text .title-main{
  font-weight:800;
  font-size:26px;
  line-height:1.15;
  color:var(--rds-green);
}

.header-text .title-accent{
  font-size:22px;
  font-weight:700;
  color:var(--rds-amber);
}

@media (max-width:700px){
  .header-row{flex-wrap:wrap;}
  .header-center{text-align:left;}
  .header-right{width:100%;}
  .header-text .title-main{font-size:19px;}
  .header-text .title-accent{font-size:14px;}
  .logo-badge{width:40px;height:40px;font-size:13px;}
}

.app-nav{
  background:var(--rds-green);
  border-bottom:3px solid var(--rds-amber);
}

.menu{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:10px 0;
}

.menu-link{
  color:#fff;
  text-decoration:none;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
}

.menu-link:hover{
  background:rgba(255,255,255,0.14);
}

.menu-link.active{
  background:#fff;
  color:var(--rds-green);
}

.app-main{
  padding:18px 0 26px;
}

.content-divider{
  height:6px;
  background:var(--rds-green);
  width:100%;
}

.card{
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  padding:14px;
  box-shadow:0 1px 2px rgba(0,0,0,0.04);
  margin-bottom:14px;
}

.table-wrap{
  overflow:auto;
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
}

table{
  width:100%;
  border-collapse:collapse;
}

th{
  background:#f8faf9;
  color:#1d3a27;
}

th, td{
  border-bottom:1px solid #ddd;
  padding:10px;
  text-align:left;
  vertical-align:top;
}

.form-stack input,
.form-stack select{
  margin-bottom:10px;
}

label{
  display:block;
  margin:10px 0 6px;
  font-weight:bold;
}

input, select{
  width:100%;
  padding:10px;
  border:1px solid #bbb;
  border-radius:8px;
  box-sizing:border-box;
  background:#fff;
}

.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn-primary,
.btn-secondary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  white-space:nowrap;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  border:none;
  cursor:pointer;
}

.btn-primary{
  background:var(--rds-green);
  color:#fff;
}

.btn-primary:hover{
  background:#006e2a;
}

.btn-secondary{
  background:#f1f1f1;
  color:#333;
  border:1px solid #ddd;
}

.btn-secondary:hover{
  background:#e8e8e8;
}

.table-link{
  color:var(--rds-green);
  text-decoration:none;
  font-weight:600;
}

.table-link:hover{
  text-decoration:underline;
}

.error{
  background:#ffe5e5;
  color:#9a1c1c;
  border:1px solid #f0b7b7;
  padding:12px;
  border-radius:8px;
  margin-bottom:14px;
}

.okbox{
  background:#e9f7ec;
  color:#1f6f2d;
  border:1px solid #b9e0c1;
  padding:12px;
  border-radius:8px;
}

.hint{
  color:#666;
  font-size:14px;
}

.neg{ color:#b00020; font-weight:bold; }
.pos{ color:#1f6f2d; }

.sep{ margin:0 6px; color:#bbb; }

.stats-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.stat-box{
  min-width:240px;
  background:linear-gradient(135deg, #ffffff 0%, #f7fbf8 100%);
  border:1px solid #dfe9e2;
  border-left:6px solid var(--rds-amber);
  border-radius:12px;
  padding:16px;
}

.stat-value{
  font-size:34px;
  font-weight:800;
  color:var(--rds-green);
  line-height:1;
}

.stat-label{
  margin-top:8px;
  color:#444;
  font-weight:600;
}

.app-footer{
  background:#fff;
  border-top:1px solid var(--border);
  padding:12px 0;
}

.footer-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.footer-left{ color:#555; font-size:13px; }
.footer-right{ color:#777; font-size:13px; }
.logo-container{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo{
  height:44px;
  width:auto;
}

.logo-rds{
  height:44px;
}

.logo-hsk{
  height:60px;
}

@media (max-width:600px){
  .logo{
    height:32px;
  }
}