body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 420px;
    width: 100%;
}

.brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
}

.card-hover {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card-hover:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.sidebar .nav-link.active,
.nav-pills .nav-link.active {
    background-color: #0d6efd;
}

.invoice-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}


/* === Items & Totals responsive tweaks (auto-added) === */

/* Bigger controls */
.items-table .form-control{min-height:42px;font-size:15px;}
.items-table textarea.form-control{min-height:72px;}
/* Keep note delete aligned */
.items-table .note-row .delete-note-btn{min-width:44px;}

/* Mobile layout: make Service full width, then 4 fields row, then totals */
@media (max-width: 768px){
  .items-table thead{display:none;}
  .items-table tbody tr.item-row{
    display:block;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:10px;
    margin-bottom:12px;
    background:#fff;
  }
  .items-table tbody tr.item-row td{
    border:0;
    padding:6px 4px;
  }

  /* # */
  .items-table tbody tr.item-row td:nth-child(1){
    display:inline-block;
    width:10%;
    padding-top:12px;
  }
  /* Service full width */
  .items-table tbody tr.item-row td:nth-child(2){
    display:inline-block;
    width:90%;
  }
  /* Qty/Price/Discount/Total as 4-up grid */
  .items-table tbody tr.item-row td:nth-child(3),
  .items-table tbody tr.item-row td:nth-child(4),
  .items-table tbody tr.item-row td:nth-child(5),
  .items-table tbody tr.item-row td:nth-child(6){
    display:inline-block;
    width:25%;
  }
  /* Remove item button */
  .items-table tbody tr.item-row td:nth-child(7){
    display:block;
    width:100%;
    text-align:right;
    padding-top:4px;
  }

  /* Notes row below as full width */
  .items-table tbody tr.note-row{
    display:block;
    border:1px dashed #e5e7eb;
    border-radius:12px;
    padding:10px;
    margin-top:-6px;
    margin-bottom:14px;
    background:#fff;
  }
  .items-table tbody tr.note-row td{
    border:0;
    padding:0;
  }
  .items-table tbody tr.note-row td.note-cell{
    display:block;
    width:100%;
  }
  .items-table tbody tr.note-row .d-flex{
    gap:10px !important;
  }

  .items-table .form-control{min-height:52px;font-size:16px;}
  .items-table textarea.form-control{min-height:90px;}
  .items-table .btn{min-height:46px;}
}

/* Stack Items + Totals: totals full width bottom */
.items-totals-stack .items-col,
.items-totals-stack .totals-col{flex:0 0 100%;max-width:100%;}
