/* =====================================================================
   WARRANTY INSPECTION DASHBOARD
   PREMIUM WARM + 4-SECTION COLOR SYSTEM
   ---------------------------------------------------------------------
   HERO                  = Espresso / Gold
   CURRENT MONTH         = Coffee / Copper
   MUMBAI ACTIONS        = Burgundy / Rust
   CHENNAI TEAM          = Emerald / Teal
   CASE CATEGORY         = Amber / Gold
   WAITING CUSTOMER      = Violet / Plum
   ===================================================================== */

:root {
  /* ================================================================
     GLOBAL
     ================================================================ */

  --bg: #f4eee7;
  --surface: #fffdf9;
  --surface-2: #faf5ee;

  --text: #2b1d13;
  --muted: #78634f;
  --line: #e3d6c7;

  --shadow:
    0 12px 32px rgba(72, 45, 25, .11);

  --shadow-lg:
    0 26px 70px rgba(72, 45, 25, .20);

  --radius: 20px;

  /* ================================================================
     WARM BASE PALETTE
     ================================================================ */

  --brown-50: #faf7f2;
  --brown-100: #f2e8dc;
  --brown-200: #e7d6c3;
  --brown-300: #d7bfa0;
  --brown-400: #c49a70;
  --brown-500: #a8754d;
  --brown-600: #8c5c3c;
  --brown-700: #71452d;
  --brown-800: #56331f;
  --brown-900: #3b2315;
  --brown-950: #241408;

  --card: #d7bfa0;
  --card-light: #e5d1b9;
  --card-mid: #d7bfa0;
  --card-dark: #c4a17e;

  --card-hover-light: #d0b497;
  --card-hover: #bea17f;
  --card-hover-dark: #ad8e6d;

  --card-ink: #2b1d13;
  --card-title: #543522;

  /* ================================================================
     ROLE ALIASES
     ================================================================ */

  --blue: #805438;
  --blue-2: #623d29;
  --sky-light: #d7bfa0;

  --purple: #695174;
  --purple-bg: #f4eff7;

  --green: #3f6c58;
  --orange: #a86b24;
  --red: #9d4334;
}


/* =====================================================================
   GLOBAL RESET
   ===================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

  color: var(--text);

  background:
    radial-gradient(
      circle at 8% -5%,
      rgba(203, 157, 107, .28),
      transparent 27%
    ),
    radial-gradient(
      circle at 94% 0%,
      rgba(165, 121, 79, .18),
      transparent 31%
    ),
    radial-gradient(
      circle at 100% 45%,
      rgba(104, 81, 117, .09),
      transparent 36%
    ),
    radial-gradient(
      circle at 0% 90%,
      rgba(70, 117, 95, .08),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #f7f1e9 0%,
      #f3ece3 48%,
      #f8f3ed 100%
    );

  background-attachment: fixed;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}


/* =====================================================================
   LOGIN
   ===================================================================== */

.login-body {
  min-height: 100vh;
  padding: 20px;

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

  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(196, 154, 111, .24),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 90%,
      rgba(103, 81, 121, .10),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #f8f2e9,
      #efe6db
    );
}

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

  padding: 38px 34px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.96),
      rgba(250,245,238,.96)
    );

  border:
    1px solid rgba(142, 109, 78, .18);

  border-radius: 24px;

  box-shadow:
    0 30px 80px rgba(67, 43, 25, .18),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.login-brand h1 {
  margin: 0 0 7px;

  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.03em;

  color: var(--brown-900);
}

.login-brand p {
  margin: 0 0 25px;

  color: var(--muted);
  font-size: 14px;
}

.field-label {
  display: block;

  margin: 14px 0 7px;

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

  color: var(--brown-800);
}

.field-input {
  width: 100%;

  padding: 13px 14px;

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

  border-radius: 12px;

  outline: none;

  background: #fffdfa;
  color: var(--text);

  font-size: 14px;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.field-input::placeholder {
  color: #b8a796;
}

.field-input:focus {
  border-color: var(--brown-500);

  box-shadow:
    0 0 0 4px rgba(168, 117, 77, .13);

  transform: translateY(-1px);
}

.primary-btn {
  width: 100%;

  margin-top: 21px;
  padding: 13px 16px;

  border: 0;
  border-radius: 12px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #8f6140,
      #623d29
    );

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

  cursor: pointer;

  box-shadow:
    0 10px 22px rgba(98, 61, 41, .24);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 15px 28px rgba(98, 61, 41, .30);
}

.primary-btn:disabled {
  opacity: .65;
  cursor: default;
  transform: none;
}

.login-error {
  margin-top: 14px;
  padding: 11px 12px;

  border:
    1px solid #efd1ca;

  border-radius: 10px;

  background: #fdf0ed;
  color: var(--red);

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


/* =====================================================================
   MAIN SHELL
   ===================================================================== */

.shell {
  width: 100%;
  max-width: 1400px;

  margin: 0 auto;

  padding:
    26px
    24px
    70px;
}


/* =====================================================================
   TOP BAR
   ===================================================================== */

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

  gap: 18px;

  margin-bottom: 20px;
}

.brand h1 {
  margin: 0;

  color: var(--brown-900);

  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.brand p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 14px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.refresh,
.logout-btn {
  border:
    1px solid rgba(120, 86, 56, .14);

  border-radius: 12px;

  padding: 10px 15px;

  background:
    rgba(255, 252, 247, .92);

  color: var(--brown-800);

  cursor: pointer;

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

  box-shadow:
    0 5px 16px rgba(72, 45, 25, .06);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.refresh:hover,
.logout-btn:hover {
  transform: translateY(-2px);

  border-color: var(--brown-300);

  box-shadow:
    0 10px 22px rgba(72, 45, 25, .10);
}

.refresh:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.logout-btn {
  color: var(--red);
}


/* =====================================================================
   DATASET SWITCH
   ===================================================================== */

.mode-switch {
  display: grid;

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

  gap: 10px;

  margin-bottom: 18px;

  padding: 7px;

  background:
    linear-gradient(
      135deg,
      #e9ddd0,
      #f6efe6
    );

  border:
    1px solid rgba(133, 100, 71, .10);

  border-radius: 18px;

  box-shadow:
    inset 0 2px 4px rgba(58, 35, 21, .07);
}

.mode-btn {
  position: relative;
  overflow: hidden;

  border: 0;
  border-radius: 14px;

  padding: 18px 20px;

  background: transparent;

  color: #806f5d;

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

  cursor: pointer;

  transition:
    transform .22s ease,
    color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.mode-btn:hover {
  color: var(--brown-800);
}

.mode-btn.active {
  color: var(--brown-900);

  background:
    linear-gradient(
      145deg,
      #fffefd,
      #fbf5ee
    );

  box-shadow:
    0 8px 22px rgba(58, 35, 21, .11),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.mode-btn.active::after {
  content: "";

  position: absolute;

  left: 18%;
  right: 18%;
  bottom: 5px;

  height: 3px;

  border-radius: 99px;

  background:
    linear-gradient(
      90deg,
      #a8754d,
      #d5a56f
    );

  opacity: .8;
}


/* =====================================================================
   TOP STACK
   ===================================================================== */

.top-stack {
  display: flex;
  flex-direction: column;

  gap: 16px;

  margin-bottom: 26px;
}

.top-stack .hero-container {
  margin: 0;
}

.top-stack .current-month-card {
  margin: 0;
}


/* =====================================================================
   HERO — UNRESOLVED CASES
   ===================================================================== */

.hero-container {
  perspective: 1600px;
}

.hero-container .flip-card {
  min-height: 0;
}

.hero-container .flip-card-inner {
  min-height: 0;
}

.hero-container .flip-card-face {
  position: relative;

  min-height: 215px;

  padding:
    30px
    34px;

  overflow: hidden;

  border-radius: 28px;

  color: white;

  background:
    radial-gradient(
      circle at 91% -14%,
      rgba(224, 175, 100, .48),
      transparent 38%
    ),
    radial-gradient(
      circle at 4% 115%,
      rgba(139, 83, 42, .32),
      transparent 46%
    ),
    linear-gradient(
      135deg,
      #170e08 0%,
      #24160d 38%,
      #3b2817 75%,
      #53391d 100%
    );

  border:
    1px solid rgba(220, 175, 103, .55);

  box-shadow:
    0 20px 48px rgba(45, 28, 14, .38),
    inset 0 1px 0 rgba(255,255,255,.10);

  transition:
    transform .35s cubic-bezier(.16,1,.3,1),
    box-shadow .35s ease,
    border-color .35s ease;
}

.hero-container .flip-card-face::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      125deg,
      rgba(255,255,255,.07),
      transparent 25%,
      transparent 65%,
      rgba(229,183,111,.06)
    );

  pointer-events: none;
}

.hero-container .flip-card-front:hover {
  transform:
    translateY(-4px)
    rotateX(1deg);

  border-color:
    rgba(234, 192, 123, .76);

  box-shadow:
    0 27px 58px rgba(45, 28, 14, .44),
    0 0 36px rgba(224,175,100,.13),
    inset 0 1px 0 rgba(255,255,255,.13);
}

.hero-container .dash-card-title {
  position: relative;

  margin: 0;

  color: #e8c98c;

  font-size: 14px;
  font-weight: 900;

  text-transform: uppercase;
  letter-spacing: .15em;
}

.hero-container .hero-card-total {
  position: relative;

  margin:
    15px 0
    12px;

  font-size: 70px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: -.055em;

  background:
    linear-gradient(
      135deg,
      #fff7df,
      #edcc94 52%,
      #c9975a 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  filter:
    drop-shadow(
      0 6px 18px rgba(218, 170, 100, .24)
    );
}

.hero-container .dash-card-months {
  position: relative;
}

.hero-container .month-pill {
  border-color:
    rgba(232,201,140,.48);

  background:
    rgba(229,183,111,.09);

  color:
    #efd49f;
}

.hero-container .month-pill:hover {
  background:
    linear-gradient(
      135deg,
      #efce91,
      #bf8d54
    );

  border-color:
    #efce91;

  color:
    #2b190d;

  box-shadow:
    0 8px 20px rgba(208,157,92,.30);
}

.hero-container .info-btn {
  background:
    rgba(231, 191, 120, .14);

  color:
    #e9cb93;
}

.hero-container .info-btn:hover {
  background:
    rgba(231, 191, 120, .28);
}


/* =====================================================================
   CURRENT MONTH RECEIVED
   ===================================================================== */

.current-month-card {
  position: relative;
  overflow: hidden;

  padding:
    24px
    28px;

  border-radius: 23px;

  color: white;

  background:
    radial-gradient(
      circle at 92% -18%,
      rgba(213, 166, 103, .42),
      transparent 42%
    ),
    radial-gradient(
      circle at 2% 120%,
      rgba(56, 35, 22, .58),
      transparent 50%
    ),
    linear-gradient(
      135deg,
      #24170f 0%,
      #3c2819 45%,
      #55361f 77%,
      #6c4729 100%
    );

  border:
    1px solid rgba(214, 169, 107, .34);

  box-shadow:
    0 15px 32px rgba(61, 39, 22, .28),
    inset 0 1px 0 rgba(255,255,255,.09);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.current-month-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 21px 40px rgba(61, 39, 22, .34),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.current-month-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      125deg,
      rgba(255,255,255,.07),
      transparent 30%,
      transparent 68%,
      rgba(237,199,143,.05)
    );

  pointer-events: none;
}

.cm-value {
  position: relative;

  font-size: 43px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: -.045em;

  background:
    linear-gradient(
      135deg,
      #fff8ed,
      #e7c596,
      #c99258
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  filter:
    drop-shadow(
      0 4px 14px rgba(214,169,107,.24)
    );
}

.cm-meta {
  position: relative;

  margin-top: 5px;

  color: #e4c79f;

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

.cm-label {
  position: relative;

  margin-top: 10px;

  color: rgba(231,203,164,.76);

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

  text-transform: uppercase;
  letter-spacing: .13em;
}


/* =====================================================================
   SECTIONS
   ===================================================================== */

.sections-container {
  display: flex;
  flex-direction: column;

  gap: 38px;
}

.dash-section {
  display: flex;
  flex-direction: column;

  gap: 15px;
}


/* ================================================================
   SECTION HEADER
   ================================================================ */

.section-title {
  position: relative;

  margin: 0;
  padding-left: 14px;

  color: var(--brown-900);

  font-size: 15px;
  font-weight: 900;

  letter-spacing: .10em;
  text-transform: uppercase;
}

.section-title::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 5px;
  height: 20px;

  border-radius: 99px;

  transform: translateY(-50%);
}


/* Mumbai section header */
.dash-section[data-section="mumbai"] .section-title::before {
  background:
    linear-gradient(
      180deg,
      #d06b54,
      #7d2f24
    );
}


/* Chennai section header */
.dash-section[data-section="chennai"] .section-title::before {
  background:
    linear-gradient(
      180deg,
      #61c49a,
      #197050
    );
}


/* Category section header */
.dash-section[data-section="caseCategory"] .section-title::before {
  background:
    linear-gradient(
      180deg,
      #f4c55e,
      #a96913
    );
}


/* Waiting section header */
.dash-section[data-section="waitingCustomer"] .section-title::before {
  background:
    linear-gradient(
      180deg,
      #b79ce5,
      #664092
    );
}


/* =====================================================================
   CARD GRID
   ===================================================================== */

.cards-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(245px, 1fr));

  gap: 17px;

  perspective: 1600px;

  align-items: start;
}


/* =====================================================================
   FLIP CARDS
   ===================================================================== */

.flip-card {
  min-height: 190px;

  opacity: 0;

  transform:
    translateY(8px);

  animation:
    cardIn .42s cubic-bezier(.16,1,.3,1)
    forwards;
}

@keyframes cardIn {
  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}

.flip-card-inner {
  position: relative;

  display: grid;

  width: 100%;

  min-height: 190px;

  transform-style: preserve-3d;

  transition:
    transform .62s cubic-bezier(.2,.9,.25,1);
}

.flip-card-inner > .flip-card-face {
  grid-area: 1 / 1;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  min-height: 190px;

  display: flex;
  flex-direction: column;

  padding:
    18px
    20px;

  border-radius: 19px;

  backface-visibility: hidden;
}

.flip-card-front {
  position: relative;

  overflow: hidden;

  width: 100%;

  background:
    linear-gradient(
      150deg,
      var(--card-light),
      var(--card) 55%,
      var(--card-dark)
    );

  border:
    1px solid rgba(104, 77, 50, .32);

  box-shadow:
    0 7px 19px rgba(105, 78, 51, .14),
    inset 0 1px 0 rgba(255,255,255,.45);

  transform-style: preserve-3d;

  transition:
    transform .3s cubic-bezier(.2,.8,.3,1),
    box-shadow .3s ease,
    border-color .3s ease,
    background .3s ease;
}

.flip-card-front::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.12),
      transparent 30%,
      transparent 72%,
      rgba(72,45,25,.05)
    );

  pointer-events: none;
}

.flip-card:not(.flipped):hover .flip-card-front {
  transform:
    translateY(-5px)
    rotateX(2deg);

  background:
    linear-gradient(
      150deg,
      var(--card-hover-light),
      var(--card-hover) 55%,
      var(--card-hover-dark)
    );

  box-shadow:
    0 21px 42px rgba(80, 57, 37, .23),
    inset 0 1px 0 rgba(255,255,255,.38);
}


/* =====================================================================
   MUMBAI ACTIONS — BURGUNDY / RUST
   ===================================================================== */

.card-mumbai .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #f2d7d1 0%,
      #e8b9ae 50%,
      #c98f80 100%
    );

  border-color:
    #a86a5c;

  box-shadow:
    0 7px 21px rgba(128, 52, 39, .18),
    inset 0 1px 0 rgba(255,255,255,.46);
}

.card-mumbai .dash-card-title {
  color:
    #5b241c;
}

.card-mumbai .dash-card-total {
  background:
    linear-gradient(
      135deg,
      #631f17,
      #8d352a 58%,
      #aa5545
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.card-mumbai .month-pill {
  border-color:
    rgba(117,46,34,.28);

  color:
    #5c281f;

  background:
    rgba(255,248,244,.48);
}

.card-mumbai:not(.flipped):hover .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #dfb5aa,
      #cf9a8e 55%,
      #b87b6d
    );

  border-color:
    #873d31;

  box-shadow:
    0 21px 44px rgba(119, 45, 34, .29);
}

.card-mumbai .month-pill:hover {
  background:
    linear-gradient(
      135deg,
      #923d30,
      #672119
    );

  color:
    white;

  border-color:
    #672119;
}


/* =====================================================================
   CHENNAI TEAM — EMERALD / TEAL
   ===================================================================== */

.card-chennai .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #d8efe2 0%,
      #b9ddca 50%,
      #8fc1a7 100%
    );

  border-color:
    #6ea788;

  box-shadow:
    0 7px 21px rgba(32, 107, 79, .16),
    inset 0 1px 0 rgba(255,255,255,.48);
}

.card-chennai .dash-card-title {
  color:
    #214e3a;
}

.card-chennai .dash-card-total {
  background:
    linear-gradient(
      135deg,
      #184a36,
      #2e7858 60%,
      #4c9672
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.card-chennai .month-pill {
  border-color:
    rgba(36, 103, 75, .27);

  background:
    rgba(248,255,251,.50);

  color:
    #24553f;
}

.card-chennai:not(.flipped):hover .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #c1dfcd,
      #a4ccb6 55%,
      #82b49a
    );

  border-color:
    #4b8968;

  box-shadow:
    0 21px 44px rgba(29, 108, 77, .26);
}

.card-chennai .month-pill:hover {
  background:
    linear-gradient(
      135deg,
      #347d5b,
      #1d523c
    );

  color:
    white;

  border-color:
    #1d523c;
}


/* =====================================================================
   CASE CATEGORY — AMBER / GOLD
   ===================================================================== */

.card-category .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #f8eac5 0%,
      #ecd79f 50%,
      #d3b76c 100%
    );

  border-color:
    #c19f4e;

  box-shadow:
    0 7px 21px rgba(163, 115, 28, .17),
    inset 0 1px 0 rgba(255,255,255,.49);
}

.card-category .dash-card-title {
  color:
    #644912;
}

.card-category .dash-card-total {
  background:
    linear-gradient(
      135deg,
      #694706,
      #9b680d 60%,
      #bd8825
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.card-category .month-pill {
  border-color:
    rgba(121,85,11,.29);

  background:
    rgba(255,252,239,.48);

  color:
    #6a4b0b;
}

.card-category:not(.flipped):hover .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #ead9aa,
      #dbc589 55%,
      #c5a966
    );

  border-color:
    #a87d1a;

  box-shadow:
    0 21px 44px rgba(157, 111, 21, .28);
}

.card-category .month-pill:hover {
  background:
    linear-gradient(
      135deg,
      #a46e0c,
      #684607
    );

  color:
    white;

  border-color:
    #684607;
}


/* =====================================================================
   WAITING CUSTOMER — VIOLET / PLUM
   ===================================================================== */

.card-waiting .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #eadff1 0%,
      #d8c5e2 50%,
      #baa1c9 100%
    );

  border-color:
    #9d83b1;

  box-shadow:
    0 7px 21px rgba(105, 73, 132, .16),
    inset 0 1px 0 rgba(255,255,255,.48);
}

.card-waiting .dash-card-title {
  color:
    #55366b;
}

.card-waiting .dash-card-total {
  background:
    linear-gradient(
      135deg,
      #4e2865,
      #71428d 60%,
      #8f65a5
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.card-waiting .month-pill {
  border-color:
    rgba(92, 57, 111, .27);

  background:
    rgba(255,252,255,.50);

  color:
    #57366c;
}

.card-waiting:not(.flipped):hover .flip-card-front {
  background:
    linear-gradient(
      150deg,
      #dacbe3,
      #c9b2d5 55%,
      #ad91be
    );

  border-color:
    #79528f;

  box-shadow:
    0 21px 44px rgba(100, 67, 127, .27);
}

.card-waiting .month-pill:hover {
  background:
    linear-gradient(
      135deg,
      #79489a,
      #4d295f
    );

  color:
    white;

  border-color:
    #4d295f;
}


/* =====================================================================
   CARD CONTENT
   ===================================================================== */

.dash-card-title {
  position: relative;
  z-index: 2;

  margin:
    4px
    30px
    4px
    0;

  color:
    var(--card-title);

  font-size: 13px;
  line-height: 1.35;

  font-weight: 800;
}

.dash-card-total {
  position: relative;
  z-index: 2;

  color:
    var(--card-ink);

  font-size: 31px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: -.035em;
}

.dash-card-empty {
  position: relative;
  z-index: 2;

  margin-top: 11px;

  color:
    #66513e;

  font-size: 12px;
}

.dash-card-months {
  position: relative;
  z-index: 2;

  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 13px;
}

.month-pill {
  border:
    1px solid rgba(84, 51, 31, .22);

  border-radius: 999px;

  padding:
    5px 12px;

  color:
    var(--card-ink);

  background:
    rgba(255, 253, 248, .66);

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

  cursor: pointer;

  transition:
    transform .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease,
    border-color .16s ease;
}

.month-pill:hover {
  transform:
    translateY(-2px);
}


/* =====================================================================
   INFO / FLIP BUTTON
   ===================================================================== */

.info-btn {
  position: absolute;
  z-index: 8;

  top: 11px;
  right: 11px;

  width: 28px;
  height: 28px;

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

  border:
    1px solid rgba(79, 51, 32, .16);

  border-radius: 50%;

  background:
    rgba(255,255,255,.24);

  color:
    var(--card-ink);

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform .18s ease,
    background .18s ease;
}

.info-btn:hover {
  transform:
    scale(1.10);

  background:
    rgba(255,255,255,.42);
}

.flip-card-back .info-btn {
  background:
    rgba(255,245,230,.10);

  color:
    #f8eee3;

  border-color:
    rgba(255,255,255,.12);
}


/* =====================================================================
   CARD BACK / FILTER EXPLANATION
   ===================================================================== */

.flip-card-back {
  border:
    1px solid rgba(235, 210, 181, .16);

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(184, 140, 91, .14),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      #27180f,
      #372317 50%,
      #452c1b 100%
    );

  color:
    #f7eee4;

  box-shadow:
    0 15px 38px rgba(42,25,14,.30);

  transform:
    rotateY(180deg);

  pointer-events:
    none;
}

.flip-card.flipped .flip-card-back {
  pointer-events: auto;
}

.flip-card.flipped .flip-card-front {
  pointer-events: none;
}

.flip-card-back-label {
  margin-top: 4px;

  color:
    #dfb47d;

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

  text-transform: uppercase;
  letter-spacing: .15em;
}

.flip-card-back-title {
  margin:
    8px 0
    10px;

  color:
    #fff5e9;

  font-size: 16px;
  line-height: 1.3;

  font-weight: 900;
}

.flip-card-back-explanation {
  margin: 0;

  color:
    #dfd1c2;

  font-size: 13px;
  line-height: 1.58;
}


/* =====================================================================
   SKELETONS
   ===================================================================== */

.skeleton {
  height: 120px;

  border-radius: 17px;

  background:
    linear-gradient(
      90deg,
      #e9dfd2 25%,
      #f7f0e7 37%,
      #e9dfd2 63%
    );

  background-size:
    400% 100%;

  animation:
    shimmer 1.4s ease infinite;
}

.hero-skeleton {
  height: 215px;
  border-radius: 27px;
}

.section-skeleton-group {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(240px, 1fr));

  gap: 16px;
}

@keyframes shimmer {
  0% {
    background-position:
      100% 0;
  }

  100% {
    background-position:
      0 0;
  }
}


/* =====================================================================
   WCID MODAL
   ===================================================================== */

.wcid-overlay {
  position: fixed;
  inset: 0;

  z-index: 50;

  display: flex;

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

  padding: 20px;

  background:
    rgba(42, 27, 17, .62);

  backdrop-filter:
    blur(7px);

  animation:
    fadeIn .2s ease;
}

.wcid-overlay[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.wcid-panel {
  width: 100%;
  max-width: 1120px;

  max-height: 84vh;

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      145deg,
      rgba(255,254,251,.96),
      rgba(249,243,235,.96)
    );

  border:
    1px solid rgba(255,255,255,.72);

  border-radius: 26px;

  overflow: hidden;

  box-shadow:
    0 45px 110px rgba(38,22,13,.38),
    inset 0 1px 0 rgba(255,255,255,.82);

  backdrop-filter:
    blur(20px);

  animation:
    slideUp .26s cubic-bezier(.16,1,.3,1);
}

@keyframes slideUp {
  from {
    opacity: 0;

    transform:
      translateY(28px)
      scale(.975);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

.wcid-panel-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;

  padding:
    20px 24px;

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

  background:
    rgba(255,253,249,.84);

  backdrop-filter:
    blur(20px);
}

.wcid-panel-header h2 {
  margin: 0;

  color:
    var(--brown-900);

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

  letter-spacing:
    -.025em;
}

.wcid-panel-meta {
  margin: 5px 0 0;

  color:
    var(--muted);

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

.icon-btn {
  flex-shrink: 0;

  width: 36px;
  height: 36px;

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

  border-radius: 11px;

  background:
    var(--surface-2);

  color:
    var(--brown-800);

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

  cursor: pointer;

  transition:
    transform .16s ease,
    background .16s ease;
}

.icon-btn:hover {
  transform:
    rotate(3deg)
    scale(1.05);

  background:
    #eee2d4;
}

.wcid-panel-body {
  min-height: 0;

  padding:
    8px 0 18px;

  overflow-y: auto;
}


/* =====================================================================
   WCID TABLE
   ===================================================================== */

.wcid-table-wrap {
  overflow-x: auto;

  padding:
    0 24px;
}

.wcid-table {
  width: 100%;

  min-width: 940px;

  border-collapse:
    separate;

  border-spacing:
    0;

  font-size: 13px;
}

.wcid-table thead th {
  position: sticky;
  top: 0;

  z-index: 3;

  padding:
    12px;

  background:
    #f8f1e9;

  color:
    var(--brown-700);

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

  text-align: left;

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

  text-transform: uppercase;
  letter-spacing: .08em;
}

.wcid-table thead th:first-child {
  border-top-left-radius: 10px;
}

.wcid-table thead th:last-child {
  border-top-right-radius: 10px;
}

.wcid-table tbody td {
  padding:
    12px;

  color:
    var(--text);

  border-bottom:
    1px solid #eee4d8;

  background:
    rgba(255,253,249,.55);

  vertical-align: middle;
}

.wcid-table tbody tr {
  transition:
    transform .16s ease,
    background .16s ease;
}

.wcid-table tbody tr:hover td {
  background:
    rgba(215,191,160,.20);
}

.wcid-copy-wrap {
  display: flex;

  align-items: center;

  gap: 8px;
}

.copy-btn {
  padding:
    4px 9px;

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

  border-radius:
    8px;

  background:
    #f8f0e7;

  color:
    var(--brown-700);

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

  cursor: pointer;

  transition:
    transform .16s ease,
    background .16s ease;
}

.copy-btn:hover {
  transform:
    translateY(-1px);

  background:
    #eee0cf;
}

.ticket-link {
  display: inline-flex;

  align-items: center;

  color:
    #754224;

  font-size: 13px;
  font-weight: 900;

  text-decoration:
    none;

  border-bottom:
    1px dashed #754224;

  transition:
    color .16s ease,
    border-color .16s ease;
}

.ticket-link:hover {
  color:
    #b16f3e;

  border-color:
    #b16f3e;
}

.wcid-loading {
  padding:
    42px 24px;

  color:
    var(--muted);

  text-align:
    center;

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


/* =====================================================================
   ASK TIME
   ===================================================================== */

.ask-time-cell {
  white-space: nowrap;
}

.ask-time-na {
  color: var(--muted);
  font-size: 12px;
}

.ask-time-btn {
  padding: 6px 12px;

  border: 1px solid rgba(157, 67, 52, .35);
  border-radius: 9px;

  background: linear-gradient(135deg, #c0473a, #9d4334);

  color: #fff8f6;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;

  cursor: pointer;

  box-shadow:
    0 6px 16px rgba(157, 67, 52, .28);

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    opacity .16s ease;
}

.ask-time-btn:hover:not(:disabled) {
  transform: translateY(-2px);

  box-shadow:
    0 10px 22px rgba(157, 67, 52, .36);
}

.ask-time-btn:active:not(:disabled) {
  transform: translateY(0);
}

.ask-time-btn:disabled {
  cursor: default;
}

.ask-time-btn--sending {
  background: linear-gradient(135deg, #c98a7f, #b06657);
  box-shadow: none;
  opacity: .85;
}

.ask-time-btn--sent {
  background: linear-gradient(135deg, #3f6c58, #2f5744);
  border-color: rgba(63, 108, 88, .4);
  box-shadow:
    0 6px 16px rgba(63, 108, 88, .28);
  opacity: 1;
}

.ask-time-btn--error {
  background: linear-gradient(135deg, #a86b24, #8a561c);
  border-color: rgba(168, 107, 36, .4);
  box-shadow:
    0 6px 16px rgba(168, 107, 36, .28);
}

/* ---- Confirmation dialog ---- */

.ask-confirm-overlay {
  position: fixed;
  inset: 0;

  z-index: 60;

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

  padding: 20px;

  background: rgba(42, 27, 17, .55);
  backdrop-filter: blur(5px);

  animation: fadeIn .16s ease;
}

.ask-confirm-overlay[hidden] {
  display: none !important;
}

.ask-confirm-card {
  width: 100%;
  max-width: 340px;

  padding: 22px 22px 18px;

  background: linear-gradient(145deg, rgba(255,254,251,.98), rgba(249,243,235,.98));

  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;

  box-shadow:
    0 30px 80px rgba(38,22,13,.35),
    inset 0 1px 0 rgba(255,255,255,.82);

  animation: slideUp .2s cubic-bezier(.16,1,.3,1);
}

.ask-confirm-text {
  margin: 0 0 18px;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;

  text-align: center;
}

.ask-confirm-actions {
  display: flex;
  gap: 10px;
}

.ask-confirm-cancel,
.ask-confirm-send {
  flex: 1;

  padding: 10px 14px;

  border: 0;
  border-radius: 10px;

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

  cursor: pointer;

  transition:
    transform .16s ease,
    box-shadow .16s ease;
}

.ask-confirm-cancel {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--brown-800);
}

.ask-confirm-cancel:hover {
  transform: translateY(-1px);
}

.ask-confirm-send {
  background: linear-gradient(135deg, #c0473a, #9d4334);
  color: #fff8f6;
  box-shadow: 0 8px 18px rgba(157, 67, 52, .3);
}

.ask-confirm-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(157, 67, 52, .38);
}

/* ---- Toast ---- */

.ask-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;

  transform: translateX(-50%);

  z-index: 70;

  padding: 11px 18px;

  border-radius: 12px;

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

  color: #fff8f6;

  box-shadow: 0 16px 40px rgba(38,22,13,.3);

  animation: fadeIn .18s ease;
}

.ask-toast[hidden] {
  display: none !important;
}

.ask-toast--success {
  background: linear-gradient(135deg, #3f6c58, #2f5744);
}

.ask-toast--error {
  background: linear-gradient(135deg, #a86b24, #8a561c);
}

@media (max-width: 640px) {
  .ask-confirm-card {
    max-width: 300px;
  }
}


/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    padding:
      16px
      14px
      50px;
  }

  .topbar {
    align-items:
      stretch;

    flex-direction:
      column;
  }

  .topbar-actions {
    width: 100%;
  }

  .refresh,
  .logout-btn {
    flex: 1;
  }

  .brand h1 {
    font-size: 24px;
  }

  .mode-btn {
    padding:
      14px 12px;

    font-size: 13px;
  }

  .hero-container .flip-card-face {
    min-height: 190px;

    padding:
      24px 22px;
  }

  .hero-container .hero-card-total {
    font-size: 54px;
  }

  .current-month-card {
    padding:
      21px 22px;
  }

  .cm-value {
    font-size: 35px;
  }

  .sections-container {
    gap: 30px;
  }

  .cards-grid {
    grid-template-columns:
      1fr;

    gap: 14px;
  }

  .wcid-overlay {
    padding: 10px;
  }

  .wcid-panel {
    max-height: 90vh;
    border-radius: 20px;
  }

  .wcid-panel-header {
    padding:
      17px 18px;
  }

  .wcid-table-wrap {
    padding:
      0 14px;
  }
}


/* =====================================================================
   REDUCED MOTION
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Tabs (Overview / Overdue) ---- */
.tab-bar { display: flex; gap: 8px; margin: 0 0 12px; border-bottom: 1px solid rgba(128,128,128,.25); }
.tab-btn { background: none; border: none; padding: 10px 18px; font: inherit; font-weight: 600; color: inherit; opacity: .6; cursor: pointer; border-bottom: 3px solid transparent; }
.tab-btn:hover { opacity: .9; }
.tab-btn.active { opacity: 1; border-bottom-color: currentColor; }

/* ---- Day-wise breakup under a month pill ---- */
.day-breakup { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px 12px; width: 100%; }
.day-breakup[hidden] { display: none; }
.day-pill { font-size: .85em; opacity: .9; }
.day-pill-all { font-weight: 700; }

/* ---------- Video Links group card (Overview: Chennai + Mumbai) ---------- */
.video-card {
  background: var(--card-light);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  color: var(--card-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
}
.video-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--card-title);
}
.video-card-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.video-sub {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--card-ink);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.video-sub:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.video-sub-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.video-sub-total {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.video-reason-cell {
  max-width: 420px;
  white-space: normal;
}

.video-error {
  font-size: 13px;
  color: var(--red);
  line-height: 1.4;
}

/* ---------- Assigned To / Comments / Send ---------- */
.assign-cell,
.assign-comment-cell,
.assign-send-cell {
  white-space: nowrap;
  vertical-align: middle;
}
.assign-select {
  min-width: 120px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.assign-comment-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assign-comment {
  width: 240px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 12px;
}
.assign-select:focus,
.assign-comment:focus {
  outline: 2px solid rgba(157, 67, 52, .35);
  outline-offset: 1px;
}
.assign-count {
  font-size: 11px;
  color: var(--muted);
  min-width: 36px;
}
.assign-send-cell {
  min-width: 84px;
}
.assign-send-btn[hidden] {
  display: none;
}
