
/* =====================================================
   SWARNA FINANCE
   Luxury Jewellery Finance Management System

   FILE: public/styles.css
   PART 1 OF 3

   Theme:
   Deep Emerald Green
   Champagne Gold
   Warm Ivory
   Modern Luxury Dashboard
===================================================== */


/* =====================================================
   01. GLOBAL THEME VARIABLES
===================================================== */

:root {

  /* Primary Emerald Colors */
  --forest: #073e36;
  --deep: #042b27;
  --emerald: #075343;
  --emerald-light: #0e6553;

  /* Luxury Gold Colors */
  --gold: #c79a43;
  --light-gold: #f1d18d;
  --dark-gold: #98712d;

  /* Background Colors */
  --canvas: #f8f8f5;
  --cream: #fffdf8;
  --white: #ffffff;

  /* Typography */
  --ink: #26332e;
  --muted: #7d8c86;

  /* Borders */
  --line: #e9e9e3;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(10, 40, 30, 0.05);
  --shadow-md: 0 8px 30px rgba(10, 40, 30, 0.08);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Fonts */
  --font-main: "Inter", "Segoe UI", Arial, sans-serif;
  --font-luxury: Georgia, "Times New Roman", serif;

  font-family: var(--font-main);
  color: var(--ink);

}


/* =====================================================
   02. GLOBAL RESET
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}

h1,
h2 {
  font-family: var(--font-luxury);
  font-weight: 400;
}

p {
  margin-top: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: wait;
}

a {
  color: var(--emerald);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   03. TEXT UTILITIES
===================================================== */

.overline {
  margin: 0 0 12px;

  color: var(--gold);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overline.ivory {
  color: var(--light-gold);
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gold-stop {
  color: var(--gold);
}

.font-light {
  font-weight: 400;
  color: var(--light-gold);
}

.small-gold {
  color: var(--gold);
}


/* =====================================================
   04. BUTTON SYSTEM
===================================================== */

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

  gap: 10px;

  min-height: 44px;
  padding: 12px 18px;

  border: 1px solid transparent;
  border-radius: var(--radius-sm);

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

  text-align: center;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.btn.primary:hover {
  background: var(--emerald-light);
  box-shadow: var(--shadow-sm);
}

.btn.gold {
  background: linear-gradient(
    110deg,
    #e6bd6b,
    #c6973e
  );

  color: #2d2719;
}

.btn.gold:hover {
  background: linear-gradient(
    110deg,
    #f1d18d,
    #d4a44d
  );
}

.btn.light {
  background: #eef4ed;
  color: var(--forest);
}

.btn.outline {
  background: white;
  color: var(--forest);
  border-color: #ccdbce;
}

.btn.ghost {
  background: #f9f5eb;
  color: #7c6a50;
  border-color: #ece2d3;
}

.btn.full {
  width: 100%;
  justify-content: space-between;
}

.btn.small-btn {
  min-height: 35px;
  padding: 8px 14px;
}

.text-button {
  background: transparent;
  border: none;

  padding: 12px 0;

  color: var(--forest);

  font-size: 12px;
  font-weight: 750;
}

.text-button:hover {
  color: var(--gold);
}


/* =====================================================
   05. FORM INPUTS
===================================================== */

.field,
.field-stack label {
  display: block;

  color: #4b6251;

  font-size: 11px;
  font-weight: 750;
}

.field > span:first-child {
  display: block;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea,
.field-stack input {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 43px;

  padding: 11px 12px;

  background: white;

  border: 1px solid #dae4da;
  border-radius: var(--radius-sm);

  color: var(--ink);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.field-stack input:focus {
  border-color: #82a48d;

  box-shadow:
    0 0 0 3px rgba(130, 164, 141, 0.18);
}

.field-stack {
  display: grid;
  gap: 16px;
}

.field-stack label input {
  margin-top: 8px;
}

.field textarea {
  resize: vertical;
}

.input-suffix {
  display: flex;
  align-items: center;

  padding-right: 12px;

  background: white;

  border: 1px solid #dae4da;
  border-radius: var(--radius-sm);
}

.input-suffix input {
  border: 0;
  box-shadow: none !important;
}

.input-suffix span {
  color: #8c9c91;

  font-size: 10px;
  font-weight: 700;

  white-space: nowrap;
}


/* =====================================================
   06. LOGIN SCREEN
===================================================== */

.auth-shell {
  display: grid;

  grid-template-columns: 1fr 1fr;

  min-height: 100vh;

  background: white;
}


/* Left Luxury Branding Panel */

.auth-art {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 620px;

  padding: 48px;

  overflow: hidden;

  color: white;

  background:
    radial-gradient(
      ellipse at 65% 40%,
      #32624e,
      #173f33 58%,
      #102b24
    );
}


/* Brand Header */

.auth-art-top {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;

  gap: 9px;

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

  letter-spacing: 0.16em;
}

.symbol-logo {
  color: var(--light-gold);
  font-size: 32px;
}


/* Decorative Gold Circles */

.ornament {
  position: absolute;

  border: 1px solid rgba(241, 207, 141, 0.2);
  border-radius: 50%;

  pointer-events: none;
}

.ornament-one {
  width: 520px;
  height: 520px;

  right: -190px;
  top: 18%;

  box-shadow:
    0 0 0 55px rgba(255, 220, 146, 0.06),
    0 0 0 110px rgba(255, 220, 146, 0.035);
}

.ornament-two {
  width: 230px;
  height: 230px;

  right: 6%;
  top: 36%;

  border-style: dashed;
}


/* Hero Text */

.auth-hero-copy {
  position: relative;
  z-index: 1;

  max-width: 560px;
}

.auth-hero-copy h1 {
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.auth-hero-copy h1 em {
  color: var(--light-gold);
}

.auth-hero-copy p {
  max-width: 410px;

  color: #ccded0;

  font-size: 14px;
  line-height: 1.8;
}

.mini-accent {
  margin-top: 34px;

  color: var(--light-gold);

  font-size: 9px;
  letter-spacing: 0.13em;
}


/* Footer Branding */

.auth-art-foot {
  display: flex;
  justify-content: space-between;

  color: #a5bdae;

  font-size: 9px;
  letter-spacing: 0.1em;
}


/* Right Login Form */

.auth-form-wrap {
  display: grid;
  place-items: center;

  padding: 30px;
}

.auth-inner {
  width: min(420px, 100%);
}

.auth-inner h2 {
  font-size: 41px;
  line-height: 1.2;
}

.auth-inner > .muted {
  margin: 18px 0 26px;
  font-size: 13px;
}


/* Sign In / Sign Up Tabs */

.segment {
  display: flex;

  gap: 5px;

  padding: 5px;
  margin: 20px 0;

  background: #f1f4ef;

  border-radius: 9px;
}

.segment button {
  flex: 1;

  padding: 12px;

  border: 0;
  border-radius: 7px;

  background: transparent;

  color: #7e9786;

  font-weight: 750;
}

.segment button.on {
  background: white;
  color: var(--forest);

  box-shadow: 0 3px 12px rgba(22, 64, 42, 0.08);
}


/* Login Security Note */

.auth-footnote {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-top: 22px;

  color: var(--muted);

  font-size: 11px;
}


/* =====================================================
   07. OTP VERIFICATION AND PIN SCREENS
===================================================== */

.center-shell {
  display: grid;
  place-items: center;

  min-height: 100vh;

  padding: 20px;

  background:
    radial-gradient(
      circle at top,
      #eae6d9,
      var(--canvas) 55%
    );
}


/* OTP / PIN Card */

.gate-card {
  width: min(450px, 100%);

  padding: 37px;

  background: white;

  border: 1px solid var(--line);
  border-radius: 15px;

  text-align: center;

  box-shadow: 0 14px 45px rgba(19, 58, 40, 0.09);
}

.wide-gate {
  max-width: 530px;
}

.small-emblem {
  margin-bottom: 14px;

  color: var(--gold);

  font-size: 37px;
}

.gate-card h2 {
  font-size: 34px;
}

.gate-card .field-stack {
  margin: 24px 0;
  text-align: left;
}

.gate-card .text-button {
  margin-top: 7px;
}


/* Employee Profile Selection */

.profiles {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 11px;

  margin: 22px 0;
}

.profile {
  padding: 17px;

  background: white;

  border: 1px solid var(--line);
  border-radius: 9px;

  color: var(--forest);

  text-align: left;
  font-weight: 800;
}

.profile:hover {
  border-color: var(--gold);
}

.profile.selected {
  background: #fbf5e9;
  border-color: var(--gold);
}

.profile small {
  display: block;

  margin-top: 7px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 400;
}


/* OTP Input */

#emailOtp {
  font-size: 24px;
  text-align: center;

  letter-spacing: 0.3em;

  font-variant-numeric: tabular-nums;
}

.otp-actions {
  display: flex;
  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 18px;
}

.otp-help {
  margin-top: 15px;
}


/* =====================================================
   08. MAIN DASHBOARD LAYOUT
===================================================== */

.dashboard {
  display: flex;

  min-height: 100vh;

  background: var(--canvas);
}


/* =====================================================
   09. LEFT SIDEBAR
===================================================== */

.sidebar {
  position: sticky;

  top: 0;

  display: flex;
  flex-direction: column;

  width: 216px;
  height: 100vh;

  flex-shrink: 0;

  padding: 24px 12px;

  background:
    linear-gradient(
      168deg,
      #043d35,
      #022e29 67%,
      #052720
    );

  color: white;

  box-shadow: 8px 0 30px rgba(6, 45, 35, 0.06);

  z-index: 10;
}


/* Brand Logo */

.side-logo {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 5px 10px 18px;

  color: #e9c57c;

  font-size: 19px;
  font-weight: 850;

  letter-spacing: 0;

  white-space: nowrap;
}

.side-logo .brand-gem {
  font-size: 34px;
  line-height: 1;
}

.side-logo small {
  display: block;

  margin-top: 5px;

  color: #d4c9a9;

  font-size: 7px;
  font-weight: 500;

  letter-spacing: 0.16em;
}


/* Workspace Label */

.side-workspace {
  margin: 20px 13px 16px;

  color: #7cafa1;

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.13em;
}


/* Sidebar Navigation */

.navigation {
  display: grid;
  gap: 7px;
}

.navigation button {
  display: flex;
  align-items: center;

  gap: 14px;

  width: 100%;
  min-height: 49px;

  padding: 12px 14px;

  background: transparent;

  border: 0;
  border-radius: 9px;

  color: #e7f1eb;

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

  text-align: left;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.navigation button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
}

.navigation button.active {
  background:
    linear-gradient(
      110deg,
      #f7d992,
      #c5943f
    );

  color: #2f2513;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.nav-glyph {
  display: inline-flex;
  justify-content: center;

  width: 26px;

  font-size: 23px;
}


/* Sidebar Bottom Profile */

.side-bottom {
  margin-top: auto;

  padding: 16px 5px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mini-profile {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 14px;
}

.profile-dot {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: #e0c28b;

  color: var(--forest);

  font-size: 18px;
}

.mini-profile strong,
.mini-profile small {
  display: block;
}

.mini-profile small {
  margin-top: 4px;

  color: #b2cbb8;

  font-size: 10px;
}

.side-utility {
  display: block;

  width: 100%;

  padding: 11px;

  background: transparent;

  border: 0;

  color: #d4e5d9;

  text-align: left;
}

.side-utility:hover {
  color: var(--light-gold);
}

.side-trademark {
  margin-top: 12px;
  padding-top: 17px;

  border-top: 1px solid rgba(255, 255, 255, 0.14);

  color: #a3bfa9;

  font-size: 8px;

  letter-spacing: 0.13em;
}


/* =====================================================
   10. MAIN WORKSPACE
===================================================== */

.workspace-main {
  flex: 1;
  min-width: 0;

  background: var(--canvas);
}


/* =====================================================
   11. TOP HEADER BAR
===================================================== */

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

  gap: 15px;

  height: 76px;

  padding: 12px 25px;

  background:
    linear-gradient(
      105deg,
      #073e36,
      #02392f
    );

  border: 0;

  color: white;
}

.topbar h2 {
  margin: 8px 0 0;

  color: white;

  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
}

.breadcrumb {
  color: #c9d9cf;

  font-size: 9px;
  letter-spacing: 0.1em;
}

.topbar-right {
  display: flex;
  align-items: center;

  gap: 18px;
}


/* Date Display */

.date-pill {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 11px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;

  color: #e3ede7;

  font-size: 11px;
}


/* Store Identity */

.store-mark {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: #f4e7c9;

  color: #664b18;

  font-size: 21px;
}

.store-id strong,
.store-id span {
  display: block;
}

.store-id strong {
  color: white;
  font-size: 12px;
}

.store-id span {
  margin-top: 5px;

  color: #b8d1c4;

  font-size: 9px;
}


/* =====================================================
   12. PAGE CONTENT
===================================================== */

.page-content {
  max-width: 1600px;

  margin: 0 auto;

  padding: 24px 20px;
}


/* Welcome Heading */

.welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  margin-bottom: 12px;
}

.welcome-row h1 {
  margin: 0;

  font-family: var(--font-main);

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

  letter-spacing: -0.04em;
}

.welcome-row .overline {
  display: none;
}

.welcome-row .lead {
  margin: 4px 0 0;
}

.diamond-badge {
  padding: 12px;

  background: #fcf6ea;

  border: 1px solid #e8d9bd;
  border-radius: 8px;

  color: #9c7847;

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

  letter-spacing: 0.08em;

  white-space: nowrap;
}


/* =====================================================
   13. DASHBOARD KPI CARDS
===================================================== */

.kpis {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin: 15px 0;
}

.kpi {
  min-height: 108px;

  padding: 16px 17px;

  background: white;

  border: 1px solid #f1eee9;
  border-radius: 12px;

  box-shadow:
    0 5px 20px rgba(23, 41, 30, 0.03);
}


/* KPI Background Variants */

.kpi-amber {
  background:
    linear-gradient(
      125deg,
      #fff9ee,
      #fffdf9
    );
}

.kpi-mint {
  background:
    linear-gradient(
      125deg,
      #eaf9f2,
      #f8fdfb
    );
}

.kpi-blue {
  background:
    linear-gradient(
      125deg,
      #eef6ff,
      #f8fbff
    );
}

.kpi-rose {
  background:
    linear-gradient(
      125deg,
      #fff0f1,
      #fffafb
    );
}


/* KPI Labels */

.kpi > span {
  display: block;

  color: #414a45;

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

  letter-spacing: 0;
}


/* KPI Values */

.kpi strong {
  display: block;

  margin: 8px 0;

  color: var(--forest);

  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 800;

  overflow-wrap: anywhere;
}

.kpi-rose strong {
  color: #8e1d2c;
}

.kpi small {
  color: #95a99a;
  font-size: 10px;
}


/* =====================================================
   END OF PART 1
===================================================== */

/* =====================================================
   SWARNA FINANCE
   FILE: public/styles.css
   PART 2 OF 3

   Finance Order
   Jewellery Photography
   Finance Calculator
   Recent Orders
   Customer Lookup
===================================================== */


/* =====================================================
   14. FINANCE SECTION HEADER
===================================================== */

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  padding: 14px 18px;

  background: linear-gradient(
    95deg,
    #073e36,
    #0d594a
  );

  color: white;

  border-radius: 12px 12px 0 0;

  margin-bottom: 0;
}

.section-intro h2 {
  margin: 0;

  color: white;

  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 800;
}

.section-intro .overline {
  display: none;
}

.section-intro.compact {
  min-height: 58px;
}


/* Finance Step Indicator */

.step-indicator {
  display: flex;
  align-items: center;

  gap: 9px;

  color: #f1e4c8;

  font-size: 11px;
  white-space: nowrap;
}

.step-indicator span {
  display: grid;
  place-items: center;

  width: 24px;
  height: 24px;

  background: #d3ad61;

  color: #173b31;

  border-radius: 50%;

  font-size: 11px;
  font-weight: 800;
}

.step-indicator span.empty {
  background: transparent;

  color: #e5eee8;

  border: 1px solid rgba(255, 255, 255, 0.45);
}

.step-indicator i {
  width: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.3);
}


/* =====================================================
   15. FINANCE GRID LAYOUT
===================================================== */

.finance-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(280px, 0.8fr);

  gap: 12px;

  align-items: stretch;

  padding: 12px;

  background: white;

  border: 1px solid var(--line);
  border-top: 0;

  border-radius: 0 0 12px 12px;
}


/* =====================================================
   16. COMMON CONTENT PANELS
===================================================== */

.surface {
  background: white;

  border: 1px solid var(--line);
  border-radius: 10px;

  box-shadow: var(--shadow-sm);
}

.form-surface {
  min-width: 0;

  padding: 18px;

  box-shadow: none;
}

.lookup-surface,
.settings-panel {
  padding: 24px;
}


/* Panel Header */

.panel-head {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 16px;
  padding-bottom: 14px;

  border-bottom: 1px solid var(--line);
}

.panel-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  flex-shrink: 0;

  background: #f5efdf;

  border-radius: 9px;

  color: #b38b4d;
}

.panel-head h3 {
  margin: 0 0 4px;

  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;

  color: var(--forest);
}

.panel-head p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.5;
}


/* =====================================================
   17. CUSTOMER AND JEWELLERY FORM
===================================================== */

.detail-fields {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px 14px;

  align-items: start;
}

.detail-fields .full {
  grid-column: 1 / -1;
}

.detail-fields .field {
  min-width: 0;
}

.detail-fields .field > span:first-child {
  margin-bottom: 7px;
}

.detail-fields input,
.detail-fields select {
  min-height: 43px;

  background: #fff;

  border: 1px solid #dce5dc;
  border-radius: 8px;

  font-size: 12px;
}

.detail-fields textarea {
  width: 100%;

  min-height: 94px;

  padding: 12px;

  background: #fff;

  border: 1px solid #dce5dc;
  border-radius: 8px;

  font-size: 12px;
  line-height: 1.6;

  resize: vertical;
}

.detail-fields input::placeholder,
.detail-fields textarea::placeholder {
  color: #a5b2a9;
}

.detail-fields select {
  cursor: pointer;
}

.detail-fields input:focus,
.detail-fields select:focus,
.detail-fields textarea:focus {
  border-color: var(--gold);

  box-shadow:
    0 0 0 3px rgba(199, 154, 67, 0.12);
}


/* Gold Weight, Rate and Percentage Inputs */

.detail-fields .input-suffix {
  display: flex;
  align-items: center;

  min-height: 43px;

  overflow: hidden;

  background: white;

  border: 1px solid #dce5dc;
  border-radius: 8px;
}

.detail-fields .input-suffix:focus-within {
  border-color: var(--gold);

  box-shadow:
    0 0 0 3px rgba(199, 154, 67, 0.12);
}

.detail-fields .input-suffix input {
  flex: 1;

  width: 100%;
  min-width: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;
}

.detail-fields .input-suffix span {
  flex-shrink: 0;

  padding: 0 4px 0 8px;

  color: #82958a;

  font-size: 10px;
  font-weight: 800;
}


/* =====================================================
   18. JEWELLERY PHOTO CAPTURE SECTION
===================================================== */

.capture-block {
  margin-top: 22px;
  padding-top: 20px;

  border-top: 1px solid var(--line);
}

.capture-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 12px;
}

.capture-heading h3 {
  margin: 0 0 5px;

  color: var(--forest);

  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
}

.capture-heading p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.6;
}

.optional-tag {
  flex-shrink: 0;

  padding: 7px 10px;

  background: #fbf4e8;

  border-radius: 5px;

  color: #a58555;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}


/* Photo Upload Zone */

.capture-zone {
  margin-top: 14px;
  padding: 22px 16px;

  background: #fbfcfa;

  border: 1px dashed #c6d8ca;
  border-radius: 10px;

  text-align: center;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.capture-zone:focus-within {
  background: #f7fbf6;
  border-color: var(--gold);
}

.capture-icon {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  margin: 0 auto 12px;

  background: #f6eddf;

  border-radius: 50%;

  color: var(--gold);
}

.capture-icon .ic {
  width: 22px;
  height: 22px;
}

.capture-zone h4 {
  margin: 0 0 6px;

  color: var(--forest);

  font-size: 13px;
  font-weight: 800;
}

.capture-zone p {
  color: var(--muted);

  font-size: 11px;
  line-height: 1.6;
}


/* Camera and Upload Buttons */

.actions {
  display: flex;
  align-items: center;

  gap: 10px;

  flex-wrap: wrap;
}

.actions.centered {
  justify-content: center;

  margin-top: 18px;
}

.capture-zone .btn {
  min-width: 120px;
}


/* Photo Preview */

.photo-preview {
  display: block;

  width: 100%;
  max-width: 320px;

  height: auto;

  margin: 18px auto 10px;

  border: 1px solid #e0e8df;
  border-radius: 10px;

  object-fit: contain;

  box-shadow: var(--shadow-sm);
}

#removePhoto {
  display: inline-block;

  margin-top: 8px;

  color: #a04d42;
}

#removePhoto:hover {
  color: #c13c2c;
}

.photo-capability-note {
  margin: 14px 0 0;

  color: #87968b;

  font-size: 10px;
  line-height: 1.6;
}


/* =====================================================
   19. FINANCE CALCULATOR CARD
===================================================== */

.summary-card {
  position: static;

  min-width: 0;

  background: var(--forest);

  color: white;

  border-radius: 12px;

  overflow: hidden;

  box-shadow: var(--shadow-sm);
}


/* Calculator Header */

.summary-top {
  position: relative;

  padding: 22px;

  background:
    radial-gradient(
      circle at right,
      #1c6654,
      #073e36 75%
    );
}

.summary-top h3 {
  margin: 0 0 10px;

  color: white;

  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 800;

  line-height: 1.2;
}

.summary-top h3 em {
  color: var(--light-gold);
}

.summary-top p:last-child {
  max-width: 280px;

  margin: 0;

  color: #c6dcd0;

  font-size: 11px;
  line-height: 1.7;
}

.summary-flower {
  position: absolute;

  right: 20px;
  top: 18px;

  color: var(--gold);

  font-size: 29px;
}


/* Finance Amount Highlight */

.amount-pane {
  margin: 0 14px;

  padding: 23px 12px;

  background: #fcfaf2;

  border-radius: 9px;

  color: var(--forest);

  text-align: center;
}

.amount-pane span,
.amount-pane small {
  display: block;

  color: #879b8b;

  font-size: 10px;
}

.amount-pane span {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.amount-pane strong {
  display: block;

  margin: 10px 0;

  color: var(--forest);

  font-family: var(--font-main);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 850;

  letter-spacing: -0.04em;

  overflow-wrap: anywhere;
}


/* Finance Calculation Breakdown */

.sum-details {
  padding: 14px 22px;
}

.sum-details > div {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 12px;

  padding: 11px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.14);

  font-size: 11px;
}

.sum-details span {
  color: #bdd1c1;
}

.sum-details strong {
  color: white;

  font-weight: 750;
  text-align: right;

  overflow-wrap: anywhere;
}

.sum-details .sum-total {
  padding-top: 16px;

  border-bottom: 0;
}

.sum-details .sum-total span {
  color: #f0dfbd;

  font-weight: 750;
}

.sum-details .sum-total strong {
  color: var(--light-gold);

  font-size: 19px;
  font-weight: 850;
}


/* Finance Rate Warning */

.quote-warning {
  margin: 0 16px 18px;

  padding: 13px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;

  color: #cadfd1;

  font-size: 11px;
  line-height: 1.7;
}


/* Confirm Finance Button */

.summary-card > .btn {
  width: calc(100% - 32px);

  margin: 0 16px;
}

.summary-card > .btn.gold {
  min-height: 48px;

  font-size: 12px;
  font-weight: 850;
}

.after-note {
  margin: 0;

  padding: 15px;

  color: #b3c6b8;

  font-size: 10px;
  text-align: center;
}


/* =====================================================
   20. RECENT FINANCE ORDERS
===================================================== */

.recent-section {
  margin-top: 20px;
}

.recent-section .section-intro {
  border-radius: 10px 10px 0 0;
}

.recent-section .section-intro .btn {
  background: #fffdf8;

  border-color: #e7d6ae;

  color: var(--forest);
}

.recent-list {
  background: white;

  border: 1px solid var(--line);
  border-top: 0;

  border-radius: 0 0 10px 10px;

  overflow: hidden;
}


/* Recent Order Row */

.recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  padding: 16px 20px;

  border-bottom: 1px solid var(--line);

  transition: background 0.2s ease;
}

.recent-row:hover {
  background: #fbfcf9;
}

.recent-row:last-child {
  border-bottom: 0;
}

.recent-row strong,
.recent-row small {
  display: block;
}

.recent-row strong {
  color: var(--ink);

  font-size: 12px;
  font-weight: 750;
}

.recent-row small {
  margin-top: 5px;

  color: var(--muted);

  font-size: 10px;
}

.recent-row b {
  color: var(--forest);

  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 800;

  white-space: nowrap;
}


/* Empty Order List */

.empty-row {
  padding: 30px 20px;

  color: var(--muted);

  font-size: 12px;

  text-align: center;
}


/* =====================================================
   21. CUSTOMER LOOKUP PAGE
===================================================== */

.lookup-surface {
  padding: 25px;
}

.lookup-form {
  display: flex;
  align-items: end;

  gap: 12px;

  max-width: 680px;
}

.lookup-form .field {
  flex: 1;
}

.lookup-form .btn {
  flex-shrink: 0;

  min-height: 43px;
}

.records-info {
  margin: 20px 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.7;
}


/* =====================================================
   22. CUSTOMER ORDER HISTORY TABLE
===================================================== */

.table-wrap {
  width: 100%;

  overflow-x: auto;

  border: 1px solid var(--line);
  border-radius: 9px;
}

.table-wrap table {
  width: 100%;

  min-width: 740px;

  border-collapse: collapse;

  background: white;
}

.table-wrap th,
.table-wrap td {
  padding: 15px 12px;

  border-bottom: 1px solid var(--line);

  text-align: left;

  font-size: 11px;
  white-space: nowrap;
}

.table-wrap th {
  background: #f6f9f5;

  color: #657d6b;

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

  letter-spacing: 0.04em;
}

.table-wrap tbody tr:hover {
  background: #fafcf9;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap td strong,
.table-wrap td small {
  display: block;
}

.table-wrap td strong {
  color: var(--forest);

  font-size: 12px;
}

.table-wrap td small {
  margin-top: 4px;

  color: var(--muted);

  font-size: 10px;
}


/* Status Labels */

.status-tag {
  display: inline-block;

  margin: 2px;
  padding: 6px 9px;

  background: #edf3e9;

  border-radius: 5px;

  color: #4e7656;

  font-size: 9px;
  font-weight: 750;
}


/* =====================================================
   END OF PART 2
===================================================== */

/* =====================================================
   SWARNA FINANCE
   FILE: public/styles.css
   PART 3 OF 3

   Google Drive and Sheets
   Printer Settings
   Employee Management
   Confirmation Modals
   Mobile Navigation
   Responsive Layout
===================================================== */


/* =====================================================
   23. SETTINGS PAGE
===================================================== */

.settings-stack {
  display: grid;
  gap: 20px;
}

.settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.settings-panel {
  min-width: 0;
  padding: 24px;
}

.settings-panel .panel-head {
  margin-bottom: 22px;
}

.settings-panel .panel-head h3 {
  font-size: 15px;
}

.settings-panel .panel-head p {
  max-width: 370px;
}

.settings-panel .actions {
  margin-top: 18px;
}

.settings-panel .actions .btn {
  flex: 1;
  min-width: 135px;
}

.settings-panel .field {
  margin-bottom: 15px;
}

.settings-panel .field input,
.settings-panel .field select {
  width: 100%;
}

.settings-panel .fineprint {
  margin-top: 20px;
}


/* =====================================================
   24. GOOGLE DRIVE AND SHEETS CONNECTIONS
===================================================== */

.connection-status {
  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 48px;
  margin-bottom: 17px;
  padding: 12px 14px;

  background: #f6f9f5;
  border: 1px solid #e2e9df;
  border-radius: 9px;

  color: #526b5b;
  font-size: 11px;
  line-height: 1.6;

  overflow-wrap: anywhere;
}

.connection-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;

  background: #c4a66d;
  border-radius: 50%;
}

.connection-status.connected {
  background: #edf8f0;
  border-color: #cbe5d1;
  color: #27643d;
}

.connection-status.connected::before {
  background: #42a866;
}

.connection-status.error {
  background: #fff4f0;
  border-color: #f0d2c8;
  color: #9a4838;
}

.connection-status.error::before {
  background: #d8755d;
}

.external-folder {
  margin-top: 16px;
  color: var(--forest);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.external-folder a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 0;

  color: var(--emerald);
  font-weight: 700;
}

.external-folder a:hover {
  color: var(--dark-gold);
}

#sheetLinkForm {
  display: grid;
  gap: 12px;
}

#sheetLinkForm .btn {
  margin-top: 2px;
}


/* Dynamic integration forms inserted by app.js */

#driveFolder form,
.settings-panel form:not(#employeeForm) {
  max-width: 100%;
}

#driveFolder input,
#driveFolder select {
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;

  background: white;
  border: 1px solid #dae4da;
  border-radius: 8px;

  color: var(--ink);
  outline: none;
}

#driveFolder input:focus,
#driveFolder select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 67, 0.12);
}


/* =====================================================
   25. PRINTER SETTINGS
===================================================== */

.printer-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.printer-tile {
  min-width: 0;
  padding: 16px;

  background: #fbfcf9;
  border: 1px solid #e5ebe2;
  border-radius: 11px;
}

.printer-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;
}

.printer-tile-head > .ic {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.printer-tile-head strong,
.printer-tile-head span {
  display: block;
}

.printer-tile-head strong {
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.printer-tile-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.printer-tile .field {
  margin-bottom: 16px;
}

.printer-tile .btn {
  min-height: 39px;
  font-size: 11px;
}


/* =====================================================
   26. EMPLOYEE MANAGEMENT
===================================================== */

#employeeForm {
  display: grid;
  gap: 14px;
}

.two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.two-fields .field {
  min-width: 0;
  margin: 0;
}

.team-list {
  display: grid;
  gap: 10px;

  margin-top: 22px;
}

.team-list:empty::before {
  content: "Employee profiles will appear here.";
  display: block;

  padding: 18px;

  background: #f8faf7;
  border: 1px dashed #dce5d9;
  border-radius: 8px;

  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.team-list > div {
  min-width: 0;
}

.team-list button {
  min-height: 34px;
}


/* =====================================================
   27. ACCOUNT SETTINGS
===================================================== */

.settings-account {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 24px;

  background: linear-gradient(
    110deg,
    #fffdf9,
    #f7f9f5
  );
}

.settings-account h3 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 17px;
}

.settings-account .muted {
  margin-bottom: 0;
  max-width: 440px;
}

.settings-account .actions {
  flex-shrink: 0;
  margin-top: 0;
}


/* =====================================================
   28. MODAL OVERLAY
===================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

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

  padding: 20px;

  background: rgba(2, 24, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  overflow-y: auto;
}

.modal-card {
  position: relative;

  width: min(510px, 100%);
  max-height: calc(100dvh - 40px);

  margin: auto;
  padding: 30px;

  background: white;
  border: 1px solid #e8e8df;
  border-radius: 16px;

  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.22);

  overflow-y: auto;
}

.modal-card h2 {
  margin-bottom: 12px;

  color: var(--forest);
  font-size: 29px;
  line-height: 1.2;
}

.modal-card > .muted {
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 16px;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  padding: 0;

  background: #f2f5f0;
  border: 0;
  border-radius: 50%;

  color: #627a68;
  font-size: 23px;
  line-height: 1;
}

.modal-close:hover {
  background: #e7ede5;
  color: var(--forest);
}


/* =====================================================
   29. FINANCE CONFIRMATION MODAL
===================================================== */

.review-lines {
  display: grid;
  gap: 0;

  margin: 20px 0;
  padding: 8px 16px;

  background: #f9fbf8;
  border: 1px solid #e7ece5;
  border-radius: 10px;

  color: var(--ink);
  font-size: 12px;
}

.review-lines > div {
  padding: 11px 0;
  border-bottom: 1px solid #e8ede7;
}

.review-lines > div:last-child {
  border-bottom: 0;
}

.review-lines strong {
  color: var(--forest);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin: 18px 0;
  padding: 13px;

  background: #fffaf0;
  border: 1px solid #efe3ca;
  border-radius: 9px;

  color: #5c624e;
  font-size: 11px;
  line-height: 1.6;
}

.checkline input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;

  flex-shrink: 0;
  accent-color: var(--emerald);
}

#confirmModal .field {
  display: block;
  margin-bottom: 18px;
}

#confirmPin {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.22em;
}


/* =====================================================
   30. CAMERA MODAL
===================================================== */

.camera-modal {
  width: min(650px, 100%);
}

#video {
  display: block;

  width: 100%;
  max-height: 65vh;

  margin: 20px 0;

  background: #10231d;
  border: 1px solid #cbd8cc;
  border-radius: 12px;

  object-fit: contain;
  aspect-ratio: 4 / 3;
}

.camera-modal .btn {
  justify-content: center;
}


/* =====================================================
   31. ORDER DETAILS MODAL
===================================================== */

#detailModal .modal-card {
  width: min(600px, 100%);
}

.detail-image {
  display: block;

  width: 100%;
  max-height: 320px;

  margin: 16px auto;

  background: #f7f8f5;
  border: 1px solid #e7eae3;
  border-radius: 10px;

  object-fit: contain;
}

.detail-image:not([src]),
.detail-image[src=""] {
  display: none;
}

#detailModal .actions {
  margin-top: 20px;
}

#detailModal .actions .btn {
  flex: 1;
}


/* =====================================================
   32. ORDER SUCCESS / PRINT MODAL
===================================================== */

.success-modal {
  text-align: center;
}

.success-emblem {
  display: grid;
  place-items: center;

  width: 62px;
  height: 62px;

  margin: 0 auto 20px;

  background: #e8f5e9;
  border: 1px solid #c9e7ce;
  border-radius: 50%;

  color: #287647;
  font-size: 30px;
  font-weight: 800;
}

.transaction-number {
  display: inline-block;

  margin: 8px 0 20px;
  padding: 10px 17px;

  background: #f7f1e5;
  border-radius: 8px;

  color: var(--forest);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.print-choices {
  display: grid;
  gap: 12px;

  margin: 24px 0;
}

.print-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 12px;

  width: 100%;
  padding: 17px;

  background: #fafbf8;
  border: 1px solid #dfe8dc;
  border-radius: 10px;

  color: var(--forest);
  text-align: left;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.print-choice:hover {
  background: #f2f8f0;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.print-choice strong,
.print-choice small {
  display: block;
}

.print-choice strong {
  font-size: 12px;
  font-weight: 800;
}

.print-choice small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.print-choice > span:last-child {
  color: var(--gold);
  font-size: 23px;
}


/* =====================================================
   33. MOBILE ACCOUNT MODAL
===================================================== */

#accountModal .field-stack {
  margin-top: 24px;
}

#accountModal .btn.full {
  justify-content: center;
}


/* =====================================================
   34. NOTIFICATION TOAST
===================================================== */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;

  max-width: min(420px, calc(100vw - 32px));

  padding: 14px 20px;

  background: var(--forest);
  border: 1px solid rgba(231, 205, 141, 0.4);
  border-radius: 10px;

  color: white;
  font-size: 12px;
  line-height: 1.6;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(15px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.toast.show,
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast.error {
  background: #813a34;
  border-color: #d99d90;
}

.toast.success {
  background: #126144;
}


/* =====================================================
   35. MOBILE NAVIGATION
===================================================== */

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  display: none;
  justify-content: space-around;
  align-items: stretch;

  gap: 4px;

  padding:
    7px 8px
    calc(7px + env(safe-area-inset-bottom));

  background: var(--forest);
  border-top: 1px solid rgba(230, 190, 107, 0.3);

  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.12);
}

.mobile-nav button {
  flex: 1;

  min-width: 0;
  min-height: 46px;

  padding: 10px 5px;

  background: transparent;
  border: 0;
  border-radius: 8px;

  color: #dce9df;
  font-size: 11px;
  font-weight: 750;
}

.mobile-nav button:hover,
.mobile-nav button.active {
  background: rgba(241, 209, 141, 0.16);
  color: var(--light-gold);
}


/* =====================================================
   36. FOOTER AND FINE PRINT
===================================================== */

.footer {
  padding: 20px;

  color: #9caaa0;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-align: center;
}

.fineprint {
  color: #8b9c8e;
  font-size: 10px;
  line-height: 1.8;
}


/* =====================================================
   37. DESKTOP AND SMALL LAPTOP
   Screen width: 1440px and below
===================================================== */

@media (max-width: 1440px) {

  .page-content {
    padding: 20px 18px;
  }

  .finance-grid {
    grid-template-columns:
      minmax(0, 1.3fr)
      minmax(270px, 0.8fr);
  }

  .settings-panel {
    padding: 20px;
  }

  .printer-tiles {
    grid-template-columns: 1fr;
  }

}


/* =====================================================
   38. IPAD LANDSCAPE / SMALL LAPTOP
   Screen width: 1180px and below
===================================================== */

@media (max-width: 1180px) {

  .sidebar {
    width: 190px;
  }

  .side-logo {
    font-size: 16px;
  }

  .side-logo small {
    font-size: 6px;
  }

  .navigation button {
    gap: 9px;
    padding: 11px;
  }

  .nav-glyph {
    width: 23px;
    font-size: 20px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-card {
    max-width: none;
  }

  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .printer-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =====================================================
   39. IPAD PORTRAIT / TABLET
   Screen width: 900px and below
===================================================== */

@media (max-width: 900px) {

  .sidebar {
    width: 76px;
    padding: 20px 9px;
  }

  .side-logo {
    justify-content: center;
    padding: 8px 0 20px;
  }

  .side-logo > div {
    display: none;
  }

  .side-logo .brand-gem {
    font-size: 36px;
  }

  .side-workspace {
    display: none;
  }

  .navigation {
    margin-top: 18px;
  }

  .navigation button {
    justify-content: center;
    padding: 13px 8px;
  }

  .navigation button > span:last-child {
    display: none;
  }

  .navigation .nav-glyph {
    width: auto;
    font-size: 24px;
  }

  .mini-profile {
    justify-content: center;
  }

  .mini-profile > div {
    display: none;
  }

  .side-utility,
  .side-trademark {
    display: none;
  }

  .topbar {
    padding: 12px 20px;
  }

  .page-content {
    padding: 20px;
  }

  .auth-art {
    padding: 35px;
  }

  .auth-hero-copy h1 {
    font-size: 47px;
  }

  .auth-art-foot {
    flex-direction: column;
    gap: 7px;
  }

  .settings-account {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-account .actions {
    width: 100%;
  }

}


/* =====================================================
   40. MOBILE LANDSCAPE / LARGE PHONE
   Screen width: 700px and below
===================================================== */

@media (max-width: 700px) {

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 220px;
    padding: 24px;
  }

  .auth-art-top {
    font-size: 14px;
  }

  .auth-hero-copy {
    margin-top: 24px;
  }

  .auth-hero-copy h1 {
    font-size: 34px;
  }

  .auth-hero-copy p {
    font-size: 11px;
  }

  .auth-art-foot,
  .mini-accent,
  .ornament-two {
    display: none;
  }

  .ornament-one {
    width: 280px;
    height: 280px;
    right: -120px;
    top: -30px;
  }

  .auth-form-wrap {
    padding: 32px 20px;
  }

  .auth-inner h2 {
    font-size: 33px;
  }

  .sidebar {
    display: none;
  }

  .workspace-main {
    width: 100%;
  }

  .topbar {
    height: auto;
    min-height: 68px;
    padding: 14px 16px;
  }

  .topbar h2 {
    font-size: 14px;
  }

  .topbar-right {
    gap: 8px;
  }

  .date-pill {
    display: none;
  }

  .store-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .store-id strong {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .store-id span {
    font-size: 8px;
  }

  .page-content {
    padding: 15px 12px 90px;
  }

  .welcome-row {
    align-items: flex-start;
  }

  .welcome-row h1 {
    font-size: 25px;
  }

  .diamond-badge {
    display: none;
  }

  .kpis {
    gap: 9px;
  }

  .kpi {
    min-height: 105px;
    padding: 14px 12px;
  }

  .kpi strong {
    font-size: 22px;
  }

  .kpi > span {
    font-size: 10px;
  }

  .section-intro {
    padding: 14px;
  }

  .section-intro h2 {
    font-size: 16px;
  }

  .step-indicator {
    font-size: 10px;
  }

  .finance-grid {
    padding: 9px;
  }

  .form-surface {
    padding: 15px 12px;
  }

  .detail-fields {
    gap: 13px 10px;
  }

  .capture-zone {
    padding: 20px 12px;
  }

  .summary-top {
    padding: 19px;
  }

  .sum-details {
    padding: 12px 17px;
  }

  .lookup-surface,
  .settings-panel {
    padding: 17px;
  }

  .lookup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .lookup-form .btn {
    width: 100%;
  }

  .mobile-nav:not(.hidden) {
    display: flex;
  }

  .footer {
    padding-bottom: 100px;
  }

}


/* =====================================================
   41. SMALL MOBILE PHONES
   Screen width: 480px and below
===================================================== */

@media (max-width: 480px) {

  .gate-card {
    padding: 27px 20px;
  }

  .gate-card h2 {
    font-size: 28px;
  }

  .profiles {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .profile {
    padding: 12px;
  }

  .topbar {
    gap: 8px;
  }

  .breadcrumb {
    font-size: 8px;
  }

  .store-id span {
    display: none;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi strong {
    font-size: 20px;
  }

  .detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-fields .full {
    grid-column: auto;
  }

  .capture-heading {
    align-items: flex-start;
  }

  .capture-zone .actions {
    flex-direction: column;
  }

  .capture-zone .btn {
    width: 100%;
  }

  .printer-tiles,
  .two-fields {
    grid-template-columns: 1fr;
  }

  .settings-account .actions {
    flex-direction: column;
  }

  .settings-account .actions .btn {
    width: 100%;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100dvh - 24px);
    padding: 25px 18px;
    border-radius: 12px;
  }

  .modal-card h2 {
    font-size: 25px;
  }

  #detailModal .actions {
    flex-direction: column;
  }

  #detailModal .actions .btn {
    width: 100%;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(75px + env(safe-area-inset-bottom));
    max-width: none;
  }

}


/* =====================================================
   42. VERY SMALL DEVICES
===================================================== */

@media (max-width: 360px) {

  .page-content {
    padding-left: 9px;
    padding-right: 9px;
  }

  .kpi {
    padding: 12px 10px;
  }

  .kpi strong {
    font-size: 18px;
  }

  .section-intro {
    padding: 12px;
  }

  .step-indicator {
    gap: 5px;
  }

  .step-indicator i {
    width: 12px;
  }

  .topbar-right .store-mark {
    display: none;
  }

}


/* =====================================================
   43. ACCESSIBILITY AND INTERACTION
===================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199, 154, 67, 0.65);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}


/* =====================================================
   END OF STYLES.CSS
   PART 3 OF 3

   SWARNA FINANCE
   EMERALD & GOLD LUXURY DESIGN
===================================================== */

/* ============================================
   SWARNA FINANCE — SLIM LUXURY SIDEBAR
   Paste at the END of public/styles.css
============================================ */

/* Sidebar width and layout */
.sidebar {
  width: 172px;
  padding: 18px 9px 14px;
  background: linear-gradient(
    180deg,
    #073e35 0%,
    #042f29 100%
  );
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.06);
}

/* Compact brand */
.side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px 15px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: normal;
}

.side-logo > div {
  min-width: 0;
  overflow-wrap: normal;
}

.side-logo .brand-gem {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  background: #d9b878;
  color: #073e35;
  border-radius: 9px;
  font-size: 25px;
}

.side-logo small {
  display: block;
  margin-top: 5px;
  color: #b7c9b9;
  font-size: 6px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: normal;
}

/* Workspace label */
.side-workspace {
  margin: 15px 8px 10px;
  color: #91b4a6;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

/* Menu spacing */
.navigation {
  display: grid;
  gap: 4px;
}

.navigation button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #dce9e1;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.navigation button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.navigation button.active {
  background: linear-gradient(
    105deg,
    #efd59d,
    #d3ad65
  );
  color: #173c31;
  font-weight: 750;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Slim menu icons */
.nav-glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  font-size: 16px;
  line-height: 1;
}

/* Owner profile */
.side-bottom {
  padding: 12px 3px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-profile {
  gap: 8px;
  margin-bottom: 8px;
}

.profile-dot {
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  background: #d9b878;
  color: #173c31;
  font-size: 13px;
  font-weight: 800;
}

.mini-profile strong {
  font-size: 10px;
  line-height: 1.3;
}

.mini-profile small {
  font-size: 9px;
}

.side-utility {
  padding: 9px 7px;
  font-size: 10px;
  border-radius: 6px;
}

.side-utility:hover {
  background: rgba(255, 255, 255, 0.07);
}

.side-trademark {
  margin-top: 8px;
  padding-top: 12px;
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* Main dashboard uses remaining width */
.workspace-main {
  flex: 1;
  min-width: 0;
}

/* Tablet: icon-only navigation */
@media (min-width: 701px) and (max-width: 900px) {
  .sidebar {
    width: 62px;
    padding: 15px 6px;
  }

  .side-logo {
    justify-content: center;
    padding: 4px 0 15px;
  }

  .side-logo > div,
  .side-workspace,
  .navigation button > span:last-child,
  .mini-profile > div,
  .side-utility,
  .side-trademark {
    display: none;
  }

  .navigation button {
    justify-content: center;
    min-height: 42px;
    padding: 10px 5px;
  }

  .nav-glyph {
    width: auto;
    font-size: 20px;
  }

  .mini-profile {
    justify-content: center;
  }
}

/* Mobile: existing bottom navigation */
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
}

