
:root{
  --bg:#07080a;
  --bg-2:#0d1014;
  --bg-3:#12161c;
  --bg-4:#181d25;
  --line:#262c35;
  --line-soft:#1c2129;
  --text:#f0f3f7;
  --muted:#a8b0bb;
  --muted-2:#7f8895;
  --gold:#c9a24a;
  --gold-2:#f0d38a;
  --gold-3:#dcbf69;
  --silver:#b7bcc4;
  --danger:#d96b6b;
  --success:#7cc6a4;
  --radius:18px;
  --radius-sm:14px;
  --radius-xs:10px;
  --shadow: 0 18px 50px rgba(0,0,0,.42);
  --container: 1680px;
}

*{box-sizing:border-box}
html,body{min-height:100%}
html{background:var(--bg)}
body{
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(201,162,74,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(183,188,196,.08), transparent 26%),
    linear-gradient(180deg, #050607 0%, #090b0e 52%, #060708 100%);
  color:var(--text);
  color-scheme:dark;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x:hidden;
}

a{color:var(--gold-2); text-decoration:none}
a:hover{color:#ffe29a}
img{max-width:100%; display:block}
button,input,select,textarea{font:inherit}

.shell{
  width:min(var(--container), calc(100vw - 32px));
  margin:16px auto 28px;
}

.navbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(8,10,13,.94);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(201,162,74,.18);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.navbar .inner{
  width:min(var(--container), calc(100vw - 32px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:74px;
}
.brand{
  display:flex;
  align-items:center;
  gap:2px;
  min-width:230px;
}
.brand img{
  width:44px;
  height:44px;
  object-fit:contain;
  filter:drop-shadow(0 0 18px rgba(201,162,74,.16));
}
.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand strong{
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.88rem;
  color:var(--gold-2);
}
.brand span{
  font-size:.75rem;
  color:var(--muted);
}
.navlinks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.navlinks a{
  color:var(--muted);
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.04);
  padding:11px 14px;
  border-radius:999px;
  transition:.2s ease;
  font-size:.92rem;
}
.navlinks a:hover,.navlinks a.active{
  color:var(--text);
  background:linear-gradient(135deg, rgba(201,162,74,.16), rgba(183,188,196,.08));
  border-color:rgba(201,162,74,.16);
  box-shadow: inset 0 0 0 1px rgba(201,162,74,.10);
}

.hero{
  background:
    linear-gradient(135deg, rgba(201,162,74,.16), rgba(255,255,255,.03)),
    linear-gradient(180deg, rgba(18,22,28,.98), rgba(12,14,18,.98));
  border:1px solid rgba(201,162,74,.18);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-inner{
  padding:26px 28px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.hero h1,.page-title{
  margin:0;
  color:#f7f8fa;
  font-size:clamp(1.35rem, 1.1rem + 1vw, 2rem);
}
.hero p{
  color:var(--muted);
  margin:8px 0 0;
  max-width:980px;
  line-height:1.55;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(201,162,74,.22);
  background:rgba(10,12,16,.6);
  padding:8px 12px;
  border-radius:999px;
  font-size:.78rem;
  color:var(--silver);
  white-space:nowrap;
}

.grid{
  display:grid;
  gap:16px;
}
.two-col{
  grid-template-columns:minmax(0,1fr) minmax(420px,1fr);
  align-items:start;
}
@media (max-width:1219px){
  .two-col{grid-template-columns:1fr}
}
.panel{
  min-width:0;
  background:linear-gradient(180deg, rgba(18,22,28,.98), rgba(12,14,18,.98));
  border:1px solid rgba(201,162,74,.14);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px 14px;
  border-bottom:1px solid rgba(255,255,255,.04);
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.panel-head h2{
  margin:0;
  color:#f4f6f9;
  font-size:1.02rem;
}
.panel-head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.88rem;
  line-height:1.45;
}
.panel-body{padding:20px 22px 22px}

.scroll-zone{
  max-height:calc(100vh - 178px);
  overflow:auto;
  padding-right:2px;
}
@media (max-width:1219px){
  .scroll-zone{max-height:none}
}
.scroll-zone::-webkit-scrollbar,
body::-webkit-scrollbar{width:10px;height:10px}
.scroll-zone::-webkit-scrollbar-track,
body::-webkit-scrollbar-track{background:rgba(255,255,255,.03)}
.scroll-zone::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(201,162,74,.72), rgba(183,188,196,.42));
  border-radius:999px;
  border:2px solid rgba(8,10,13,.85);
}

.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent),
    linear-gradient(180deg, rgba(17,21,27,.96), rgba(12,15,20,.98));
  border:1px solid rgba(201,162,74,.12);
  border-radius:var(--radius-sm);
  box-shadow:0 8px 28px rgba(0,0,0,.22);
}
.card + .card{margin-top:14px}
.card .card-head{
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.card .card-body{padding:18px}
.card-title{
  margin:0;
  color:#f5f7fa;
  font-size:.98rem;
}
.card-subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.45;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.form-grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}
.form-grid-4{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 1024px){
  .form-grid,.form-grid-3,.form-grid-4{grid-template-columns:1fr}
}

.field{display:flex;flex-direction:column;gap:6px}
.label{
  color:#c9d0d9;
  font-size:.82rem;
  letter-spacing:.01em;
}
.help{
  color:var(--muted-2);
  font-size:.78rem;
  line-height:1.35;
}

.input, .select, .textarea{
  width:100%;
  background:linear-gradient(180deg, rgba(8,10,13,.98), rgba(14,17,22,.98));
  border:1px solid #2a313b;
  color:#f4f7fb;
  border-radius:12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  caret-color: var(--gold-2);
  padding:12px 14px;
  min-height:44px;
  outline:none;
}
.textarea{min-height:160px; resize:vertical}
.input::placeholder, .textarea::placeholder{
  color:#8f98a5; opacity:1;
}
.input:focus, .select:focus, .textarea:focus{
  border-color:rgba(201,162,74,.8);
  box-shadow:0 0 0 1px rgba(201,162,74,.2);
  color:#ffffff;
}
.input:disabled, .select:disabled, .textarea:disabled{
  background:#12161c;
  color:#808896;
  cursor:not-allowed;
  opacity:1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-text-fill-color:#f4f7fb;
  caret-color: var(--gold-2);
  transition: background-color 9999s ease-in-out 0s;
  box-shadow:0 0 0px 1000px #0f1115 inset;
  border:1px solid #2a313b;
}

option{background:#0f1115;color:#f4f7fb}

.check-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
}
.check-row input[type="checkbox"],
.check-row input[type="radio"]{
  width:18px;
  height:18px;
  accent-color: var(--gold);
}
.switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.switch input{accent-color: var(--gold)}

.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.btn{
  border:0;
  border-radius:12px;
  padding:12px 16px;
  cursor:pointer;
  transition:.18s ease;
  font-weight:600;
  letter-spacing:.01em;
}
.btn-primary{
  background:linear-gradient(135deg, #d3b04e, #a88325);
  color:#08090b;
}
.btn-primary:hover{background:linear-gradient(135deg, #f1d27b, #c9a24a)}
.btn-ghost{
  background:linear-gradient(180deg, rgba(24,29,37,.98), rgba(14,17,22,.98));
  border:1px solid #303844;
  color:#f1f4f7;
}
.btn-ghost:hover{border-color:rgba(201,162,74,.35); color:#fff}
.btn-danger{
  background:linear-gradient(135deg, #d96b6b, #b94848);
  color:#fff;
}
.btn-danger:hover{background:linear-gradient(135deg, #ef8484, #cd5959)}

.stat{
  padding:18px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(18,22,28,.96), rgba(12,15,20,.98));
  border:1px solid rgba(201,162,74,.12);
  min-height:120px;
}
.stat .k{
  color:var(--muted);
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.stat .v{
  font-size:1.65rem;
  margin-top:8px;
  color:#fff;
  font-weight:700;
}
.stat .d{
  margin-top:6px;
  color:#bcc3cd;
  font-size:.84rem;
  line-height:1.4;
}

.action-card{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  padding:18px;
}
.action-card h3{margin:0;font-size:1.02rem;color:#f5f7fa}
.action-card p{color:var(--muted);margin:0;font-size:.88rem;line-height:1.45}
.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(201,162,74,.16), rgba(183,188,196,.09));
  border:1px solid rgba(201,162,74,.18);
  color:#f0f3f7;
  padding:4px 10px;
  font-size:.75rem;
}
.divider{
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(201,162,74,.22), transparent);
  margin:16px 0;
}

.table-wrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(201,162,74,.12);
}
.table{
  width:100%;
  border-collapse:collapse;
  color:#edf1f6;
}
.table th{
  color:#dfe5ec;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:rgba(255,255,255,.02);
  border-bottom:1px solid rgba(255,255,255,.06);
  text-align:left;
  padding:12px 10px;
}
.table td{
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:10px;
  vertical-align:top;
}
.table.striped tbody tr:nth-of-type(odd){background:rgba(255,255,255,.015)}
.table.hover tbody tr:hover{background:rgba(201,162,74,.06)}

.preview{
  padding:0;
}
.doc-sheet{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,247,243,.98));
  color:#101114;
  border-radius:18px;
  padding:28px;
  border:1px solid rgba(201,162,74,.20);
  box-shadow:0 18px 42px rgba(0,0,0,.3);
  min-height:100%;
}
.doc-sheet *, .doc-sheet{
  color:#111;
  -webkit-text-fill-color:#111;
}
.doc-sheet h1,.doc-sheet h2,.doc-sheet h3,.doc-sheet h4,.doc-sheet p,.doc-sheet span,.doc-sheet li,.doc-sheet td,.doc-sheet th,.doc-sheet label{
  color:inherit;
}
.doc-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  border-bottom:1px solid rgba(0,0,0,.08);
  padding-bottom:14px;
  margin-bottom:14px;
}
.doc-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.doc-brand img{
  width:48px;
  height:48px;
  object-fit:contain;
}
.doc-brand .title{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.doc-brand .title strong{
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.95rem;
}
.doc-brand .title span{
  color:#565d68;
  font-size:.84rem;
}
.gold-rule{
  height:3px;
  width:100%;
  background:linear-gradient(90deg, var(--gold), #f4e2aa, var(--gold));
  border-radius:999px;
  margin:12px 0 18px;
}
.section{margin-bottom:18px}
.section-title{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#6a5a23;
  margin-bottom:8px;
  font-weight:700;
}
.box{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.68);
}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px 16px;
}
.summary-grid .item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px dashed rgba(0,0,0,.08);
  padding-bottom:6px;
}
.summary-grid .item strong{color:#1a1d23}
.summary-grid .item span{text-align:right;font-weight:700}
.total{
  margin-top:10px;
  border:1px solid rgba(201,162,74,.45);
  background:linear-gradient(135deg, rgba(201,162,74,.12), rgba(183,188,196,.08));
  border-radius:12px;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.total strong{font-size:1.1rem}
.signature-area{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.sign{
  height:90px;
  border-bottom:1px solid rgba(0,0,0,.28);
  display:flex;
  align-items:flex-end;
  padding-bottom:6px;
  color:#31343b;
}
.paper-note{color:#55606f;font-size:.86rem;line-height:.55}

.mini-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 1100px){
  .mini-grid{grid-template-columns:1fr}
}
@media (max-width: 959px){
  .shell{width:min(100vw - 20px, var(--container)); margin-top:10px}
  .hero-inner{padding:18px; flex-direction:column}
  .brand{min-width:auto}
  .panel-head, .panel-body{padding-left:16px; padding-right:16px}
  .doc-sheet{padding:18px}
  .summary-grid, .signature-area{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .navbar .inner{min-height:unset; padding:10px 0; flex-direction:column; align-items:flex-start}
  .navlinks{justify-content:flex-start}
  .navlinks a{padding:10px 12px; font-size:.84rem}
  .input,.select,.textarea{border-radius:10px}
  .card .card-body{padding:14px}
  .panel-head{flex-direction:column}
  .doc-sheet{padding:14px}
}

body.print-mode{
  background:#fff !important;
  color:#000 !important;
}
body.print-mode .navbar,
body.print-mode .hero,
body.print-mode .shell > *:not(.print-area),
body.print-mode .no-print{
  display:none !important;
}
body.print-mode .print-area{
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
@media print{
  body{
    background:#fff !important;
    color:#000 !important;
  }
  .navbar,.hero,.no-print{display:none !important}
  .shell{width:100% !important; margin:0 !important}
  .panel{border:none !important; box-shadow:none !important; background:#fff !important}
  .doc-sheet{box-shadow:none !important; border:none !important}
}

.footer{
    text-align: center;
}