/* assets/css/style.css - Sheen Billing Global Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #00ba8c;
  --primary-hover: #009e77;
  --primary-light: #e6f8f3;
  --primary-dark: #007a5c;
  --secondary: #2f89f5;
  --secondary-hover: #1b6ec2;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #00ba8c;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --success: #10b981;
  --success-light: #d1fae5;
  --info: #06b6d4;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 10px;
  --sidebar-width: 250px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--secondary-hover);
}

/* =========================================================
   LOGIN SCREEN (Identical to GoGSTBill home.php)
   ========================================================= */
.login-container-wrapper {
  min-height: 100vh;
  display: flex;
  background: #ffffff;
}

.login-left-pane {
  flex: 1.1;
  background: linear-gradient(135deg, #02382c 0%, #004d3c 40%, #00ba8c 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
}

.login-left-pane::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.login-left-pane::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 186, 140, 0.4) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.login-left-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.brand-icon-box {
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
}

.brand-title span {
  color: #a7f3d0;
}

.login-left-hero {
  z-index: 2;
  margin: 40px 0;
}

.login-left-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.login-left-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-bottom: 30px;
}

.feature-pill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: fit-content;
}

.feature-pill-item svg {
  flex-shrink: 0;
  fill: #34d399;
}

.login-left-footer {
  z-index: 2;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-right-pane {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 440px;
}

.login-card-header {
  margin-bottom: 28px;
}

.login-card-header .logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.logo-area .logo-badge {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.logo-area .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.logo-area .logo-text span {
  color: var(--primary);
}

.login-card-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.login-card-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Demo Credentials Hint Box */
.demo-credentials-box {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #166534;
}

.demo-credentials-box strong {
  color: #14532d;
}

.demo-credentials-box .btn-quick-fill {
  background: #00ba8c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
  font-weight: 600;
}

.demo-credentials-box .btn-quick-fill:hover {
  background: #009e77;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.star-red {
  color: var(--danger);
  margin-left: 2px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap span.addon-prefix {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
}

.input-icon-wrap svg.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-main);
  background: #ffffff;
  transition: all 0.2s ease;
}

.input-icon-wrap .form-control {
  padding-left: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 186, 140, 0.15);
}

.btn-toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.btn-toggle-pw:hover {
  color: var(--text-main);
}

/* OTP Input Boxes */
.otp-boxes-wrapper {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 10px 0 16px;
}

.otp-box-digit {
  width: 60px;
  height: 52px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}

.otp-box-digit:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 186, 140, 0.15);
}

.otp-resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 16px;
}

.otp-timer {
  color: var(--primary);
  font-weight: 600;
}

.btn-link-action {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-link-action:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-info {
  background: var(--secondary);
  color: white;
}

.btn-info:hover {
  background: var(--secondary-hover);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

/* Separator */
.separator-or {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.separator-or::before,
.separator-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.separator-or:not(:empty)::before {
  margin-right: 14px;
}

.separator-or:not(:empty)::after {
  margin-left: 14px;
}

/* Switcher Buttons (Login using OTP / User ID) */
.login-switch-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-switch-login {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-switch-login:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-biometric-switch {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-biometric-switch:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Alerts and Messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-danger {
  background: var(--danger-light);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: var(--success-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* =========================================================
   DASHBOARD & APPLICATION LAYOUT
   ========================================================= */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand .brand-logo-sq {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.sidebar-brand .brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.sidebar-brand .brand-name span {
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  padding: 12px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item.active svg {
  fill: var(--primary);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}

.company-badge-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-avatar {
  width: 32px;
  height: 32px;
  background: #e2e8f0;
  color: var(--dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.company-info {
  line-height: 1.2;
}

.company-info .co-name {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--dark);
}

.company-info .co-gst {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header */
.app-header {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search {
  position: relative;
  width: 320px;
}

.header-search input {
  height: 38px;
  padding-left: 36px;
  border-radius: 8px;
  background: #f8fafc;
}

.header-search svg {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 110;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-main);
  font-size: 13px;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary-dark);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* Page Body */
.page-container {
  padding: 24px;
  flex: 1;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 13px;
}

/* Metric / Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.green {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.stat-icon.orange {
  background: var(--warning-light);
  color: var(--warning);
}

.stat-icon.red {
  background: var(--danger-light);
  color: var(--danger);
}

/* Cards & Panels */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
}

.card-body {
  padding: 20px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-paid {
  background: #dcfce7;
  color: #15803d;
}

.badge-partial {
  background: #fef3c7;
  color: #b45309;
}

.badge-unpaid {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-overdue {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-draft {
  background: #f1f5f9;
  color: #475569;
}

.badge-sent {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-converted {
  background: #d1fae5;
  color: #065f46;
}

/* Invoice Creation Table */
.items-table {
  width: 100%;
  border-collapse: collapse;
}

.items-table th {
  background: #f1f5f9;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.items-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
}

.items-table .form-control {
  height: 38px;
  padding: 6px 10px;
  font-size: 13px;
}

/* GST Summary Box */
.gst-summary-panel {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.gst-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
}

.gst-summary-row.total-row {
  border-top: 2px solid var(--border-color);
  padding-top: 10px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

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

.modal-box {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notice.toast-success {
  background: #065f46;
  border-left: 4px solid #10b981;
}

.toast-notice.toast-error {
  background: #991b1b;
  border-left: 4px solid #ef4444;
}

/* =========================================================
   AUTHENTIC TAX INVOICE PRINT TEMPLATE
   ========================================================= */
.invoice-print-sheet {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border-radius: 4px;
  color: #0f172a;
}

.tax-invoice-header {
  text-align: center;
  border-bottom: 2px solid #00ba8c;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tax-invoice-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00ba8c;
  text-transform: uppercase;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.tax-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.tax-table th, .tax-table td {
  border: 1px solid #94a3b8;
  padding: 8px 10px;
  font-size: 12px;
}

.tax-table th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: center;
}

@media print {
  body * {
    visibility: hidden;
  }
  .invoice-print-sheet, .invoice-print-sheet * {
    visibility: visible;
  }
  .invoice-print-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 10mm;
    border: none;
    box-shadow: none;
  }
  .no-print {
    display: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .login-container-wrapper {
    flex-direction: column;
  }
  .login-left-pane {
    padding: 30px 20px;
  }
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
}

/* =========================================================
   ENHANCED MOBILE RESPONSIVENESS
   ========================================================= */
@media (max-width: 900px) {
  /* Layout fixes */
  .app-layout {
    flex-direction: column;
  }
  .app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
  }
  #btnToggleSidebarMobile {
    display: flex !important;
  }
  .app-header {
    padding: 0 12px;
  }
  .header-search {
    display: none;
  }
  .page-container {
    padding: 12px !important;
  }
  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-header-row > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .stat-card {
    padding: 14px !important;
  }
  .stat-value {
    font-size: 18px !important;
  }
  /* Dashboard grid */
  div[style*="grid-template-columns:1fr 1.4fr"],
  div[style*="grid-template-columns: 1fr 1.4fr"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Invoice/Table responsiveness */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Form grids */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Period filter */
  .period-filter-wrap {
    width: 100%;
    justify-content: center;
  }
  /* Card body padding */
  .card-body {
    padding: 12px !important;
  }
  /* India map height */
  #indiaMap {
    height: 250px !important;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .login-left-pane {
    display: none !important;
  }
  .login-right-pane {
    flex: 1;
    padding: 20px 16px;
  }
  .login-card {
    padding: 24px 16px;
  }
  .btn-lg {
    font-size: 14px;
    padding: 10px 16px;
  }
  /* Table button wrap */
  td div[style*="display:flex"] {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  /* Invoice create/edit tables scroll */
  #editItemsTable, 
  #invoiceItemsTable {
    font-size: 12px;
  }
  /* Header right buttons */
  .header-right {
    gap: 6px !important;
  }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.sidebar-overlay.show {
  display: block;
}
