/* 2008–2012-ish flat banking UI. No shadows, no rounded cards, no fancy gradients. */
:root{
  --red:#d71920;
  --bg:#f2f2f2;
  --panel:#ffffff;
  --border:#cfcfcf;
  --text:#222;
  --muted:#666;
  --tab:#e8e8e8;
  --tab2:#dcdcdc;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:12px/1.35 Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:var(--red); text-decoration:none}
a:hover{text-decoration:underline}

.topbar{
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:8px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:bold;
  color:#000;
}
.brand .logo{
  width:18px;height:18px;background:var(--red);
  display:inline-block;
}
.topbar .meta{color:var(--muted); font-size:11px}
.topbar .meta b{color:#000}
.btn{
  border:1px solid #9a9a9a;
  background:#efefef;
  padding:4px 8px;
  cursor:pointer;
  font-size:12px;
}
.btn.red{border-color:#b30f14; background:var(--red); color:#fff}
.btn:disabled{opacity:.6; cursor:not-allowed}

.container{
  width:100%;
  max-width:none;
  padding:12px 14px;
}
.shell{
  border:1px solid var(--border);
  background:var(--panel);
  min-height:calc(100vh - 62px);
}
.tabs{
  display:flex;
  gap:2px;
  border-bottom:1px solid var(--border);
  background:var(--tab2);
  padding:0 6px;
}
.tabs a{
  display:inline-block;
  padding:8px 10px;
  background:var(--tab);
  border:1px solid var(--border);
  border-bottom:none;
  margin-top:6px;
  color:#000;
}
.tabs a.active{
  background:#fff;
  font-weight:bold;
}
.content{
  display:grid;
  grid-template-columns: 220px 1fr 220px;
  gap:0;
}
.sidebar{
  border-right:1px solid var(--border);
  background:#fafafa;
  padding:10px;
  min-height:640px;
}
.rightbar{
  border-left:1px solid var(--border);
  background:#fafafa;
  padding:10px;
}
.main{
  padding:12px 14px;
}
.box{
  border:1px solid var(--border);
  margin-bottom:10px;
}
.box .box-h{
  background:#efefef;
  border-bottom:1px solid var(--border);
  padding:6px 8px;
  font-weight:bold;
}
.box .box-b{padding:8px}
.list{
  list-style:none;margin:0;padding:0
}
.list li{
  padding:6px 6px;
  border-bottom:1px solid #e5e5e5;
}
.list li:last-child{border-bottom:none}
.h1{
  font-size:18px;
  margin:0 0 10px 0;
  color:#000;
}
.hr{
  border-top:1px solid var(--border);
  margin:10px 0;
}
.table{
  width:100%;
  border-collapse:collapse;
}
.table th,.table td{
  border:1px solid var(--border);
  padding:6px 8px;
  vertical-align:top;
}
.table th{
  background:#f0f0f0;
  text-align:left;
}
.form-row{display:flex; gap:8px; align-items:center; margin:6px 0}
.form-row label{min-width:120px; color:#000}
.input, select{
  border:1px solid #9e9e9e;
  padding:4px 6px;
  font-size:12px;
  width:100%;
  max-width:420px;
}
.small{max-width:160px}
.notice{
  border:1px solid #e3c200;
  background:#fff8cc;
  padding:8px;
  margin-bottom:10px;
}
.pager{
  display:flex; gap:6px; align-items:center; margin-top:8px;
}
.badge{
  display:inline-block;
  padding:1px 6px;
  border:1px solid var(--border);
  background:#fff;
  font-size:11px;
}
.kpi{
  display:flex; justify-content:space-between;
  padding:6px 8px;
  border-bottom:1px solid #e5e5e5;
}
.kpi:last-child{border-bottom:none}
.muted{color:var(--muted)}
.tr-pending { background:#fff6cc; }
.amount-negative { color:#b10000; font-weight:bold; }
.muted-link { color:#555; }



.login-wrap {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:calc(100vh - 56px);
}

.login-shell {
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:32px;
  max-width:900px;
  width:100%;
  padding:24px;
}

.login-left {
  background:#fff;
  border:1px solid #ddd;
  padding:24px;
}

.login-right {
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-right img {
  max-width:100%;
  max-height:420px;
  object-fit:contain;
  opacity:0.9;
}


.card-preview {
  display:flex;
  justify-content:center;
  margin:30px 0;
}

.bank-card {
  width:360px;
  height:220px;
  perspective:1000px;
}

.bank-card > div {
  width:100%;
  height:100%;
  border-radius:16px;
  color:white;
  padding:20px;
  box-sizing:border-box;
  position:absolute;
  backface-visibility:hidden;
  transition:transform 0.6s;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
  font-family:monospace;
}

.card-front {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.card-back {
  transform:rotateY(180deg);
}

.bank-card:hover .card-front { transform:rotateY(180deg); }
.bank-card:hover .card-back { transform:rotateY(360deg); }

.card-chip {
  width:50px;
  height:40px;
  background:linear-gradient(135deg,#ccc,#999);
  border-radius:6px;
}

.card-no {
  font-size:22px;
  letter-spacing:2px;
}

.card-name {
  font-size:14px;
}

.card-exp {
  font-size:12px;
  text-align:right;
}

.card-strip {
  background:#000;
  height:45px;
  margin-bottom:20px;
}

.card-cvv {
  background:#fff;
  color:#000;
  padding:6px;
  width:80px;
  text-align:center;
  font-size:14px;
  margin-left:auto;
}

/* Colors */
.bank-card.red .card-front, .bank-card.red .card-back { background:#c0392b; }
.bank-card.orange .card-front, .bank-card.orange .card-back { background:#e67e22; }
.bank-card.black .card-front, .bank-card.black .card-back { background:#111; }
.bank-card.gray .card-front, .bank-card.gray .card-back { background:#777; }

