
:root{
 --lime:#c1ff72;
 --dark:#2d2c27;
 --white:#ffffff;
 --bg:#f7f7f5;
 --border:#e5e5df;
 --muted:#77766f;
}
*{box-sizing:border-box;margin:0;padding:0;font-family:Inter,Arial,sans-serif}
body{background:var(--bg);color:var(--dark)}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}

.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:var(--dark);color:var(--white);padding:20px 14px;z-index:10}
.logo{height:62px;padding:4px 14px 18px;display:flex;align-items:center}
.logo img{max-width:190px;max-height:48px;object-fit:contain;display:none}
.logo-placeholder{width:190px;height:42px;border:1px dashed #77766f;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:11px}
.menu-title{font-size:10px;color:#aaa;text-transform:uppercase;letter-spacing:1px;margin:22px 14px 8px}
.menu a{display:flex;gap:12px;align-items:center;padding:11px 14px;border-radius:8px;color:#ddd;font-size:14px;margin:3px 0}
.menu a:hover,.menu a.active{background:#3a3933;color:#fff}
.menu a.active{border-left:3px solid var(--lime);padding-left:11px}

.main{margin-left:245px;min-height:100vh}
.topbar{height:70px;background:#fff;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 32px}
.topbar h1{font-size:20px}
.admin{display:flex;align-items:center;gap:10px;font-size:13px}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--lime);color:var(--dark);font-weight:800}

.content{padding:30px}
.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}
.page-head h2{font-size:24px}
.muted{color:var(--muted);font-size:13px;margin-top:5px}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}
.stat,.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px}
.stat .label{font-size:12px;color:var(--muted)}
.stat .value{font-size:25px;font-weight:800;margin:8px 0}
.up{font-size:11px;color:#5f7e37}

.grid2{display:grid;grid-template-columns:2fr 1fr;gap:20px}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.card-head h3{font-size:16px}

table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:11px;color:var(--muted);padding:11px;border-bottom:1px solid var(--border);text-transform:uppercase}
td{padding:13px 11px;border-bottom:1px solid #f0f0ec;font-size:13px}

.badge{display:inline-block;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700}
.paid{background:#eaf8d9;color:#4c7023}
.pending{background:#fff5d7;color:#856b1d}
.unpaid{background:#f7dddd;color:#9a3838}
.draft{background:#e8e8e4;color:#555}
.active-b{background:#e7f8ce;color:#4c7023}

.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.action{border:1px solid var(--border);border-radius:10px;padding:15px}
.action:hover{border-color:var(--lime);background:#fbfff6}
.action .icon{font-size:21px;margin-bottom:8px}
.action b{display:block;font-size:13px}
.action small{color:var(--muted)}

.toolbar{display:flex;gap:10px;margin-bottom:18px}
.search{background:#fff;border:1px solid #d8d8d0;border-radius:8px;padding:10px 12px;width:280px}
.select{background:#fff;border:1px solid #d8d8d0;border-radius:8px;padding:10px}

.btn{border:0;border-radius:8px;padding:10px 15px;cursor:pointer;font-weight:700;font-size:13px}
.btn-primary{background:var(--lime);color:var(--dark)}
.btn-secondary{background:#fff;border:1px solid #d8d8d0;color:var(--dark)}

.catalog{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.product-img{height:150px;background:#f0f7e8;display:grid;place-items:center;font-size:42px}
.product-body{padding:15px}
.product h3{font-size:15px;margin-bottom:5px}
.price{font-weight:800;font-size:18px;margin:10px 0}
.category{font-size:11px;color:var(--muted)}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
.field label{font-size:12px;font-weight:700}
.field input,.field select,.field textarea{border:1px solid #d8d8d0;border-radius:8px;padding:10px;background:#fff;color:var(--dark)}

.line-items{margin-top:20px}
.line-items table input{width:80px;border:1px solid #ddd;padding:7px;border-radius:5px}
.invoice{max-width:850px;margin:auto;background:#fff;border:1px solid var(--border);padding:35px}
.invoice-top{display:flex;justify-content:space-between;margin-bottom:35px}
.invoice-logo{font-size:25px;font-weight:800}
.invoice-meta{text-align:right;font-size:12px}
.invoice-total{text-align:right;margin-top:20px}
.invoice-total strong{font-size:24px}

.notice{padding:12px 15px;background:#f0f7e8;border:1px solid #d6eab9;border-radius:8px;color:#4c7023;font-size:12px;margin-bottom:18px}
.chart{height:240px;display:flex;align-items:end;gap:12px;padding:20px 5px 5px}
.bar{flex:1;background:var(--lime);border-radius:5px 5px 0 0;min-height:20px;position:relative}
.bar span{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--muted)}

@media(max-width:1050px){
 .stats{grid-template-columns:1fr 1fr}
 .catalog{grid-template-columns:1fr 1fr}
 .grid2{grid-template-columns:1fr}
}
@media(max-width:700px){
 .sidebar{width:65px}
 .logo-placeholder{width:38px;font-size:0}
 .logo{padding-left:0}
 .menu a span:last-child,.menu-title{display:none}
 .menu a{justify-content:center}
 .main{margin-left:65px}
 .content{padding:18px}
 .stats,.catalog,.form-grid{grid-template-columns:1fr}
 .topbar{padding:0 15px}
}


/* =========================================
   DIGITALDEALS - A4 INVOICE
   Invoice-only styling; website layout untouched.
   ========================================= */

.invoice-page {
  padding-bottom: 40px;
}

.invoice {
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 16mm 16mm 12mm;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(45, 44, 39, 0.08);
  display: flex;
  flex-direction: column;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.company-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.invoice-logo-wrapper {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invoice-logo {
  display: block;
  width: 70px;
  height: 70px;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: #666;
  line-height: 1.45;
}

.company-details b {
  color: #2d2c27;
  font-size: 13px;
}

.invoice-title-block {
  text-align: right;
  min-width: 200px;
}

.invoice-title {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #2d2c27;
}

.invoice-number {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #8bcf20;
}

.invoice-dates {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  font-size: 10px;
}

.invoice-dates div {
  display: grid;
  grid-template-columns: 90px auto;
  gap: 10px;
}

.invoice-dates span {
  color: #777;
}

.invoice-dates b {
  color: #2d2c27;
}

.paid-status {
  display: inline-block;
  background: #c1ff72;
  color: #2d2c27 !important;
  padding: 3px 10px;
  border-radius: 5px;
  justify-self: end;
}

.invoice-rule {
  height: 2px;
  background: #c1ff72;
  margin: 20px 0 25px;
}

.bill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 25px;
}

.invoice-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8bcf20;
  margin-bottom: 9px;
}

.customer-name {
  font-size: 14px;
  font-weight: 800;
  color: #2d2c27;
  margin-bottom: 5px;
}

.customer-details {
  font-size: 10px;
  line-height: 1.6;
  color: #555;
}

.payment-details {
  display: grid;
  gap: 9px;
  font-size: 10px;
}

.payment-details div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 10px;
}

.payment-details b {
  color: #2d2c27;
}

.payment-details span {
  color: #555;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.invoice-table th {
  background: #f3fbdc;
  color: #2d2c27;
  border: 1px solid #d8ded0;
  padding: 10px 8px;
  font-size: 9px;
  font-weight: 800;
}

.invoice-table td {
  padding: 12px 8px;
  border: 1px solid #dedede;
  font-size: 10px;
  color: #2d2c27;
  vertical-align: top;
}

.invoice-table td small {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  color: #777;
}

.invoice-table th:first-child,
.invoice-table td:first-child {
  width: 35px;
  text-align: center;
}

.invoice-table .qty {
  width: 45px;
  text-align: center;
}

.invoice-table .money {
  width: 85px;
  text-align: right;
}

.invoice-bottom {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 40px;
  margin-top: 25px;
}

.invoice-note {
  font-size: 10px;
  color: #555;
  line-height: 1.5;
}

.invoice-note p {
  margin: 4px 0;
}

.totals {
  font-size: 10px;
}

.totals > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #444;
}

.grand-total {
  margin-top: 8px;
  padding: 12px !important;
  border-top: 1px solid #2d2c27;
  border-bottom: 3px solid #c1ff72;
  background: #f6fce8;
  align-items: center;
}

.grand-total span {
  font-size: 12px;
  font-weight: 800;
  color: #2d2c27;
}

.grand-total strong {
  font-size: 20px;
  color: #2d2c27;
}

.invoice-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #dedede;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.help-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #c1ff72;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.help-section div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
  color: #555;
}

.help-section b {
  font-size: 11px;
  color: #2d2c27;
}

.thank-you {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thank-you strong {
  font-size: 18px;
  font-style: italic;
  color: #2d2c27;
}

.thank-you span {
  font-size: 10px;
  font-weight: 700;
  color: #8bcf20;
}

.invoice-actions {
  margin-top: 20px;
  text-align: right;
}

@media (max-width: 900px) {
  .invoice {
    width: 100%;
    min-height: auto;
    padding: 25px;
  }
}

@media print {

  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    background: #ffffff !important;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sidebar,
  .topbar,
  .no-print {
    display: none !important;
  }

  .main {
    margin-left: 0 !important;
    min-height: 0 !important;
  }

  .content.invoice-page {
    padding: 0 !important;
  }

  .invoice {
    width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 16mm 16mm 12mm !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }

  .invoice-table thead {
    display: table-header-group;
  }

  .invoice-table tr {
    break-inside: avoid;
  }
}


/* =========================================
   LOGO NAMING
   Main Logo = full DigitalDeals logo
   Icon Logo = D icon used on printed documents
   ========================================= */

/* Restore the full Main Logo on the website/sidebar.
   This overrides the old placeholder rule without changing layout. */
.sidebar .logo img.brand-logo {
  display: block !important;
  width: 190px;
  height: 42px;
  max-width: 190px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 700px) {
  .sidebar .logo img.brand-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-position: center;
  }
}

/* Printed documents use the Icon Logo */
.document-icon-logo {
  display: block;
  width: 70px;
  height: 70px;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}


/* =========================================
   A4 PRINTED QUOTATION
   Uses Icon Logo, not Main Logo.
   ========================================= */

.quotation-print {
  display: none;
}

.quotation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.quotation-company {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.quotation-icon-logo {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
}

.quotation-company-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: #666;
  line-height: 1.45;
}

.quotation-company-details b {
  color: #2d2c27;
  font-size: 13px;
}

.quotation-title-block {
  text-align: right;
  min-width: 200px;
}

.quotation-title {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #2d2c27;
}

.quotation-number {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #8bcf20;
}

.quotation-dates {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  font-size: 10px;
}

.quotation-dates div {
  display: grid;
  grid-template-columns: 100px auto;
  gap: 10px;
}

.quotation-dates span {
  color: #777;
}

.quotation-dates b {
  color: #2d2c27;
}

.quotation-status {
  display: inline-block;
  background: #f0f0ec;
  color: #555 !important;
  padding: 3px 10px;
  border-radius: 5px;
  justify-self: end;
}

.quotation-rule {
  height: 2px;
  background: #c1ff72;
  margin: 20px 0 25px;
}

.quotation-bill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 25px;
}

.quotation-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8bcf20;
  margin-bottom: 9px;
}

.quotation-customer-name {
  font-size: 14px;
  font-weight: 800;
  color: #2d2c27;
  margin-bottom: 5px;
}

.quotation-customer-details {
  font-size: 10px;
  line-height: 1.6;
  color: #555;
}

.quotation-currency {
  font-size: 14px;
  font-weight: 800;
  color: #2d2c27;
  margin-bottom: 6px;
}

.quotation-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.quotation-table th {
  background: #f3fbdc;
  color: #2d2c27;
  border: 1px solid #d8ded0;
  padding: 10px 8px;
  font-size: 9px;
  font-weight: 800;
}

.quotation-table td {
  padding: 12px 8px;
  border: 1px solid #dedede;
  font-size: 10px;
  color: #2d2c27;
  vertical-align: top;
}

.quotation-table td small {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  color: #777;
}

.quotation-table th:first-child,
.quotation-table td:first-child {
  width: 35px;
  text-align: center;
}

.quotation-table .quotation-qty {
  width: 50px;
  text-align: center;
}

.quotation-table .quotation-money {
  width: 100px;
  text-align: right;
}

.quotation-bottom {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 40px;
  margin-top: 25px;
}

.quotation-note {
  font-size: 10px;
  color: #555;
  line-height: 1.5;
}

.quotation-note p {
  margin: 4px 0;
}

.quotation-totals {
  font-size: 10px;
}

.quotation-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  color: #444;
}

.quotation-grand-total {
  margin-top: 8px;
  padding: 12px !important;
  border-top: 1px solid #2d2c27;
  border-bottom: 3px solid #c1ff72;
  background: #f6fce8;
  align-items: center;
}

.quotation-grand-total span {
  font-size: 12px;
  font-weight: 800;
  color: #2d2c27;
}

.quotation-grand-total strong {
  font-size: 20px;
  color: #2d2c27;
}

.quotation-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #dedede;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #777;
  font-size: 8.5px;
}


/* A4 quotation printing */
@media print {

  @page {
    size: A4 portrait;
    margin: 0;
  }

  .quotation-editor {
    display: none !important;
  }

  .quotation-print {
    display: flex !important;
    flex-direction: column;
    width: 210mm !important;
    min-height: 297mm !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 16mm 16mm 12mm !important;
    background: #fff;
    border: 0 !important;
    box-shadow: none !important;
  }

  .sidebar,
  .topbar,
  .no-print {
    display: none !important;
  }

  .main {
    margin-left: 0 !important;
    min-height: 0 !important;
  }

  .content {
    padding: 0 !important;
  }

  body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .quotation-table thead {
    display: table-header-group;
  }

  .quotation-table tr {
    break-inside: avoid;
  }
}


/* =========================================
   DIGITALDEALS ADMIN LOGIN
   ========================================= */

.login-body {
  margin: 0;
  min-height: 100vh;
  background: #2d2c27;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 430px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 18px;
  padding: 42px;
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.login-main-logo {
  display: block !important;
  width: 220px;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.login-heading {
  text-align: center;
  margin-bottom: 28px;
}

.login-heading h1 {
  margin: 0 0 8px;
  font-size: 27px;
  color: #2d2c27;
}

.login-heading p {
  margin: 0;
  color: #777;
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field label {
  font-size: 12px;
  font-weight: 700;
  color: #2d2c27;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  height: 45px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 13px;
  outline: none;
}

.login-field input:focus {
  border-color: #a9df54;
  box-shadow: 0 0 0 3px rgba(193,255,114,.22);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6a8e25;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #666;
  cursor: pointer;
}

.remember-me input {
  accent-color: #2d2c27;
}

.login-button {
  width: 100%;
  height: 45px;
  margin-top: 2px;
}

.login-error {
  display: none;
  padding: 10px 12px;
  border-radius: 7px;
  background: #fff1f1;
  color: #b33a3a;
  font-size: 11px;
  text-align: center;
}

.login-error.show {
  display: block;
}

.login-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 10px;
}

.logout-btn {
  border: 1px solid #deded9;
  background: #ffffff;
  color: #555;
  border-radius: 7px;
  padding: 6px 10px;
  margin-left: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover {
  background: #f5f5f1;
}

@media (max-width: 520px) {
  .login-page {
    padding: 18px;
  }

  .login-card {
    padding: 30px 24px;
  }

  .login-main-logo {
    width: 190px;
  }
}

@media print {
  .logout-btn {
    display: none !important;
  }
}


/* =========================================
   DIGITALDEALS PUBLIC CUSTOMER CATALOG
   ========================================= */

.customer-body {
  margin: 0;
  background: #ffffff;
  color: #2d2c27;
  font-family: inherit;
}

.customer-header {
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  border-bottom: 1px solid #eeeeea;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.customer-brand {
  display: flex;
  align-items: center;
}

.customer-main-logo {
  width: 170px;
  height: 48px;
  object-fit: contain;
}

.customer-nav {
  display: flex;
  gap: 30px;
}

.customer-nav a {
  color: #2d2c27;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.customer-nav a:hover {
  color: #79a927;
}


/* HERO */

.customer-hero {
  background: #2d2c27;
  color: #ffffff;
}

.customer-hero-inner {
  max-width: 1180px;
  min-height: 480px;
  margin: 0 auto;
  padding: 70px 30px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.customer-hero-text {
  max-width: 680px;
}

.customer-eyebrow {
  display: inline-block;
  color: #7fac2c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.customer-hero .customer-eyebrow {
  color: #c1ff72;
}

.customer-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 65px);
  line-height: 1.04;
  letter-spacing: -2px;
}

.customer-hero h1 strong {
  color: #c1ff72;
}

.customer-hero p {
  max-width: 520px;
  margin: 22px 0 30px;
  color: #c8c8c3;
  font-size: 15px;
  line-height: 1.7;
}

.customer-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #c1ff72;
  color: #2d2c27;

  border: 0;
  border-radius: 8px;

  padding: 12px 20px;

  font-size: 12px;
  font-weight: 800;

  text-decoration: none;
  cursor: pointer;
}

.customer-primary-btn:hover {
  background: #d0ff91;
}

.customer-hero-icon {
  width: 250px;
  height: 250px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(193,255,114,.35);
  border-radius: 28px;
  background: rgba(193,255,114,.04);
}

.customer-hero-icon img {
  width: 175px;
  height: 175px;
  object-fit: contain;
}


/* CATALOG */

.customer-catalog {
  max-width: 1180px;
  margin: 0 auto;
  padding: 85px 30px;
  box-sizing: border-box;
}

.customer-section-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
}

.customer-section-heading h2,
.customer-about h2,
.customer-contact h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.customer-section-heading p {
  color: #777;
  font-size: 13px;
  margin-top: 10px;
}

.customer-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.customer-product-card {
  border: 1px solid #e4e4df;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.customer-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(45,44,39,.09);
}

.customer-product-icon {
  height: 105px;
  background: #f4fbdc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d2c27;
  font-size: 31px;
  font-weight: 900;
}

.customer-product-content {
  padding: 22px;
}

.customer-product-category {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #82aa32;
}

.customer-product-content h3 {
  margin: 7px 0;
  font-size: 18px;
}

.customer-product-content p {
  min-height: 58px;
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.6;
}

.customer-product-bottom {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eeeeea;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-product-bottom > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.customer-product-bottom small {
  position: absolute;
  margin-top: -28px;
  color: #999;
  font-size: 8px;
}

.customer-product-bottom strong {
  font-size: 19px;
}

.customer-product-bottom span {
  color: #777;
  font-size: 9px;
}

.customer-view-btn {
  border: 1px solid #d9d9d4;
  background: #ffffff;
  color: #2d2c27;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.customer-view-btn:hover {
  background: #c1ff72;
  border-color: #c1ff72;
}


/* ABOUT */

.customer-about {
  background: #f7f7f3;
}

.customer-about-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  box-sizing: border-box;
}

.customer-benefits {
  display: grid;
  gap: 25px;
}

.customer-benefits > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid #deded9;
}

.customer-benefits > div > span {
  color: #9bca43;
  font-size: 12px;
  font-weight: 900;
}

.customer-benefits h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.customer-benefits p {
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.6;
}


/* CONTACT */

.customer-contact {
  background: #2d2c27;
  color: #ffffff;
}

.customer-contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 65px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  box-sizing: border-box;
}

.customer-contact h2 {
  color: #ffffff;
}

.customer-contact p {
  color: #bdbdb7;
  font-size: 12px;
}

.customer-contact-details {
  display: flex;
  gap: 40px;
}

.customer-contact-details div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.customer-contact-details span {
  color: #9d9d96;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.customer-contact-details strong {
  color: #c1ff72;
  font-size: 13px;
}


/* FOOTER */

.customer-footer {
  min-height: 80px;
  padding: 0 7%;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #ffffff;
  color: #999;
  font-size: 9px;
}

.customer-footer-logo {
  width: 135px;
  height: 40px;
  object-fit: contain;
}


/* MODAL */

.customer-modal {
  position: fixed;
  inset: 0;
  background: rgba(45,44,39,.65);

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
  z-index: 100;
}

.customer-modal.show {
  display: flex;
}

.customer-modal-card {
  width: 100%;
  max-width: 410px;
  background: #ffffff;
  border-radius: 16px;
  padding: 35px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}

.customer-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
  color: #777;
}

.customer-modal-icon {
  width: 65px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 12px;
}

.customer-modal-card h2 {
  margin: 5px 0 10px;
}

.customer-modal-card p {
  color: #777;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 25px;
}


/* MOBILE */

@media (max-width: 800px) {

  .customer-header {
    padding: 0 20px;
  }

  .customer-nav {
    gap: 14px;
  }

  .customer-hero-inner {
    padding: 55px 25px;
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-hero-icon {
    width: 150px;
    height: 150px;
  }

  .customer-hero-icon img {
    width: 100px;
    height: 100px;
  }

  .customer-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .customer-about-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .customer-contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 560px) {

  .customer-nav a:not(:first-child) {
    display: none;
  }

  .customer-main-logo {
    width: 140px;
  }

  .customer-catalog {
    padding: 55px 20px;
  }

  .customer-product-grid {
    grid-template-columns: 1fr;
  }

  .customer-section-heading h2,
  .customer-about h2,
  .customer-contact h2 {
    font-size: 30px;
  }

  .customer-contact-details {
    flex-direction: column;
    gap: 20px;
  }

  .customer-footer {
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

}


/* =========================================
   RESPONSIVE MOBILE EXPERIENCE
   Admin + Customer Portal
   ========================================= */

.mobile-menu-btn,
.customer-mobile-menu-btn {
  display: none;
  border: 0;
  background: #ffffff;
  color: #2d2c27;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 700px) {
  body:not(.customer-body) {
    overflow-x: hidden;
  }

  body:not(.customer-body) .sidebar {
    width: 245px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,.12);
    overflow-y: auto;
  }

  body:not(.customer-body).sidebar-open .sidebar {
    transform: translateX(0);
  }

  body:not(.customer-body) .main {
    margin-left: 0;
    width: 100%;
  }

  body:not(.customer-body) .topbar {
    min-height: 64px;
    height: auto;
    padding: 11px 15px;
    gap: 10px;
  }

  body:not(.customer-body) .topbar h1 {
    font-size: 17px;
    flex: 1;
    min-width: 0;
  }

  body:not(.customer-body) .admin {
    gap: 7px;
  }

  body:not(.customer-body) .admin > span {
    display: none;
  }

  body:not(.customer-body) .avatar {
    width: 32px;
    height: 32px;
  }

  body:not(.customer-body) .logout-btn {
    margin-left: 0;
    padding: 7px 9px;
  }

  body:not(.customer-body) .mobile-menu-btn {
    display: flex;
  }

  body:not(.customer-body) .content {
    padding: 18px 14px 28px;
  }

  body:not(.customer-body) .page-head {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  body:not(.customer-body) .page-head h2 {
    font-size: 21px;
  }

  body:not(.customer-body) .page-head .btn {
    width: 100%;
  }

  body:not(.customer-body) .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body:not(.customer-body) .stat,
  body:not(.customer-body) .card {
    padding: 15px;
    border-radius: 10px;
  }

  body:not(.customer-body) .stat .value {
    font-size: 21px;
  }

  body:not(.customer-body) .grid2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body:not(.customer-body) .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body:not(.customer-body) .search,
  body:not(.customer-body) .select,
  body:not(.customer-body) .toolbar .btn {
    width: 100%;
  }

  body:not(.customer-body) .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body:not(.customer-body) .field.full {
    grid-column: auto;
  }

  body:not(.customer-body) .card-head {
    gap: 10px;
    align-items: flex-start;
  }

  body:not(.customer-body) .card-head h3 {
    font-size: 15px;
  }

  body:not(.customer-body) .actions {
    grid-template-columns: 1fr;
  }

  body:not(.customer-body) .table-wrap,
  body:not(.customer-body) .card {
    overflow-x: auto;
  }

  body:not(.customer-body) table {
    min-width: 620px;
  }

  body:not(.customer-body) .card > table {
    width: 100%;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45,44,39,.45);
    z-index: 9;
  }

  body:not(.customer-body).sidebar-open .mobile-overlay {
    display: block;
  }
}

@media (max-width: 420px) {
  body:not(.customer-body) .stats {
    grid-template-columns: 1fr;
  }

  body:not(.customer-body) .topbar {
    padding-left: 11px;
    padding-right: 11px;
  }

  body:not(.customer-body) .content {
    padding-left: 11px;
    padding-right: 11px;
  }

  body:not(.customer-body) .logout-btn {
    font-size: 10px;
  }
}

/* Customer mobile navigation */
@media (max-width: 700px) {
  .customer-header {
    height: 66px;
    padding: 0 18px;
  }

  .customer-main-logo {
    width: 145px;
    height: auto;
  }

  .customer-mobile-menu-btn {
    display: flex;
  }

  .customer-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 14px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeea;
    box-shadow: 0 10px 25px rgba(45,44,39,.08);
    z-index: 50;
  }

  .customer-nav.mobile-open {
    display: flex;
  }

  .customer-nav a,
  .customer-nav a:not(:first-child) {
    display: block;
    padding: 13px 4px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0ec;
  }

  .customer-nav a:last-child {
    border-bottom: 0;
  }

  .customer-hero-inner {
    padding: 48px 20px 55px;
    gap: 35px;
  }

  .customer-hero-text h1 {
    font-size: clamp(34px, 10vw, 50px);
    line-height: 1.05;
  }

  .customer-hero-text p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.7;
  }

  .customer-hero-icon {
    width: 125px;
    height: 125px;
    align-self: center;
  }

  .customer-hero-icon img {
    width: 82px;
    height: 82px;
  }

  .customer-catalog {
    padding: 48px 18px;
  }

  .customer-product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-product-card {
    min-width: 0;
  }

  .customer-product-bottom {
    align-items: center;
  }

  .customer-view-btn,
  .customer-primary-btn {
    min-height: 44px;
  }

  .customer-about-inner {
    padding: 48px 20px;
  }

  .customer-contact-inner {
    padding: 48px 20px;
    gap: 30px;
  }

  .customer-contact-details {
    width: 100%;
    gap: 18px;
  }

  .customer-footer {
    min-height: 100px;
    padding: 20px 18px;
    text-align: center;
  }

  .customer-modal {
    padding: 12px;
  }

  .customer-modal-card {
    max-width: none;
    padding: 32px 22px 24px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .customer-main-logo {
    width: 130px;
  }

  .customer-hero-text h1 {
    font-size: 35px;
  }

  .customer-product-content {
    padding: 14px;
  }
}


/* =========================================
   MOBILE FIXES v2
   Keep the admin sidebar expanded when opened
   and keep data tables aligned/scrollable.
   ========================================= */
@media (max-width: 700px) {
  /* Mobile admin sidebar: show the complete navigation, not icons only. */
  body:not(.customer-body) .sidebar {
    width: 270px;
    padding: 16px 14px 24px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body:not(.customer-body) .sidebar .logo {
    height: 72px;
    padding: 2px 14px 16px;
    justify-content: flex-start;
  }

  body:not(.customer-body) .sidebar .logo img.brand-logo {
    display: block !important;
    width: 150px !important;
    height: auto !important;
    max-width: 150px !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body:not(.customer-body) .sidebar .menu-title {
    display: block !important;
    margin: 18px 14px 8px;
  }

  body:not(.customer-body) .sidebar .menu a {
    justify-content: flex-start !important;
    gap: 12px;
    padding: 11px 14px;
  }

  body:not(.customer-body) .sidebar .menu a span:last-child {
    display: inline !important;
    white-space: nowrap;
  }

  body:not(.customer-body) .sidebar .menu a span:first-child {
    width: 18px;
    flex: 0 0 18px;
    text-align: center;
  }

  /* Content never sits underneath the sidebar. */
  body:not(.customer-body) .main {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  body:not(.customer-body) .content {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  /* Cards stay inside the viewport; only the table scrolls. */
  body:not(.customer-body) .card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body:not(.customer-body) .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body:not(.customer-body) .table-wrap table {
    width: max-content;
    min-width: 620px;
  }

  /* Dashboard's two-column cards stack cleanly. */
  body:not(.customer-body) .grid2 {
    width: 100%;
    min-width: 0;
  }

  /* Prevent long headings/buttons from pushing the page wider. */
  body:not(.customer-body) .page-head > div {
    min-width: 0;
  }

  body:not(.customer-body) .page-head h2,
  body:not(.customer-body) .page-head p,
  body:not(.customer-body) .card-head h3 {
    overflow-wrap: anywhere;
  }

  /* New invoice/quotation item tables can scroll inside their own section. */
  body:not(.customer-body) .line-items {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.customer-body) .line-items table {
    min-width: 650px;
  }
}

@media (max-width: 420px) {
  body:not(.customer-body) .sidebar {
    width: min(270px, 86vw);
  }

  body:not(.customer-body) .sidebar .logo img.brand-logo {
    width: 140px !important;
    max-width: 140px !important;
  }
}
