/* checkbox_report/assets/sklad.css */

:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 10px 30px rgba(17,24,39,.08);
  --red:#d11a2a;
  --red2:#b51422;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
 /* background: linear-gradient(135deg, #1e3a8a, #dc2626);*/
}

.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
background: #0b1c30;
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.topbar{
  position: sticky;
  top:0;
  background: rgb(248 253 255);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  max-width: 1200px;
  margin:0 auto;
  padding: 14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.card{
  width:100%;
  max-width: 1200px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px;
  box-shadow:var(--shadow);
}
@media (min-width: 900px){
  .card{ max-width: 1200px; }
}

.brand{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 18px;
}
.logo{
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--red);
  font-size: 20px;
}
.subtitle{
  color: var(--muted);
  font-size: 13px;
}

.card-title{
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}
.card-subtitle{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.form{ display:grid; gap:12px; }
.grid{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items:end;
}
@media (min-width: 780px){
  .grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid .label.checkbox{ grid-column: span 1; align-self:center; }
  .grid .btn.primary{ grid-column: span 1; }
}

.label{
  display:grid;
  gap:6px;
  font-size: 13px;
  color: var(--muted);
}
.label.checkbox{
  display:flex;
  gap:10px;
  align-items:center;
  color: var(--text);
  padding-top: 22px;
}
.input{
  width:100%;
  padding: 12px 6px;
  border:1px solid var(--border);
  border-radius: 12px;
  outline:none;
  background:#fff;
  color:var(--text);
}
.input:focus{
  border-color: rgba(209,26,42,.45);
  box-shadow: 0 0 0 4px rgba(209,26,42,.10);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor:pointer;
  text-decoration:none;
  font-weight: 650;
 }
.btn:hover{ border-color: #d1d5db; }
.btn.primary{
   background: #e9650b;
  
  color:#fff;
}
.btn.primary:hover{
    background: #e9420b;
  
}

.alert{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(209,26,42,.25);
  background: rgba(209,26,42,.06);
  color: #7f101a;
}
.alert.pre{ white-space: pre-wrap; }

.report{
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.report-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.report-title{
  font-weight: 800;
}
.pre{
  border: 1px solid var(--border);
  background: #0b1020;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  overflow:auto;
  line-height: 1.35;
  font-size: 13px;
}
.hint{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
code{
  background:#f3f4f6;
  padding: 2px 6px;
  border-radius: 8px;
}

/* table */
.tbl{
  width:100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
}
.tbl th, .tbl td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  white-space: nowrap;
}
.tbl thead th{
  text-align:left;
   font-weight: 800;
}

.tbl thead {
    background: linear-gradient(90deg, #2563eb, #ef4444);
    color:#ffffff;
}

.tbl td.num, .tbl th.num{ text-align:right; }
.tbl tfoot th{
  background:#f3f4f6;
  font-weight: 900;
}

.details-box { padding: 10px 0; }
.details-row td { background: #fafafa; }

.tbl2 td.product-name {
    max-width: 500px;      /* ⬅️ задай потрібну */
    white-space: normal;   /* дозволяє перенос */
    word-break: break-word;
    overflow-wrap: anywhere;
}

.btn-fiscal {
  display: inline-block;
  padding: 4px 10px;
  background: #005b95;;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-fiscal:hover {
  background: #0b5ed7;
}

.refund-ok {
  color: #198754;
  font-weight: 600;
  white-space: nowrap;
}

.refund-no {
  color: #dc3545;
  font-weight: 600;
  white-space: nowrap;
}