/* Presentation-only refresh for /v/ bill view. */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --v-green: #5BB12F;
  --v-green-dark: #2f7d1f;
  --v-green-soft: #edf8e9;
  --v-blue: #315f1f;
  --v-gold: #fcb900;
  --v-bg: #f6f9f3;
  --v-card: #ffffff;
  --v-text: #17251d;
  --v-muted: #66746c;
  --v-border: #dfeada;
  --v-radius: 16px;
  --v-shadow: 0 18px 50px rgba(91, 177, 47, 0.16);
}

html {
  -webkit-text-size-adjust: 100%;
}

body.v-lookup,
body.v-invoice {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(91, 177, 47, 0.20), transparent 32rem),
    linear-gradient(135deg, #ffffff 0%, var(--v-bg) 55%, #eef7ea 100%);
  color: var(--v-text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
}

body.v-lookup *,
body.v-invoice * {
  box-sizing: border-box;
}

/* Lookup page */
.v-lookup-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.v-lookup-card {
  position: relative !important;
  width: 100% !important;
  max-width: 720px;
  margin: 0 auto !important;
  padding: 30px 26px 26px !important;
  position: static !important;
  top: auto !important;
  text-align: center;
  border: 1px solid var(--v-border) !important;
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow);
}

.v-back-link {
  position: static;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin: 0 0 16px auto;
  padding: 8px 12px;
  border: 1px solid rgba(91, 177, 47, 0.25);
  border-radius: 999px;
  background: #fff;
  color: var(--v-green-dark);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.v-back-link::before {
  content: "\2190";
  font-weight: 800;
}

.v-back-link:hover {
  background: var(--v-green-soft);
  color: var(--v-green-dark);
}

.v-brand-block {
  margin-bottom: 8px;
}

.v-brand-block p {
  margin: 4px 0 0;
  color: var(--v-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v-lookup-card img {
  width: 86px;
  height: auto;
  margin-bottom: 10px;
}

.v-lookup-card h2 {
  margin: 8px 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.25;
}

.v-lookup-card h2:first-of-type {
  color: var(--v-green-dark) !important;
  font-size: 28px;
  font-weight: 800;
}

.v-lookup-card label h2 {
  color: var(--v-blue) !important;
  font-size: 22px;
  font-weight: 800;
}

.v-lookup-card form::after {
  content: "Enter your 10 digit BP number or registered mobile number.";
  display: block;
  margin-top: 14px;
  color: var(--v-muted);
  font-size: 13px;
  line-height: 1.45;
}

.v-lookup-card input[type="number"] {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 50px;
  margin: 18px 0 10px !important;
  padding: 13px 14px !important;
  border: 1px solid var(--v-border) !important;
  border-radius: 12px;
  background: #fff;
  color: var(--v-text);
  font-size: 16px;
  text-align: center;
  box-shadow: none;
  outline: none;
  -moz-appearance: textfield;
}

.v-lookup-card input[type="number"]:focus {
  border-color: var(--v-green) !important;
  box-shadow: 0 0 0 4px rgba(11, 122, 53, 0.14);
}

.v-captcha-box {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 4px 0 12px;
  padding: 10px;
  border: 1px solid var(--v-border);
  border-radius: 12px;
  background: #f8fbf9;
}

.v-square-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.v-square-button {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 14px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 177, 47, 0.25) !important;
  color: var(--v-green-dark) !important;
  background: linear-gradient(135deg, #ffffff, #f6fbf3) !important;
  box-shadow: 0 10px 22px rgba(47, 125, 31, 0.10);
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.v-square-button:hover,
.v-square-button:focus {
  transform: translateY(-2px);
  border-color: var(--v-green) !important;
  box-shadow: 0 14px 28px rgba(47, 125, 31, 0.16);
  outline: none;
}

.v-square-button span {
  display: inline;
  margin-bottom: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.v-square-button strong {
  display: inline;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.v-square-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--v-green), var(--v-green-dark)) !important;
  color: #fff !important;
}

.v-square-primary span,
.v-square-primary strong {
  color: #fff;
}

.v-square-primary::before,
.v-square-secondary::before {
  content: none;
}

.v-square-secondary::before {
  background: var(--v-green);
}

.v-captcha-image {
  display: block;
  width: 120px;
  height: 50px;
  border: 1px solid var(--v-border);
  border-radius: 10px;
  background: #fff;
}

.v-lookup-card .v-captcha-input {
  width: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid var(--v-border) !important;
  border-radius: 10px;
  background: #fff;
  color: var(--v-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
}

.v-lookup-card .v-captcha-input:focus {
  border-color: var(--v-green) !important;
  box-shadow: 0 0 0 4px rgba(11, 122, 53, 0.14);
  outline: none;
}

.v-captcha-error {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #f3b7b7;
  border-radius: 10px;
  background: #fff3f3;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

/* Invoice page */
body.v-invoice {
  padding: 22px 12px 28px;
}

.v-invoice-shell {
  max-width: 520px !important;
  margin: 0 auto !important;
}

.v-invoice-card {
  overflow: hidden;
  padding: 18px 18px 14px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow);
}

.v-invoice-header {
  margin: -18px -18px 14px;
  padding: 20px 16px 16px;
  background: linear-gradient(135deg, var(--v-green-dark), var(--v-green));
  color: #fff;
}

.v-invoice-header img {
  width: 72px;
  height: auto;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
}

.v-invoice-header h3 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.v-invoice-card hr {
  height: 1px;
  margin: 12px -18px;
  border: 0;
  background: var(--v-border);
}

.v-invoice-card table {
  width: 100% !important;
  border-collapse: collapse;
  color: var(--v-text);
  font-size: 14px;
  line-height: 1.35;
}

.v-invoice-card table table {
  font-size: inherit;
}

.v-invoice-card td {
  padding: 6px 0;
  vertical-align: top;
  border: 0;
}

.v-invoice-card td:first-child {
  color: var(--v-muted);
}

.v-invoice-card td[style*="text-align:right"],
.v-invoice-card td[style*="text-align: right"] {
  color: var(--v-text);
  font-weight: 600;
  padding-left: 10px;
}

.v-invoice-card b {
  color: var(--v-text);
}

.v-invoice-card img[alt="Meter Image Not Available"] {
  height: auto !important;
  min-height: 92px;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--v-border);
  border-radius: 12px;
  background: #f8faf9;
}

.v-action-table {
  width: 100% !important;
  margin: 14px 0 0;
  border-collapse: separate;
  border-spacing: 0;
}

.v-action-table td {
  width: 50%;
  padding: 0 5px;
}

.v-btn {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 13px 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer;
}

.v-btn-pay {
  background: linear-gradient(135deg, var(--v-green), var(--v-green-dark)) !important;
}

.v-btn-print {
  background: #e68a00 !important;
}

@media (max-width: 520px) {
  body.v-invoice {
    padding: 10px 8px 20px;
  }

  .v-invoice-card {
    padding: 14px 14px 12px;
    border-radius: 14px;
  }

  .v-invoice-header {
    margin: -14px -14px 12px;
  }

  .v-invoice-card hr {
    margin: 10px -14px;
  }

  .v-invoice-card table {
    font-size: 13px;
  }

  .v-captcha-box {
    grid-template-columns: 1fr;
  }

  .v-lookup-card {
    padding: 22px 16px 18px !important;
  }

  .v-back-link {
    justify-content: center;
    margin: 0 auto 14px;
  }

  .v-lookup-card h2:first-of-type {
    font-size: 23px;
  }

  .v-lookup-card label h2 {
    font-size: 19px;
  }

  .v-square-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .v-square-button {
    min-height: 50px;
  }

  .v-action-table,
  .v-action-table tbody,
  .v-action-table tr,
  .v-action-table td {
    display: block;
    width: 100% !important;
  }

  .v-action-table td {
    padding: 0 0 8px;
  }
}

@media print {
  body.v-invoice {
    padding: 0;
    background: #fff;
  }

  .v-invoice-shell {
    max-width: 290px !important;
  }

  .v-invoice-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .v-invoice-header {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
  }

  .v-invoice-header h3 {
    color: #000;
  }

  .v-action-table {
    display: none !important;
  }
}

/* Customer portal login (/v/customer.php). */
body.v-customer {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(91, 177, 47, 0.20), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, var(--v-bg) 55%, #eef7ea 100%) !important;
  color: var(--v-text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
}

body.v-customer .container {
  width: 100% !important;
  max-width: 1080px !important;
  min-height: auto !important;
  border: 1px solid var(--v-border);
  border-radius: 22px !important;
  box-shadow: var(--v-shadow) !important;
  overflow: hidden;
}

body.v-customer .left-panel {
  background:
    linear-gradient(160deg, rgba(47, 125, 31, 0.98), rgba(91, 177, 47, 0.94)) !important;
  padding: 42px 34px !important;
}

body.v-customer .right-panel {
  padding: 42px 38px !important;
}

body.v-customer .logo {
  width: 68px;
  height: auto;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}

body.v-customer .company-name {
  font-size: 1.55rem !important;
  line-height: 1.2;
}

body.v-customer .welcome-text {
  margin-top: 26px !important;
}

body.v-customer .welcome-text h1 {
  font-size: 2.05rem !important;
}

body.v-customer .welcome-text p {
  font-size: 1rem !important;
}

body.v-customer .features {
  margin-top: 34px !important;
}

body.v-customer .feature-item {
  margin-bottom: 18px !important;
}

body.v-customer .feature-icon {
  width: 44px !important;
  height: 44px !important;
}

body.v-customer .contact-info {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

body.v-customer .contact-info p {
  margin: 8px 0;
  line-height: 1.4;
  word-break: break-word;
}

body.v-customer .form-header {
  margin-bottom: 28px !important;
}

body.v-customer .form-header h2 {
  color: var(--v-green-dark) !important;
  font-size: 2rem !important;
}

body.v-customer .form-header p {
  font-size: 1rem !important;
}

body.v-customer .form-group {
  margin-bottom: 18px !important;
}

body.v-customer .form-input,
body.v-customer .captcha-input {
  min-height: 50px;
  border: 1px solid var(--v-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  font-size: 16px !important;
}

body.v-customer .form-input:focus,
body.v-customer .captcha-input:focus {
  border-color: var(--v-green) !important;
  box-shadow: 0 0 0 4px rgba(11, 122, 53, 0.14) !important;
}

body.v-customer .captcha-container {
  gap: 12px !important;
  padding: 12px !important;
  border: 1px solid var(--v-border) !important;
  border-radius: 12px !important;
  background: #f8fbf9 !important;
}

body.v-customer .captcha-image {
  width: 120px;
  height: 50px;
  border-radius: 10px !important;
}

body.v-customer .submit-btn {
  min-height: 52px;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--v-green), var(--v-green-dark)) !important;
  box-shadow: none !important;
}

body.v-customer .support-links {
  margin-top: 28px !important;
  padding-top: 22px !important;
}

body.v-customer .support-btn {
  border: 1px solid var(--v-border) !important;
  border-radius: 999px !important;
  background: #f8fbf9 !important;
}

body.v-customer .footer-links {
  gap: 16px !important;
  flex-wrap: wrap;
  margin-top: 24px !important;
}

@media (max-width: 860px) {
  body.v-customer {
    padding: 12px;
  }

  body.v-customer .container {
    display: block !important;
    border-radius: 18px !important;
  }

  body.v-customer .left-panel,
  body.v-customer .right-panel {
    padding: 26px 20px !important;
  }

  body.v-customer .left-panel {
    display: block !important;
  }

  body.v-customer .logo-container {
    margin-bottom: 20px !important;
  }

  body.v-customer .welcome-text {
    margin-top: 16px !important;
  }

  body.v-customer .welcome-text h1 {
    font-size: 1.65rem !important;
  }

  body.v-customer .features {
    display: grid;
    gap: 12px;
    margin-top: 22px !important;
  }

  body.v-customer .feature-item {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 520px) {
  body.v-customer {
    padding: 8px;
  }

  body.v-customer .left-panel,
  body.v-customer .right-panel {
    padding: 22px 16px !important;
  }

  body.v-customer .logo {
    width: 56px;
  }

  body.v-customer .company-name {
    font-size: 1.2rem !important;
  }

  body.v-customer .company-tagline,
  body.v-customer .welcome-text p,
  body.v-customer .feature-text p {
    font-size: 0.9rem !important;
  }

  body.v-customer .captcha-container {
    display: grid !important;
  }

  body.v-customer .captcha-image {
    width: 100%;
    max-width: 180px;
  }

  body.v-customer .support-buttons {
    display: grid !important;
  }
}
