/* Additions on top of the prototype stylesheet (styles.css). */
[hidden]{display:none!important}
.boot-loading{min-height:100vh;display:grid;place-items:center;color:var(--muted)}
.eyebrow{margin-bottom:7px}
.today-chip{font-size:12px;color:var(--green);font-weight:600;white-space:nowrap}
.bell{position:relative}.bell .dot{position:absolute;top:-6px;right:-6px;background:var(--red);color:#fff;border-radius:9px;font-size:10px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px}
.sidebar-bottom .text-link{display:inline;padding:0;font:inherit;font-size:12px;cursor:pointer}
#toast.error{background:#7d2b22}
dialog.wide{max-width:860px}
.modal-body .form-grid{margin-bottom:6px}
.btn{white-space:nowrap}
td.wrap,.wrap{white-space:normal;min-width:160px}
.total-row td{font-weight:650;background:#f8faf5}
.opening-row td{background:#fafbf7}
.line-summary{font-size:12px;color:var(--muted);margin:12px 0 0}
.line-summary strong{color:var(--ink)}
.bill-item .spaced{margin-bottom:12px}
.sticky-summary{position:sticky;top:16px}
.verify-line{margin-top:16px;padding:12px;border-radius:10px;background:#fcf8e9;border:1px solid #eadfbd;align-items:flex-start}
.copy-box{width:100%;min-height:180px;font:inherit;padding:12px;border:1px solid var(--line);border-radius:8px}
.qr-thumb{width:64px;height:64px;object-fit:contain;border:1px solid var(--line);border-radius:6px}
.bank-line{align-items:center}
.chip-x{background:none;border:0;color:var(--red);padding:0 0 0 4px;font-weight:700;cursor:pointer}
.term-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 0;border-bottom:1px solid var(--line)}
.term-num{font-weight:700;color:var(--green);padding-top:30px}
.term-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.term-fields textarea{min-height:64px}
.term-tools{display:flex;gap:6px;padding-top:26px}
.term-tools .icon-button{min-width:34px;min-height:34px}
@media(max-width:760px){.term-row{grid-template-columns:22px minmax(0,1fr)}.term-fields{grid-template-columns:1fr}.term-tools{grid-column:2;padding-top:0}.term-num{padding-top:28px}}
.audit-data{white-space:pre-wrap;word-break:break-word;background:#f6f7f2;padding:14px;border-radius:8px;font-size:11px;max-height:60vh;overflow:auto}
.report-period{font-size:12px;color:var(--muted);margin:0 0 16px}
.notification.unread{background:#f7fbf2}
.toolbar select.filter-select,.toolbar input.filter-select{width:auto;min-width:150px}
.source-row select,.source-row input{width:100%}
.stock-card{color:inherit}
.metric-row small{display:block;color:var(--muted)}
.inline small{white-space:nowrap}
.upload{margin-top:16px}
.panel-body>.upload:first-child{margin-top:0}
.document-pdf{border:1px solid var(--line)}

/* Invoice */
.invoice-brand p{font-size:12px;margin-top:4px}
.invoice-title{font-weight:700;letter-spacing:1.5px;color:var(--green);margin-top:10px!important}
.invoice-meta p{margin:3px 0}
.invoice-meta .muted{display:inline-block;min-width:150px}
.invoice-totals{margin-left:auto;max-width:420px;padding-top:12px}
.cd-box{border:1px dashed #b7883d;background:#fffaf0;border-radius:10px;padding:14px 18px;margin:18px 0;font-size:12px}
.cd-box p{margin-top:8px;color:#6d5a33}
.qr-image{width:120px;height:120px;object-fit:contain;flex-shrink:0}
.invoice .terms{padding-left:18px}
.invoice .terms li{margin-bottom:6px}
.sign{padding-bottom:10px}
.sign-space{height:56px}
.print-asof{font-size:10px;color:var(--muted);text-align:right}
[lang="hi"]{font-family:"Nirmala UI","Noto Sans Devanagari","Mangal",sans-serif}
html[lang="hi"] body{font-family:"Segoe UI","Nirmala UI","Noto Sans Devanagari","Mangal",Arial,sans-serif}
html[lang="hi"] .btn,html[lang="hi"] .tab,html[lang="hi"] .badge{letter-spacing:0}
.lang-toggle{border:1px solid var(--line);background:#fff;color:var(--green);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:650;min-height:34px;cursor:pointer;font-family:"Segoe UI","Nirmala UI","Noto Sans Devanagari",sans-serif}
.lang-toggle:hover{background:var(--mint)}
.login-lang{display:flex;justify-content:flex-end;margin-bottom:12px}

@media(max-width:1150px){.sticky-summary{position:static}}
@media(max-width:760px){
  .today-chip{display:none}
  .invoice-meta{grid-template-columns:1fr}
  .invoice-meta .muted{min-width:0;display:block;font-size:10px}
  .invoice-bank{flex-direction:column}
  .page-head .actions{width:100%}
  .row-actions{flex-wrap:wrap;justify-content:flex-end}
  .toolbar .actions{width:100%}
  .toolbar .actions .filter-select,.toolbar .actions .inline{flex:1 1 140px}
  .tabs{overflow-x:auto;flex-wrap:nowrap;max-width:100%;padding-bottom:4px}
  .tab{white-space:nowrap}
  td.wrap,.wrap{min-width:0}
  .panel td.amount{text-align:right}
  .verify-line{font-size:12px}
  dialog.wide{max-width:none}
  .login-logo{width:42px;height:46px}
}
@media print{
  .no-print,.toolbar,.location-toolbar,.setting-nav{display:none!important}
  .invoice{padding:0}
  .invoice .table-wrap{overflow:visible}
  .cd-box,.invoice-bank{break-inside:avoid}
  table{white-space:normal}
  .panel{border:0}
  .stats{grid-template-columns:repeat(4,1fr)}
}
