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

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Lato font  */
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

/* inter font  */
@font-face {
  font-family: "inter";
  src: url("../fonts/Inter.ttf") format("truetype");
}

.crumb p {
  margin: 0;
}

:root {
  /* colors  */
  --primary-color: #065ca9;
  --light-primary-shade: rgba(187, 218, 232, 0.5);
  --dark-theme: #0f172a;
  --hover-btn: #c3dcf0;
  --neutral-primay: #005399;
  --whiteFC: #fcfcfc;
  --white-F7: #f7f7f7;
  --whiteEB: #ebebeb;
  --white: #ffffff;
  --text-5C: #5c5c5c;
  --text-85: #858585;
  --Icon-color: #848484;
  --text-dark: #121212;
  --text-dark2: #141414;
  --login-border: #e5e5e5;
  --login-bg: #c2c2c21a;
  --login-shadow: 0px 16px 30px 18px #ffffff4d;
  --red: #ff0000;
  --light-red-shade: rgba(219, 172, 171, 0.5);
  --Neutral-background: #f2f6fa;
  --deal-color: #afd6e8;
  --progress-color: #fee3bb;
  --hold-color: #cecece;
  --complete-color: #ccf0ce;
  --cancelled-color: #f2d2d1;
  --Neutral-Separator: #ebebeb;
  --Menu-Separator: #c2c2c2;
  --Button-secondary: #d16f15;
  --Button-soft-color: #ccddeb;
  --Neutral-Success: #00cc29;
  --whiteFA: #fafafa;
  --active-bg: #f0f5fa;
  --light-grey-bg: #f7f9fb;
  --green-donutchart: #3ac977;
  --lightgreen-donutchart: #baedbd;
  --black-donutchart: #000;
  --blue-donutchart: #0d99ff;
  --bluedark-donutchart: #95a4fc;
  --black-100: #1c1c1c;
  --Neutral-Gray-100: #edf2f7;
  --common-pupbg: rgba(0, 0, 0, 0.3);
  --button-focused: #00427a;
  --chart-border: #e2e8f0;
  --charcoal-blue: #314158;
  --storm-blue: #1d293d;
  /* v6: unified Inter typography (Google variable Inter → local Inter.ttf → system stack). */
  --inter: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'inter', sans-serif;
  --lato: var(--inter);
  --monts: var(--inter);
  --transtion: all 0.5s ease-in-out;

  /* Lead Dashboard variables */
  --navy: #134261;
  --navy-light: #2164A6;
  --navy-soft: rgba(19, 66, 97, 0.07);
  --accent: #2164A6;
  --accent-light: #4A8AC9;
  --accent-soft: rgba(33, 100, 166, 0.12);
  --orange: #D97706;
  --orange-soft: rgba(217, 119, 6, 0.12);
  --success: #16A34A;
  --success-soft: rgba(22, 163, 74, 0.10);
  --danger: #DC2626;
  --danger-soft: rgba(220, 38, 38, 0.10);
  --warning: #D97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --info: #2563EB;
  --info-soft: rgba(37, 99, 235, 0.10);
  --purple: #7C3AED;
  --purple-soft: rgba(124, 58, 237, 0.10);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(19, 66, 97, 0.05);
  --shadow-md: 0 4px 14px rgba(19, 66, 97, 0.07);
  --shadow-lift: 0 10px 24px rgba(19, 66, 97, 0.12);
}

/* ================= v6 DESIGN SYSTEM — TOKENS ================= */
/* Additive only. Existing legacy tokens above are untouched.     */
:root {
  --v6-primary: #0F4C81;
  --v6-primary-d: #0B3A63;
  --v6-secondary: #1B9AAA;
  --v6-accent: #2563EB;
  --v6-success: #16A34A;
  --v6-warning: #F59E0B;
  --v6-danger: #DC2626;
  --v6-info: #2563EB;
  --v6-bg: #F1F5F9;
  --v6-surface: #FFFFFF;
  --v6-surface-2: #F8FAFC;
  --v6-border: #E2E8F0;
  --v6-border-strong: #CBD5E1;
  --v6-text: #334155;
  --v6-heading: #0F172A;
  --v6-muted: #64748B;
  /* soft tints for status chips / icon bubbles */
  --v6-primary-soft: rgba(15, 76, 129, 0.10);
  --v6-accent-soft: rgba(37, 99, 235, 0.10);
  --v6-success-soft: rgba(22, 163, 74, 0.10);
  --v6-warning-soft: rgba(245, 158, 11, 0.14);
  --v6-danger-soft: rgba(220, 38, 38, 0.10);
  --v6-neutral-soft: rgba(100, 116, 139, 0.12);
  /* radii */
  --v6-radius-lg: 15px;
  --v6-radius-md: 12px;
  --v6-radius: 9px;
  --v6-radius-sm: 7px;
  --v6-pill: 999px;
  /* shadows */
  --v6-shadow: 0 1px 3px rgba(15, 23, 42, .07);
  --v6-shadow-h: 0 4px 14px rgba(19, 66, 97, .09);
  --v6-shadow-lift: 0 10px 28px rgba(15, 23, 42, .14);
  --v6-ring: 0 0 0 3px rgba(37, 99, 235, .18);
}

html {
  font-size: 14px;
  line-height: 1.5;
}

body {
  color: var(--text-dark2);
  font-family: var(--inter);
  font-weight: 400;
  background-color: #F5F7FA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  letter-spacing: -0.1px;
}

/* Works in Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #e9e7e7;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
}

.pl_pr {
  padding: 0 clamp(16px, 2.5vw, 32px);
}

.outer_padding {
  padding: 16px clamp(16px, 2.5vw, 32px);
}

.del:hover path {
  stroke: var(--red) !important;
}

/* ++++++++ table status color ++++++++ */
.cursor-pointer {
  cursor: pointer;
}

.deal_state {
  background-color: var(--deal-color);
  color: #009bba;
  font-weight: 600;
  text-align: center;
  padding: 5px 12px;
  font-size: 14px;
  width: max-content;
  border-radius: 12px;
}

.progress_state {
  background-color: var(--progress-color);
  color: #c57500;
  font-weight: 600;
  text-align: center;
  padding: 5px 12px;
  font-size: 14px;
  width: max-content;
  border-radius: 12px;
}

.hold_state {
  background-color: var(--hold-color);
  color: var(--text-5C);
  font-weight: 600;
  text-align: center;
  padding: 5px 12px;
  font-size: 14px;
  width: max-content;
  border-radius: 12px;
}

.complete_state {
  background-color: var(--complete-color);
  color: #007c19b2;
  font-weight: 600;
  text-align: center;
  padding: 5px 12px;
  font-size: 14px;
  width: max-content;
  border-radius: 12px;
}

.cancelled_state {
  background-color: var(--cancelled-color);
  color: #e87f7f;
  font-weight: 600;
  text-align: center;
  padding: 5px 12px;
  font-size: 14px;
  width: max-content;
  border-radius: 12px;
}

.half_day {
  background-color: #fee3bb;
  color: var(--text-dark);
  font-weight: 600;
  text-align: center;
  padding: 5px 12px;
  font-size: 14px;
  width: max-content;
  border-radius: 12px;
  color: #c57500;
}

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

.present {
  background-color: #04e39180;
}

.half-day {
  background-color: #dae51480;
}

.absent {
  background-color: #ff0a0a80;
}

.off_bg {
  background-color: #f6f6f6;
}

.holiday {
  background-color: #c700ff80;
}

.leave {
  background-color: #007bff80;
}

.user_active {
  display: flex;
  width: 80px;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 124, 25, 0.7);
  background: #ccf0ce;
  color: rgba(0, 124, 25, 0.7);
  font-weight: 700;
}

.user_inactive {
  display: flex;
  width: 80px;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(92, 92, 92, 0.7);
  background: #cecece;
  color: var(--text-5C);
  text-transform: capitalize;
}

.success_status {
  font-size: 14px;
  color: var(--whiteFC);
  font-weight: 700;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--Neutral-Success, #00cc29);
}

.not-available {
  display: flex;
  width: 94px;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #8b969f;
  font-size: 14px;
  color: #f5f5f5;
  font-weight: 700;
}

.table_bold_Text {
  font-size: 14px;
  color: var(--text-dark2);
  font-weight: 800;
  font-family: var(--lato);
}

/* custom container  */
.l_container {
  width: 99%;
  margin: 0 auto;
  padding: 0 15px;
}

@media screen and (min-width: 1900px) {
  .l_container {
    max-width: 1840px;
  }
}

@media screen and (max-width: 1800px) {
  .l_container {
    max-width: 1740px;
  }
}

@media screen and (max-width: 1700px) {
  .l_container {
    max-width: 1640px;
  }
}

@media screen and (max-width: 1600px) {
  .l_container {
    max-width: 1540px;
  }
}

@media screen and (max-width: 1500px) {
  .l_container {
    max-width: 1440px;
  }
}

@media (max-width: 768px) {
  .l_container {
    width: 98%;
    padding: 0 8px;
  }
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused),
.ck.ck-toolbar.ck-toolbar_grouping > .ck-toolbar__items {
  background: var(--whiteFA);
}

/* ======================
login css starts
====================== */
.login_section {
  padding: 24px 0;
}

.login_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 50px;
}

.login_slider_img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 920px;
  width: 100%;
}

.login_slider_img .img_text {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 20px;
}

.login_slider_img .img_text h3 {
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
}

.login_slider_img .img_text p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: clamp(16px, 1vw, 18px);
}

.login_slider_img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.login_right {
  padding: clamp(24px, 2.5vw, 44px);
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 25px;
  height: 82%;
  gap: 24px;
}

.login_right .c-logo {
  width: 180px;
  object-fit: contain;
}

.login_right .flag {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  background-color: var(--Neutral-background);
  border: 1px solid var(--login-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  flex-shrink: 0;
}

.login_right .flag img {
  width: 34px;
  object-fit: contain;
}

.login_right form input {
  padding: 9px 16px;
  width: 100%;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background-color: transparent;
  outline-color: #85858580;
}

.login_right form input::placeholder {
  color: var(--text-85);
}

.login_right form {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.login_right form label {
  color: var(--text-dark);
  padding-bottom: 8px;
}

.login_right form label span {
  color: var(--red);
}

.login_right form a.login,
.login_right form button {
  width: 100%;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-primay);
  color: var(--white);
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid var(--neutral-primay);
  transition: all 0.5s ease-in-out;
}

.login_right form a.login:hover,
.login_right form button:hover {
  color: var(--primary-color);
  background-color: transparent;
}

.login_right h2 {
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 800;
}

.login_right p {
  color: var(--text-5C);
  font-size: clamp(16px, 1vw, 17px);
  font-weight: 500;
}

.forgotpassword {
  text-align: center;
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.forgotpassword::before {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 0%;
  height: 1px;
  border-radius: 2px;
  background-color: var(--neutral-primay);
  transition: all 0.5s ease-in-out;
}

.forgotpassword:hover:before {
  width: 100%;
}

.mySwiperLogin .swiper-pagination-bullet {
  background-color: #5c5c5c80;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: 54px;
  height: 8px;
  opacity: 1;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mySwiperLogin .swiper-pagination-bullet-active {
  background-color: var(--text-5C);
}

.mySwiperLogin .swiper-pagination {
  bottom: 20px;
  left: 20px;
  width: max-content;
}

.input_password {
  position: relative;
}

.input_password i {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--text-85);
  font-size: 20px;
  cursor: pointer;
}

.back_login_btn,
.formmax {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.back_login_btn a {
  background-color: var(--Neutral-background);
  border: 1px solid var(--login-border);
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  border-radius: 20px;
  width: max-content;
  transition: all 0.5s ease-in-out;
}

.back_login_btn a:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.send_mail {
  max-width: 250px;
  width: 100%;
}

/* ======================
login css ends
====================== */


/* ===== TOP BAR ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--border, #D9DDE3);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
}

.icon-btn-top {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border, #D9DDE3);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6B7686);
    position: relative;
    transition: 0.15s;
    cursor: pointer;
}

/* Admin Profile */
.admin {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 8px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Notification Popup */
.notification_popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 340px;
    max-width: 400px;
    max-height: 420px;
    overflow: hidden;
    z-index: 50;
    display: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s ease;
}

.notification_popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification_popup_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border, #D9DDE3);
}

.notification_popup_header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #134261);
}

.notification_count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #6B7686);
    background: var(--gray-bg, #F5F7FA);
    padding: 2px 10px;
    border-radius: 12px;
}

.notification_popup_body {
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
}

.notification_popup_body::-webkit-scrollbar {
    width: 4px;
}

.notification_popup_body::-webkit-scrollbar-track {
    background: var(--gray-bg, #F5F7FA);
}

.notification_popup_body::-webkit-scrollbar-thumb {
    background: var(--border, #D9DDE3);
    border-radius: 2px;
}

.notification_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #F0F2F6;
    transition: background 0.2s ease;
}

.notification_item:hover {
    background: var(--gray-bg, #F5F7FA);
}

.notification_item:last-child {
    border-bottom: none;
}

.notification_icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft, rgba(33, 100, 166, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent, #2164A6);
}

.notification_content {
    flex: 1;
    min-width: 0;
}

.notification_content p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text, #2E2E2E);
    line-height: 1.4;
}

.notification_empty {
    padding: 30px 18px;
    text-align: center;
    color: var(--text-muted, #6B7686);
    font-size: 13px;
}

/* Profile Popup */
.profile_popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    max-width: 300px;
    overflow: hidden;
    z-index: 50;
    display: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s ease;
}

.profile_popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.profile_popup_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border, #D9DDE3);
}

.profile_avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent, #2164A6) 0%, var(--navy, #134261) 130%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.profile_info {
    flex: 1;
    min-width: 0;
}

.profile_info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #134261);
}

.profile_info span {
    display: block;
    font-size: 12px;
    color: var(--text-muted, #6B7686);
    margin-top: 1px;
}

.profile_info p {
    margin: 3px 0 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent, #2164A6);
}

.profile_popup_body {
    padding: 6px 0;
}

.profile_menu_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text, #2E2E2E);
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile_menu_item:hover {
    background: var(--gray-bg, #F5F7FA);
    color: var(--navy, #134261);
}

.profile_menu_item.logout-item:hover {
    background: var(--danger-soft, rgba(220, 38, 38, 0.10));
    color: var(--danger, #DC2626);
}

.profile_menu_item svg {
    flex-shrink: 0;
    color: var(--text-muted, #6B7686);
}

.profile_menu_item:hover svg {
    color: inherit;
}

.profile_menu_item.logout-item:hover svg {
    color: var(--danger, #DC2626);
}

/* ===== MOBILE SIDEBAR TOGGLE ===== */
.side_bar_menu_btn {
    font-size: 24px;
    color: var(--text-dark2, #141414);
    cursor: pointer;
    display: none;
    padding: 4px;
}

@media (max-width: 992px) {
    .side_bar_menu_btn {
        display: flex;
    }
    
    .admin-text .a-mail {
        display: none;
    }
    
    .topbar-inner {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .crumb span {
        display: none;
    }
    
    .crumb b {
        font-size: 12px;
    }
    
    .live-pill {
        font-size: 10px;
        padding: 3px 8px 3px 6px;
    }
    
    .live-pill .live-dot {
        width: 5px;
        height: 5px;
    }
    
    .brand-text .brand-sub {
        display: none;
    }
}

@media (max-width: 576px) {
    .topbar-inner {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .brand-icon {
        width: 30px;
        height: 30px;
    }
    
    .brand-icon svg {
        width: 15px;
        height: 15px;
    }
    
    .brand-name {
        font-size: 12px;
    }
    
    .crumb {
        font-size: 11px;
    }
    
    .crumb svg {
        width: 11px;
        height: 11px;
    }
    
    .icon-btn-top {
        width: 32px;
        height: 32px;
    }
    
    .admin {
        padding: 2px 8px 2px 2px;
    }
    
    .avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .admin-text .a-name {
        font-size: 12px;
    }
    
    .notification_popup {
        min-width: 280px;
        right: -10px;
    }
}
/* ===== TOP BAR ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--border, #D9DDE3);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
    overflow: visible;
}

.topbar-inner {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 11px 28px;
    flex-wrap: nowrap;
    overflow: visible;
}

.brand-text {
    line-height: 1.15;
    white-space: nowrap;
}

/* Breadcrumb */
.crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #6B7686);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.crumb b {
    color: var(--navy, #134261);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crumb svg {
    width: 13px;
    height: 13px;
    stroke: var(--text-muted, #6B7686);
    flex-shrink: 0;
}

.crumb span {
    flex-shrink: 0;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success, #16A34A);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.icon-btn-top {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border, #D9DDE3);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6B7686);
    position: relative;
    transition: 0.15s;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn-top:hover {
    background: var(--gray-bg, #F5F7FA);
    color: var(--navy, #134261);
    border-color: var(--navy, #134261);
}

/* Admin Profile */
.admin {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 8px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.admin:hover {
    background: var(--gray-bg, #F5F7FA);
    border-color: var(--border, #D9DDE3);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent, #2164A6) 0%, var(--navy, #134261) 130%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.admin-text {
    line-height: 1.2;
    white-space: nowrap;
}

/* Mobile Sidebar Toggle */
.side_bar_menu_btn {
    font-size: 24px;
    color: var(--text-dark2, #141414);
    cursor: pointer;
    display: none;
    padding: 4px;
    flex-shrink: 0;
}

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

/* Tablet & Medium Screens */
@media (max-width: 992px) {
    .topbar-inner {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .side_bar_menu_btn {
        display: flex;
    }
    
    /* Hide admin email on tablet */
    .admin-text .a-mail {
        display: none;
    }
    
    /* Hide breadcrumb text, keep icons and current page */
    .crumb span {
        display: none;
    }
    
    .crumb b {
        font-size: 12px;
        max-width: 100px;
    }
    
    .crumb svg:not(:last-of-type) {
        display: none;
    }
    
    /* Keep the last arrow and current page */
    .crumb svg:last-of-type {
        display: flex;
    }
    
    /* Smaller live pill */
    .live-pill {
        font-size: 10px;
        padding: 3px 8px 3px 6px;
    }
    
    .live-pill .live-dot {
        width: 5px;
        height: 5px;
    }
    
    /* Hide brand subtitle */
    .brand-text .brand-sub {
        display: none;
    }
    
    /* Smaller brand icon */
    .brand-icon {
        width: 32px;
        height: 32px;
    }
    
    .brand-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .brand-name {
        font-size: 13px;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .topbar-inner {
        padding: 6px 12px;
        gap: 8px;
    }
    
    /* Hide divider */
    .divider-v {
        display: none;
    }
    
    /* Hide breadcrumb completely on mobile, show only current page */
    .crumb span,
    .crumb svg {
        display: none !important;
    }
    
    .crumb b {
        font-size: 11px;
        max-width: 80px;
        display: block;
    }
    
    /* Hide live pill on small mobile */
    .live-pill {
        display: none;
    }
    
    /* Smaller brand */
    .brand-icon {
        width: 28px;
        height: 28px;
    }
    
    .brand-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .brand-name {
        font-size: 12px;
    }
    
    .brand-text .brand-sub {
        display: none;
    }
    
    /* Smaller notification icon */
    .icon-btn-top {
        width: 30px;
        height: 30px;
    }
    
    .icon-btn-top svg {
        width: 14px;
        height: 14px;
    }
    
    .notif-dot {
        width: 6px;
        height: 6px;
        top: 5px;
        right: 5px;
    }
    
    /* Compact admin profile */
    .admin {
        padding: 2px 6px 2px 2px;
        gap: 6px;
    }
    
    .avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .admin-text .a-name {
        font-size: 11px;
    }
    
    /* Sidebar toggle smaller */
    .side_bar_menu_btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .topbar-inner {
        padding: 4px 8px;
        gap: 6px;
    }
    
    /* Hide breadcrumb completely on very small screens */
    .crumb {
        display: none;
    }
    
    /* Even smaller brand */
    .brand-icon {
        width: 24px;
        height: 24px;
    }
    
    .brand-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .brand-name {
        font-size: 10px;
    }
    
    /* Show only icons on very small screens */
    .admin-text {
        display: none;
    }
    
    .admin {
        padding: 2px;
        border: none;
    }
    
    .admin:hover {
        background: transparent;
        border-color: transparent;
    }
    
    .avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .icon-btn-top {
        width: 26px;
        height: 26px;
    }
    
    .icon-btn-top svg {
        width: 12px;
        height: 12px;
    }
    
    .notif-dot {
        width: 5px;
        height: 5px;
        top: 4px;
        right: 4px;
    }
}

/* ===== POPUPS ===== */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 66, 97, 0.35);
    z-index: 45;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-backdrop.active {
    display: block;
    opacity: 1;
}

.notification_popup,
.profile_popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 50;
    display: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s ease;
}

.notification_popup.active,
.profile_popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification_popup {
    min-width: 340px;
    max-width: 400px;
    max-height: 420px;
}

.profile_popup {
    min-width: 240px;
    max-width: 300px;
}

/* Mobile popup adjustments */
@media (max-width: 768px) {
    .notification_popup {
        min-width: 280px;
        max-width: calc(100vw - 32px);
        right: -10px;
    }
    
    .profile_popup {
        min-width: 200px;
        max-width: calc(100vw - 32px);
        right: -10px;
    }
}

@media (max-width: 480px) {
    .notification_popup {
        min-width: 0;
        width: calc(100vw - 24px);
        right: 12px;
    }
    
    .profile_popup {
        min-width: 0;
        width: calc(100vw - 24px);
        right: 12px;
    }
}

/* +++++++++ admin list heading css starts ++++++++++ */
.admin_list_heading .left_heading h3 {
  color: var(--text-dark, #141414);
  font-family: var(--lato);
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.admin_list_heading .left_heading p {
  color: var(--text-dark2, #141414);
  font-family: var(--inter);
  font-size: 14px;
  margin: 0;
}

.right_fil_div .search,
.search_component .search {
  max-width: 245px;
  position: relative;
}

.right_fil_div .search svg,
.search_component .search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.right_fil_div .search input,
.search_component form .search input {
  width: 100%;
  outline: none;
  padding: 8px 12px 8px 42px;
  border-radius: 50px;
  border: 1px solid var(--whiteEB);
  background: var(--whiteFA);
  font-size: 14px;
}

.right_fil_div .search input::placeholder,
.search_component form .search input::placeholder {
  color: var(--text-dark);
}

.right_fil_div .filter {
  padding: 8px 12px 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 50px;
  border: 1px solid var(--whiteEB);
  font-size: 14px;
  width: max-content;
}

.add_expenses,
.add_project_inner_form a,
.add_purchase_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 8px;
  width: max-content;
  font-size: 14px;
  background-color: var(--primary-color);
  border-radius: 50px;
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.add_expenses:hover,
.add_project_inner_form a:hover,
.add_purchase_btn:hover {
  color: var(--primary-color);
  background-color: transparent;
}

.add_expenses:hover svg path,
.add_project_inner_form a:hover svg path,
.add_purchase_btn:hover svg path {
  stroke: var(--primary-color);
}

.activity_list_dropdown a {
  background-color: transparent;
  color: var(--primary-color);
  width: 100%;
  border: none;
  border-radius: 0;
}

/* ================
 COMMON TABLE CSS 
 =================== */
.common_table .table thead tr th,
.purchase_data_table .table thead tr th {
  background: var(--Button-soft-color, #ccddeb);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-dark);
  height: 42px;
}

.common_table .table tr {
  border-top: 1px solid var(--Neutral-Separator, #e9eaeb);
  border-bottom: 1px solid var(--Neutral-Separator, #e9eaeb);
}

.common_table .table tbody tr:nth-child(even) {
  background-color: var(--white-F7);
}

.common_table .table tbody tr td,
.common_table .table tbody tr th {
  color: var(--text-dark2, #141414);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  height: 52px;
  background-color: transparent;
  vertical-align: middle;
  white-space: nowrap;
}

.row_per_page span {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 400;
}

.row_per_page select {
  border: 1px solid var(--Neutral-Separator, #ebebeb);
  border-radius: 5px;
  padding: 2px;
  outline: none;
}

.pagination_number {
  height: 38px;
  width: 38px;
  border: 1px solid var(--Neutral-Separator, #ebebeb);
  background-color: transparent;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.pagination_number.active {
  background-color: var(--primary-color);
  color: var(--white);
}

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

.rest_nunm_list {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 400;
}

.rest_nunm_list span {
  font-weight: 600;
}

.table_actions a:first-child:hover svg path {
  stroke: var(--primary-color);
}

.table_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table_actions a:nth-child(3):hover svg path {
  stroke: var(--red);
}

.table_actions a:nth-child(2):hover svg path {
  stroke: var(--primary-color);
}

/* =================
 COMMON TABLE CSS ENDS
 =================== */

/* ========== ADD PROJECT PAGE CSS STARTS =========== */
.form_input input,
.form-select {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--whiteEB, #ebebeb);
  padding: 6px 16px;
  height: 38px;
  outline-color: var(--login-border) !important;
  box-shadow: none;
  background: var(--whiteFA);
}

.form-select {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjgwMCIgdmlld0JveD0iMCAwIDQ4IDQ4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0wIDBoNDh2NDhIMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMjQgMjkuMTcyIDkuNDE0IDE0LjU4NmwtMi44MjggMi44MjhMMjQgMzQuODI4bDE3LjQxNC0xNy40MTQtMi44MjgtMi44Mjh6Ii8+PC9zdmc+');
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: calc(100% - 8px) center;
}

.form-select:focus {
  box-shadow: none;
  outline: 1px solid var(--login-border) !important;
  border-color: var(--login-border);
}

.form_input input::placeholder {
  color: var(--text-85);
}

.form_input textarea {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--whiteEB, #ebebeb);
  padding: 8px 16px;
  outline-color: var(--login-border) !important;
  box-shadow: none;
  background: var(--whiteFA);
}

.form_input label span {
  margin-left: 5px;
  color: var(--red);
}

.form_input .flatpickr-time {
  max-height: 60px;
}

/* Previous button */
.ui-datepicker .ui-datepicker-prev span {
  background: url("../images/icons/arrow-left.svg") no-repeat center center !important;
  width: 16px;
  height: 16px;
  display: inline-block;
  border: none;
}

/* Next button */
.ui-datepicker .ui-datepicker-next span {
  background: url("../images/icons/arrow-left.svg") no-repeat center center !important;
  width: 16px;
  height: 16px;
  display: inline-block;
  border: none;
  transform: rotate(180deg);
}

.form_input .calender {
  position: absolute;
  top: 42px;
  right: 10px;
  cursor: pointer;
}

.ck-editor__editable {
  min-height: 160px;
}

.file-upload {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--whiteEB, #ebebeb);
  padding: 8px 16px;
  height: 38px;
  outline-color: var(--login-border) !important;
  box-shadow: none;
  background: var(--whiteFA);
  cursor: pointer;
}

.file-upload p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload span {
  font-size: 14px;
  color: var(--text-5C);
  font-weight: 500;
}

.file-upload.dragover {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.preview .file-item {
  border-radius: 6px;
  background: #fafafa;
  font-size: 14px;
  height: 100%;
  width: 100%;
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background-color: var(--red);
  color: var(--white);
  height: 20px;
  border-radius: 5px;
  width: 20px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.up_label {
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.up_label span {
  color: var(--red);
}

.form_discard_save .discard {
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 500;
  border: 1px solid var(--Menu-Separator, #c2c2c2);
  background: #f5f5f5;
  font-size: 14px;
}

.form_discard_save .discard:hover {
  background-color: var(--hold-color);
}

.form_discard_save .skip_btn {
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 500;
  background: #f5dfdf;
  color: #d30e0e;
  font-size: 14px;
  border: 1px solid #f5dfdf;
}

.form_discard_save .skip_btn:hover {
  background: #eac9c9;
}

.form_discard_save .submit {
  border-radius: 6px;
  background: var(--neutral-primay, #005399);
  border: 1px solid var(--neutral-primay, #005399);
  color: var(--white);
  padding: 8px 36px;
  font-weight: 500;
  font-size: 14px;
}

.form_discard_save .submit:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.slect-status {
  position: relative;
}

.slect-status svg {
  position: absolute;
  top: 42px;
  right: 16px;
}

/* ========== ADD PROJECT PAGE CSS ENDS =========== */

/* ############# PROJECT DETAILS PAGE CSS STARTS ########### */
.left_line_heading .inner_heading {
  position: relative;
  padding-left: 16px;
}

.left_line_heading .inner_heading::before {
  content: "";
  width: 6px;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 10px;
  position: absolute;
  background: var(--Button-secondary, #d16f15);
}

.left_line_heading .inner_heading h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
}

.left_line_heading .inner_heading p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: clamp(16px, 1.1vw, 18px);
}

.left_line_heading .project_tag .less_p {
  padding: 6px 12px;
  font-weight: 700;
  border-radius: 12px;
  background: var(--light-primary-shade, rgba(187, 218, 232, 0.5));
  color: #4fc3f7;
  font-size: 14px;
  width: max-content;
}

.left_line_heading .project_tag .more_p {
  padding: 6px 12px;
  font-weight: 700;
  border-radius: 12px;
  background: var(--light-red-shade, rgba(219, 172, 171, 0.5));
  color: #ef5350;
  width: max-content;
  font-size: 14px;
}

.project_deail_post_time .dead_line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-85);
  font-weight: 500;
  font-size: 14px;
}

.project_deail_post_time .start_Date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-85);
  font-size: 14px;
  font-weight: 500;
}

.commm_grey_bg meter {
  width: 100%;
  height: 12px;
}

.project__Details .admin_list_heading .left_heading h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pb36 {
  padding-bottom: 36px;
}

/* WebKit browsers (Chrome, Safari, Edge) */
.commm_grey_bg meter::-webkit-meter-bar {
  background: lightgray;
  border-radius: 5px;
  border: none;
}

.commm_grey_bg meter::-webkit-meter-optimum-value {
  background: var(--dark-theme);
}

/* Firefox */
.commm_grey_bg meter::-moz-meter-bar {
  background: var(--dark-theme);
}

.project_details_showcase .commm_grey_bg {
  border-radius: 20px;
  padding: 24px;
  height: 100%;
}

.e5bg {
  background: #e3f5ff;
}

.e5bg2 {
  background: #e5ecf6;
}

.project_details_showcase .commm_grey_bg h3 {
  color: var(--text-85);
  font-size: 20px;
  font-weight: 500;
}

.project_details_showcase .commm_grey_bg h4 {
  color: var(--text-dark);
  font-size: clamp(22px, 1.5vw, 24px);
  font-weight: 700;
}

.commm_grey_bg.fist_bg h4 {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.project_details_showcase .commm_grey_bg span {
  color: var(--text-85);
  font-size: 16px;
}

.expense_heading h3 {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  line-height: 28px;
  color: var(--text-dark2);
}

.p-detail h3,
.att_heading h3 {
  font-size: 22px !important;
  font-weight: 700;
  color: var(--text-dark2);
  line-height: 28px;
  margin-bottom: 10px;
}

.project_expense_container_new p,
.project_expense_container p {
  color: var(--text-5C);
  font-size: clamp(16px, 1vw, 18px);
  margin-bottom: 20px;
  font-weight: 500;
  font-family: var(--lato);
}

.p-detail p {
  color: var(--text-dark2);
  font-size: clamp(16px, 1.2vw, 18px);
}

.p-detail ul li p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 18px);
  margin: 0;
}

.project_expense_container {
  padding: clamp(16px, 2vw, 24px);
  border-radius: 29px;
  border: 1px solid var(--Button-soft-color, #ccddeb);
}

.project_expense_container_new {
  border-radius: 29px;
  border: 1px solid var(--Button-soft-color, #ccddeb);
  overflow: hidden;
}

.project_expense_container_new .inner_content {
  padding: clamp(16px, 2vw, 24px);
  padding-top: 5px;
}

.project_expense_container_new > h3 {
  padding: 16px;
  margin: 0;
  background-color: var(--Button-soft-color);
}

.expense_table .table thead tr th,
.expense_table .table tbody tr td,
.expense_table .table tbody tr th {
  padding: 12px 16px;
}

.project_expense_container_new ul,
.project_expense_container ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project_expense_container_new ul li,
.project_expense_container ul li {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.attach_file_info .outer_bg1 {
  border-radius: 12px;
  border: 1px solid var(--login-border, #e5e5e5);
  background: #f5f5f5;
  padding: 12px 16px;
}

.attach_file_info .outer_bg1 .file_info h6 {
  font-weight: 600;
  margin: 0;
  font-size: 14px;
}

.attach_file_info .outer_bg1 .file_info p {
  margin: 0;
  color: var(--text-85);
  font-size: 12px;
}

.attach_file_info .outer_bg1 .file_info .dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background-color: var(--text-85);
}

.attach_file_info > h4 {
  font-size: 14px;
  color: var(--text-dark2);
  font-family: var(--lato);
  font-weight: 500;
  margin: 0;
  margin-bottom: 5px;
}

.mt26 {
  margin-top: 20px;
}

.attach_file_info > h4 span {
  color: var(--red);
}

.attach_file_info .file_download a:hover svg path {
  stroke: var(--primary-color);
}

.purchase_request_container {
  padding: clamp(20px, 3vw, 34px) clamp(20px, 3vw, 44px);
  border: 1px solid var(--Button-soft-color, #ccddeb);
  border-radius: 29px;
  margin-top: clamp(44px, 5vw, 64px);
}

.purchase_request_container .purchase_heading h4 {
  color: var(--text-dark2, #141414);
  font-size: 26px;
  font-weight: 700;
  line-height: 28px;
  margin: 0;
  margin-bottom: 12px;
}

.purchase_request_container .purchase_heading p {
  color: var(--text-5C, #5c5c5c);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  margin: 0;
}

.purchase_data_table,
.vehicle_maintainance_Table {
  margin-top: 18px;
}

/* ############# PROJECT DETAILS PAGE CSS ENDS ########### */

/* ++++++++++++++++ LABOUR DETAILS PAGE CSS STATS +++++++++++++ */
.outer_border {
  border-radius: 29px;
  border: 1px solid var(--Button-soft-color, #ccddeb);
}

.labour_personal_Details_container,
.lb_monthly_update {
  padding: clamp(20px, 2vw, 34px);
  height: 100%;
}

.lb_monthly_update > p {
  font-size: clamp(16px, 1.2vw, 18px);
}

.labour_personal_Details_container .labour_personal_Detail {
  margin-top: 24px;
}

.labour_personal_Details_container .labour_personal_Detail ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.labour_personal_Details_container .labour_personal_Detail ul li,
.lb_monthly_update ul li {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.labour_personal_Details_container .labour_personal_Detail ul li p,
.lb_monthly_update ul li p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
}

.labour_personal_Details_container .labour_personal_Detail ul li p {
  font-size: clamp(16px, 1.2vw, 18px);
}

.lb_monthly_update ul li p {
  text-align: end;
}

.lb_monthly_update h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
}

.lb_monthly_update ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb_monthly_update ul li a {
  color: var(--primary-color);
}

.lb_monthly_update button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  border: none;
  background-color: transparent;
  text-decoration: underline;
  color: var(--primary-color);
  margin-left: auto;
  margin-top: 24px;
}

.lb_monthly_update button:hover {
  color: var(--Button-secondary);
}

.monthly_detail_popup_container .admin_right_content .search input,
.monthly_detail_popup_container .admin_right_content .filter {
  background-color: var(--whiteFA);
}

.monthly_detail_popup_container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--common-pupbg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.monthly_detail_popup_container .outer_bg {
  max-width: 1200px;
  width: 95%;
  max-height: 90%;
  padding: 6px;
  background-color: var(--white);
  border-radius: 12px;
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.labour-details .left_line_heading .inner_heading h3 {
  font-weight: 700;
}

.monthly_update_details {
  background: var(--white);
  padding: 20px;
  width: 100%;
  height: 100%;
  overflow: auto;
  clip-path: inset(0 round 12px);
  border-radius: 12px;
  border: 1px solid var(--Neutral-Separator, #ebebeb);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.monthly_update_details .admin_right_content {
  width: 100%;
}

.monthly_detail_popup_container .admin_list_heading {
  padding-top: 12px;
  padding-bottom: 24px;
}

.labour_monlthly_attendance_container {
  padding: clamp(16px, 2vw, 24px);
  border-radius: 15px;
  border: 1px solid var(--Menu-Separator);
  background: var(--white);
  width: 100%;
  margin: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.labour_monlthly_attendance_container .heading h3 {
  color: var(--text-dark);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
}

.labour_monlthly_attendance_container .heading h3 span {
  color: var(--text-5C);
}

.labour_monlthly_attendance_container .week_names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
}

.labour_monlthly_attendance_container .month_DaysContainer {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(7, 1fr);
}

.labour_monlthly_attendance_container .month_DaysContainer .month_Date {
  display: flex;
  width: 160px;
  height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
  align-items: center;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--Menu-Separator);
  cursor: pointer;
  overflow: hidden;
}

.labour_monlthly_attendance_container .month_DaysContainer .month_Date:hover .plus_icon {
  right: 10px;
  transition: all 0.5s ease-in-out;
}

.labour_monlthly_attendance_container .month_DaysContainer .month_Date .plus_icon {
  position: absolute;
  top: 10px;
  transition: all 0.3s ease-in-out;
  right: -40px;
  font-size: 20px;
}

.labour_monlthly_attendance_container .month_DaysContainer .month_Date h4 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.labour_monlthly_attendance_container .month_DaysContainer .month_Date h6 {
  font-size: 14px;
  font-weight: 500;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  left: 10px;
  margin: 0;
}

.labour_monlthly_attendance_container .month_DaysContainer .month_Date p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  right: 10px;
  left: 10px;
  font-size: 14px;
  margin: 0;
}

.labour_monlthly_attendance_container .month_DaysContainer .month_Date small {
  position: absolute;
  top: 10px;
  text-align: center;
  right: 10px;
  left: 10px;
  font-size: 14px;
  margin: 0;
}

.calendar-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  align-items: flex-end;
}

.calendar-footer .attnotic {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.crm_edit_call_popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--common-pupbg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.inner_salary_heading {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.inner_salary_heading h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark2);
}

.inner_salary_heading .add_earning {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--neutral-primay);
  font-weight: 500;
  cursor: pointer;
}

/* Show state */
.change_ledger_group_popup.show,
.crm_edit_call_popup.show,
.add_account_group_popup.show {
  visibility: visible;
  opacity: 1;
}

.add_account_group_popup.show .add_account_group_popup_content,
.change_ledger_group_popup.show .change_ledger_group_popup_content,
.crm_edit_call_popup.show .crm_edit_call_popup_content {
  transform: scale(1);
}

.add_account_group_popup_content {
  width: 100%;
}

.crm_edit_call_popup_content,
.change_ledger_group_popup_content {
  width: 620px;
}

.crm_edit_call_popup,
.change_ledger_group_popup,
.add_account_group_popup {
  background: rgba(0, 0, 0, 0.6);
}

.height50 {
  height: 50px;
  display: flex;
  align-items: center;
}

.track_btns_container a {
  background-color: transparent;
  color: var(--primary-color);
}

.track_btns_container a:hover {
  background-color: var(--active-bg);
}

.track_list_container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.track_list_container > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: #e5ecf6;
  width: 200px;
  min-width: 150px;
}

.track_list_container h4 {
  color: var(--black-100, #1c1c1c);
  font-family: var(--lato);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  margin-bottom: 18px;
}

.track_list_container h5 {
  color: var(--black-100, #1c1c1c);
  margin: 0;
  font-family: var(--inter);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
}

.primary_off_bg {
  background: #e3f5ff !important;
}

.labour_details_calender {
  max-width: 1600px;
  width: 95%;
  background-color: var(--white);
  margin: auto;
}

/* ============ USER MANAGEMENT SECTION STARTS =========== */
.user_list .right_fil_div .search input,
.user_list .right_fil_div .filter {
  background-color: var(--whiteFA);
}

.registration_popup .outer_bg {
  max-width: 900px;
  overflow: auto;
  clip-path: inset(0 round 12px);
  scrollbar-width: thin;
  scrollbar-color: #999 #f1f1f1;
}

/* ============ USER MANAGEMENT SECTION ENDS =========== */

/* ############## ACCOUNTING PAGE CSS STARTS ############### */
.hover {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.hover:hover {
  color: var(--primary-color);
}

.w_max {
  width: 100px;
}

.w_max .form_input input {
  width: 100%;
}

.accounting_details_container {
  border-top: 1px solid var(--Menu-Separator, #c2c2c2);
  padding: 24px 36px;
}

.acc_common_style {
  border-radius: 17px;
  border: 1px solid rgba(194, 194, 194, 0.3);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
  width: 344px;
  overflow: hidden;
  height: max-content;
}

.acc_common_heading {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark2, #141414);
  background: var(--white-F7);
  border-bottom: 1px solid rgba(194, 194, 194, 0.3);
}

.acc_common_details {
  padding: 10px 21px 21px 21px;
}

.acc_common_details ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-primay);
}

.acc_common_details ul li a:hover {
  color: var(--dark-theme);
}

.accounting_container .admin_top_header {
  border-bottom: 1px solid var(--Neutral-Separator, #ebebeb);
}

.acc_common_details ul {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.account_list_heading .left_heading h4 {
  font-size: clamp(22px, 2vw, 24px);
  font-weight: 800;
  color: var(--text-dark2, #141414);
}

.account_list_heading .left_heading p {
  font-size: 14px;
  color: var(--text-dark2, #141414);
  font-weight: 400;
  margin: 0;
}

.account_buttons button,
.print,
.account_buttons .add_purchase,
.ledger_common_btn {
  color: var(--primary-color);
  border-radius: 50px;
  padding: 6px 16px;
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  font-size: 14px;
  font-weight: 400;
}

.account_buttons button.print,
.print {
  background-color: var(--primary-color);
  color: var(--white);
}

.account_buttons button:hover,
.account_buttons .add_purchase:hover,
.ledger_common_btn:hover {
  background-color: var(--Button-soft-color);
}

.account_buttons button.print:hover,
.print:hover {
  background-color: var(--button-focused);
}
.payment_vouchar_table table {
  width: 100%;
  border-collapse: collapse;
}
.payment_vouchar_table thead th {
  background-color: var(--primary-color);
  padding: 8px 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Print Styles */
@media print {
  body {
    margin: 0;
  }

  .common_print {
    border: none;
    width: 100%;
  }

  .account_buttons button {
    display: none;
  }
}

.payment_vouchar_table table td {
  width: 80%;
  padding: 16px;
}

.payment_vouchar_table table tbody tr:nth-child(2) {
  border-top: 1px solid #848484;
  border-bottom: 1px solid #848484;
  background-color: var(--whiteFA);
}

.payment_vouchar_table table tbody tr:last-child td:last-child {
  border-top: 1px solid #848484;
  border-bottom: 1px solid #848484;
  background-color: var(--whiteFA);
}

.payment_vouchar_table table tbody tr:nth-child(2) th {
  padding: 12px 16px;
}

.payment_vouchar_table table .account_num_input input {
  border-radius: 4px;
  border: 0.5px solid var(--Icon-color, #848484);
  height: 18px;
  margin-left: 5px;
}

.common_print {
  margin-bottom: 44px;
}

.acc_group_popup .outer_bg {
  overflow: auto;
  width: 70%;
  clip-path: inset(0 round 12px);
  border-radius: 12px;
  border: 1px solid var(--Neutral-Separator, #ebebeb);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  scrollbar-width: thin;
  scrollbar-color: #999 #f1f1f1;
}

.delete:hover svg path {
  stroke: var(--red) !important;
}

.change_ledger_btn {
  background-color: transparent;
  color: var(--text-dark2);
  border: none;
}

.openLedgerPopup {
  cursor: pointer;
}

/* ############## ACCOUNTING PAGE CSS ENDS ############### */

/* profile image component css starts  */
.main_profile {
  font-family: var(--inter);
  cursor: pointer;
}

.main_profile_container {
  position: relative;
}

.profile_popup_content {
  background: var(--white);
  padding: 16px 8px;
  padding-bottom: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 16px;
  position: absolute;
  z-index: 30;
  font-family: var(--inter);
  right: 0;
  top: 150%;
}

.notifcationpopup_content {
  background: var(--white);
  padding: 16px 8px;
  padding-bottom: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 16px;
  position: absolute;
  z-index: 30;
  font-family: var(--inter);
  right: 0;
  top: 150%;
}

.profile_popup_content .profile__detail,
.notifcationpopup_content .profile__detail {
  display: flex;
  gap: 12px;
  padding: 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--Neutral-Separator);
}

.profile_popup_content .profile__detail > img,
.notifcationpopup_content .profile__detail > img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile_popup_content .profile__detail > div,
.notifcationpopup_content .profile__detail > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile_popup_content .profile__detail > div a,
.notifcationpopup_content .profile__detail > div a {
  color: var(--text-5C, #5c5c5c);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}

.profile_popup_content .profile__detail > div h5,
.notifcationpopup_content .profile__detail > div h5 {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: var(--text-dark2);
  margin: 0 !important;
  padding: 0;
}

.profile_popup_content .profile__detail > div p,
.notifcationpopup_content .profile__detail > div p {
  color: var(--neutral-primay);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  margin: 0;
  padding-left: 10px;
  position: relative;
  flex-shrink: 0;
}

.profile_popup_content .profile__detail > div p::before,
.notifcationpopup_content .profile__detail > div p::before {
  height: 6px;
  width: 6px;
  border-radius: 13px;
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  background-color: var(--neutral-primay);
  flex-shrink: 0;
}

.profile_popup_content > a,
.notifcationpopup_content > a {
  padding: 16px 8px;
  border-bottom: 1px solid var(--Neutral-Separator);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--inter);
  color: var(--text-dark2);
}

.profile_popup_content > a:hover {
  background: var(--active-bg);
}

.profile_popup_content > a:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.polygon_shape {
  height: 33px;
  width: 33px;
  object-fit: contain;
  position: absolute;
  top: -15px;
  right: 10px;
}

.main_profile > img {
  height: 30px;
  width: 30px;
  object-fit: cover;
  border-radius: 50%;
}

.main_profile .profile_Details h6 {
  font-size: 13px;
  margin-bottom: 0;
  font-weight: 600;
  color: #333;
  line-height: 13px;
}

.main_profile .profile_Details p {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dark2);
  margin-bottom: 0;
}

/* profile image component css ends */

/* ----- Notification popup css starts ------  */
.notification_heading h4,
.notification_heading .noti_num {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  font-family: var(--inter);
  color: var(--text-5C, #5c5c5c);
}

.notificatioin_detail .profile img {
  height: 55px;
  width: 55px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.notifcationpopup_content {
  width: 300px;
}

.not_desc p {
  color: var(--black-100);
  font-size: 14px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification_list_container .notificatioin_detail {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--Neutral-Separator);
  margin-bottom: 16px;
}

.notification_list_container .notificatioin_detail:last-child {
  border-bottom: 0;
  padding: 0;
}

.not_desc .time,
.not_desc .title {
  font-weight: 500;
  color: var(--text-5C);
  font-size: 15px;
}

/* ----- Notification popup css ends------  */

/* ++++++++ filter popup css starts ++++++ */
.filter_popup_content {
  background: var(--white);
  border-radius: 12px;
  width: 370px;
  position: fixed;
  z-index: 30;
  font-family: var(--inter);
  right: clamp(16px, 2.5vw, 32px);
  top: 140px;
  box-shadow: 0 4px 60px 0 rgba(20, 21, 26, 0.14);
  overflow: hidden;
  cursor: default;
}

.filter_popup_content .filter_heading {
  padding: 14px 16px;
  background-color: var(--whiteFA);
  border-bottom: 1px solid var(--whiteEB);
}

.filter_popup_content .filter_heading h4 {
  color: var(--text-dark2, #141414);
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  margin: 0;
  width: max-content;
}

.filter_popup_content .filter_heading svg {
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.filter_popup_content .filter_heading svg:hover {
  transform: rotate(90deg);
}

.filter_popup_content .filter_form {
  padding: 24px 16px 12px 16px;
}

.filter_save_btns {
  border-top: 1px solid var(--whiteEB);
  padding-top: 20px;
}

.filter_form .g-20 {
  gap: 20px;
}

.filter_save_btns button {
  padding: 8px 16px !important;
}

.filter_form .st-popup-form .wrapper .inside {
  position: relative;
}

.filter_form .st-popup-form .wrapper .inside svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
}

.filter_form .clear p,
.selct_date_filter_label p {
  color: var(--neutral-primay, #005399);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0px;
}

.filter_form .clear label {
  color: var(--text-dark2, #141414);
  font-size: 14px;
  font-weight: 500;
}

.filter_form .clear label span {
  color: var(--red);
}

.selct_date_filter_label label {
  color: var(--text-85, #858585);
  font-size: 14px;
  font-weight: 500;
}

/* ++++++++ filter popup css ends ++++++ */

/* ============================
DASHBORD PAGE CSS STATS 
============================ */
.dash_heading h3 {
  font-size: clamp(22px, 2vw, 24px);
  font-weight: 800;
  color: var(--text-dark2);
  margin: 0;
}

.dash_heading p {
  color: var(--text-dark2);
  font-size: 14px;
  font-family: var(--inter);
  font-weight: 400;
  padding-top: 4px;
}

/* top chart css  */
.top_chart_container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.top_chart_container .card {
  padding: 24px;
  border-radius: 6px;
  transition: transform 0.2s ease;
  border: none;
}

.top_chart_container .card-title {
  color: var(--black-100, #1c1c1c);
  font-size: 16px;
  font-family: var(--inter);
  font-weight: 600;
  line-height: 18px;
  margin: 0;
}

.top_chart_container .card .card-value {
  margin: 0;
}

.top_chart_container .legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #828690;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  margin-top: 16px;
}

.top_chart_container .legend div {
  display: flex;
  align-items: center;
}

.top_chart_container .legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 3px;
}

#pieChart {
  width: 95px !important;
  height: 95px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.piechard_relative {
  height: 95px;
  width: 95px;
}

.canvus_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
}

.p-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--Icon-color);
}

.canvus_content h6 {
  font-size: 18px;
  font-weight: 400;
  color: #828690;
  margin: 0;
}

.canvus_content p {
  color: #828690;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.top_chart_container .first_card .card_div span {
  color: var(--black-100, #1c1c1c);
  font-family: var(--inter);
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
}

.top_chart_container p {
  margin: 0;
}

.donut_chart .card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--Icon-color);
}

/* first progress card  */
.first_card {
  background: #e3f5ff !important;
}

.first_card .progress-bar {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 12px;
  background: #e6eaee;
}

.first_card .progress {
  height: 100%;
  border-radius: 4px;
  background: #888;
  transition: width 0.5s ease;
}

.donut_chart {
  background: #e5ecf6;
  border-radius: 16px;
  padding: 12px 24px;
}

.payment_card {
  background-color: #e3f5ff;
}

.payment_card .payment_small_title .card-subtitle {
  color: #828690;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 25.2px;
  margin: 0;
}

.payment_card .payment_small_title > div {
  color: #828690;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 25.2px;
}

.payment_card .progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 12px;
  background: #e6eaee;
}

.payment_card .progress {
  height: 100%;
  border-radius: 4px;
  background: var(--blue-donutchart);
  transition: width 0.5s ease;
}

.payment_card .calender_icon {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 10.156px 10px 9.844px 10px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: rgba(13, 153, 255, 0.1);
}

.second_payment .calender_icon {
  display: flex;
  width: 40px;
  height: 38px;
  padding: 9.156px 14px 8.844px 14px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: rgba(54, 210, 33, 0.05);
}

.top_chart_container .second_payment {
  background: #e5ecf6;
}

.second_payment h2 {
  color: #1c1c1c;
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
  line-height: 12px;
  margin-top: 9px;
}

.second_chart_container .apexcharts-legend-marker {
  border-radius: 50% !important;
  height: 10px !important;
  width: 10px !important;
  overflow: hidden !important;
  margin-right: 16px !important;
  margin-left: 5px !important;
}

.second_chart_container .apexcharts-legend-text {
  font-size: 14px !important;
  font-family: var(--inter);
}

.second_chart_container,
.third_chart_Table_container,
.fourth_chart_table_container {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.montly_cash_bar_chart {
  background: var(--light-grey-bg, #f7f9fb);
  padding: 24px 5px 16px 16px;
  border-radius: 16px;
}

.montly_cash_bar_chart .buttons button {
  border: none;
  background-color: transparent;
}

.off_light_chart_bg {
  background: #e5ecf6 !important;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-right: 16px;
}

.filter-buttons button {
  display: flex;
  height: 25px;
  padding: 5px 15px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: #444;
  border: none;
  color: var(--white);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 19.5px;
}

.mt33 {
  margin-top: 33px;
}

.mt46 {
  margin-top: 46px;
}

.filter-buttons button.active {
  background: #0d99ff;
}

.filter-buttons button:hover {
  opacity: 0.8;
}

.montly_cash_bar_chart h3 {
  color: var(--text-dark2, #141414);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.bank_width_draw_container {
  padding: clamp(16px, 2vw, 24px);
  background: var(--light-grey-bg, #f7f9fb);
  border-radius: 16px;
}

.bank_width_draw_container h3 {
  color: var(--black-100, #1c1c1c);
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 20px;
}

.bank_width_draw_container .bank_progress_bar_container {
  height: 90%;
}

.bank_width_draw_container .bank_progress_bar_container .progress_container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bank_width_draw_container .bank_progress_bar_container .progress_container p {
  font-family: var(--inter);
  color: var(--black-100, #1c1c1c);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin: 0;
  white-space: nowrap;
}

.progress_container {
  width: 100%;
}

.custom_meter {
  width: 100%;
  height: 5px;
  background: #e6eaee;
  border-radius: 16px;
  overflow: hidden;
  margin: 8px 0;
}

.custom_meter .fill {
  height: 100%;
  width: 0%;
  background: var(--black-100);
  border-radius: 16px;
  transition: width 0.3s ease;
}

.bank_width_draw_container .menu-icon {
  cursor: pointer;
}

.c-table table th {
  background: #F5F7FA;
  color: #6B7686;
  font-family: var(--lato);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  line-height: normal;
  border: 0;
  border-bottom: 1px solid #D9DDE3;
  padding: 12px 16px;
  height: 40px;
  white-space: nowrap;
}

.c-table table {
  background-color: transparent;
  border: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
  border: 0;
  margin-bottom: 0;
}

.c-table table tr td {
  border: 0;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 400;
  font-family: var(--lato);
  color: #2E2E2E;
  background-color: transparent;
  vertical-align: middle;
}

.c-table table tbody tr {
  border-bottom: 1px solid #EEF1F6;
}

.c-table table tbody tr:hover td {
  background: #F7F9FB;
}

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

.c-table table tbody tr:last-child td {
  padding-bottom: 0;
}

.bg-light-grey {
  border-radius: 16px;
  background: #f7f9fb;
  padding: 26px;
}

.monthly_purchase_heading h3 {
  font-size: 20px;
  font-weight: 500;
  font-family: var(--inter);
  color: var(--black-100);
  margin: 0;
}

.c-table table tfoot tr th {
  margin-top: 16px;
  background: #F5F7FA;
  height: 48px;
  color: #134261;
  font-size: 13.5px;
  font-weight: 800;
  border-top: 1px solid #D9DDE3;
}

.c-table table tfoot tr th:first-child {
  border-radius: 0 0 0 8px;
}

.c-table table tfoot tr th:last-child {
  border-radius: 0 0 8px 0;
}

.fourth_chart_table_container .c-table tbody tr:last-child td {
  padding-bottom: 16px;
}

/* ------------- JQUERY UI CUSTOM CSS ADDED  ------------- */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  color: #333;
  font-weight: bold;
  width: max-content;
}

.ui-datepicker select.ui-datepicker-month::-ms-expand,
.ui-datepicker select.ui-datepicker-year::-ms-expand {
  display: none;
}

/* ------------- JQUERY UI CUSTOM CSS ADDED  ------------- */

.monthly_purchase_heading #dateRangePicker {
  border: 1px solid var(--Menu-Separator);
  border-radius: 4px;
  padding: 8px 12px;
  padding-right: 26px;
  height: 26px;
  font-size: 10px;
  font-weight: 500;
  color: #000;
  font-family: var(--inter);
  background-color: var(--white);
  width: auto;
  min-width: 205px;
}

.monthly_purchase_heading #dateRangePicker::placeholder,
.monthly_purchase_heading #monthPicker::placeholder {
  font-size: 10px;
  font-weight: 500;
  color: #000;
}

.monthly_purchase_heading #monthPicker {
  border: 1px solid var(--Menu-Separator);
  border-radius: 4px;
  padding: 2px 12px;
  height: 26px;
  font-size: 10px;
  font-weight: 500;
  color: #000;
  font-family: var(--inter);
  background-color: var(--white);
  max-width: 105px;
  padding-right: 26px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.monthly_purchase_heading .select_box svg {
  position: absolute;
  top: 10px;
  right: 16px;
}

.montly_purchase_tag h4 {
  color: #333;
  font-family: var(--inter);
  font-size: 12.8px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
}

.status_donut_Chart {
  background-color: var(--light-grey-bg);
  border-radius: 16px;
  padding: 24px;
}

.status_donut_Chart h3 {
  color: var(--black-100, #1c1c1c);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 20px;
  font-family: var(--inter);
}

.char_container .chart_data p {
  color: var(--black-100, #1c1c1c);
  font-weight: 600;
  line-height: 18px;
  margin: 0;
  position: relative;
  padding-left: 16px;
}

.char_container .chart_data p:first-child::before {
  content: "";
  position: absolute;
  background-color: var(--lightgreen-donutchart);
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
}

.char_container .chart_data p:nth-child(2)::before {
  content: "";
  position: absolute;
  background-color: var(--bluedark-donutchart);
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
}

.char_container .chart_data p:last-child::before {
  content: "";
  position: absolute;
  background-color: var(--black-donutchart);
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
}

.status_donut_Chart .canvus-container {
  position: relative;
}

.status_donut_Chart .canvus-container h3 {
  display: flex;
  width: 80.299px;
  height: 55.827px;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  color: #141414;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--lato);
}

/* 
============================
DASHBORD PAGE CSS ENDS 
============================ */

/* ============================================
   LEAD DASHBOARD STYLES
   ============================================ */

/* ===== Top Bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border, #D9DDE3);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
}

.divider-v {
  width: 1px;
  height: 26px;
  background: var(--border, #D9DDE3);
  flex-shrink: 0;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted, #6B7686);
  white-space: nowrap;
}

.crumb b {
  color: var(--navy, #134261);
  font-weight: 600;
}

.crumb svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-muted, #6B7686);
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--success-soft, rgba(22, 163, 74, 0.10));
  color: var(--success, #16A34A);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success, #16A34A);
  animation: pulse 1.8s infinite;
}

.icon-btn-top {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border, #D9DDE3);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #6B7686);
  position: relative;
  transition: 0.15s;
}

.icon-btn-top:hover {
  background: var(--gray-bg, #F5F7FA);
  color: var(--navy, #134261);
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger, #DC2626);
  border: 1.5px solid var(--white);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent, #2164A6) 0%, var(--navy, #134261) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.admin-text .a-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy, #134261);
}

.admin-text .a-mail {
  font-size: 11.5px;
  color: var(--text-muted, #6B7686);
}

.page-head h1 {
  margin: 0 0 5px;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy, #134261);
  letter-spacing: -0.3px;
}

.page-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted, #6B7686);
}

.btn-primary {
  background: var(--navy, #134261);
  border-color: var(--navy, #134261);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light, #2164A6);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--navy, #134261);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
  margin-left: 2px;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border, #D9DDE3);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
  transition: transform 0.18s, box-shadow 0.18s;
}

.kpi {
  padding: 16px 18px;
  border-top: 3px solid var(--border, #D9DDE3);
}

.kpi-active {
  border-top-color: var(--navy, #134261);
}

.kpi-followup {
  border-top-color: var(--warning, #D97706);
}

.kpi-estimation {
  border-top-color: var(--orange, #D97706);
}

.kpi-projects {
  border-top-color: var(--success, #16A34A);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #6B7686);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy, #134261);
  letter-spacing: -0.3px;
  line-height: 1;
}

.kpi-split {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border, #D9DDE3);
  padding-top: 10px;
  margin-top: 4px;
}

.kpi-split-item:first-child {
  padding-right: 12px;
  border-right: 1px solid var(--border, #D9DDE3);
}

.ks-label {
  font-size: 10px;
  color: var(--text-muted, #6B7686);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ks-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy, #134261);
  margin-top: 1px;
}

.chart-tooltip {
  position: absolute;
  background: var(--navy, #134261);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  transform: translate(-50%, -110%);
  white-space: nowrap;
  z-index: 10;
  box-shadow: var(--shadow-lift, 0 10px 24px rgba(19, 66, 97, 0.12));
}

.funnel-step .fs-label {
  width: 108px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy, #134261);
  flex-shrink: 0;
}

.funnel-step .fs-bar-wrap {
  flex: 1;
  background: var(--gray-bg, #F5F7FA);
  border-radius: 7px;
  height: 26px;
  overflow: hidden;
  position: relative;
}

.funnel-step .fs-count {
  width: 34px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy, #134261);
  flex-shrink: 0;
}

.stage-pill.site-visit {
  background: var(--gray-bg, #F5F7FA);
  color: var(--text-muted, #6B7686);
}

.stage-pill.municipal-pass {
  background: var(--purple-soft, rgba(124, 58, 237, 0.12));
  color: var(--purple, #7C3AED);
}

.stage-pill.send-to-project {
  background: var(--success-soft, rgba(22, 163, 74, 0.10));
  color: var(--success, #16A34A);
}

/* ===== Status Menu ===== */
.status-menu {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border, #D9DDE3);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-lift, 0 10px 24px rgba(19, 66, 97, 0.12));
  min-width: 172px;
  padding: 6px;
  z-index: 200;
}

.status-opt {
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #2E2E2E);
  border-radius: 7px;
  cursor: pointer;
  transition: 0.12s;
}

.status-opt:hover {
  background: var(--gray-bg, #F5F7FA);
  color: var(--navy, #134261);
}

.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 560px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 501;
  box-shadow: var(--shadow-lift, 0 10px 24px rgba(19, 66, 97, 0.12));
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border, #D9DDE3);
  flex-shrink: 0;
  background: var(--white);
  z-index: 1;
}

.drawer-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy, #134261);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border, #D9DDE3);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #6B7686);
  cursor: pointer;
  transition: 0.15s;
}

.drawer-close:hover {
  background: var(--gray-bg, #F5F7FA);
  color: var(--navy, #134261);
}

.drawer-body::-webkit-scrollbar-track {
  background: var(--gray-bg, #F5F7FA);
  border-radius: 3px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: var(--border, #D9DDE3);
  border-radius: 3px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, #6B7686);
}

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border, #D9DDE3);
  flex-shrink: 0;
  background: var(--white);
}

.form-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted, #6B7686);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #D9DDE3);
  margin-bottom: 16px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy, #134261);
}

.form-field label .req {
  color: var(--danger, #DC2626);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border, #D9DDE3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text, #2E2E2E);
  background: var(--white);
  transition: 0.15s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent, #2164A6);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(33, 100, 166, 0.12));
}

.form-field input[readonly] {
  background: var(--gray-bg, #F5F7FA);
  color: var(--text-muted, #6B7686);
}

.repeater-item {
  border: 1px solid var(--border, #D9DDE3);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  background: var(--white);
}

.repeater-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border, #D9DDE3);
  background: var(--white);
  color: var(--text-muted, #6B7686);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s;
}

.repeater-remove-btn:hover {
  background: var(--danger-soft, rgba(220, 38, 38, 0.10));
  color: var(--danger, #DC2626);
  border-color: var(--danger, #DC2626);
}

.repeater-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft, rgba(33, 100, 166, 0.12));
  color: var(--accent, #2164A6);
  border: 1px dashed var(--accent-light, #4A8AC9);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  width: fit-content;
}

.repeater-add-btn:hover {
  background: var(--accent, #2164A6);
  color: var(--white);
  border-color: var(--accent, #2164A6);
}

/* ============================================
   DRAWING ITEMS
   ============================================ */
.drawing-item {
  border: 1px solid var(--border, #D9DDE3);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}

.remove-item {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border, #D9DDE3);
  background: var(--white);
  color: var(--text-muted, #6B7686);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s;
}

.remove-item:hover {
  background: var(--danger-soft, rgba(220, 38, 38, 0.10));
  color: var(--danger, #DC2626);
  border-color: var(--danger, #DC2626);
}

/* ============================================
   FILE UPLOAD IN DRAWER
   ============================================ */
.file-upload {
  border: 2px dashed var(--border, #D9DDE3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  background: var(--gray-bg, #F5F7FA);
  display: block;
}

.file-upload:hover {
  border-color: var(--accent, #2164A6);
  background: var(--accent-soft, rgba(33, 100, 166, 0.12));
}

.file-upload .placeholder-data p {
  margin: 0;
  color: var(--text-muted, #6B7686);
  font-weight: 600;
  font-size: 12px;
}

.file-upload .placeholder-data i {
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
  color: var(--accent, #2164A6);
}

.preview-item {
  border: 1px solid var(--border, #D9DDE3);
  border-radius: 8px;
  padding: 4px;
  background: var(--white);
  max-width: 80px;
  text-align: center;
}

.preview-item .file-name {
  font-size: 9px;
  color: var(--text-muted, #6B7686);
  display: block;
  padding: 2px;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  font-size: 14px;
  color: var(--text-muted, #6B7686);
}

/* ============================================
   FORWARD DRAWER
   ============================================ */
#fwdDrawerBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 66, 97, 0.45);
  z-index: 600;
  display: none;
}

#fwdDrawerBackdrop.open {
  display: block;
}

#fwdDrawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 601;
  box-shadow: var(--shadow-lift, 0 10px 24px rgba(19, 66, 97, 0.12));
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}

#fwdDrawer.open {
  right: 0;
}

@media (max-width: 600px) {
  #fwdDrawer {
    width: 100%;
    right: -100%;
  }
}

.fwd-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #D9DDE3);
  flex-shrink: 0;
}

.fwd-drawer-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy, #134261);
  margin: 0;
}

.fwd-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.fwd-drawer-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border, #D9DDE3);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.fwd-section-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted, #6B7686);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #D9DDE3);
}

.fwd-followup-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.fwd-followup-row .form-field {
  flex: 1;
  margin: 0;
}

.fwd-req-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--success, #16A34A);
  background: var(--success-soft, rgba(22, 163, 74, 0.10));
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* Follow-up added list */
.fu-added-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.fu-added-item {
  background: var(--accent-soft, rgba(33, 100, 166, 0.12));
  border: 1px solid rgba(33, 100, 166, 0.2);
  border-radius: var(--radius-sm, 8px);
  padding: 9px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.fu-added-item .fu-icon {
  color: var(--accent, #2164A6);
  flex-shrink: 0;
  margin-top: 1px;
}

.fu-added-item .fu-info {
  flex: 1;
  min-width: 0;
}

.fu-added-item .fu-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy, #134261);
}

.fu-added-item .fu-note {
  font-size: 11.5px;
  color: var(--text-muted, #6B7686);
  margin-top: 2px;
}

/* Forward chip input */
.fwd-chip-input {
  border: 1px solid var(--border, #D9DDE3);
  border-radius: var(--radius-sm, 8px);
  padding: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 42px;
}

.fwd-chip-input .fwd-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft, rgba(33, 100, 166, 0.12));
  color: var(--navy, #134261);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 14px;
}

.fwd-chip-input .fwd-chip button {
  border: none;
  background: rgba(19, 66, 97, 0.12);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: var(--navy, #134261);
  font-size: 9px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fwd-chip-input select {
  border: none;
  flex: 1;
  min-width: 130px;
  font-size: 12.5px;
}

.fwd-chip-input select:focus {
  outline: none;
}

/* ============================================
   LEAD VIEW PAGE
   ============================================ */
#leadViewPage {
  display: none;
}

#leadViewPage .view-panel {
  background: var(--white);
  border: 1px solid var(--border, #D9DDE3);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
  padding: 18px 22px;
  margin-bottom: 14px;
}

#leadViewPage .view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
}

@media (max-width: 900px) {
  #leadViewPage .view-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #leadViewPage .view-grid {
    grid-template-columns: 1fr;
  }
}

#leadViewPage .view-field .vf-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted, #6B7686);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

#leadViewPage .view-field .vf-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #2E2E2E);
}

#leadViewPage .view-timeline {
  position: relative;
  padding-left: 22px;
}

#leadViewPage .view-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border, #D9DDE3);
}

#leadViewPage .view-timeline-entry {
  position: relative;
  padding-bottom: 16px;
}

#leadViewPage .view-timeline-entry::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--navy, #134261);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border, #D9DDE3);
}

#leadViewPage .view-timeline-entry .vte-title {
  font-size: 12.8px;
  font-weight: 700;
  color: var(--navy, #134261);
}

#leadViewPage .view-timeline-entry .vte-meta {
  font-size: 11px;
  color: var(--text-muted, #6B7686);
  margin-top: 1px;
}

#leadViewPage .view-timeline-entry .vte-comment {
  font-size: 12.3px;
  color: var(--text, #2E2E2E);
  margin-top: 5px;
  background: var(--gray-bg, #F5F7FA);
  border-radius: 7px;
  padding: 7px 9px;
}

#leadViewPage .validation-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#leadViewPage .validation-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border, #D9DDE3);
  font-size: 12.5px;
  font-weight: 600;
}

#leadViewPage .validation-item.ok {
  background: var(--success-soft, rgba(22, 163, 74, 0.10));
  border-color: rgba(22, 163, 74, 0.25);
  color: #0E6B2E;
}

#leadViewPage .validation-item.fail {
  background: var(--danger-soft, rgba(220, 38, 38, 0.10));
  border-color: rgba(220, 38, 38, 0.25);
  color: #A11919;
}

/* ============================================
   SIDEBAR OVERRIDES FOR LEAD DASHBOARD
   ============================================ */
.admin_dash_btns .menu-item.lead-active {
  background: var(--active-bg, #f0f5fa);
  font-weight: 700;
  color: var(--primary-color, #005399);
}

.admin_dash_btns .menu-item.lead-active svg path {
  stroke: var(--primary-color, #005399);
}

.admin_dash_btns .menu-item.lead-active svg path[fill] {
  fill: var(--primary-color, #005399);
}

/* ============================================
   KPI CARD HOVER EFFECTS
   ============================================ */
.kpi-card-accent {
  transition: all 0.3s ease;
}

.kpi-card-accent:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift, 0 10px 24px rgba(19, 66, 97, 0.12));
}

/* ============================================
   TABLE ACTION BUTTONS
   ============================================ */
.a-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border, #D9DDE3);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #6B7686);
  transition: 0.15s;
  cursor: pointer;
  position: relative;
}

.a-btn:hover {
  background: var(--gray-bg, #F5F7FA);
  color: var(--navy, #134261);
}

.a-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy, #134261);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
}

/* ============================================
   SIDEBAR CSS - WHITE BACKGROUND MATCHING HEADER
   ============================================ */

/* Sidebar Overlay */
.sidebar_overlay_bg {
    background-color: rgba(19, 66, 97, 0.45);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.sidebar_overlay_bg.active {
    opacity: 1;
    visibility: visible;
}

/* App Sidebar */
.app_side_bar {
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--white, #ffffff);
    height: 100vh;
    height: 100dvh;
    color: var(--text-dark2, #141414);
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9998;
    overflow: hidden;
    border-right: 1px solid var(--border, #D9DDE3);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
}

@media (max-width: 992px) {
    .app_side_bar {
        transform: translateX(-100%);
        z-index: 9999;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }
    
    .app_side_bar.active {
        transform: translateX(0);
    }
}

/* Sidebar Logo */
.side_bar_logo {
    padding: 16px 8px;
    border-bottom: 1px solid var(--border, #D9DDE3);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    background: var(--white, #ffffff);
}

.side_bar_logo img {
    width: 100px;
    height: 60px;
    object-fit: contain;
}

/* Sidebar Close Button (Mobile) */
.sidebar_close {
    font-size: 26px;
    cursor: pointer;
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 11;
    color: var(--text-muted, #6B7686);
    transition: all 0.3s ease;
}

.sidebar_close:hover {
    color: var(--navy, #134261);
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    .sidebar_close {
        display: flex;
    }
}

/* Mobile Sidebar Toggle Button (Header) */
.side_bar_menu_btn {
    font-size: 24px;
    color: var(--navy, #134261);
    cursor: pointer;
    display: none;
    padding: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.side_bar_menu_btn:hover {
    color: var(--accent, #2164A6);
}

@media (max-width: 992px) {
    .side_bar_menu_btn {
        display: flex;
    }
}

/* App Sidebar Content */
.app_side_bar_content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.admin_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin_content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Sidebar Categories */
.admin_dash_cat h6 {
    color: var(--text-muted, #6B7686);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    margin: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--inter, "inter", sans-serif);
}

/* Menu Items */
.admin_dash_btns .menu-item {
    display: flex;
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 8px !important;
    font-size: 13.5px;
    color: var(--text, #2E2E2E);
    text-decoration: none;
    font-family: var(--inter, "inter", sans-serif);
    position: relative;
}

.admin_dash_btns .menu-item:hover {
    background: var(--gray-bg, #F5F7FA);
    color: var(--navy, #134261);
}

.admin_dash_btns .menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.admin_dash_btns .menu-item:hover svg {
    opacity: 1;
}

.admin_dash_btns .menu-item svg path {
    stroke: var(--text-muted, #6B7686);
    transition: all 0.3s ease-in-out;
}

.admin_dash_btns .menu-item:hover svg path {
    stroke: var(--navy, #134261);
}

.admin_dash_btns .menu-item.active {
    background: var(--accent-soft, rgba(33, 100, 166, 0.08));
    font-weight: 600;
    color: var(--navy, #134261);
    border: 1px solid var(--accent-soft, rgba(33, 100, 166, 0.15));
}

.admin_dash_btns .menu-item.active svg path {
    stroke: var(--navy, #134261);
    opacity: 1;
}

.admin_dash_btns .menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--navy, #134261);
    border-radius: 0 3px 3px 0;
}

/* Accordion */
.accordion {
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.accordion-item {
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.accordion-button {
    box-shadow: none;
    border: none;
    background-color: transparent;
    color: var(--text, #2E2E2E);
    border-radius: 8px !important;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--inter, "inter", sans-serif);
    transition: all 0.3s ease;
}

.accordion-button:focus {
    box-shadow: none;
    border-radius: 8px !important;
}

.accordion-button::after {
    content: "\ea4e";
    background-image: none !important;
    font-family: "remixicon";
    font-size: 18px;
    color: var(--text-muted, #6B7686);
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    color: var(--navy, #134261);
}

.accordion-button:not(.collapsed) {
    background: var(--accent-soft, rgba(33, 100, 166, 0.06));
    color: var(--navy, #134261) !important;
    box-shadow: none;
    font-weight: 600;
    border: 1px solid var(--accent-soft, rgba(33, 100, 166, 0.1));
}

.accordion-button:not(.collapsed) svg path {
    stroke: var(--navy, #134261);
}

.accordion-button:hover {
    background: var(--gray-bg, #F5F7FA);
    color: var(--navy, #134261);
}

.accordion-button .menu-item {
    width: 100%;
    padding: 0;
}

.accordion-body {
    padding: 0;
    padding-left: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accordion-body .menu-item {
    color: var(--text, #2E2E2E);
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px !important;
    border-left: 2px solid transparent;
}

.accordion-body .menu-item:hover {
    color: var(--navy, #134261);
    background: var(--gray-bg, #F5F7FA);
    border-left-color: var(--navy, #134261);
}

.accordion-body .menu-item.active {
    background: var(--accent-soft, rgba(33, 100, 166, 0.06));
    color: var(--navy, #134261);
    border-left-color: var(--navy, #134261);
    font-weight: 500;
}

/* Bottom Dropdown Container */
.admin_botom_drop_down_container {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--white, #ffffff);
    border-top: 1px solid var(--border, #D9DDE3);
    z-index: 20;
    flex-shrink: 0;
}

.admin_botom_drop_down_container .common_div {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--navy, #134261);
}

.admin_botom_drop_down_container .common_div svg path {
    fill: var(--navy, #134261);
}

.admin_botom_drop_down_container .common_div:hover {
    background: var(--gray-bg, #F5F7FA);
    color: var(--navy, #134261);
}

.admin_botom_drop_down_container .common_div:hover svg path {
    fill: var(--navy, #134261);
}

.admin_botom_drop_down_container .common_div svg:first-child {
    opacity: 0.7;
}

.admin_botom_drop_down_container .common_div:hover svg:first-child {
    opacity: 1;
}

/* Common Popup */
.admin_botom_drop_down_container .common_popup_bg {
    padding: 12px 8px;
    border-radius: 12px;
    background: var(--white, #ffffff);
    width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border, #D9DDE3);
}

.user_dropdown_wrapper,
.activity_dropdown_wrapper {
    position: absolute;
    bottom: 70px;
    z-index: 100;
    transform: translateY(-16px) scale(0.95);
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.user_dropdown_wrapper {
    left: 50%;
    transform: translateX(-50%) translateY(-16px) scale(0.95);
}

.activity_dropdown_wrapper {
    left: 50%;
    transform: translateX(-50%) translateY(-16px) scale(0.95);
}

.user_dropdown_wrapper.active,
.activity_dropdown_wrapper.active {
    transform: translateX(-50%) translateY(0) scale(1);
    visibility: visible;
    opacity: 1;
}

.user_dropdown_wrapper .shape,
.activity_dropdown_wrapper .shape {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.admin_botom_drop_down_container .common_popup_bg .links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--navy, #134261);
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--inter, "inter", sans-serif);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.admin_botom_drop_down_container .common_popup_bg .links a:hover {
    background-color: var(--accent-soft, rgba(33, 100, 166, 0.08));
    color: var(--accent, #2164A6);
    padding-left: 16px;
}

.admin_botom_drop_down_container .common_popup_bg .links a svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.admin_botom_drop_down_container .common_popup_bg .links a:hover svg {
    opacity: 1;
}

/* Inner Accordion */
.admin_dash_btns .accordion.inner_accordion .accordion-body {
    padding-bottom: 0;
    padding-left: 0;
}

/* Left Arrow Container */
.left_arrow_container {
    position: relative;
    cursor: pointer;
}

.left_arrow_container i {
    font-size: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 13px;
    color: var(--text-muted, #6B7686);
    transition: all 0.3s ease;
}

.left_arrow_container:hover i {
    color: var(--navy, #134261);
}

.left_arrow_container.active i {
    transform: translateY(-50%) rotate(90deg);
}

/* Account Group Dropdown */
.common_inner_dropdown_container {
    background-color: var(--gray-bg, #F5F7FA);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 8px;
    color: var(--text, #2E2E2E);
    width: 100%;
    border: 1px solid var(--border, #D9DDE3);
}

.account_group {
    position: absolute;
    right: -200px;
    top: 0;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

/* ============================================
   SIDEBAR RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .app_side_bar {
        width: 300px;
        transform: translateX(-100%);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }
    
    .app_side_bar.active {
        transform: translateX(0);
    }
    
    .sidebar_close {
        display: flex;
    }
    
    .side_bar_menu_btn {
        display: flex;
    }
    
    .admin_right_content {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .app_side_bar {
        width: 280px;
    }
    
    .side_bar_logo {
        padding: 12px 8px;
    }
    
    .side_bar_logo img {
        width: 80px;
        height: 48px;
    }
    
    .admin_content {
        padding: 12px;
        gap: 8px;
        padding-bottom: 70px;
    }
    
    .admin_dash_cat h6 {
        font-size: 10px;
        padding: 4px 8px;
        letter-spacing: 0.6px;
    }
    
    .admin_dash_btns .menu-item {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 6px !important;
    }
    
    .admin_dash_btns .menu-item svg {
        width: 16px;
        height: 16px;
    }
    
    .accordion-button {
        font-size: 13px;
        padding: 8px 10px;
        border-radius: 6px !important;
    }
    
    .accordion-button::after {
        font-size: 16px;
    }
    
    .accordion-body .menu-item {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .admin_botom_drop_down_container {
        padding: 12px 16px;
        gap: 16px;
    }
    
    .admin_botom_drop_down_container .common_div {
        padding: 4px 10px;
    }
    
    .admin_botom_drop_down_container .common_div svg {
        width: 20px;
        height: 20px;
    }
    
    .admin_botom_drop_down_container .common_popup_bg {
        width: 200px;
        padding: 10px 6px;
    }
    
    .user_dropdown_wrapper,
    .activity_dropdown_wrapper {
        bottom: 60px;
    }
    
    .admin_botom_drop_down_container .common_popup_bg .links a {
        font-size: 12.5px;
        padding: 6px 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .app_side_bar {
        width: 260px;
    }
    
    .side_bar_logo img {
        width: 70px;
        height: 42px;
    }
    
    .admin_content {
        padding: 8px;
        gap: 6px;
        padding-bottom: 60px;
    }
    
    .admin_dash_cat h6 {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .admin_dash_btns .menu-item {
        padding: 6px 8px;
        font-size: 12px;
        gap: 6px;
    }
    
    .admin_dash_btns .menu-item svg {
        width: 14px;
        height: 14px;
    }
    
    .accordion-button {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .accordion-button::after {
        font-size: 14px;
    }
    
    .accordion-body .menu-item {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .admin_botom_drop_down_container {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .admin_botom_drop_down_container .common_div svg {
        width: 18px;
        height: 18px;
    }
    
    .admin_botom_drop_down_container .common_popup_bg {
        width: 180px;
        padding: 8px 4px;
    }
    
    .admin_botom_drop_down_container .common_popup_bg .links a {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .user_dropdown_wrapper,
    .activity_dropdown_wrapper {
        bottom: 50px;
    }
}

/* ============================================
   SIDEBAR SCROLLBAR STYLING
   ============================================ */
.admin_content::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

.admin_content::-webkit-scrollbar-track {
    background: transparent;
}

.admin_content::-webkit-scrollbar-thumb {
    background: var(--border, #D9DDE3);
    border-radius: 10px;
}

.admin_content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted, #6B7686);
}

.admin_content {
    scrollbar-width: thin;
    scrollbar-color: var(--border, #D9DDE3) transparent;
}

/* ============================================
   BODY SCROLL LOCK FOR SIDEBAR
   ============================================ */
body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    body.sidebar-open {
        overflow: hidden;
    }
}

/* ============================================
   ANIMATION FOR SIDEBAR
   ============================================ */
.app_side_bar {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar_overlay_bg {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* ============================================
   SIDEBAR DROPDOWN MENU ITEMS HOVER
   ============================================ */
.admin_botom_drop_down_container .common_popup_bg .links a:hover {
    background-color: var(--accent-soft, rgba(33, 100, 166, 0.08));
    padding-left: 16px;
    color: var(--accent, #2164A6);
}

/* ============================================
   SIDEBAR BOTTOM DROPDOWN INDICATOR
   ============================================ */
.admin_botom_drop_down_container .common_div svg:last-child {
    transition: transform 0.3s ease;
}

.admin_botom_drop_down_container .common_div.active svg:last-child {
    transform: rotate(180deg);
}

/* ============================================
   SIDEBAR ACTIVE LINK INDICATOR
   ============================================ */
.admin_dash_btns .menu-item.active {
    background: var(--accent-soft, rgba(33, 100, 166, 0.06));
    color: var(--navy, #134261);
    border: 1px solid var(--accent-soft, rgba(33, 100, 166, 0.12));
}

.admin_dash_btns .menu-item.active svg path {
    stroke: var(--navy, #134261);
}

.accordion-body .menu-item.active {
    background: var(--accent-soft, rgba(33, 100, 166, 0.05));
    color: var(--navy, #134261);
    border-left: 2px solid var(--navy, #134261);
}

.accordion-body .menu-item.active svg path {
    stroke: var(--navy, #134261);
}

/* ============================================
   SIDEBAR LOGO TEXT
   ============================================ */
.side_bar_logo .logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side_bar_logo .logo-text .company-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #134261);
    letter-spacing: -0.2px;
}

.side_bar_logo .logo-text .company-sub {
    font-size: 10px;
    color: var(--text-muted, #6B7686);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   SIDEBAR COLLAPSE INDICATOR
   ============================================ */
.accordion-button .menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-button .menu-item .menu-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.accordion-button:not(.collapsed) .menu-item .menu-icon {
    opacity: 1;
}

/* ============================================
   SIDE BAR CSS ENDS
   ============================================ */

.admin_right_content {
  width: calc(100% - 280px);
}

/* Header */
.admin_top_header {
  padding: 10px 32px;
  position: sticky;
  top: 0;
  background-color: #eef6ff;
  z-index: 10;
}

.chart_bread_crump .bread_crump_content a {
  color: var(--text-5C);
  font-weight: 500;
}

.chart_bread_crump .bread_crump_content a:hover {
  color: var(--primary-color);
}

.chart_bread_crump .bread_crump_content {
  font-size: 14px;
}

.chart_bread_crump .bread_crump_content p,
.chart_bread_crump .bread_crump_content span {
  margin: 0;
  color: var(--text-dark);
  font-weight: 600;
}

.chart_bread_crump .icon {
  display: flex;
  padding: 4px;
  align-items: center;
  gap: 10px;
  border-radius: 24px;
  background: var(--Neutral-background, #f2f6fa);
}

.admin_profile_container .name_tag {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  background: var(--Neutral-background, #f2f6fa);
}

.admin_profile_container .bell {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  background: var(--Neutral-background, #f2f6fa);
  cursor: pointer;
}

.message_bx {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  background: var(--Neutral-background, #f2f6fa);
  cursor: pointer;
}

.admin_profile_container .name_tag:hover,
.admin_profile_container .bell:hover {
  background-color: var(--hover-btn);
}

.filter_popup_bg,
.profile_popup_bg,
.notification_popup_bg {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--common-pupbg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  transition: opacity 0.3s ease-in-out;
}

.profile_popup_content,
.filter_popup_content,
.filter_popup_bg,
.notifcationpopup_content,
.notification_popup_bg,
.profile_popup_bg {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.profile_popup_content.active,
.filter_popup_bg.active,
.filter_popup_content.active,
.notifcationpopup_content.active,
.profile_popup_bg.active,
.notification_popup_bg.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Fields */
.custom-toggle {
  display: inline-flex;
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 22px;
  margin: 0 8px 0 0;
}

.custom-toggle input[type=checkbox] {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 20px;
  background: #ccc;
  position: relative;
  margin: 0;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background 0.3s ease;
}

.custom-toggle span {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none; /* let clicks fall through to the checkbox underneath so the knob toggles */
}

.custom-toggle input[type=checkbox]:checked {
  background: #888;
}

.custom-toggle input[type=checkbox]:checked + span {
  transform: translateX(18px);
}

/* ============================================
   ADDITIONAL STYLES
   ============================================ */
.add-more-increment-btn-wrap {
  padding: 0 20px 20px 20px;
}

.increment-item {
  position: relative;
  padding-right: 30px;
  border-bottom: 1px dashed #dee2e6;
  padding-bottom: 15px;
}

.increment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.remove-increment {
  transform: translateY(-50%);
}

.calender {
  position: absolute;
  right: 25px;
  top: 38px;
  pointer-events: none;
  opacity: 0.6;
}

.loan-wrapper .repeater-item,
.asset-wrapper .repeater-item {
  position: relative;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 6px;
}

.loan-wrapper .remove-loan,
.asset-wrapper .remove-asset,
.remove-increment {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

/* ============================================
   ST-POPUP OVERLAY
   ============================================ */
.st-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--common-pupbg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.st-popup-content {
  padding: 20px;
  width: 900px;
  max-height: 90%;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.Common_vouchar_data_container.st-popup-content {
  transform: scale(1);
}

.st-popup.show {
  visibility: visible;
  opacity: 1;
}

.st-popup.show .st-popup-content {
  transform: scale(1);
}

.st-popup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EEE;
  position: relative;
}

.st-popup-heading h3 {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
}

.st-popup-heading button {
  border: 0;
  padding: 0;
  font-size: 16px;
  background: none;
}

/* Project List */
#createProjectModal .st-popup-content {
  width: 500px;
}

.detail_heading {
  font-weight: bold;
  margin-bottom: 5px;
}

.close-user-btn {
  cursor: pointer;
}

.tooltip {
  z-index: 99999;
}

.select-box {
  position: relative;
}

.select-box .selected {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--whiteEB, #ebebeb);
  padding: 6px 16px;
  min-height: 38px;
  outline-color: var(--login-border);
  box-shadow: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjgwMCIgdmlld0JveD0iMCAwIDQ4IDQ4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0wIDBoNDh2NDhIMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMjQgMjkuMTcyIDkuNDE0IDE0LjU4NmwtMi44MjggMi44MjhMMjQgMzQuODI4bDE3LjQxNC0xNy40MTQtMi44MjgtMi44Mjh6Ii8+PC9zdmc+);
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: calc(100% - 8px) center;
  background-color: var(--whiteFA, #fafafa);
}

.select-box .options-container {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--whiteFA);
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.select-box .options-container.active {
  display: block;
}

.select-box .search-box {
  border: none;
  border-bottom: 1px solid var(--Neutral-background);
  padding: 10px;
  font-size: 14px;
  outline: none;
  width: 100%;
  background: transparent;
}

.select-box .search-box::placeholder {
  color: var(--text-5C);
}

.select-box .options-list {
  max-height: 150px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.select-box .options-list li {
  padding: 10px;
  cursor: pointer;
}

.select-box .options-list li:hover {
  background: #f5f5f5;
}

.select-box .add-option {
  border-top: 1px solid #eee;
  text-align: center;
  padding: 10px;
}

.select-box .add-option button {
  border: none;
  background: none;
  color: var(--primary-color);
  width: 100%;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* ============================================
   DELETE POPUP
   ============================================ */
.delete_msg_bg {
  background-color: var(--common-pupbg);
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 1;
}

.delete_msg_bg.active {
  visibility: visible;
  opacity: 1;
  display: flex;
}

.del_close_btn {
  display: flex;
  justify-content: end;
  border-bottom: 1px solid var(--Neutral-Gray-100, #edf2f7);
  padding-bottom: 16px;
}

.delete_input {
  width: 80%;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--Neutral-Separator, #EBEBEB);
  outline: none;
  background-color: transparent;
  padding: 12px 16px;
}

.del_close_btn svg:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.delete_inner_bg {
  background-color: #f5f5f5;
  border-radius: 16px;
  padding: 4px;
  width: max-content;
}

.delete_inner_content_container {
  padding: 16px 24px 24px 24px;
  width: 380px;
  box-shadow: 0px 0px 2px var(--common-pupbg);
  border-radius: 16px;
  border: 1px solid var(--active-bg);
}

.del_image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 20px 16px;
}

.del_image img {
  width: 96px;
  height: 106px;
  object-fit: contain;
}

.delete_inner_content_container p {
  color: var(--text-5C, #5c5c5c);
  text-align: center;
  font-family: var(--lato);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 20px;
}

.delete_inner_content_container h3 {
  color: var(--text-dark2, #141414);
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
}

.del_comfirm_buttons .delBtn {
  border-radius: 12px;
  background: var(--neutral-primay, #005399);
  display: flex;
  height: 40px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.6;
}

.del_comfirm_buttons .delBtn.enabled {
  cursor: pointer;
  opacity: 1;
}

.del_comfirm_buttons .delBtn:hover {
  background: var(--button-focused);
}

.del_comfirm_buttons .keepBtn {
  display: flex;
  height: 40px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: var(--whiteEB, #f7f7f7);
  color: var(--Menu-Separator, #c2c2c2);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  border: none;
}

.del_comfirm_buttons .keepBtn:hover {
  background: var(--Button-soft-color);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  /* Hide everything on the page */
  body * {
    visibility: hidden;
  }

  /* Only show the printable table */
  #printableTable,
  .open_trail_table,
  .inventory_table,
  #printSection,
  #printSection *,
  .inventory_table *,
  .open_trail_table *,
  #printableTable * {
    visibility: visible;
  }

  .open_trail_table,
  .inventory_table,
  #printSection,
  #printableTable {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .inventory_table .common_print_header,
  .open_trail_table .common_print_header,
  .open_trail_table .payment_print_footer,
  .inventory_table .payment_print_footer {
    display: block;
  }

  #printSection,
  .inventory_table,
  .open_trail_table {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: space-between;
  }

  .payment_print_footer,
  .trail_print_footer {
    margin-top: auto !important;
    page-break-inside: avoid !important;
  }

  .inventory_table,
  .open_trail_table {
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .common_table table,
  #printableTable table,
  #printSection table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 12px;
  }

  .open_trail_table tfoot tr td {
    font-size: 12px;
    padding: 6px;
    border: 1px solid #2b2b2b;
  }

  .cur_bal p {
    font-size: 12px;
  }

  .cur_bal span {
    font-size: 12px;
  }

  /* reduced the font-size  */
  .inventory_table table tbody th,
  .inventory_table table td {
    font-size: 11px !important;
  }

  .common_table th,
  #printSection th,
  .common_table td,
  #printSection td,
  #printableTable td {
    border: 1px solid #e9eaeb;
    padding: 6px;
    color: var(--text-dark2) !important;
  }

  .payment_print_footer .signature_box h4,
  .open_trail_table .print-body th,
  #printSection .print-body th,
  .inventory_table .table thead th,
  #printableTable .table thead th {
    background: var(--Button-soft-color) !important;
    color: var(--text-dark2) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #printableTable th,
  .common_table th {
    background: var(--Button-soft-color) !important;
    color: var(--text-dark2) !important;
  }

  .inventory_table .pagination_class,
  #printableTable .print_pagination {
    display: none !important;
  }

  #printableTable .approved,
  #printableTable .unapproved,
  #printableTable .bill {
    background: transparent;
    border: none;
    color: black;
  }

  #printableTable .PURCHASE_REQ_TABLE th:last-child,
  #printableTable .common_table th.action,
  #printableTable .common_table td.action_icons,
  #printableTable .PURCHASE_REQ_TABLE td:last-child {
    display: none !important;
    visibility: hidden !important;
  }

  #printableTable .common_table td {
    color: #000 !important;
  }

  .payment .table tbody tr td:last-child {
    width: 140px !important;
  }

  .inventory_table .common_print_header,
  .open_trail_table .common_print_header {
    margin-bottom: 18px;
  }

  .wrap_Text {
    white-space: normal !important;
    word-wrap: break-word;
  }

  #printSection table tfoot tr td {
    font-weight: 800;
    color: var(--text-dark2);
    font-size: 12px;
  }

  .open_trail_table table tfoot tr td,
  .trail_print_table_container .common_table .table th,
  .trail_print_table_container .common_table .table td {
    border: 1px solid #e9eaeb;
  }

  #printableTable .activity_table .table th,
  #printableTable .backup_table .table th,
  #printableTable .backup_table .table td,
  #printableTable .activity_table .table td {
    font-size: 12px;
  }

  #printableTable .activity_table .table td .success_status,
  #printableTable .backup_table .table td .success_status {
    padding: 0;
    width: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dark);
  }

  .open_trail_table .trail_table_heading {
    font-size: 12px;
  }

  .backup_table .action {
    display: none;
    visibility: none;
  }

  .trial_print_table_header {
    padding: 22px 0px;
  }

  .trail_print_table_container .print-body,
  .trail_print_footer {
    padding: 24px 0;
  }

  .trail_print_table_container .common_table .table th,
  .trail_print_table_container .common_table .table td {
    font-size: 12px;
  }

  .trail_print_table_container {
    zoom: 85%;
  }

  .activity_table,
  .backup_table {
    zoom: 80%;
  }

  .trail_print_table_container .print-body {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .trial_print_table_header {
    display: flex;
    flex-direction: row !important;
  }

  .last_trail_print_header_div {
    text-align: end !important;
  }

  .acc_rep_gen_table tfoot tr td,
  .acc_rep_gen_table .table th,
  .acc_rep_gen_table .table th,
  .acc_rep_gen_table .table tr td {
    font-size: 10px !important;
  }

  .order_num_print .table tr td,
  .order_num_print .table tr th {
    font-size: 10px !important;
    height: auto !important;
  }

  .order_num_print .form_input input {
    font-size: 10px;
    padding: 4px !important;
  }

  .w_max .form_input input {
    width: 40px;
  }

  .order_num_print {
    zoom: 75%;
  }

  .hideCol {
    display: none !important;
  }

  .table_bold_Text {
    font-size: 12px;
  }

  .font14Table table tr td {
    font-size: 12px !important;
  }

  /* Lead Dashboard print overrides */
  .topbar,
  .analytics-row,
  .kpi-row,
  .page-head-actions,
  .page-head p,
  .table-foot,
  .a-btn,
  .bulk-bar,
  .btn-wrap,
  .pagination_contianer,
  .drawer,
  .drawer-backdrop,
  .st-popup,
  .delete_msg_bg,
  .filter_popup_content,
  .filter_popup_bg {
    display: none !important;
  }

  #dashboardView {
    display: block !important;
  }

  body {
    background: #fff !important;
    margin: 0;
  }

  main {
    padding: 8px 16px 24px !important;
    max-width: 100% !important;
  }

  .page-head {
    display: flex !important;
    margin-bottom: 10px;
  }

  .page-head h1 {
    font-size: 16px !important;
    color: #134261;
  }

  .common_table {
    box-shadow: none !important;
    border: 1px solid #D9DDE3 !important;
  }

  .table-responsive {
    max-height: none !important;
    overflow: visible !important;
  }

  #leadTable {
    min-width: 0 !important;
    font-size: 10.5px !important;
    width: 100% !important;
  }

  #leadTable thead th {
    position: static !important;
    font-size: 9px !important;
    padding: 6px 10px !important;
    background: #F3F6FA !important;
    color: #6B7686 !important;
  }

  #leadTable tbody td {
    padding: 6px 10px !important;
    font-size: 10.5px !important;
  }

  .stage-pill {
    font-size: 9.5px !important;
    padding: 3px 7px !important;
    cursor: default !important;
  }

  #leadTable tbody tr:hover {
    background: inherit !important;
  }
}

/* ============================================
   TOAST MESSAGE CSS
   ============================================ */
#toast-container {
  position: fixed;
  top: 56px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toastinner {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 250px;
  animation: slideIn 0.5s ease forwards;
}

.toastinner .close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */
@media (max-width: 1800px) {
  .labour_monlthly_attendance_container .month_DaysContainer .month_Date {
    height: 130px;
    width: 140px;
  }
}

@media (max-width: 1400px) {
  .login_slider_img {
    max-height: 800px;
  }

  .login_right {
    height: 90%;
  }

  .login_right .c-logo {
    width: 140px;
  }

  .profile_page_form .input_wrapper .input_field input,
  .change_Tag {
    max-width: 420px;
    width: 100%;
  }

  .leave_list_common_box,
  .employee_leave_list_common_box {
    max-width: 600px;
  }
}

@media (max-width: 1200px) {
  .login_grid {
    gap: 24px;
  }

  .login_slider_img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 720px;
    width: 100%;
  }

  .track_profile_container {
    width: 260px;
  }

  .chat_box_container .chat_box_left {
    width: auto;
  }

  .chat_box_msg_type_container {
    width: calc(100% - 320px);
  }
}

@media (max-width: 992px) {
  .login_grid {
    grid-template-columns: 1fr;
  }

  .login_right {
    height: auto;
    padding: 44px;
  }

  .app_side_bar {
    transform: translateX(-100%);
    z-index: 9999;
  }

  .app_side_bar.active {
    transform: translateX(0);
  }

  .admin_right_content {
    width: 100%;
  }

  .monthly_detail_popup_container,
  .add_account_group_popup {
    width: 100%;
  }

  .sidebar_overlay_bg.active {
    opacity: 1;
    visibility: visible;
  }

  .main_notification_container {
    display: none;
  }

  .sidebar_close,
  .side_bar_menu_btn {
    display: flex;
  }

  .vehicle_form_details_wrapper .top_frame {
    position: static;
  }

  .vehicle_form_details_wrapper .top_frame .header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 5;
  }

  .chat_box_msg_type_container {
    width: 95%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Lead Dashboard responsive */
  .topbar-inner {
    flex-wrap: nowrap;
    padding: 11px 16px;
  }

  .brand-text .brand-sub {
    display: none;
  }

  .crumb span {
    display: none;
  }

  .crumb b {
    font-size: 12px;
  }

  .live-pill {
    font-size: 10px;
    padding: 3px 8px 3px 6px;
  }

  .live-pill .live-dot {
    width: 5px;
    height: 5px;
  }

  .admin-text .a-mail {
    display: none;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-head h1 {
    font-size: 20px;
  }

  .page-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page-head-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 7px 10px;
  }
}

@media (max-width: 768px) {
  .login_right {
    height: auto;
    padding: 24px;
  }

  .login_right .flag img {
    width: 28px;
  }

  .monthly_update_details {
    width: 100%;
  }

  .acc_group_popup .outer_bg {
    width: 95%;
  }

  .registration_popup .outer_bg .monthly_update_details {
    width: 100%;
  }

  .monthly_detail_popup_container .outer_padding {
    padding: 16px 0;
  }

  .labour_personal_Details_container .labour_personal_Detail ul {
    grid-template-columns: 1fr;
  }

  .accounting_details_container {
    padding: 24px 0;
  }

  .filter_popup_content {
    width: 350px;
  }

  .track_profile_container {
    width: 100%;
  }

  .tracking-data-wrapper .right_div {
    height: 420px;
  }

  .map_summary_tag {
    top: 80px;
    left: 16px;
    width: auto;
  }

  .map_summary_tag .content_div .label {
    height: 20px;
    width: 20px;
  }

  .map_summary_tag .content_div .label svg {
    height: 10px;
    width: 10px;
  }

  .labour_monlthly_attendance_container .month_DaysContainer .month_Date .plus_icon {
    right: 10px;
  }

  .labour_monlthly_attendance_container .month_DaysContainer .month_Date {
    height: 130px;
    width: 130px;
  }

  .change_ledger_group_popup_content {
    width: 100%;
  }

  .trial_print_table_header {
    flex-direction: column;
  }

  .last_trail_print_header_div {
    text-align: center;
  }

  .side_bar_logo img {
    width: 80px;
  }

  .admin_list_heading .left_heading h3,
  .Common_vouchar_data_container .inner_content .main_heading .left h3 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .chart_bread_crump .bread_crump_content p {
    font-size: 16px;
  }

  .pb36 {
    padding-bottom: 16px;
  }

  .chat_box_container .chat_box_left {
    width: unset;
    width: 100%;
    padding: 0;
  }

  .chat_box_right {
    position: absolute;
    z-index: 100;
    background-color: var(--white);
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
    top: 10%;
    height: 80vh;
    border-radius: 10px;
  }

  .input_Extra_Feilds {
    gap: 10px;
  }

  .right_chat_content_wrapper .chat_content > p {
    max-width: 95%;
  }

  .chat_box_msg_type_container .input_box input {
    padding-right: 140px;
  }

  .chat_profile_verlay.active {
    display: block;
  }

  .closeChatProfileBtn {
    display: flex;
  }

  /* Lead Dashboard responsive */
  .drawer {
    width: 100%;
    right: -100%;
  }

  .drawer.open {
    right: 0;
  }

  .drawer-head {
    padding: 14px 16px;
  }

  .drawer-body {
    padding: 16px;
  }

  .drawer-footer {
    padding: 12px 16px;
  }

  .drawer-footer .btn {
    min-width: 80px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  #leadViewPage .view-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .acc_common_style {
    width: 100%;
  }

  .filter_popup_content {
    width: 320px;
  }

  .st-popup-form .file-upload {
    max-width: 600px;
    width: 100%;
    display: inline-block;
  }

  .track_list_container {
    justify-content: center;
  }

  .live_Data_container {
    width: 100%;
  }

  .chart_bread_crump .bread_crump_content p,
  .chart_bread_crump .bread_crump_content span {
    display: none;
  }

  .Common_vouchar_data_container .inner_content {
    padding: 0 16px 16px 16px;
  }

  .right_fil_div {
    gap: 12px !important;
  }

  .geo_fence_map {
    height: 320px;
  }

  .track_list_container > div {
    width: auto;
    max-width: 420px;
  }

  #expBarChart {
    height: 220px !important;
  }

  .recep_das_chart_wrapper .exp_chart .heading,
  .recep_das_chart_wrapper .att_chart .heading {
    margin-bottom: 24px;
  }

  #attendanceChart {
    width: 300px !important;
    height: 300px !important;
  }

  .recep_das_chart_wrapper .exp_chart,
  .recep_das_chart_wrapper .att_chart {
    height: auto;
  }

  .right_fil_div .search,
  .search_component .search {
    max-width: 420px;
    width: 100%;
  }

  /* Lead Dashboard responsive */
  .topbar-inner {
    gap: 10px;
    padding: 8px 12px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .brand-icon svg {
    width: 15px;
    height: 15px;
  }

  .brand-name {
    font-size: 12px;
  }

  .crumb {
    font-size: 11px;
  }

  .crumb svg {
    width: 11px;
    height: 11px;
  }

  .page-head h1 {
    font-size: 18px;
  }

  .page-head p {
    font-size: 12px;
  }

  .kpi-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .delete_inner_content_container {
    width: 320px;
  }

  #attendanceChart {
    width: 280px !important;
    height: 280px !important;
  }
}

/* ============================================
   ADDITIONAL CSS
   ============================================ */
.item-quantity {
  width: 150px;
}

.placeholder:hover {
  cursor: pointer !important;
}

.table-responsive {
  overflow-x: inherit;
}

.select-search {
  width: calc(100% - 20px) !important;
}

#stockTransferForm [readonly] {
  opacity: 0.5;
}

/* Date picker */
.date-picker.flatpickr-input {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjgwMCIgdmlld0JveD0iMCAwIDIwIDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGZpbGw9IiM0NTQyNDIiIGQ9Ik01LjY3MyAwYS43LjcgMCAwIDEgLjcuN3YxLjMwOWg3LjUxN3YtMS4zYS43LjcgMCAwIDEgMS40IDB2MS4zSDE4YTIgMiAwIDAgMSAyIDEuOTk5djEzLjk5M0EyIDIgMCAwIDEgMTggMjBIMmEyIDIgMCAwIDEtMi0xLjk5OVY0LjAwOGEyIDIgMCAwIDEgMi0xLjk5OWgyLjk3M1YuNjk5YS43LjcgMCAwIDEgLjctLjY5OU0xLjQgNy43NDJ2MTAuMjU5YS42LjYgMCAwIDAgLjYuNmgxNmEuNi42IDAgMCAwIC42LS42VjcuNzU2em01LjI2NyA2Ljg3N3YxLjY2Nkg1di0xLjY2NnptNC4xNjYgMHYxLjY2Nkg5LjE2N3YtMS42NjZ6bTQuMTY3IDB2MS42NjZoLTEuNjY3di0xLjY2NnptLTguMzMzLTMuOTc3djEuNjY2SDV2LTEuNjY2em00LjE2NiAwdjEuNjY2SDkuMTY3di0xLjY2NnptNC4xNjcgMHYxLjY2NmgtMS42Njd2LTEuNjY2ek00Ljk3MyAzLjQwOEgyYS42LjYgMCAwIDAtLjYuNnYyLjMzNWwxNy4yLjAxNFY0LjAwOGEuNi42IDAgMCAwLS42LS42aC0yLjcxdi45MjlhLjcuNyAwIDAgMS0xLjQgMHYtLjkyOUg2LjM3M3YuOTJhLjcuNyAwIDAgMS0xLjQgMHoiLz48L3N2Zz4=);
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: calc(100% - 8px) center;
}

/* Container */
.st-container {}

/* CK Editor Toolbar Toggle */
#toggleToolbar {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: transparent;
  border: none;
  width: max-content;
}

.ck-rounded-corners .ck.ck-editor__main > .ck-editor__editable,
.ck.ck-editor__main > .ck-editor__editable.ck-rounded-corners {
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  border: 1px solid var(--whiteEB, #ebebeb) !important;
}

.ck-toolbar {
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
  border: 1px solid var(--whiteEB, #ebebeb) !important;
}


























:root {
    --navy: #134261;
    --navy-light: #2164A6;
    --navy-soft: rgba(19, 66, 97, 0.07);
    --accent: #2164A6;
    --accent-light: #4A8AC9;
    --accent-soft: rgba(33, 100, 166, 0.12);
    --orange: #D97706;
    --orange-soft: rgba(217, 119, 6, 0.12);
    --white: #FFFFFF;
    --gray-bg: #F5F7FA;
    --border: #D9DDE3;
    --text: #2E2E2E;
    --text-muted: #6B7686;
    --success: #16A34A;
    --success-soft: rgba(22, 163, 74, 0.10);
    --danger: #DC2626;
    --danger-soft: rgba(220, 38, 38, 0.10);
    --warning: #D97706;
    --warning-soft: rgba(217, 119, 6, 0.10);
    --info: #2563EB;
    --info-soft: rgba(37, 99, 235, 0.10);
    --purple: #7C3AED;
    --purple-soft: rgba(124, 58, 237, 0.10);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(19, 66, 97, 0.05);
    --shadow-md: 0 4px 14px rgba(19, 66, 97, 0.07);
    --shadow-lift: 0 10px 24px rgba(19, 66, 97, 0.12);
}

/* ===== Top Bar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.topbar-inner {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 11px 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(140deg, #2164A6 0%, #134261 120%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.brand-text {
    line-height: 1.15;
}

.brand-name {
    font-size: 14px;
    font-weight: 800;
    color: #134261;
    letter-spacing: -0.2px;
}

.brand-sub {
    font-size: 10px;
    font-weight: 600;
    color: #6B7686;
    letter-spacing: 0.2px;
}

.divider-v {
    width: 1px;
    height: 26px;
    background: var(--border);
    flex-shrink: 0;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.crumb b {
    color: var(--navy);
    font-weight: 600;
}

.crumb svg {
    width: 13px;
    height: 13px;
    stroke: var(--text-muted);
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.icon-btn-top {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    transition: 0.15s;
}

.icon-btn-top:hover {
    background: var(--gray-bg);
    color: var(--navy);
}

.notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    border: 1.5px solid var(--white);
}

.admin {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 8px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent) 0%, var(--navy) 130%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.admin-text {
    line-height: 1.2;
}

.admin-text .a-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.admin-text .a-mail {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ===== Main Layout ===== */
main {
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px 28px 48px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.page-head h1 {
    margin: 0 0 5px;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.page-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    transition: 0.15s;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover {
    background: var(--gray-bg);
}

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

.btn-primary:hover {
    background: var(--navy-light);
}

.btn-wrap {
    position: relative;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    margin-left: 2px;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s, box-shadow 0.18s;
}

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

.kpi {
    padding: 16px 18px;
    border-top: 3px solid var(--border);
}

.kpi-active {
    border-top-color: var(--navy);
}

.kpi-followup {
    border-top-color: var(--warning);
}

.kpi-estimation {
    border-top-color: var(--orange);
}

.kpi-projects {
    border-top-color: var(--success);
}

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

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.3px;
    line-height: 1;
}

.kpi-icon.navy {
    background: var(--navy-soft);
    color: var(--navy);
}

.kpi-icon.warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.kpi-icon.orange {
    background: var(--orange-soft);
    color: var(--orange);
}

.kpi-icon.success {
    background: var(--success-soft);
    color: var(--success);
}

.kpi-split {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
}

.kpi-split-item:first-child {
    padding-right: 12px;
    border-right: 1px solid var(--border);
}

.ks-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ks-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin-top: 1px;
}

.section-head h3 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.section-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.chart-tooltip {
    position: absolute;
    background: var(--navy);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 8px 11px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
    transform: translate(-50%, -110%);
    white-space: nowrap;
    z-index: 10;
    box-shadow: var(--shadow-lift);
}

.funnel-step .fs-label {
    width: 108px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.funnel-step .fs-bar-wrap {
    flex: 1;
    background: var(--gray-bg);
    border-radius: 7px;
    height: 26px;
    overflow: hidden;
    position: relative;
}

.funnel-step .fs-count {
    width: 34px;
    text-align: right;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    flex-shrink: 0;
}

/* ===== Table ===== */
.common_table {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    overflow-x: auto;
}

#leadTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 980px;
}

#leadTable thead th {
    background: #F3F6FA;
    color: var(--text-muted);
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

#leadTable tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #F0F2F6;
    color: var(--text);
    vertical-align: middle;
}

#leadTable tbody tr:hover {
    background: #E8F0F9 !important;
}

/* ===== Stage Pill ===== */
.stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.15s;
}

.stage-pill:hover {
    filter: brightness(0.96);
}

.stage-pill.site-visit {
    background: var(--gray-bg);
    color: var(--text-muted);
}

.stage-pill.drawings {
    background: var(--orange-soft);
    color: var(--orange);
}

.stage-pill.estimate {
    background: var(--accent-soft);
    color: var(--accent);
}

.stage-pill.budget {
    background: var(--accent-soft);
    color: var(--accent);
}

.stage-pill.agreement {
    background: var(--purple-soft);
    color: var(--purple);
}

.stage-pill.municipal-pass {
    background: var(--purple-soft);
    color: var(--purple);
}

.stage-pill.send-to-project {
    background: var(--success-soft);
    color: var(--success);
}

.stage-pill.terminated {
    background: var(--danger-soft);
    color: var(--danger);
}

/* ===== Actions ===== */
.actions-cell {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.a-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: 0.15s;
    cursor: pointer;
    position: relative;
}

.a-btn svg {
    width: 14px;
    height: 14px;
}

.a-btn:hover {
    background: var(--gray-bg);
    color: var(--navy);
}

/* ===== Pagination ===== */
.pagination_contianer {
    margin-top: 16px;
}

.row_per_page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.row_per_page select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
}

.pagination_shift {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination_number {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.pagination_number:hover {
    border-color: var(--accent);
    color: var(--navy);
}

.pagination_number.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.pagination_number.disabled {
    opacity: 0.45;
    cursor: default;
}

.pagination_ellipsis {
    color: var(--text-muted);
    font-size: 13px;
    padding: 0 4px;
}

.rest_nunm_list {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== Modal Styles ===== */
.st-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(19, 66, 97, 0.45);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.st-popup.show {
    display: flex;
}

.st-popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lift);
}

.st-popup-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.st-popup-heading h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.2px;
}

.close-modal {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover {
    background: var(--gray-bg);
    color: var(--navy);
}

.close-modal svg,
.close-modal i {
    font-size: 18px;
}

.st-popup-container {
    padding: 22px;
}

/* ===== Form ===== */
.form_input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form_input label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
}

.form_input label span {
    color: var(--danger);
}

.form_input input,
.form_input select,
.form_input textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--text);
    background: var(--white);
    transition: 0.15s;
    width: 100%;
}

.form_input input:focus,
.form_input select:focus,
.form_input textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form_input textarea {
    min-height: 80px;
    resize: vertical;
}

.slect-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slect-status label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
}

.form_discard_save {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.form_discard_save .submit {
    background: var(--navy);
    border: none;
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: 0.15s;
}

.form_discard_save .submit:hover {
    background: var(--navy-light);
}

/* ===== Repeater ===== */
.repeater-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.repeater-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.15s;
}

.repeater-remove-btn:hover {
    color: var(--danger);
}

.repeater-edit-stage {
    position: absolute;
    top: 8px;
    right: 35px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.15s;
}

.repeater-edit-stage:hover {
    color: var(--accent);
}

.repeater-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: 0.15s;
    cursor: pointer;
}

.repeater-add-btn:hover {
    background: var(--navy-light);
}

/* ===== Filter Popup ===== */
.filter_popup_content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lift);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: all 0.25s ease;
}

.filter_heading {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.filter_heading h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
}

.filter_heading .filter-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
}

.filter_heading .filter-close:hover {
    color: var(--danger);
}

.popup-btn1 {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.popup-btn2 {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.popup-btn2:hover {
    background: var(--navy-light);
}

/* ===== Delete Modal ===== */
.delete_msg_bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(19, 66, 97, 0.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.delete_msg_bg.show {
    display: flex;
}

.delete_msg {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    padding: 24px;
    box-shadow: var(--shadow-lift);
}

.delete_msg h4 {
    margin: 0 0 8px;
    color: var(--danger);
}

.delete_msg p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.delete_msg input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.delBtn {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    opacity: 0.5;
    cursor: not-allowed;
    transition: 0.15s;
}

.delBtn.enabled {
    opacity: 1;
    cursor: pointer;
}

.delBtn.enabled:hover {
    background: #C0271F;
}

.del_close_btn {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.del_close_btn:hover {
    background: var(--border);
}

/* ===== Editor Wrapper ===== */
.editor-wrapper {
    position: relative;
}

.editor-wrapper .toggle-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    z-index: 5;
}

.editor-wrapper .toggle-toolbar:hover {
    background: var(--border);
}

/* ===== Stage Options ===== */
.stage-options {
    display: none;
}

.stage-options.show {
    display: flex;
}

/* ===== Utility ===== */
.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.mb-3 {
    margin-bottom: 16px;
}

.mt-3 {
    margin-top: 16px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.end-0 {
    right: 0;
}

.w-auto {
    width: auto;
}

.mt-1 {
    margin-top: 4px;
}

/* ===== Print Styles ===== */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .topbar,
    .analytics-row,
    .kpi-row,
    .page-head-actions,
    .page-head p,
    .table-foot,
    .a-btn,
    .bulk-bar,
    .btn-wrap,
    .pagination_contianer,
    .st-popup,
    .delete_msg_bg,
    .filter_popup_content,
    .filter_popup_bg {
        display: none !important;
    }

    #dashboardView {
        display: block !important;
    }

    body {
        background: #fff !important;
        margin: 0;
    }

    main {
        padding: 8px 16px 24px !important;
        max-width: 100% !important;
    }

    .page-head {
        display: flex !important;
        margin-bottom: 10px;
    }

    .page-head h1 {
        font-size: 16px !important;
        color: #134261;
    }

    .common_table {
        box-shadow: none !important;
        border: 1px solid #D9DDE3 !important;
    }

    .table-responsive {
        max-height: none !important;
        overflow: visible !important;
    }

    #leadTable {
        min-width: 0 !important;
        font-size: 10.5px !important;
        width: 100% !important;
    }

    #leadTable thead th {
        position: static !important;
        font-size: 9px !important;
        padding: 6px 10px !important;
        background: #F3F6FA !important;
        color: #6B7686 !important;
    }

    #leadTable tbody td {
        padding: 6px 10px !important;
        font-size: 10.5px !important;
    }

    .stage-pill {
        font-size: 9.5px !important;
        padding: 3px 7px !important;
        cursor: default !important;
    }

    #leadTable tbody tr:hover {
        background: inherit !important;
    }
}

.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 560px;
    max-width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 501;
    box-shadow: var(--shadow-lift);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Wider drawer for document forms with wide item tables (procurement) */
.drawer.drawer-wide { width: 960px; }
@media (max-width: 1000px) { .drawer.drawer-wide { width: 100vw; } }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--white);
    z-index: 1;
}

.drawer-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}

.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.15s;
}

.drawer-close:hover {
    background: var(--gray-bg);
    color: var(--navy);
}

.drawer-body::-webkit-scrollbar-track {
    background: var(--gray-bg);
    border-radius: 3px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.drawer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--white);
}

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

.drawer-footer .btn-primary:hover {
    background: var(--navy-light);
}

.form-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.form-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.form-field label .req {
    color: var(--danger);
}

.form-field input,
.form-field select,
.form-field textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    transition: 0.15s;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input[readonly] {
    background: var(--gray-bg);
    color: var(--text-muted);
}

.repeater-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
    background: var(--white);
}

.repeater-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.15s;
}

.repeater-remove-btn:hover {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: var(--danger);
}

.repeater-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px dashed var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
    width: fit-content;
}

.repeater-add-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ===== Drawing Items ===== */
.drawing-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    position: relative;
}

.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.15s;
}

.remove-item:hover {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: var(--danger);
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== File Upload in Drawer ===== */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.15s;
    background: var(--gray-bg);
    display: block;
}

.file-upload:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.file-upload .placeholder-data p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.file-upload .placeholder-data i {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
}

.preview-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    background: var(--white);
    max-width: 80px;
    text-align: center;
}

.preview-item .file-name {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
    padding: 2px;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Responsive Drawers ===== */
@media (max-width: 768px) {
    .drawer {
        width: 100%;
        right: -100%;
    }

    .drawer.open {
        right: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .drawer-head {
        padding: 14px 16px;
    }

    .drawer-body {
        padding: 16px;
    }

    .drawer-footer {
        padding: 12px 16px;
    }

    .drawer-footer .btn {
        min-width: 80px;
        font-size: 12px;
        padding: 8px 12px;
    }
}




























    /* ===== View Drawer Styles ===== */
    #viewDrawer .view-section {
        margin-bottom: 24px;
    }

    #viewDrawer .view-section:last-child {
        margin-bottom: 0;
    }

    #viewDrawer .view-section-title {
        font-size: 11px;
        font-weight: 800;
        color: var(--text-muted, #6B7686);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border, #D9DDE3);
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #viewDrawer .view-section-title svg {
        color: var(--accent, #2164A6);
    }

    #viewDrawer .view-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
    }

    #viewDrawer .view-field.full {
        grid-column: 1 / -1;
    }

    #viewDrawer .view-field .vf-label {
        font-size: 10.5px;
        font-weight: 700;
        color: var(--text-muted, #6B7686);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 3px;
    }

    #viewDrawer .view-field .vf-value {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text, #2E2E2E);
        word-break: break-word;
    }

    #viewDrawer .view-field .vf-value.muted {
        color: var(--text-muted, #6B7686);
        font-weight: 500;
    }

    /* ===== View Drawer Tabs (Overview / Documents) ===== */
    .drawer-tabbed .view-tabs {
        display: flex;
        gap: 2px;
        border-bottom: 1px solid var(--border, #D9DDE3);
        margin: -4px 0 18px;
    }
    .drawer-tabbed .view-tab {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted, #6B7686);
        background: transparent;
        border: none;
        padding: 9px 12px;
        position: relative;
        cursor: pointer;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color .13s;
    }
    .drawer-tabbed .view-tab svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
    .drawer-tabbed .view-tab:hover { color: var(--navy, #134261); }
    .drawer-tabbed .view-tab.on { color: var(--navy, #134261); font-weight: 700; }
    .drawer-tabbed .view-tab.on::after {
        content: '';
        position: absolute;
        left: 4px; right: 4px; bottom: -1px;
        height: 2.5px;
        background: var(--accent, #2164A6);
        border-radius: 2px 2px 0 0;
    }
    .drawer-tabbed .view-tab-panel { display: none; }
    .drawer-tabbed .view-tab-panel.on { display: block; }

    /* ===== Document list (mockup .doc-list) ===== */
    .drawer-tabbed .doc-list { display: flex; flex-direction: column; gap: 6px; }
    .drawer-tabbed .doc-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid var(--border, #D9DDE3);
        border-radius: 9px;
        transition: .13s;
    }
    .drawer-tabbed .doc-row:hover { border-color: #A8C4E0; background: rgba(33,100,166,.05); }
    .drawer-tabbed .doc-ico {
        width: 34px; height: 34px; border-radius: 8px;
        background: rgba(33,100,166,.12); color: var(--accent, #2164A6);
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .drawer-tabbed .doc-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
    .drawer-tabbed .doc-ico.warn { background: rgba(217,119,6,.12); color: #D97706; }
    .drawer-tabbed .doc-ico.danger { background: rgba(220,38,38,.10); color: #DC2626; }
    .drawer-tabbed .doc-main { flex: 1; min-width: 0; }
    .drawer-tabbed .doc-nm { font-size: 12.5px; font-weight: 700; color: var(--navy, #134261); margin-bottom: 1px; word-break: break-word; }
    .drawer-tabbed .doc-exp { font-size: 10.5px; font-weight: 700; margin-top: 2px; }
    .drawer-tabbed .doc-exp.valid { color: #16A34A; }
    .drawer-tabbed .doc-exp.expiring { color: #D97706; }
    .drawer-tabbed .doc-exp.expired { color: #DC2626; }
    .drawer-tabbed .doc-acts { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
    .drawer-tabbed .doc-acts .ab {
        width: 28px; height: 28px; border-radius: 7px;
        border: 1px solid var(--border, #D9DDE3); background: #fff;
        display: flex; align-items: center; justify-content: center;
        color: var(--text-muted, #6B7686); transition: .13s; cursor: pointer;
    }
    .drawer-tabbed .doc-acts .ab svg { width: 15px; height: 15px; }
    .drawer-tabbed .doc-acts .ab:hover { background: var(--gray-bg, #F5F7FA); color: var(--navy, #134261); }
    .drawer-tabbed .doc-empty {
        text-align: center; padding: 28px 16px;
        color: var(--text-muted, #6B7686); font-size: 12.5px; font-weight: 600;
    }

    /* Status pill variants (shared by table + drawer) */
    .pill.active, .pill.valid, .pill.approved, .pill.completed { background: rgba(22,163,74,.10); color: #16A34A; }
    .pill.idle, .pill.pending, .pill.good { background: #EEF1F6; color: #6B7686; }
    .pill.maintenance, .pill.expired, .pill.rejected { background: rgba(220,38,38,.10); color: #DC2626; }
    .pill.warning, .pill.expiring { background: rgba(217,119,6,.12); color: #D97706; }

    /* ===== Workflow drawer record lists (Fuel / Maintenance / Operations) ===== */
    .drawer-tabbed .wf-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
    .drawer-tabbed .wf-list { display: flex; flex-direction: column; gap: 8px; }
    .drawer-tabbed .wf-rec {
        border: 1px solid var(--border, #D9DDE3);
        border-radius: 10px;
        padding: 11px 13px;
        transition: .13s;
    }
    .drawer-tabbed .wf-rec:hover { border-color: #A8C4E0; background: rgba(33,100,166,.04); }
    .drawer-tabbed .wf-rec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
    .drawer-tabbed .wf-rec-title { font-size: 12.5px; font-weight: 800; color: var(--navy, #134261); }
    .drawer-tabbed .wf-rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
    .drawer-tabbed .wf-rec-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
    .drawer-tabbed .wf-f-l { font-size: 10px; font-weight: 700; color: var(--text-muted, #6B7686); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 1px; }
    .drawer-tabbed .wf-f-v { font-size: 12.5px; font-weight: 600; color: var(--text, #2E2E2E); word-break: break-word; }
    .drawer-tabbed .wf-empty {
        text-align: center; padding: 30px 16px;
        color: var(--text-muted, #6B7686); font-size: 12.5px; font-weight: 600;
    }
    .drawer-tabbed .wf-empty svg { width: 34px; height: 34px; margin: 0 auto 8px; display: block; opacity: .4; stroke: currentColor; fill: none; stroke-width: 1.8; }

    /* View Timeline */
    #viewDrawer .view-timeline {
        position: relative;
        padding-left: 22px;
    }

    #viewDrawer .view-timeline::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 4px;
        bottom: 4px;
        width: 2px;
        background: var(--border, #D9DDE3);
    }

    #viewDrawer .view-timeline-entry {
        position: relative;
        padding-bottom: 16px;
    }

    #viewDrawer .view-timeline-entry:last-child {
        padding-bottom: 0;
    }

    #viewDrawer .view-timeline-entry::before {
        content: '';
        position: absolute;
        left: -22px;
        top: 3px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--navy, #134261);
        border: 2px solid #fff;
        box-shadow: 0 0 0 1px var(--border, #D9DDE3);
    }

    #viewDrawer .view-timeline-entry .vte-title {
        font-size: 12.8px;
        font-weight: 700;
        color: var(--navy, #134261);
    }

    #viewDrawer .view-timeline-entry .vte-meta {
        font-size: 11px;
        color: var(--text-muted, #6B7686);
        margin-top: 1px;
    }

    #viewDrawer .view-timeline-entry .vte-comment {
        font-size: 12.3px;
        color: var(--text, #2E2E2E);
        margin-top: 5px;
        background: var(--gray-bg, #F5F7FA);
        border-radius: 7px;
        padding: 7px 9px;
    }

    /* View Actions */
    #viewDrawer .view-actions {
        display: flex;
        gap: 8px;
        margin: 16px 0;
        padding: 12px 0;
        border-top: 1px solid var(--border, #D9DDE3);
        border-bottom: 1px solid var(--border, #D9DDE3);
    }

    #viewDrawer .view-actions .btn {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
    }

    #viewDrawer .view-actions .btn-primary {
        background: var(--navy, #134261);
        color: #fff;
        border: 1px solid var(--navy, #134261);
    }

    #viewDrawer .view-actions .btn-primary:hover {
        background: var(--navy-light, #2164A6);
    }

    #viewDrawer .view-actions .btn-danger {
        background: var(--danger, #DC2626);
        color: #fff;
        border: 1px solid var(--danger, #DC2626);
    }

    #viewDrawer .view-actions .btn-danger:hover {
        background: #C0271F;
    }

    /* View Footer */
    #viewDrawer .view-footer {
        padding-top: 16px;
        margin-top: 8px;
        border-top: 1px solid var(--border, #D9DDE3);
        display: flex;
        justify-content: flex-end;
    }

    #viewDrawer .empty-state {
        padding: 16px;
        text-align: center;
        color: var(--text-muted, #6B7686);
        background: var(--gray-bg, #F5F7FA);
        border-radius: 8px;
        font-size: 13px;
    }

    #viewDrawer .empty-state p {
        margin: 0;
    }

    /* Responsive */
    @media (max-width: 768px) {
        #viewDrawer .view-grid {
            grid-template-columns: 1fr;
        }
        
        #viewDrawer .view-actions {
            flex-wrap: wrap;
        }
        
        #viewDrawer .view-actions .btn {
            flex: 1;
            justify-content: center;
        }
    }

    /* Stage Pill Colors */
    .stage-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px 4px 10px;
        border-radius: 999px;
        font-size: 11.5px;
        font-weight: 700;
        border: none;
    }

    .stage-pill.new {
        background: var(--gray-bg, #F5F7FA);
        color: var(--text-muted, #6B7686);
    }

    .stage-pill.site_visit {
        background: var(--gray-bg, #F5F7FA);
        color: var(--text-muted, #6B7686);
    }

    .stage-pill.drawings {
        background: var(--orange-soft, rgba(217, 119, 6, 0.12));
        color: var(--orange, #D97706);
    }

    .stage-pill.estimate {
        background: var(--accent-soft, rgba(33, 100, 166, 0.12));
        color: var(--accent, #2164A6);
    }

    .stage-pill.budget {
        background: var(--accent-soft, rgba(33, 100, 166, 0.12));
        color: var(--accent, #2164A6);
    }

    .stage-pill.agreement {
        background: var(--purple-soft, rgba(124, 58, 237, 0.12));
        color: var(--purple, #7C3AED);
    }

    .stage-pill.municipal {
        background: var(--purple-soft, rgba(124, 58, 237, 0.12));
        color: var(--purple, #7C3AED);
    }

    .stage-pill.send_to_project {
        background: var(--success-soft, rgba(22, 163, 74, 0.10));
        color: var(--success, #16A34A);
    }

    .stage-pill.terminated {
        background: var(--danger-soft, rgba(220, 38, 38, 0.10));
        color: var(--danger, #DC2626);
    }



























































    
    /* ===== ChatLog Drawer Styles ===== */
    #editChatlogDrawer .chatlog-section {
        margin-bottom: 24px;
    }

    #editChatlogDrawer .chatlog-section-title {
        font-size: 11px;
        font-weight: 800;
        color: var(--text-muted, #6B7686);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border, #D9DDE3);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #editChatlogDrawer .chatlog-section-title svg {
        color: var(--accent, #2164A6);
    }

    /* Chat Log List */
    #editChatlogDrawer .chatlog-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 400px;
        overflow-y: auto;
        padding-right: 4px;
    }

    #editChatlogDrawer .chatlog-list::-webkit-scrollbar {
        width: 4px;
    }

    #editChatlogDrawer .chatlog-list::-webkit-scrollbar-track {
        background: var(--gray-bg, #F5F7FA);
        border-radius: 2px;
    }

    #editChatlogDrawer .chatlog-list::-webkit-scrollbar-thumb {
        background: var(--border, #D9DDE3);
        border-radius: 2px;
    }

    #editChatlogDrawer .chatlog-item {
        border: 1px solid var(--border, #D9DDE3);
        border-radius: 10px;
        padding: 14px 16px;
        background: var(--white);
        transition: all 0.2s ease;
    }

    #editChatlogDrawer .chatlog-item:hover {
        border-color: var(--accent-soft, rgba(33, 100, 166, 0.2));
        box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
    }

    #editChatlogDrawer .chatlog-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 6px;
    }

    #editChatlogDrawer .chatlog-author {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    #editChatlogDrawer .ct-author {
        font-size: 13px;
        font-weight: 700;
        color: var(--navy, #134261);
    }

    #editChatlogDrawer .ct-time {
        font-size: 11px;
        color: var(--text-muted, #6B7686);
        font-weight: 500;
    }

    #editChatlogDrawer .chatlog-to {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: var(--accent, #2164A6);
        font-weight: 600;
    }

    #editChatlogDrawer .ct-to {
        color: var(--accent, #2164A6);
    }

    #editChatlogDrawer .chatlog-body {
        padding: 4px 0 6px 0;
    }

    #editChatlogDrawer .ct-comment {
        margin: 0;
        font-size: 13px;
        color: var(--text, #2E2E2E);
        line-height: 1.5;
        word-break: break-word;
    }

    #editChatlogDrawer .chatlog-attachments {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border, #D9DDE3);
    }

    #editChatlogDrawer .ct-attach {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11.5px;
        font-weight: 600;
        color: var(--accent, #2164A6);
        background: var(--accent-soft, rgba(33, 100, 166, 0.08));
        padding: 4px 10px 4px 8px;
        border-radius: 6px;
        text-decoration: none;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

    #editChatlogDrawer .ct-attach:hover {
        background: var(--accent-soft, rgba(33, 100, 166, 0.15));
        border-color: var(--accent-soft, rgba(33, 100, 166, 0.2));
        color: var(--navy, #134261);
        text-decoration: none;
    }

    #editChatlogDrawer .ct-attach svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* Chat Log Empty State */
    #editChatlogDrawer .chatlog-empty {
        text-align: center;
        padding: 32px 16px;
        color: var(--text-muted, #6B7686);
    }

    #editChatlogDrawer .chatlog-empty p {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
    }

    /* Chat Log Form */
    #editChatlogDrawer .chatlog-form-section {
        border-top: 1px solid var(--border, #D9DDE3);
        padding-top: 20px;
        margin-top: 4px;
    }

    #editChatlogDrawer .chatlog-form-title {
        font-size: 11px;
        font-weight: 800;
        color: var(--text-muted, #6B7686);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border, #D9DDE3);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #editChatlogDrawer .chatlog-form-title svg {
        color: var(--accent, #2164A6);
    }

    #editChatlogDrawer .chatlog-form-row {
        margin-bottom: 14px;
    }

    #editChatlogDrawer .chatlog-form-row:last-child {
        margin-bottom: 0;
    }

    #editChatlogDrawer .chatlog-form-field {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    #editChatlogDrawer .chatlog-form-field.full {
        grid-column: 1 / -1;
    }

    #editChatlogDrawer .chatlog-form-field label {
        font-size: 12px;
        font-weight: 700;
        color: var(--navy, #134261);
    }

    #editChatlogDrawer .chatlog-form-field label .req {
        color: var(--danger, #DC2626);
    }

    #editChatlogDrawer .chatlog-form-field input,
    #editChatlogDrawer .chatlog-form-field textarea {
        border: 1px solid var(--border, #D9DDE3);
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        color: var(--text, #2E2E2E);
        background: var(--white);
        transition: 0.15s;
        width: 100%;
        font-family: var(--inter, "inter", sans-serif);
    }

    #editChatlogDrawer .chatlog-form-field input:focus,
    #editChatlogDrawer .chatlog-form-field textarea:focus {
        outline: none;
        border-color: var(--accent, #2164A6);
        box-shadow: 0 0 0 3px var(--accent-soft, rgba(33, 100, 166, 0.12));
    }

    #editChatlogDrawer .chatlog-form-field textarea {
        min-height: 80px;
        resize: vertical;
    }

    #editChatlogDrawer .chatlog-form-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid var(--border, #D9DDE3);
    }

    #editChatlogDrawer .chatlog-form-actions .btn {
        padding: 8px 20px;
        font-size: 13px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    #editChatlogDrawer .chatlog-form-actions .btn-primary {
        background: var(--navy, #134261);
        color: #fff;
        border: 1px solid var(--navy, #134261);
    }

    #editChatlogDrawer .chatlog-form-actions .btn-primary:hover {
        background: var(--navy-light, #2164A6);
        border-color: var(--navy-light, #2164A6);
    }

    /* File Upload in ChatLog */
    #editChatlogDrawer .file-upload {
        border: 2px dashed var(--border, #D9DDE3);
        border-radius: 8px;
        padding: 16px;
        text-align: center;
        cursor: pointer;
        transition: 0.15s;
        background: var(--gray-bg, #F5F7FA);
        display: block;
    }

    #editChatlogDrawer .file-upload:hover {
        border-color: var(--accent, #2164A6);
        background: var(--accent-soft, rgba(33, 100, 166, 0.08));
    }

    #editChatlogDrawer .file-upload .placeholder-data p {
        margin: 0;
        color: var(--text-muted, #6B7686);
        font-weight: 600;
        font-size: 13px;
    }

    #editChatlogDrawer .file-upload .placeholder-data i {
        font-size: 20px;
        display: block;
        margin-bottom: 4px;
        color: var(--accent, #2164A6);
    }

    #editChatlogDrawer .file-upload .placeholder-data span {
        font-size: 11px;
        color: var(--text-muted, #6B7686);
        display: block;
        margin-top: 2px;
    }

    #editChatlogDrawer .file-upload .file-input {
        display: none;
    }

    #editChatlogDrawer .file-upload .preview {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
        justify-content: center;
    }

    #editChatlogDrawer .file-upload .preview .preview-item {
        border: 1px solid var(--border, #D9DDE3);
        border-radius: 6px;
        padding: 4px;
        background: var(--white);
        max-width: 80px;
        text-align: center;
        position: relative;
    }

    #editChatlogDrawer .file-upload .preview .preview-item img {
        width: 100%;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    #editChatlogDrawer .file-upload .preview .preview-item .file-name {
        font-size: 9px;
        color: var(--text-muted, #6B7686);
        display: block;
        padding: 2px;
        word-break: break-all;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #editChatlogDrawer .file-upload .preview .preview-item .file-icon {
        font-size: 24px;
        display: block;
        padding: 8px 0;
    }

    /* Responsive */
    @media (max-width: 768px) {
        #editChatlogDrawer .chatlog-header {
            flex-direction: column;
            align-items: flex-start;
        }
        
        #editChatlogDrawer .chatlog-form-actions {
            flex-direction: column;
        }
        
        #editChatlogDrawer .chatlog-form-actions .btn {
            width: 100%;
            justify-content: center;
        }
        
        #editChatlogDrawer .chatlog-list {
            max-height: 300px;
        }

/* ============================================================
   GLOBAL DRAWER POPUPS
   Every .st-popup now slides in from the right (drawer style)
   instead of appearing as a centered modal. The existing
   .show toggle and form markup are unchanged. The
   .st-popup-drawer class is kept as an explicit alias but is
   no longer required — all .st-popup popups are drawers.
   ============================================================ */
.st-popup,
.st-popup.st-popup-drawer {
    justify-content: flex-end;
    align-items: stretch;
}
.st-popup .st-popup-content,
.st-popup-drawer .st-popup-content {
    width: min(780px, 100vw);
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.st-popup.show .st-popup-content,
.st-popup-drawer.show .st-popup-content { transform: translateX(0); }
.st-popup .st-popup-heading,
.st-popup-drawer .st-popup-heading {
    padding: 16px 22px;
    margin: 0;
    border-bottom: 1px solid #D9DDE3;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.st-popup .st-popup-container,
.st-popup-drawer .st-popup-container {
    padding: 20px 22px 32px;
    overflow-y: auto;
    flex: 1;
}
@media (max-width: 820px) {
    .st-popup .st-popup-content,
    .st-popup-drawer .st-popup-content { width: 100vw; }
}

/* ============================================================
   CRM DASHBOARD SHARED COMPONENTS (task / lead / tender)
   ============================================================ */

/* --- KPI progress-bar variant --- */
.kpi-sub {
    font-size: 11.5px;
    color: #6B7686;
    font-weight: 600;
    margin: 6px 0 9px;
    min-height: 15px;
}
.kpi-bar {
    height: 5px;
    border-radius: 5px;
    background: #F0F3F7;
    overflow: hidden;
}
.kpi-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.45s ease;
}

/* --- Status / priority pills --- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.pill svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; }
/* status */
.pill.pill-pending     { background: rgba(217,119,6,.10);  color: #D97706; }
.pill.pill-progress    { background: rgba(37,99,235,.10);  color: #2563EB; }
.pill.pill-done        { background: rgba(22,163,74,.10);  color: #16A34A; }
.pill.pill-cancelled   { background: rgba(107,118,134,.12); color: #6B7686; }
/* priority */
.pill.pill-high        { background: rgba(220,38,38,.10);  color: #DC2626; }
.pill.pill-medium      { background: rgba(217,119,6,.10);  color: #D97706; }
.pill.pill-low         { background: rgba(22,163,74,.10);  color: #16A34A; }

/* --- Table cell: avatar + name --- */
.cell-user { display: flex; align-items: center; gap: 8px; }
.cell-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.cell-subject {
    max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 600; color: #134261;
}

/* --- Status distribution donut --- */
.donut-wrap { display: flex; flex-direction: column; align-items: center; }
.donut-chart { position: relative; }
.donut-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-total { font-size: 22px; font-weight: 800; color: #134261; line-height: 1; }
.donut-total-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #6B7686; font-weight: 700; }
.donut-legend { width: 100%; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dl-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #6B7686; font-weight: 600; }
.dl-row b { color: #134261; font-weight: 800; }
.dl-left { display: flex; align-items: center; gap: 7px; }
.dl-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

/* --- Trend meta strip --- */
.trend-meta { margin-top: 12px; }
.trend-meta .tm-label { font-size: 10.5px; color: #6B7686; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.trend-meta .tm-value { font-size: 17px; font-weight: 800; color: #134261; }
.trend-legend { display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.trend-legend .tl { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6B7686; font-weight: 600; }
.trend-legend .tl-dot { width: 9px; height: 9px; border-radius: 3px; }
.task-tf-grp { display: inline-flex; gap: 4px; background: #F4F7FB; border: 1px solid #E5E9EF; border-radius: 8px; padding: 3px; }
.task-tf { border: none; background: transparent; font-size: 11.5px; font-weight: 700; color: #6B7686; padding: 5px 11px; border-radius: 6px; cursor: pointer; transition: .15s; }
.task-tf:hover { color: #134261; }
.task-tf.on { background: #fff; color: #134261; box-shadow: 0 1px 3px rgba(19,66,97,.12); }
    }
/* ============================================================
   MOVED FROM layouts/app.blade.php <style> BLOCK
   (consolidated here per request; cascade order preserved —
   custom.css was already linked before that inline block)
   ============================================================ */
        /* Custom Unicode arrows */
        th.sorting {
            position: relative;
            cursor: pointer;
            padding-right: 20px !important;
        }

        th.sorting::before {
            content: '▼';
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%) rotate(0deg);
            font-size: 10px;
            color: #999;
            transition: transform 0.3s ease;
        }

        th.sorting.sorting_asc::before {
            transform: translateY(-50%) rotate(180deg);
            color: #141414;
        }

        th.sorting.sorting_desc::before {
            color: #141414;
        }

        .close-modal {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-80%);
            background-color: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Searchbox */
        .search-container {
            position: relative;
        }

        .search-box {
            position: relative;
            display: flex;
            align-items: center;
        }

        .right_fil_div .search-box input, 
        .search_component form .search-box input,
        .search-box input {
            width: 100%;
            outline: none;
            padding: 8px 12px 8px 42px;
            border-radius: 50px;
            border: 1px solid var(--whiteEB);
            background: var(--whiteFA);
            font-size: 14px;
            margin: 0;
            font-family: inherit;
            line-height: inherit;
            box-sizing: border-box;
        }

        .search-box input:focus {
            border-color: var(--whiteEB);
            background: var(--whiteFA);
        }

        .search-box svg {
            position: absolute;
            left: 15px;
            pointer-events: none;
            z-index: 2;
        }

        .search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--whiteEB);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            max-height: 300px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
            margin-top: 8px;
        }

        .search-dropdown.show {
            display: block;
        }

        .search-dropdown-item {
            padding: 12px 16px;
            border-bottom: 1px solid var(--whiteFA);
            cursor: pointer;
            transition: all 0.2s ease;
            color: #141414;
            text-decoration: none;
            display: block;
            font-size: 14px;
            font-family: inherit;
            line-height: 1.4;
        }

        .search-dropdown-item:hover {
            background-color: var(--whiteFA);
            text-decoration: none;
            color: #141414;
            padding-left: 20px;
        }

        .search-dropdown-item:last-child {
            border-bottom: none;
        }

        .no-results {
            padding: 16px;
            text-align: center;
            color: #666;
            font-style: italic;
            font-size: 14px;
            font-family: inherit;
        }

        :root {
            --whiteEB: #ebebeb;
            --whiteFA: #fafafa;
        }

        .search-box input {
            border: 1px solid #ebebeb;
            background: #fafafa;
        }

        .search-dropdown-item:hover {
            background-color: #fafafa;
        }

        .search-dropdown {
            border: 1px solid #ebebeb;
        }

        .slect-status label span {
            margin-left: 5px;
            color: var(--red);
        }

        .ck-editor__editable {
            min-height: 100px;
            max-height: 200px;
            overflow-y: auto;
        }

        :root {
            --neutral-primay: #4a90e2;
        }

        #dynamicModal {
            z-index: 99999999999;
        }

        .right-0 {
            right: 0;
        }

        .add_project_inner_form a {
            background-color: #fff;
            color: var(--bs-btn-hover-border-color);
        }
        .add_project_inner_form svg {
            fill: var(--bs-btn-hover-border-color);
        }

        .d-flex.gap-2.action-btns {
            margin-top: 20px;
        }

        .add_acc_group.btn-light {
            background-color: #FFF;
            color: var(--text-dark2);
            border-radius: 50px;
            border: 1px solid var(--whiteEB);
        }

        .select2-container--open {
            z-index: 99999 !important;
        }

        /* Drawer Styles - Integration with existing layout */
        .drawer-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(19, 66, 97, 0.45);
            z-index: 500;
            display: none;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .drawer-backdrop.open {
            display: block;
            opacity: 1;
        }

        .drawer {
            position: fixed;
            top: 0;
            right: -100%;
            width: 560px;
            max-width: 100vw;
            height: 100vh;
            background: var(--white, #fff);
            z-index: 501;
            box-shadow: 0 10px 24px rgba(19, 66, 97, 0.12);
            display: flex;
            flex-direction: column;
            transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .drawer.open {
            right: 0;
        }

        @media (max-width: 600px) {
            .drawer {
                width: 100%;
                right: -100%;
            }
        }

        body.drawer-open {
            overflow: hidden;
        }

        .drawer-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 24px;
            border-bottom: 1px solid var(--border, #D9DDE3);
            flex-shrink: 0;
            background: var(--white, #fff);
            z-index: 1;
        }

        .drawer-head h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 800;
            color: #134261;
        }

        .drawer-close {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid var(--border, #D9DDE3);
            background: var(--white, #fff);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6B7686;
            cursor: pointer;
            transition: 0.15s;
        }

        .drawer-close:hover {
            background: #F5F7FA;
            color: #134261;
        }

        .drawer-close svg {
            width: 16px;
            height: 16px;
        }

        .drawer-body {
            flex: 1;
            overflow-y: auto;
            padding: 20px 24px;
        }

        .drawer-body::-webkit-scrollbar {
            width: 6px;
        }

        .drawer-body::-webkit-scrollbar-track {
            background: #F5F7FA;
            border-radius: 3px;
        }

        .drawer-body::-webkit-scrollbar-thumb {
            background: #D9DDE3;
            border-radius: 3px;
        }

        .drawer-body::-webkit-scrollbar-thumb:hover {
            background: #6B7686;
        }

        .drawer-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            padding: 16px 24px;
            border-top: 1px solid var(--border, #D9DDE3);
            flex-shrink: 0;
            background: var(--white, #fff);
        }

        .drawer-footer .btn {
            min-width: 100px;
            justify-content: center;
        }

        .drawer-footer .btn-primary {
            background: #134261;
            border-color: #134261;
            color: #fff;
        }

        .drawer-footer .btn-primary:hover {
            background: #2164A6;
        }

        /* Form Sections in Drawer */
        .form-section {
            margin-bottom: 24px;
        }

        .form-section-title {
            font-size: 11px;
            font-weight: 800;
            color: #6B7686;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding-bottom: 8px;
            border-bottom: 1px solid #D9DDE3;
            margin-bottom: 16px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 14px;
        }

        .form-row .form-field:only-child,
        .form-field.full {
            grid-column: 1 / -1;
        }

        .form-field {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .form-field label {
            font-size: 12px;
            font-weight: 700;
            color: #134261;
        }

        .form-field label .req {
            color: #DC2626;
        }

        .form-field input,
        .form-field select,
        .form-field textarea {
            border: 1px solid #D9DDE3;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 13px;
            color: #2E2E2E;
            background: #fff;
            transition: 0.15s;
            width: 100%;
        }

        .form-field input:focus,
        .form-field select:focus,
        .form-field textarea:focus {
            outline: none;
            border-color: #2164A6;
            box-shadow: 0 0 0 3px rgba(33, 100, 166, 0.12);
        }

        .form-field textarea {
            min-height: 80px;
            resize: vertical;
        }

        .form-field input[readonly] {
            background: #F5F7FA;
            color: #6B7686;
        }

        /* Repeater in Drawer */
        .repeater {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .repeater-items {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .repeater-item {
            border: 1px solid #D9DDE3;
            border-radius: 12px;
            padding: 14px;
            position: relative;
            background: #fff;
        }

        .repeater-item .form-row:last-child {
            margin-bottom: 0;
        }

        .repeater-remove-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: 1px solid #D9DDE3;
            background: #fff;
            color: #6B7686;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s;
        }

        .repeater-remove-btn:hover {
            background: rgba(220, 38, 38, 0.10);
            color: #DC2626;
            border-color: #DC2626;
        }

        .repeater-remove-btn svg {
            width: 12px;
            height: 12px;
        }

        .repeater-add-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(33, 100, 166, 0.12);
            color: #2164A6;
            border: 1px dashed #4A8AC9;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.15s;
            width: fit-content;
        }

        .repeater-add-btn:hover {
            background: #2164A6;
            color: #fff;
            border-color: #2164A6;
        }

        .repeater-add-btn svg {
            width: 14px;
            height: 14px;
        }

        /* File Upload in Drawer */
        .file-upload {
            border: 2px dashed #D9DDE3;
            border-radius: 8px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: 0.15s;
            background: #F5F7FA;
            display: block;
        }

        .file-upload:hover {
            border-color: #2164A6;
            background: rgba(33, 100, 166, 0.12);
        }

        .file-upload .placeholder-data p {
            margin: 0;
            color: #6B7686;
            font-weight: 600;
            font-size: 12px;
        }

        .file-upload .placeholder-data i {
            font-size: 18px;
            display: block;
            margin-bottom: 4px;
            color: #2164A6;
        }

        .file-upload .file-input {
            display: none;
        }

        .file-upload .preview {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
        }

        .preview-item {
            border: 1px solid #D9DDE3;
            border-radius: 8px;
            padding: 4px;
            background: #fff;
            max-width: 80px;
            text-align: center;
        }

        .preview-item img {
            width: 100%;
            height: 60px;
            object-fit: cover;
            border-radius: 4px;
        }

        .preview-item .file-name {
            font-size: 9px;
            color: #6B7686;
            display: block;
            padding: 2px;
            word-break: break-all;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .preview-item .file-icon {
            font-size: 24px;
            display: block;
            padding: 8px 0;
        }

        /* Drawing Items */
        .drawing-item {
            border: 1px solid #D9DDE3;
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 12px;
            position: relative;
        }

        .drawing-item .form-row:last-child {
            margin-bottom: 0;
        }

        .remove-item {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: 1px solid #D9DDE3;
            background: #fff;
            color: #6B7686;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s;
        }

        .remove-item:hover {
            background: rgba(220, 38, 38, 0.10);
            color: #DC2626;
            border-color: #DC2626;
        }

        .remove-item svg {
            width: 12px;
            height: 12px;
        }

        /* Loading Spinner */
        .loading-spinner {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            font-size: 14px;
            color: #6B7686;
        }

        .loading-spinner i {
            margin-right: 10px;
        }

        /* KPI Row */
        .kpi-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }

        @media (max-width: 1100px) {
            .kpi-row {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            .kpi-row {
                grid-template-columns: 1fr;
            }
        }

        .kpi {
            padding: 16px 18px;
            border-top: 3px solid #D9DDE3;
        }

        .kpi-active {
            border-top-color: #134261;
        }

        .kpi-followup {
            border-top-color: #D97706;
        }

        .kpi-estimation {
            border-top-color: #D97706;
        }

        .kpi-projects {
            border-top-color: #16A34A;
        }

        .kpi-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .kpi-label {
            font-size: 11px;
            font-weight: 700;
            color: #6B7686;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .kpi-figures {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin: 0;
        }

        .kpi-value {
            font-size: 32px;
            font-weight: 800;
            color: #134261;
            letter-spacing: -0.3px;
            line-height: 1;
        }

        .kpi-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .kpi-icon svg {
            width: 20px;
            height: 20px;
        }

        .kpi-icon.navy {
            background: rgba(19, 66, 97, 0.07);
            color: #134261;
        }

        .kpi-icon.warning {
            background: rgba(217, 119, 6, 0.12);
            color: #D97706;
        }

        .kpi-icon.orange {
            background: rgba(217, 119, 6, 0.12);
            color: #D97706;
        }

        .kpi-icon.success {
            background: rgba(22, 163, 74, 0.10);
            color: #16A34A;
        }

        .kpi-split {
            display: flex;
            gap: 0;
            border-top: 1px solid #D9DDE3;
            padding-top: 10px;
            margin-top: 4px;
        }

        .kpi-split-item {
            flex: 1;
        }

        .kpi-split-item:first-child {
            padding-right: 12px;
            border-right: 1px solid #D9DDE3;
        }

        .kpi-split-item:last-child {
            padding-left: 12px;
        }

        .ks-label {
            font-size: 10px;
            color: #6B7686;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .ks-value {
            font-size: 15px;
            font-weight: 800;
            color: #134261;
            margin-top: 1px;
        }

        /* Analytics Row */
        .analytics-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 12px;
            margin-bottom: 16px;
        }

        @media (max-width: 1100px) {
            .analytics-row {
                grid-template-columns: 1fr;
            }
        }

        .panel {
            padding: 16px 18px;
        }

        .section-head h3 {
            margin: 0 0 3px;
            font-size: 15px;
            font-weight: 700;
            color: #134261;
        }

        .section-head p {
            margin: 0;
            font-size: 12.5px;
            color: #6B7686;
        }

        /* Funnel */
        .funnel-step {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 9px;
        }

        .funnel-step .fs-label {
            width: 108px;
            font-size: 12px;
            font-weight: 700;
            color: #134261;
            flex-shrink: 0;
        }

        .funnel-step .fs-bar-wrap {
            flex: 1;
            background: #F5F7FA;
            border-radius: 7px;
            height: 26px;
            overflow: hidden;
            position: relative;
        }

        .funnel-step .fs-bar {
            height: 100%;
            border-radius: 7px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 9px;
            color: #fff;
            font-size: 11.5px;
            font-weight: 700;
            transition: width 0.4s;
            min-width: 30px;
        }

        .funnel-step .fs-count {
            width: 34px;
            text-align: right;
            font-size: 13px;
            font-weight: 800;
            color: #134261;
            flex-shrink: 0;
        }

        /* Chart */
        .chart-wrap {
            position: relative;
        }

        .chart-tooltip {
            position: absolute;
            background: #134261;
            color: #fff;
            font-size: 11.5px;
            font-weight: 600;
            padding: 8px 11px;
            border-radius: 8px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.12s ease;
            transform: translate(-50%, -110%);
            white-space: nowrap;
            z-index: 10;
            box-shadow: 0 10px 24px rgba(19, 66, 97, 0.12);
        }

        /* Filter Popup */
        .filter_popup_content {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            background: #fff;
            border-radius: 16px;
            max-width: 480px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 24px rgba(19, 66, 97, 0.12);
            z-index: 200;
            display: none;
            opacity: 0;
            transition: all 0.25s ease;
        }

        .filter_popup_content.active {
            display: block;
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .filter_popup_bg {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(19, 66, 97, 0.45);
            z-index: 190;
        }

        .filter_popup_bg.active {
            display: block;
        }

        .filter_heading {
            padding: 18px 22px;
            border-bottom: 1px solid #D9DDE3;
        }

        .filter_heading h4 {
            margin: 0;
            font-size: 15px;
            font-weight: 800;
            color: #134261;
        }

        .filter_heading .filter-close {
            cursor: pointer;
            font-size: 20px;
            color: #6B7686;
        }

        .filter_heading .filter-close:hover {
            color: #DC2626;
        }

        .filter_form {
            padding: 22px;
        }

/* ============================================================
   NAVY COLLAPSIBLE SIDEBAR — ref: employee_dashboard_8.html
   Restyles the existing .app_side_bar markup to a navy theme
   with an orange active accent and a collapse-to-icons mode.
   Appended last so it overrides the earlier light-theme rules.
   ============================================================ */
:root { --side-w: 236px; --side-w-collapsed: 74px; }

.app_side_bar {
    width: var(--side-w);
    background: linear-gradient(180deg, #0B3A63 0%, #0F4C81 100%) !important;
    color: #fff;
    border-right: none !important;
    box-shadow: 2px 0 22px rgba(19, 66, 97, 0.16);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}

/* content column follows the sidebar width */
@media (min-width: 993px) {
    .admin_right_content {
        width: calc(100% - var(--side-w));
        transition: width .25s cubic-bezier(.4,0,.2,1);
    }
}

/* brand / logo row */
.side_bar_logo {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    padding: 16px 16px !important;
    gap: 10px;
    overflow: hidden;
}
.side_bar_logo img { width: auto !important; height: 40px !important; }

.side_collapse_btn {
    width: 28px; height: 28px; border-radius: 8px; border: none;
    background: rgba(255,255,255,.10); color: rgba(255,255,255,.72);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: .15s; flex-shrink: 0;
}
.side_collapse_btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.side_collapse_btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }

/* category labels */
.admin_dash_cat h6 { color: rgba(255,255,255,.42) !important; }

/* links + accordion parents */
.admin_dash_btns .menu-item,
.accordion-button {
    color: rgba(255,255,255,.82) !important;
    border-radius: 9px !important;
    border: none !important;
}
.admin_dash_btns .menu-item:hover,
.accordion-button:hover,
.accordion-button:not(.collapsed) {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
}
.admin_dash_btns .menu-item svg,
.accordion-button svg { opacity: .9; }
.admin_dash_btns .menu-item svg path:not([fill]),
.accordion-button svg path:not([fill]) { stroke: rgba(255,255,255,.85) !important; }
.admin_dash_btns .menu-item svg path[fill],
.accordion-button svg path[fill] { fill: rgba(255,255,255,.85) !important; }
.admin_dash_btns .menu-item:hover svg path:not([fill]),
.accordion-button:hover svg path:not([fill]) { stroke: #fff !important; }
.accordion-button::after { filter: brightness(0) invert(1); opacity: .55; }

/* active */
.admin_dash_btns .menu-item.active,
.accordion-body .menu-item.active {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}
.admin_dash_btns .menu-item.active svg path:not([fill]),
.accordion-body .menu-item.active svg path:not([fill]) { stroke: #fff !important; }
.admin_dash_btns .menu-item.active svg path[fill],
.accordion-body .menu-item.active svg path[fill] { fill: #fff !important; }
.admin_dash_btns .menu-item.active::before,
.accordion-body .menu-item.active::before {
    background: #1B9AAA !important;
    width: 3px; height: 22px; left: 0; border-radius: 0 3px 3px 0;
}

/* navy scrollbar */
.admin_content::-webkit-scrollbar { width: 5px; }
.admin_content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }

/* Sidebar is fixed-width (non-collapsible). */

/* ---------- Sidebar bottom account/roles row (navy) ---------- */
.admin_botom_drop_down_container {
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,.1) !important;
    padding: 12px 14px !important;
    gap: 10px !important;
}
.admin_botom_drop_down_container .common_div {
    flex: 1;
    justify-content: center;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.8) !important;
    padding: 8px 10px;
}
.admin_botom_drop_down_container .common_div:hover {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}
.admin_botom_drop_down_container .common_div svg path { fill: rgba(255,255,255,.85) !important; }
.admin_botom_drop_down_container .common_div:hover svg path,
.admin_botom_drop_down_container .common_div.active svg path { fill: #fff !important; }
/* popups keep their light styling; nudge them above the row */
.admin_botom_drop_down_container .common_popup_bg .links a { color: var(--navy,#134261) !important; }
.admin_botom_drop_down_container .common_popup_bg .links a svg path { fill: var(--navy,#134261) !important; }
body.sidebar-collapsed .admin_botom_drop_down_container { flex-direction: column; gap: 8px; padding: 12px 10px !important; }

/* ---------- Topbar hamburger toggle ---------- */
.topbar-menu-toggle {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border, #D9DDE3);
    background: var(--white, #fff); color: var(--navy, #134261);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: .15s; padding: 0;
}
.topbar-menu-toggle:hover { background: var(--gray-bg, #F5F7FA); }
.topbar-menu-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* the old mobile-only toggle is replaced by the topbar hamburger */
.side_bar_menu_btn { display: none !important; }

/* header brand logo image */
.brand .brand-logo-img { height: 36px; width: auto; max-width: 160px; object-fit: contain; display: block; }

/* header hamburger shows/hides the sidebar on desktop (content reflows) */
@media (min-width: 993px) {
    body.sidebar-hidden .app_side_bar { transform: translateX(-100%); }
    body.sidebar-hidden .admin_right_content { width: 100%; }
}

/* ---------- Sidebar proportion polish (match reference) ---------- */
.admin_content { padding: 8px 12px 20px !important; gap: 2px !important; }
.admin_dash_cat { margin-top: 6px; }
.admin_dash_cat h6 { padding: 14px 10px 6px !important; letter-spacing: 1px !important; }
.admin_dash_btns .menu-item, .accordion-button {
    padding: 9px 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    gap: 11px !important;
    margin-bottom: 2px;
}
.admin_dash_btns .menu-item svg, .accordion-button svg { width: 17px; height: 17px; }
.accordion-body { padding: 2px 0 2px 22px !important; }
.accordion-body .menu-item { padding: 7px 10px !important; font-size: 12.8px !important; font-weight: 500 !important; }

/* ---------- Sidebar brand header (ref: employee_dashboard_8) ---------- */
.side_bar_logo.side-brand {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 11px;
    padding: 18px 16px 16px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
}
.side-brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.14);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.side-brand-mark svg { width: 20px; height: 20px; }
.side-brand-text { line-height: 1.18; overflow: hidden; white-space: nowrap; }
.side-brand-text .b-name { font-size: 15px; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.side-brand-text .tag { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: 1.1px; text-transform: uppercase; }

/* ===== MODERN DESIGN SYSTEM: CARDS & COMPONENTS ===== */

/* Card Base Styling */
.card, .panel {
  background: var(--white);
  border: 1px solid var(--border, #D9DDE3);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(19, 66, 97, 0.05));
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md, 0 4px 14px rgba(19, 66, 97, 0.07));
}

/* Panel styling for content sections */
.panel {
  padding: 16px 18px;
  margin-bottom: 14px;
}

/* ===== KPI CARDS ===== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 1320px) { .kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpi-row { grid-template-columns: 1fr; } }

.kpi {
  padding: 14px 15px;
}

.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted, #6B7686);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

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

.kpi-icon svg {
  width: 16px;
  height: 16px;
}

.kpi-icon.navy { background: var(--navy-soft, rgba(19, 66, 97, 0.07)); color: var(--navy, #134261); }
.kpi-icon.accent { background: var(--accent-soft, rgba(33, 100, 166, 0.12)); color: var(--accent, #2164A6); }
.kpi-icon.success { background: var(--success-soft, rgba(22, 163, 74, 0.10)); color: var(--success, #16A34A); }
.kpi-icon.danger { background: var(--danger-soft, rgba(220, 38, 38, 0.10)); color: var(--danger, #DC2626); }
.kpi-icon.warning { background: var(--warning-soft, rgba(217, 119, 6, 0.12)); color: var(--warning, #D97706); }
.kpi-icon.orange { background: var(--orange-soft, rgba(217, 119, 6, 0.12)); color: var(--orange, #D97706); }

.kpi-figures {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy, #134261);
  letter-spacing: -0.3px;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
}

.kpi-delta svg { width: 9px; height: 9px; }
.kpi-delta.up { background: var(--success-soft, rgba(22, 163, 74, 0.10)); color: var(--success, #16A34A); }
.kpi-delta.down { background: var(--danger-soft, rgba(220, 38, 38, 0.10)); color: var(--danger, #DC2626); }
.kpi-delta.flat { background: var(--gray-bg, #F5F7FA); color: var(--text-muted, #6B7686); }

/* ===== MODERN BUTTONS ===== */
.btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 15px;
  border: 1px solid var(--border, #D9DDE3);
  background: var(--white);
  color: var(--text, #2E2E2E);
  transition: 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: var(--gray-bg, #F5F7FA);
}

.btn-primary, .btn-primary-modern {
  background: var(--navy, #134261);
  border-color: var(--navy, #134261);
  color: var(--white);
}

.btn-primary:hover, .btn-primary-modern:hover {
  background: var(--navy-light, #2164A6);
}

.btn svg { width: 15px; height: 15px; }

.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent, #2164A6);
  box-shadow: 0 0 0 3px rgba(33, 100, 166, 0.1);
}

input::placeholder, textarea::placeholder {
  color: #A7AFBC;
}

/* ===== TABLE STYLING ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #F3F6FA;
  color: var(--text-muted, #6B7686);
  text-align: left;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border, #D9DDE3);
  white-space: nowrap;
}

thead th .arrow {
  color: var(--text-muted, #6B7686);
  margin-left: 5px;
  font-size: 10px;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #F0F2F6;
  color: var(--text, #2E2E2E);
  white-space: nowrap;
}

tbody tr {
  transition: background 0.12s ease;
  cursor: pointer;
}

tbody tr:nth-child(even) {
  background: #FAFBFD;
}

tbody tr:hover {
  background: var(--accent-soft, rgba(33, 100, 166, 0.12));
}

/* ===== STATUS PILLS ===== */
.status-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.status-pill svg { width: 11px; height: 11px; }

.status-pill.present, .badge.present { background: var(--success-soft, rgba(22, 163, 74, 0.10)); color: var(--success, #16A34A); }
.status-pill.absent, .badge.absent { background: var(--danger-soft, rgba(220, 38, 38, 0.10)); color: var(--danger, #DC2626); }
.status-pill.leave, .badge.leave { background: var(--orange-soft, rgba(217, 119, 6, 0.12)); color: var(--orange, #D97706); }
.status-pill.pending, .badge.pending { background: var(--warning-soft, rgba(217, 119, 6, 0.12)); color: var(--warning, #D97706); }
.status-pill.approved, .badge.approved { background: var(--success-soft, rgba(22, 163, 74, 0.10)); color: var(--success, #16A34A); }

/* ===== SECTION HEADERS ===== */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 14px;
  flex-wrap: wrap;
}

.section-head h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #134261);
}

.section-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted, #6B7686);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
}

.empty-illustration {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: var(--accent-soft, rgba(33, 100, 166, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #2164A6);
  margin-bottom: 18px;
}

.empty-illustration svg {
  width: 38px;
  height: 38px;
}

.empty-state h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy, #134261);
}

.empty-state p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted, #6B7686);
  max-width: 340px;
  line-height: 1.6;
}

/* ===== PAGINATION ===== */
.pagination-container, .pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border, #D9DDE3);
}

.pagination, .pager-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-link, .pg-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border, #D9DDE3);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #6B7686);
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-link:hover, .pg-btn:hover {
  border-color: var(--accent, #2164A6);
  color: var(--navy, #134261);
}

.page-link.active, .pg-btn.active {
  background: var(--navy, #134261);
  border-color: var(--navy, #134261);
  color: #fff;
}

.page-link.disabled, .pg-btn.disabled {
  opacity: 0.45;
  cursor: default;
}

/* ===== ACCESSIBILITY ===== */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent, #2164A6);
  outline-offset: 2px;
}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 700px) {
  main { padding: 18px 14px 40px; }
  
  .btn {
    flex: 1;
    justify-content: center;
  }
  
  table {
    font-size: 12px;
  }
  
  tbody td {
    padding: 8px 10px;
  }
  
  thead th {
    padding: 9px 10px;
    font-size: 10px;
  }
}

/* ============================================================
   VOUCHER COMMAND CENTER — faithful port of voucher-command-center.html
   Scoped to .voucher-cc so it never affects the shared design system.
   ============================================================ */
.voucher-cc .kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px;}
@media(max-width:1100px){.voucher-cc .kpi-row{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){.voucher-cc .kpi-row{grid-template-columns:1fr;}}
.voucher-cc .kpi{padding:18px 20px;border-top:none;}
.voucher-cc .kpi-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px;}
.voucher-cc .kpi-label{font-size:11px;font-weight:700;color:#6B7686;letter-spacing:.7px;text-transform:uppercase;}
.voucher-cc .kpi-icon{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.voucher-cc .kpi-icon svg{width:19px;height:19px;}
.voucher-cc .kpi-figures{display:flex;align-items:baseline;gap:8px;margin-bottom:3px;}
.voucher-cc .kpi-figures .n{font-size:26px;font-weight:800;color:#134261;letter-spacing:-.4px;}
.voucher-cc .kpi-figures .unit{font-size:12px;font-weight:600;color:#6B7686;}
.voucher-cc .kpi-amount{font-size:14.5px;font-weight:700;color:#2E2E2E;margin-bottom:12px;}
.voucher-cc .kpi-bar-track{height:6px;border-radius:4px;background:#F5F7FA;overflow:hidden;margin-bottom:10px;}
.voucher-cc .kpi-bar-fill{height:100%;border-radius:4px;}
.voucher-cc .kpi-foot{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;}
.voucher-cc .kpi-foot .muted{color:#6B7686;font-weight:500;}

/* donut card */
.voucher-cc .donut-card{padding:18px 20px;display:flex;flex-direction:column;}
.voucher-cc .donut-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.voucher-cc .donut-head .t{font-size:11px;font-weight:700;color:#6B7686;letter-spacing:.7px;text-transform:uppercase;}
.voucher-cc .donut-head .s{font-size:11px;color:#6B7686;font-weight:500;}
.voucher-cc .donut-body{display:flex;align-items:center;gap:14px;flex:1;}
.voucher-cc .donut-wrap{position:relative;width:104px;height:104px;flex-shrink:0;}
.voucher-cc .donut-wrap svg{display:block;width:104px;height:104px;}
.voucher-cc .donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.voucher-cc .donut-center .v{font-size:15px;font-weight:800;color:#134261;line-height:1.1;}
.voucher-cc .donut-center .l{font-size:8px;font-weight:700;color:#6B7686;letter-spacing:.4px;text-transform:uppercase;margin-top:2px;}
.voucher-cc .donut-legend{display:flex;flex-direction:column;gap:8px;flex:1;margin-top:0;}
.voucher-cc .donut-legend .dl-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#6B7686;font-weight:600;}
.voucher-cc .donut-legend .dl-left{display:flex;align-items:center;gap:7px;}
.voucher-cc .donut-legend .dl-dot{width:8px;height:8px;border-radius:50%;}
.voucher-cc .donut-legend b{color:#134261;font-weight:800;}

/* charts row */
.voucher-cc .charts-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px;}
@media(max-width:900px){.voucher-cc .charts-row{grid-template-columns:1fr;}}
.voucher-cc .panel{padding:18px 20px;}
.voucher-cc .panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.voucher-cc .panel-head .t{font-size:13.5px;font-weight:700;color:#134261;}
.voucher-cc .panel-head .s{font-size:11px;color:#6B7686;font-weight:500;}
.voucher-cc .bar-list{display:flex;flex-direction:column;gap:11px;}
.voucher-cc .bar-item .bi-top{display:flex;justify-content:space-between;font-size:12px;font-weight:600;margin-bottom:5px;color:#2E2E2E;}
.voucher-cc .bar-track{height:8px;border-radius:5px;background:#F5F7FA;overflow:hidden;}
.voucher-cc .bar-fill{height:100%;border-radius:5px;}
.voucher-cc .rank-list{display:flex;flex-direction:column;gap:13px;}
.voucher-cc .rank-item{display:flex;align-items:center;gap:10px;}
.voucher-cc .rank-num{width:22px;height:22px;border-radius:7px;background:#F5F7FA;color:#134261;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.voucher-cc .rank-body{flex:1;min-width:0;}
.voucher-cc .rank-name{font-size:12.5px;font-weight:600;color:#2E2E2E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.voucher-cc .rank-track{height:4px;border-radius:3px;background:#F5F7FA;margin-top:5px;overflow:hidden;}
.voucher-cc .rank-fill{height:100%;border-radius:3px;background:#2164A6;}
.voucher-cc .rank-val{font-size:12px;font-weight:700;color:#134261;flex-shrink:0;}

/* stats row */
.voucher-cc .stats-row{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-bottom:18px;}
@media(max-width:1100px){.voucher-cc .stats-row{grid-template-columns:repeat(3,1fr);}}
@media(max-width:600px){.voucher-cc .stats-row{grid-template-columns:repeat(2,1fr);}}
.voucher-cc .stat{display:flex;align-items:center;gap:13px;padding:16px 18px;}
.voucher-cc .stat-icon{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.voucher-cc .stat-icon svg{width:19px;height:19px;}
.voucher-cc .stat-v{font-size:17px;font-weight:800;color:#134261;line-height:1.15;}
.voucher-cc .stat-l{font-size:10.5px;font-weight:700;color:#6B7686;letter-spacing:.4px;text-transform:uppercase;margin-top:1px;}

/* ============================================================
   FILTER POPUPS → RIGHT SIDEBAR DRAWER (vd-drawer style)
   Every .filter_popup_content now slides in from the right as a
   full-height drawer instead of a floating/centered popup.
   ============================================================ */
.filter_popup_content {
    top: 0 !important;
    right: 0 !important;
    bottom: 0;
    height: 100vh;
    max-height: 100vh;
    width: min(440px, 100vw) !important;
    border-radius: 0 !important;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s, visibility .3s !important;
    box-shadow: -8px 0 40px rgba(19, 66, 97, 0.16);
    display: flex;
    flex-direction: column;
    z-index: 201;
    overflow: hidden;
}
.filter_popup_content.active {
    transform: translateX(0) !important;
    opacity: 1;
    visibility: visible;
}
.filter_popup_content .filter_heading {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter_popup_content .filter_form {
    flex: 1;
    overflow-y: auto;
}
/* the dim backdrop sits just under the drawer */
.filter_popup_bg { z-index: 200; }

/* ============================================================
   VOUCHER CREATE / EDIT → vd-drawer look (right sidebar drawer)
   Restyles the existing .st-popup voucher create modals + the
   nested "add ledger" popup to the reference command-center look
   WITHOUT touching their form ids / JS / posting logic.
   ============================================================ */
/* force the voucher create/edit popups to be true right-side drawers
   (overrides the centered-modal .st-popup blocks); slides via visibility/opacity
   so the content transform can animate in from the right, like the HTML .vd-drawer */
.st-popup.voucher-drawer,
.st-popup.voucher-line-drawer {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    padding: 0 !important;
    background: rgba(15, 32, 49, .42) !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease !important;
}
.st-popup.voucher-drawer.show,
.st-popup.voucher-line-drawer.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.st-popup.voucher-drawer .st-popup-content,
.st-popup.voucher-line-drawer .st-popup-content {
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1) !important;
    box-shadow: -18px 0 48px rgba(19, 66, 97, .20) !important;
    display: flex; flex-direction: column;
}
.st-popup.voucher-drawer.show .st-popup-content,
.st-popup.voucher-line-drawer.show .st-popup-content { transform: translateX(0) !important; }

.voucher-drawer .st-popup-content { width: min(700px, 100vw) !important; }
.voucher-drawer .st-popup-heading {
    padding: 16px 22px !important;
    border-bottom: 1px solid #D9DDE3 !important;
    position: sticky; top: 0; background: #fff; z-index: 3;
}
.voucher-drawer .st-popup-heading h3 { font-size: 16px; font-weight: 800; color: #134261; }
.voucher-drawer .st-popup-container { padding: 20px 22px 28px !important; }

/* --- v6 #vdDrawer parity: pinned head/toolbar, scrolling body, pinned foot ---
   .st-popup-content is already `display:flex; flex-direction:column; height:100vh`,
   so making the container the flex child gives the mockup's single scroll region.
   The foot stays INSIDE the <form> (the submit handlers rely on that) and is
   pinned with position:sticky, which reads identically to the mockup's bar. */
.voucher-drawer .st-popup-heading.vd-head,
.voucher-line-drawer .st-popup-heading.vd-head,
.voucher-drawer .vd-toolbar { flex-shrink: 0; }
.voucher-drawer .st-popup-container,
.voucher-line-drawer .st-popup-container {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 0 !important;
}
.voucher-drawer .st-popup-container > form,
.voucher-line-drawer .st-popup-container > form { display: flex; flex-direction: column; min-height: 100%; }
.voucher-drawer .st-popup-container > form > .vd-foot,
.voucher-line-drawer .st-popup-container > form > .vd-foot { margin-top: auto; }
.voucher-drawer .form_discard_save.vd-foot,
.voucher-drawer .vd-foot,
.voucher-line-drawer .form_discard_save.vd-foot,
.voucher-line-drawer .vd-foot {
    position: sticky; bottom: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 0; margin: 18px 0 0;
    border-top: 1px solid var(--border, #D9DDE3); background: #fff;
}
/* the mockup's autosave strip (@keyframes pulse already exists at ~7310) */
.voucher-drawer .vd-toolbar { margin: 0; }

/* ---- .vd-select : the native <select> that replaces the custom pickers ----
   Matches the mockup's `.vd-field select` spec exactly. */
.vd-drawerize .vd-select {
    font-family: inherit; font-size: 13px; color: var(--text, #2E2E2E); background-color: #fff;
    border: 1.4px solid var(--border, #D9DDE3); border-radius: var(--radius-sm, 9px);
    padding: 9px 34px 9px 11px; width: 100%; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7686' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 15px; background-position: calc(100% - 11px) center;
}
.vd-drawerize .vd-select:hover { border-color: #c3cad4; }
.vd-drawerize .vd-select:focus {
    outline: none; border-color: var(--accent, #2164A6);
    box-shadow: 0 0 0 3px var(--accent-soft, rgba(33,100,166,.12));
}
/* the disabled placeholder option renders muted, like a real placeholder */
.vd-drawerize .vd-select:has(option[value=""]:checked) { color: #a7b0bd; }
.vd-drawerize .vd-select option { color: var(--text, #2E2E2E); }

/* "Add Ledger" / "Add Sub Ledger" — a native <select> cannot hold a footer button,
   so it moves out to a quiet inline action directly beneath the field. */
.vd-drawerize .vd-inline-add {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
    font-family: inherit; font-size: 12px; font-weight: 600;
    color: var(--accent, #2164A6); background: none; border: none; padding: 2px 0; cursor: pointer;
}
.vd-drawerize .vd-inline-add:hover { text-decoration: underline; }
.vd-drawerize .vd-inline-add svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* native <select> / .form-select inside a drawer: same box as the picker */
.vd-drawerize .vd-field > select,
.vd-drawerize .vd-field .form-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7686' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 15px;
    background-position: calc(100% - 11px) center;
}

/* ============================================================
   VIEW drawer (mockup openViewDrawer): read-only summary, read-only
   ledger table, narration note, Finance-Manager approval, signed docs.
   Ported verbatim from the combined mockup; scoped to .vd-drawerize.
   Vars use var(..., fallback) — they live on .voucher-drawer and do not
   cascade into every drawer.
   ============================================================ */
.vd-drawerize .vd-view-summary { border: 1px solid var(--border, #D9DDE3); border-radius: var(--radius-md, 12px); overflow: hidden; }
.vd-drawerize .vd-view-summary .vr {
    display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px;
    border-bottom: 1px solid var(--border, #D9DDE3); font-size: 12.5px;
    /* Bootstrap ships a `.vr` UTILITY (vertical rule):
         .vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);
             min-height:1em;background-color:currentcolor;opacity:.25}
       bootstrap.min.css and this file both define `.vr`, and the mockup's
       `.vr` means "view row" — a different thing entirely. Overriding only
       `display` left Bootstrap's width/background/opacity in force, which
       collapsed every summary row to a 1px, 25%-opacity grey bar and wrapped
       the values one character per line. The mockup has no Bootstrap, so it
       never hits this. Reset the four leftovers explicitly. */
    width: auto;
    min-height: 0;
    align-self: auto;
    background-color: transparent;
    opacity: 1;
}
.vd-drawerize .vd-view-summary .vr:last-child { border-bottom: none; }
.vd-drawerize .vd-view-summary .vr .l { color: var(--text-muted, #6B7686); }
.vd-drawerize .vd-view-summary .vr .v { font-weight: 700; color: var(--text, #2E2E2E); text-align: right; }

.vd-drawerize .vd-ro-lines { border: 1px solid var(--border, #D9DDE3); border-radius: var(--radius-md, 12px); overflow: hidden; }
.vd-drawerize .vd-ro-lines table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 12.5px; margin: 0; }
.vd-drawerize .vd-ro-lines th {
    background: var(--navy, #134261); color: #fff; font-size: 10px; font-weight: 700;
    letter-spacing: .3px; text-transform: uppercase; padding: 9px 12px; text-align: left;
}
.vd-drawerize .vd-ro-lines th.num, .vd-drawerize .vd-ro-lines td.num { text-align: right; font-variant-numeric: tabular-nums; }
.vd-drawerize .vd-ro-lines td { padding: 9px 12px; border-top: 1px solid var(--border, #D9DDE3); color: var(--text, #2E2E2E); }
.vd-drawerize .vd-ro-lines tbody tr:nth-child(even) { background: var(--gray-bg, #F5F7FA); }
.vd-drawerize .vd-ro-lines tfoot td {
    background: var(--navy-soft, rgba(19,66,97,.07)); font-weight: 800; color: var(--navy, #134261);
    border-top: 1.5px solid var(--border, #D9DDE3);
}
.vd-drawerize .vd-ro-note {
    font-size: 12.5px; color: var(--text-muted, #6B7686); line-height: 1.5;
    background: var(--gray-bg, #F5F7FA); border: 1px solid var(--border, #D9DDE3);
    border-radius: var(--radius-sm, 9px); padding: 11px 13px;
}

/* status chip in the view head */
.vd-drawerize .vd-vstatus { font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.vd-drawerize .vd-vstatus.ok { background: rgba(22,163,74,.12); color: var(--success, #16A34A); }
.vd-drawerize .vd-vstatus.pending { background: var(--info-soft, rgba(37,99,235,.10)); color: var(--info, #2563EB); }
.vd-drawerize .vd-vstatus.rej { background: var(--danger-soft, rgba(220,38,38,.10)); color: var(--danger, #DC2626); }

/* Finance-Manager approval */
.vd-drawerize .vd-approval-actions { display: flex; gap: 10px; }
.vd-drawerize .vd-approval-hint { font-size: 11.5px; color: var(--text-muted, #6B7686); margin-top: 8px; }
.vd-drawerize .vd-approval-done {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
    padding: 11px 14px; border-radius: var(--radius-sm, 9px);
}
.vd-drawerize .vd-approval-done svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.vd-drawerize .vd-approval-done.ok { background: rgba(22,163,74,.12); color: var(--success, #16A34A); }
.vd-drawerize .vd-approval-done.rej { background: var(--danger-soft, rgba(220,38,38,.10)); color: var(--danger, #DC2626); }
.vd-drawerize .vd-approval-done.pending { background: var(--info-soft, rgba(37,99,235,.10)); color: var(--info, #2563EB); }
.vd-drawerize .btn.btn-approve {
    flex: 1; background: var(--success, #16A34A); color: #fff; border: 1.4px solid var(--success, #16A34A); justify-content: center;
}
.vd-drawerize .btn.btn-approve:hover { background: #128a3e; border-color: #128a3e; }
.vd-drawerize .btn.btn-outline-red { background: #fff; border: 1.4px solid #f0bcbc; color: #a32424; }
.vd-drawerize .btn.btn-outline-red:hover { background: #a32424; border-color: #a32424; color: #fff; }
.vd-drawerize .btn.btn-outline-red svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.vd-drawerize .btn.btn-outline-red.vd-reject { flex: 1; justify-content: center; }

/* signed-document boxes */
.vd-drawerize .vd-doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vd-drawerize .vd-doc {
    position: relative; border: 1px solid var(--border, #D9DDE3); border-radius: var(--radius-md, 12px);
    background: var(--gray-bg, #F5F7FA); padding: 14px; cursor: pointer; text-align: center;
    transition: all .16s; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.vd-drawerize .vd-doc:hover { border-color: var(--accent, #2164A6); box-shadow: var(--shadow-md, 0 4px 14px rgba(19,66,97,.10)); transform: translateY(-2px); }
.vd-drawerize .vd-doc .stamp {
    position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
    color: var(--success, #16A34A); background: rgba(22,163,74,.12); border: 1px solid rgba(22,163,74,.3);
    padding: 3px 7px; border-radius: 6px;
}
.vd-drawerize .vd-doc .stamp svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.6; fill: none; }
.vd-drawerize .doc-thumb {
    width: 100px; height: 130px; background: #fff; border: 1px solid var(--border, #D9DDE3); border-radius: 6px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(19,66,97,.06)); padding: 12px 11px 10px;
    display: flex; flex-direction: column; gap: 7px; align-items: flex-start; margin-top: 4px;
}
.vd-drawerize .doc-thumb .bar { height: 5px; border-radius: 3px; background: var(--navy, #134261); }
.vd-drawerize .doc-thumb .dt-line { height: 4px; border-radius: 3px; background: #dfe4ea; }
.vd-drawerize .doc-thumb .w40 { width: 40%; }
.vd-drawerize .doc-thumb .w60 { width: 60%; }
.vd-drawerize .doc-thumb .w80 { width: 80%; }
.vd-drawerize .doc-thumb .w90 { width: 90%; }
.vd-drawerize .doc-thumb svg.dt-sig { width: 74%; height: 20px; margin-top: auto; }
.vd-drawerize .doc-cap { font-size: 11px; color: var(--text-muted, #6B7686); line-height: 1.4; }
.vd-drawerize .doc-cap b { color: var(--navy, #134261); }
.vd-drawerize .vd-doc-hint {
    grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px;
    color: var(--text-muted, #6B7686); background: var(--navy-soft, rgba(19,66,97,.07));
    border-radius: var(--radius-sm, 9px); padding: 10px 12px; line-height: 1.45;
}
.vd-drawerize .vd-doc-hint svg { width: 15px; height: 15px; stroke: var(--navy, #134261); stroke-width: 2; fill: none; flex-shrink: 0; margin-top: 1px; }
.vd-drawerize .vd-doc-hint b { color: var(--navy, #134261); }
@media (max-width: 560px) { .vd-drawerize .vd-doc-grid { grid-template-columns: 1fr; } }

/* --- attachment / signed-voucher block (mockup attachBlock()) ---
   Scoped to .vd-drawerize so it covers BOTH the create drawers (.voucher-drawer)
   and the nested line drawers (.voucher-line-drawer) — both carry that class.
   All colours use var(..., fallback): the custom properties live on
   .voucher-drawer and do not cascade into every drawer. */
.vd-drawerize .vd-drop {
    display: block; border: 1.5px dashed var(--border, #D9DDE3); border-radius: var(--radius-md, 12px); padding: 20px;
    text-align: center; cursor: pointer; color: var(--text-muted, #6B7686); transition: all .15s;
    background: var(--gray-bg, #F5F7FA); position: relative; margin: 0;
}
.vd-drawerize .vd-drop:hover { border-color: var(--accent, #2164A6); background: var(--accent-soft, rgba(33,100,166,.12)); }
.vd-drawerize .vd-drop svg { width: 22px; height: 22px; stroke: var(--accent, #2164A6); stroke-width: 2; fill: none; margin-bottom: 6px; }
.vd-drawerize .vd-drop .t { font-size: 12.5px; }
.vd-drawerize .vd-drop .t b { color: var(--navy, #134261); }
.vd-drawerize .vd-drop .h { font-size: 11px; margin-top: 3px; color: #a7b0bd; }
.vd-drawerize .vd-drop .vd-drop-file { display: none; }
.vd-drawerize .vd-drop.has-file { border-style: solid; border-color: var(--success, #16A34A); background: rgba(22,163,74,.06); }
.vd-drawerize .vd-drop .vd-drop-name { font-size: 11.5px; font-weight: 700; color: var(--success, #16A34A); margin-top: 6px; }

.vd-drawerize .vd-sign-row {
    display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap;
    background: var(--navy-soft, rgba(19,66,97,.07)); border: 1px solid var(--border, #D9DDE3);
    border-radius: var(--radius-sm, 9px); padding: 12px 14px; margin-bottom: 10px;
}
.vd-drawerize .vd-sign-row .txt { font-size: 12px; color: var(--text, #2E2E2E); line-height: 1.45; flex: 1; min-width: 180px; }
.vd-drawerize .vd-sign-row .txt b { color: var(--navy, #134261); }
.vd-drawerize .vd-sign-row .vd-print-sign {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
    border-radius: 8px; padding: 8px 13px; border: 1px solid var(--border, #D9DDE3);
    background: #fff; color: var(--navy, #134261); cursor: pointer; white-space: nowrap; flex: 0 0 auto;
}
.vd-drawerize .vd-sign-row .vd-print-sign:hover { background: var(--gray-bg, #F5F7FA); }
.vd-drawerize .vd-sign-row .vd-print-sign svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; margin-bottom: 0; }
.voucher-drawer .c-date { color: #6B7686; font-size: 12.5px; }

/* ledger-line entry table — reference vd-lines look */
.voucher-drawer #entriesTable,
.voucher-drawer .table-responsive > table.table-bordered {
    border: 1px solid #D9DDE3; border-radius: 10px; overflow: hidden; margin-bottom: 0;
}
.voucher-drawer table.table thead.table-dark th,
.voucher-drawer #entriesTable thead th {
    background: #134261 !important; color: #fff !important;
    font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    border-color: #1c5075 !important; padding: 10px;
}
.voucher-drawer #entriesTable tbody td { padding: 9px 10px; font-size: 12.5px; vertical-align: middle; }
.voucher-drawer #entriesTable tbody tr:hover { background: rgba(33,100,166,.06); cursor: pointer; }
.voucher-drawer #entriesTable tfoot td {
    background: rgba(19,66,97,.06); font-weight: 800; color: #134261;
    border-top: 1.5px solid #D9DDE3; padding: 11px 10px; font-variant-numeric: tabular-nums;
}

/* footer buttons row */
.voucher-drawer .form_discard_save {
    border-top: 1px solid #D9DDE3; padding-top: 16px; margin-top: 14px;
}

/* hide the A4 print sheet on screen (it still renders when printing) */
@media screen {
    .voucher-drawer #printSection,
    .voucher-drawer .common_print_header,
    .voucher-drawer .print-body,
    .voucher-drawer .payment_print_footer { display: none !important; }
}

/* nested "Add ledger" line drawer — narrower, stacked above the create drawer */
.voucher-line-drawer { z-index: 10000 !important; }
.voucher-line-drawer .st-popup-content { width: min(460px, 100vw) !important; }
.voucher-line-drawer .st-popup-heading {
    padding: 16px 22px !important; border-bottom: 1px solid #D9DDE3 !important;
    position: sticky; top: 0; background: #fff; z-index: 3;
}
.voucher-line-drawer .st-popup-heading h3 { font-size: 15px; font-weight: 800; color: #134261; }
.voucher-line-drawer .st-popup-container { padding: 20px 22px 28px !important; }

/* ============================================================
   VOUCHER DRAWER — faithful vd-drawer enhancements
   (navy totals bar, live balance chip, fields, buttons,
    segmented debit/credit). Pure visual, maps to existing ids.
   ============================================================ */
/* solid navy totals bar (mockup .vd-totals) */
/*.voucher-drawer #entriesTable tfoot td {
    background: #134261 !important;
    color: #fff !important;
    border-top: none !important;
    border-color: #1c5075 !important;
    font-size: 14px;
    padding: 13px 12px !important;
}*/
.voucher-drawer #entriesTable tfoot #totalDebit { color: #7CE0A6 !important; }
.voucher-drawer #entriesTable tfoot #totalCredit { color: #9CC3F0 !important; }

/* live debit=credit balance chip (injected into the drawer header by JS) */
.voucher-drawer .vd-balance-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: .3px;
    padding: 5px 11px; border-radius: 999px; margin-left: 12px; white-space: nowrap;
}
.voucher-drawer .vd-balance-chip.ok { background: rgba(22,163,74,.12); color: #16A34A; }
.voucher-drawer .vd-balance-chip.off { background: rgba(220,38,38,.12); color: #DC2626; }
.voucher-drawer .vd-balance-chip svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* drawer form fields → mockup input look */
.voucher-drawer .st-popup-container .form_input input,
.voucher-drawer .st-popup-container textarea.editor,
.voucher-line-drawer .form_input input,
.voucher-line-drawer .form-select,
.voucher-line-drawer .slect-status .form-select {
    border: 1.4px solid #D9DDE3; border-radius: 8px; padding: 9px 11px;
    font-size: 13px; color: #2E2E2E; transition: border-color .15s, box-shadow .15s;
}
.voucher-drawer .st-popup-container .form_input input:focus,
.voucher-drawer .st-popup-container textarea.editor:focus,
.voucher-line-drawer .form_input input:focus,
.voucher-line-drawer .form-select:focus {
    outline: none; border-color: #2164A6; box-shadow: 0 0 0 3px rgba(33,100,166,.12);
}

/* footer action buttons → primary / ghost */
.voucher-drawer .form_discard_save .submit,
.voucher-line-drawer .form_discard_save .submit {
    background: #134261; border: 1px solid #134261; color: #fff;
    border-radius: 9px; padding: 9px 22px; font-weight: 600; font-size: 13px; transition: .14s;
}
.voucher-drawer .form_discard_save .submit:hover,
.voucher-line-drawer .form_discard_save .submit:hover { background: #2164A6; border-color: #2164A6; }
.voucher-drawer .form_discard_save .discard {
    background: #fff; border: 1px solid #D9DDE3; color: #6B7686;
    border-radius: 9px; padding: 9px 18px; font-weight: 600; font-size: 13px;
}
.voucher-drawer .form_discard_save .discard:hover { background: #F5F7FA; color: #134261; }

/* debit / credit select → segmented pill control (mockup .vd-seg) */
.voucher-line-drawer .slect-status #dc {
    appearance: none; -webkit-appearance: none;
    background: #F5F7FA; border: 1px solid #D9DDE3; border-radius: 9px;
    font-weight: 700; color: #134261; padding: 10px 12px; cursor: pointer;
}
.voucher-line-drawer .slect-status #dc:focus { border-color: #2164A6; box-shadow: 0 0 0 3px rgba(33,100,166,.12); }

/* ---------- Voucher register table → command-center table-card look ---------- */
.voucher-cc .common_table {
    background: #fff;
    border: 1px solid #D9DDE3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(19,66,97,.06);
}
.voucher-cc .common_table .table-responsive { overflow-x: auto; }
.voucher-cc .common_table table.table { width: 100%; border-collapse: collapse; margin: 0; min-width: 680px; }
/* light-blue .ptable header — bg #F3F7FD, navy text, sticky */
.voucher-cc .common_table table.table thead th {
    position: sticky; top: 0; z-index: 2;
    background: #F3F7FD !important;
    text-align: left;
    padding: 13px 22px !important;
    font-size: 11.5px;
    font-weight: 700;
    color: #1E3A8A !important;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: none !important;
    border-bottom: 1.5px solid #E1EAF8 !important;
    white-space: nowrap;
}
.voucher-cc .common_table table.table tbody td {
    padding: 13px 22px !important;
    font-size: 13.5px;
    border: none !important;
    border-bottom: 1px solid #EEF1F6 !important;
    color: #2E2E2E;
    vertical-align: middle;
    background: transparent !important;
}
/* zebra + hover per .ptable spec */
.voucher-cc .common_table table.table tbody tr:nth-child(even) td { background: #FAFBFD !important; }
.voucher-cc .common_table table.table tbody tr:hover td { background: #F3F7FD !important; }
.voucher-cc .common_table table.table tbody tr:last-child td { border-bottom: none !important; }
/* amount + action alignment */
.voucher-cc .common_table td .table_actions { display: flex; gap: 6px; align-items: center; }
.voucher-cc .common_table td .table_actions a,
.voucher-cc .common_table td .table_actions .status-icon-btn {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid #E1EAF8; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #6B7686; transition: .15s; padding: 0;
}
.voucher-cc .common_table td .table_actions a:hover,
.voucher-cc .common_table td .table_actions .status-icon-btn:hover { background: #F3F7FD; color: #134261; border-color: #C7DBF4; }
/* status badges → reference pill look */
.voucher-cc .complete_state,
.voucher-cc .hold_state,
.voucher-cc .cancelled_state {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.voucher-cc .complete_state  { background: rgba(22,163,74,.10); color: #16A34A; }
.voucher-cc .hold_state      { background: rgba(37,99,235,.10); color: #2563EB; }
.voucher-cc .cancelled_state { background: rgba(220,38,38,.10); color: #DC2626; }
/* pagination footer spacing */
.voucher-cc .pagination_contianer { padding: 14px 4px 0; }

/* ============================================================
   GLOBAL TABLE STYLE — matches voucher-command-center.html
   Applies the command-center "table-card" look to every
   .common_table list table across the app.
   ============================================================ */
.common_table {
    background: #fff !important;
    border: 1px solid #D9DDE3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(19, 66, 97, .06);
}
/* Fit table to container — no horizontal scroll, columns wrap instead.
   Works with DataTables (search/sort/paginate) since only layout changes. */
.common_table .table-responsive { overflow-x: visible !important; width: 100%; }
.common_table table.table,
.common_table table.dataTable {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: auto;
}
.common_table table.table thead th {
    background: #F5F7FA !important;
    text-align: left;
    padding: 12px 16px !important;
    font-size: 10.5px;
    font-weight: 700;
    color: #6B7686 !important;
    letter-spacing: .6px;
    text-transform: uppercase;
    border: none !important;
    border-bottom: 1px solid #D9DDE3 !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
.common_table table.table tbody td {
    padding: 13px 16px !important;
    font-size: 13.5px;
    border: none !important;
    border-bottom: 1px solid #EEF1F6 !important;
    color: #2E2E2E;
    vertical-align: middle;
    background: transparent !important;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* keep action-button cells on one line so icons don't stack awkwardly */
.common_table table.table td:has(.table_actions),
.common_table table.table td.action_icons { white-space: nowrap; }
/* Row hover tint. Was #F7F9FB (flat grey) and !important, which beat the v6
   rule further down the file and made that one dead code. Every mockup module
   hovers rows to a light blue, so use the accent tint here — the !important is
   retained only because this selector must keep winning over the older
   `.common_table` background rules directly above and below it. */
.common_table table.table tbody tr:hover td { background: var(--v6-accent-soft) !important; }
.common_table table.table tbody tr:last-child td { border-bottom: none !important; }
.common_table table.table tbody tr:nth-child(even) td { background: transparent; }

/* row action icon buttons */
.common_table td .table_actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.common_table td .table_actions > a,
.common_table td .table_actions > button,
.common_table td .table_actions .status-icon-btn {
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid #D9DDE3; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #6B7686; transition: .15s; padding: 0;
}
.common_table td .table_actions > a:hover,
.common_table td .table_actions > button:hover,
.common_table td .table_actions .status-icon-btn:hover { background: #F5F7FA; color: #134261; }

/* status pill badges (common state classes) */
.common_table .complete_state,
.common_table .progress_state,
.common_table .hold_state,
.common_table .cancelled_state,
.common_table .user_completed,
.common_table .user_in_progress,
.common_table .user_not_started,
.common_table .user_cancelled {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.common_table .complete_state,
.common_table .user_completed     { background: rgba(22,163,74,.10); color: #16A34A; }
.common_table .progress_state,
.common_table .user_in_progress   { background: rgba(37,99,235,.10); color: #2563EB; }
.common_table .hold_state,
.common_table .user_not_started   { background: rgba(217,119,6,.10); color: #D97706; }
.common_table .cancelled_state,
.common_table .user_cancelled     { background: rgba(220,38,38,.10); color: #DC2626; }

/* ============================================================
   TOPBAR POPUP ANCHOR FIX — notification & profile dropdowns
   Anchor the popups to the topbar-right cluster so they appear
   just under the bell / avatar instead of dropping off-screen.
   ============================================================ */
.topbar-right { position: relative; }
.topbar-right .notification_popup,
.topbar-right .profile_popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    z-index: 1200;
}
/* Popups live inside the sticky topbar (its own stacking context), so
   keep the dim backdrop below the topbar — otherwise it would cover them. */
.popup-backdrop { z-index: 38; }




.stage-pill svg {
    width: 11px;
    height: 11px;
}

.add-drawing-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px dashed var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    width: 100%;
    justify-content: center;
}
.add-drawing-item:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.common_table {
  overflow: visible;
}

/* ============================================================
   ENTITY TIMELINE PAGES — one shared look for the vehicle /
   employee / labor (and customer/supplier/subcontractor)
   lifecycle "timeline" pages. Add class `timeline-page` to the
   page's container wrapper to opt in; remove per-page <style>.
   ============================================================ */
.timeline-page .vehicle-card,
.timeline-page .employee-card,
.timeline-page .labor-card,
.timeline-page .customer-card,
.timeline-page .supplier-card,
.timeline-page .subcontractor-card,
.timeline-page .timeline-card,
.timeline-page .detail-card {
    background:#fff;
    border:1px solid #D9DDE3;
    border-radius:16px;
    box-shadow:0 1px 2px rgba(19,66,97,.05);
    padding:24px;
}
.timeline-page .timeline-card,
.timeline-page .detail-card { margin-top:18px; }

/* avatar — text initial */
.timeline-page .avatar{
    width:88px;height:88px;border-radius:50%;
    background:linear-gradient(140deg,#2164A6,#134261);
    display:flex;align-items:center;justify-content:center;
    color:#fff;font-size:38px;font-weight:800;flex-shrink:0;
}
/* avatar — photo */
.timeline-page .e-avatar{
    width:88px;height:88px;border-radius:50%;overflow:hidden;
    border:3px solid #fff;box-shadow:0 0 0 2px #2164A6;flex-shrink:0;
}
.timeline-page .e-avatar img{ width:100%;height:100%;object-fit:cover; }

.timeline-page .vehicle-name,
.timeline-page .employee-name,
.timeline-page .labor-name,
.timeline-page .customer-name,
.timeline-page .supplier-name{
    font-size:26px;font-weight:800;color:#134261;letter-spacing:-.3px;margin-bottom:10px;
}
.timeline-page .info-text{ color:#6B7686;font-size:14px;margin-bottom:6px; }
.timeline-page .info-text strong{ color:#2E2E2E; }
.timeline-page .status-badge{
    background:rgba(22,163,74,.10);color:#16A34A;font-weight:700;font-size:12px;
    padding:5px 14px;border-radius:999px;display:inline-block;
}

.timeline-page .timeline-title{
    font-size:15px;font-weight:700;color:#134261;margin-bottom:24px;display:flex;align-items:center;
}
.timeline-page .custom-timeline{ position:relative;display:flex;justify-content:space-between;align-items:flex-start; }
.timeline-page .custom-timeline::before{
    content:'';position:absolute;top:10px;left:0;width:100%;height:3px;background:#134261;z-index:1;
}
.timeline-page .timeline-item{ position:relative;z-index:2;text-align:center;width:20%; }
.timeline-page .timeline-dot{
    width:14px;height:14px;border-radius:50%;margin:auto;margin-bottom:10px;border:3px solid #fff;box-shadow:0 0 0 1px #D9DDE3;
}
.timeline-page .dot-blue{ background:#2164A6; }
.timeline-page .dot-purple{ background:#7C3AED; }
.timeline-page .dot-yellow{ background:#D97706; }
.timeline-page .dot-green{ background:#16A34A; }
.timeline-page .timeline-heading{ font-weight:700;font-size:13px;color:#2E2E2E;margin-bottom:4px; }
.timeline-page .timeline-date{ font-size:12.5px;color:#6B7686; }

/* nav pills → navy tokens */
.timeline-page .nav-pills{ gap:6px;border-bottom:1px solid #EEF1F6;padding-bottom:14px; }
.timeline-page .nav-pills .nav-link{
    color:#6B7686;border:1px solid #D9DDE3;border-radius:9px;font-weight:600;font-size:13px;padding:7px 16px;
}
.timeline-page .nav-pills .nav-link:hover{ background:#F5F7FA;color:#134261; }
.timeline-page .nav-pills .nav-link.active{ background:#134261;border-color:#134261;color:#fff; }

/* legacy `.print` Add buttons → primary button look */
.timeline-page .print{
    display:inline-flex;align-items:center;gap:6px;background:#134261;border:1px solid #134261;color:#fff;
    font-size:13px;font-weight:600;border-radius:9px;padding:8px 14px;margin-bottom:14px;cursor:pointer;
}
.timeline-page .print:hover{ background:#2164A6;border-color:#2164A6; }
.timeline-page .print i{ font-size:14px; }

/* plain tables inside detail-card inherit the shared list-table look */
.timeline-page .detail-card table.table{ width:100%;border-collapse:collapse;margin:0; }
.timeline-page .detail-card table.table thead th{
    background:#F5F7FA;text-align:left;padding:12px 16px;font-size:10.5px;font-weight:700;color:#6B7686;
    letter-spacing:.6px;text-transform:uppercase;border:none;border-bottom:1px solid #D9DDE3;white-space:nowrap;
}
.timeline-page .detail-card table.table tbody td{
    padding:13px 16px;font-size:13.5px;border:none;border-bottom:1px solid #EEF1F6;color:#2E2E2E;vertical-align:middle;
}
.timeline-page .detail-card table.table tbody tr:hover td{ background:#F7F9FB; }
.timeline-page .detail-card table.table tbody tr:last-child td{ border-bottom:none; }

@media(max-width:768px){
    .timeline-page .vehicle-name,
    .timeline-page .employee-name,
    .timeline-page .labor-name,
    .timeline-page .customer-name,
    .timeline-page .supplier-name{ font-size:22px; }
    .timeline-page .custom-timeline{ overflow-x:auto;gap:40px; }
    .timeline-page .timeline-item{ min-width:140px; }
}

/* ============================================================
   COMPANY SETTINGS PAGE
   ============================================================ */
.settings-page .company_setting_form.card{ padding:24px; }
/* tab bar → navy pill look consistent with the rest of the app */
.settings-page .nav-pills{
    background:#F5F7FA !important;
    border:1px solid #D9DDE3;
    border-radius:12px;
    padding:6px !important;
    gap:4px;
    display:flex !important;
    flex-wrap:wrap;
}
.settings-page .nav-pills .nav-link{
    color:#6B7686;
    background:transparent;
    border:none;
    border-radius:8px;
    font-weight:600;
    font-size:13px;
    padding:8px 15px;
}
.settings-page .nav-pills .nav-link:hover{ color:#134261; background:#fff; }
.settings-page .nav-pills .nav-link.active{
    background:#134261 !important;
    color:#fff !important;
    box-shadow:0 1px 3px rgba(19,66,97,.18);
}
/* section headings inside the tabs */
.settings-page .tab-content h4,
.settings-page .tab-content h5{ color:#134261; font-weight:700; }
/* save button → primary */
.settings-page .form_discard_save .submit{
    background:#134261;border:1px solid #134261;color:#fff;font-weight:600;font-size:13px;
    border-radius:9px;padding:9px 22px;transition:.14s;
}
.settings-page .form_discard_save .submit:hover{ background:#2164A6;border-color:#2164A6; }


.fs-t {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    padding-left: 9px;
    border-left: 3px solid var(--accent);
}
/* ============================================================
   PROCUREMENT PAGES — ST-ERP-Complete mockup look
   Scoped to .procurement-page so it never leaks to other modules.
   ============================================================ */
.procurement-page { --pp-blue:#2563EB; --pp-blue-dark:#1D4ED8; --pp-navy:#134261;
    --pp-ink:#1F2937; --pp-sec:#6B7686; --pp-border:#E5E9EF; --pp-soft:#EDEFF3;
    --pp-lblue:#F3F7FD; }

/* ---- page head ---- */
.procurement-page .page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:20px; flex-wrap:wrap; }
.procurement-page .page-head h1 { font-size:25px; font-weight:800; color:var(--pp-navy); letter-spacing:-.4px; margin:0 0 5px; }
.procurement-page .page-head .left_heading p, .procurement-page .page-head > div > p { font-size:13.5px; color:var(--pp-sec); margin:0; }

/* ---- toolbar buttons ---- */
.procurement-page .account_buttons { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.procurement-page .account_buttons > a.print,
.procurement-page .account_buttons > button:not(.btn-primary),
.procurement-page .account_buttons .dropdown > button.dropdown-toggle,
.procurement-page .filter_comp > .filter {
    display:inline-flex; align-items:center; gap:7px; height:40px; padding:9px 14px;
    font-size:13.5px; font-weight:600; border-radius:10px; border:1px solid var(--pp-border);
    background:#fff; color:var(--pp-ink); white-space:nowrap; transition:.15s; line-height:1;
}
.procurement-page .filter_comp > .filter i, .procurement-page .account_buttons button i,
.procurement-page .account_buttons > a.print i { font-size:15px; }
.procurement-page .filter_comp > .filter:hover,
.procurement-page .account_buttons > button:not(.btn-primary):hover { border-color:var(--pp-blue); color:var(--pp-navy); }
/* Add = primary blue (standalone .print link AND the Bootstrap dropdown toggle) */
.procurement-page .account_buttons > a.print,
.procurement-page .account_buttons .dropdown > button.btn-primary {
    background:var(--pp-blue); border-color:var(--pp-blue); color:#fff;
    box-shadow:0 2px 6px rgba(37,99,235,.28);
}
.procurement-page .account_buttons > a.print:hover,
.procurement-page .account_buttons .dropdown > button.btn-primary:hover { background:var(--pp-blue-dark); border-color:var(--pp-blue-dark); color:#fff; }
/* Add dropdown (Purchase Cycle "Add" menu) */
.procurement-page .account_buttons .dropdown-menu {
    border:1px solid var(--pp-border); border-radius:12px; box-shadow:0 14px 30px rgba(10,30,61,.12); padding:6px; min-width:210px;
}
.procurement-page .account_buttons .dropdown-menu .dropdown-item {
    display:flex; align-items:center; gap:10px; padding:9px 11px; border-radius:8px;
    font-size:13.5px; font-weight:600; color:var(--pp-ink);
}
.procurement-page .account_buttons .dropdown-menu .dropdown-item:hover { background:var(--pp-lblue); color:var(--pp-navy); }

/* ---- KPI cards ---- */
.procurement-page .kpi-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; }
@media(max-width:900px){ .procurement-page .kpi-row{ grid-template-columns:1fr; } }
.procurement-page .card.kpi {
    background:#fff; border:1px solid var(--pp-border); border-radius:12px; padding:15px 16px;
    box-shadow:0 1px 2px rgba(19,66,97,.05); transition:transform .16s, box-shadow .16s;
}
.procurement-page .card.kpi:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(19,66,97,.07); }
.procurement-page .kpi-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.procurement-page .kpi-label { font-size:10.5px; font-weight:700; color:var(--pp-sec); letter-spacing:.5px; text-transform:uppercase; margin-bottom:6px; }
.procurement-page .kpi-value { font-size:21px !important; font-weight:800; color:var(--pp-navy); letter-spacing:-.4px; line-height:1; }
.procurement-page .kpi-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.procurement-page .kpi-icon svg { width:21px; height:21px; }
.procurement-page .kpi-icon.navy    { background:rgba(37,99,235,.10); color:var(--pp-blue); }
.procurement-page .kpi-icon.success { background:rgba(22,163,74,.10); color:#16A34A; }
.procurement-page .kpi-icon.warning { background:rgba(217,119,6,.10); color:#D97706; }
.procurement-page .kpi-bar { height:5px; border-radius:99px; background:#EEF1F6; margin-top:12px; overflow:hidden; }
.procurement-page .kpi-fill { height:100%; border-radius:99px; }

/* ---- table -> .ptable look ---- */
.procurement-page .common_table {
    background:#fff; border:1px solid var(--pp-border); border-radius:16px;
    box-shadow:0 1px 2px rgba(19,66,97,.05); overflow:hidden;
}
.procurement-page .common_table .table-responsive { border-radius:16px; }
.procurement-page .common_table table.table { margin:0; }
.procurement-page .common_table table.table thead th {
    background:var(--pp-lblue); color:#1E3A8A; font-size:11.5px; font-weight:700; text-transform:uppercase;
    letter-spacing:.5px; padding:13px 16px; border-bottom:1.5px solid #E1EAF8; border-top:0; white-space:nowrap;
}
.procurement-page .common_table table.table tbody td {
    padding:12px 16px; border-bottom:1px solid var(--pp-soft); border-top:0;
    font-size:13.5px; color:var(--pp-ink); vertical-align:middle;
}
.procurement-page .common_table table.table tbody tr { transition:background .12s; }
.procurement-page .common_table table.table tbody tr:nth-child(even) { background:#FAFBFD; }
.procurement-page .common_table table.table tbody tr:hover { background:var(--pp-lblue); }
.procurement-page .common_table table.table tbody tr:last-child td { border-bottom:0; }

/* ---- table action buttons ---- */
.procurement-page .table_actions { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; }
.procurement-page .table_actions > a,
.procurement-page .table_actions > .btn-group > .dropdown-toggle,
.procurement-page .table_actions > .dropdown > .dropdown-toggle {
    width:32px; height:32px; border-radius:8px; border:1px solid var(--pp-border); background:#fff;
    display:inline-flex; align-items:center; justify-content:center; color:var(--pp-sec); transition:.13s;
}
.procurement-page .table_actions > a:hover { background:var(--pp-lblue); color:var(--pp-navy); border-color:#B9D2EE; }
.procurement-page .table_actions > a i, .procurement-page .table_actions .dropdown-toggle i { font-size:15px; }
.procurement-page .table_actions .edit-purchaseorder:hover { color:var(--pp-blue); }
.procurement-page .table_actions .delete-purchaseorder:hover,
.procurement-page .table_actions a[href*="print"]:hover { color:#DC2626; }

/* ---- pagination footer ---- */
.procurement-page .print_pagination { border-top:1px solid var(--pp-border); margin-top:0; padding:14px 4px 2px; }
.procurement-page .pagination_shift .pagination_number,
.procurement-page .pagination_shift .first-page,
.procurement-page .pagination_shift .prev-page,
.procurement-page .pagination_shift .next-page,
.procurement-page .pagination_shift .last-page {
    min-width:34px; height:34px; padding:0 9px; border-radius:8px; border:1px solid var(--pp-border);
    background:#fff; color:var(--pp-ink); font-size:13px; font-weight:600; display:inline-flex;
    align-items:center; justify-content:center; transition:.13s;
}
.procurement-page .pagination_shift .pagination_number:hover { background:var(--pp-lblue); border-color:#B9D2EE; }
.procurement-page .pagination_shift .pagination_number.active { background:var(--pp-blue); border-color:var(--pp-blue); color:#fff; }
.procurement-page .row_per_page select { border:1px solid var(--pp-border); border-radius:8px; padding:5px 8px; font-size:12.5px; font-weight:600; background:#fff; }

/* ---- status pills in table ---- */
.procurement-page .common_table .pill,
.procurement-page .common_table .badge {
    display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px;
    font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.3px;
}

/* ============================================================
   PROCUREMENT Add/Edit DRAWER FORMS — ST-ERP-Complete mockup look
   Scoped to .pp-form-drawer so it only touches procurement drawers.
   Restyles existing markup (.form_input / .slect-status / .select-box /
   item <table> / .form_discard_save) — no markup/JS changes.
   ============================================================ */
.pp-form-drawer { --pp-blue:#2563EB; --pp-blue-dark:#1D4ED8; --pp-navy:#134261;
    --pp-ink:#1F2937; --pp-sec:#6B7686; --pp-border:#E5E9EF; --pp-soft:#EDEFF3; --pp-lblue:#F3F7FD; }

/*.pp-form-drawer .drawer-body { background:#F7F9FC; }
.pp-form-drawer .drawer-body .st-popup-form,
.pp-form-drawer > .drawer-body > form,
.pp-form-drawer #editDrawerBody > form,
.pp-form-drawer .drawer-body .st-popup-form > form {
    background:#fff; border:1px solid var(--pp-border); border-radius:12px;
    padding:18px; box-shadow:0 1px 2px rgba(19,66,97,.05);
}*/

/* labels */
.pp-form-drawer .form_input label,
.pp-form-drawer .slect-status label,
.pp-form-drawer .custom-select label,
.pp-form-drawer form label {
    font-size:12px; font-weight:600; color:var(--pp-sec); margin-bottom:0;
    display:inline-flex; align-items:center; gap:4px;
}
.pp-form-drawer label span,
.pp-form-drawer label .required,
.pp-form-drawer label .red,
.pp-form-drawer .required { color:#DC2626; }

/* inputs / selects / textareas */
.pp-form-drawer .form_input input:not([type="checkbox"]):not([type="radio"]),
.pp-form-drawer .form_input textarea,
.pp-form-drawer .slect-status select,
.pp-form-drawer select.form-select,
.pp-form-drawer .form_input input[type="text"],
.pp-form-drawer .form_input input[type="number"] {
    height:42px; border:1.5px solid var(--pp-border); border-radius:9px; padding:0 13px;
    font-size:13.5px; color:var(--pp-ink); background:#fff; transition:.15s; width:100%; box-shadow:none;
}
.pp-form-drawer .form_input textarea { height:auto; min-height:72px; padding:11px 13px; line-height:1.5; resize:vertical; }
.pp-form-drawer .form_input input:focus,
.pp-form-drawer .slect-status select:focus,
.pp-form-drawer select.form-select:focus,
.pp-form-drawer .form_input textarea:focus {
    outline:none; border-color:#3B82F6; box-shadow:0 0 0 3px rgba(59,130,246,.14);
}
.pp-form-drawer .form_input input[readonly],
.pp-form-drawer .form_input input:disabled { background:#F1F4F8; color:var(--pp-sec); }

/* custom-select boxes (.select-box) matched to input look */
.pp-form-drawer .select-box .selected {
    min-height:42px; border:1.5px solid var(--pp-border); border-radius:9px;
    padding:9px 13px; font-size:13.5px; color:var(--pp-ink); background:#fff; display:flex; align-items:center;
}
.pp-form-drawer .select-box .selected:hover { border-color:#B9D2EE; }
.pp-form-drawer .select-box.open .selected,
.pp-form-drawer .select-box .selected:focus { border-color:#3B82F6; box-shadow:0 0 0 3px rgba(59,130,246,.14); }
.pp-form-drawer .select-box .options-container {
    border:1px solid var(--pp-border); border-radius:10px; box-shadow:0 14px 30px rgba(10,30,61,.12); margin-top:4px;
}
.pp-form-drawer .select-box .options-list li:hover,
.pp-form-drawer .options-list li:hover { background:var(--pp-lblue); color:var(--pp-navy); }

/* item / products table → mini-table */
.pp-form-drawer table { width:100%; border-collapse:collapse; }
.pp-form-drawer table thead th {
    background:var(--pp-lblue); color:#1E3A8A; font-size:10.5px; font-weight:700;
    text-transform:uppercase; letter-spacing:.4px; padding:10px 11px; border-bottom:1.5px solid #E1EAF8;
    text-align:left; white-space:nowrap;
}
.pp-form-drawer table tbody td {
    padding:9px 11px; border-bottom:1px solid var(--pp-soft); font-size:12.5px; color:var(--pp-ink); vertical-align:middle;
}
.pp-form-drawer table tbody tr:hover { background:#FAFBFD; }
.pp-form-drawer table tbody input,
.pp-form-drawer table tbody select {
    height:36px; border:1.4px solid var(--pp-border); border-radius:7px; padding:0 9px; font-size:12.5px; background:#fff; width:100%;
}
.pp-form-drawer table tbody input:focus,
.pp-form-drawer table tbody select:focus { outline:none; border-color:#3B82F6; box-shadow:0 0 0 2px rgba(59,130,246,.13); }

/* "Add row / Add item" style buttons inside the form */
.pp-form-drawer .add_item_btn,
.pp-form-drawer .add-row,
.pp-form-drawer button.add-item,
.pp-form-drawer .addRow {
    display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 13px; border-radius:9px;
    border:1.5px dashed #B9D2EE; background:var(--pp-lblue); color:var(--pp-blue); font-weight:700; font-size:13px;
}
.pp-form-drawer .add_item_btn:hover, .pp-form-drawer .add-row:hover { background:#E7F0FB; }

/* footer buttons */
.pp-form-drawer .form_discard_save,
.pp-form-drawer .drawer-footer {
    display:flex; align-items:center; justify-content:flex-end; gap:9px; flex-wrap:wrap;
    margin-top:16px; padding-top:14px; border-top:1px solid var(--pp-border);
}
.pp-form-drawer .form_discard_save button,
.pp-form-drawer .form_discard_save a,
.pp-form-drawer .form_discard_save .discard,
.pp-form-drawer .form_discard_save .reset {
    display:inline-flex; align-items:center; gap:7px; height:42px; padding:0 18px; border-radius:10px;
    font-size:13.5px; font-weight:700; border:1px solid var(--pp-border); background:#fff; color:var(--pp-ink); transition:.15s;
}
.pp-form-drawer .form_discard_save button:hover,
.pp-form-drawer .form_discard_save .discard:hover { border-color:var(--pp-blue); color:var(--pp-navy); }
.pp-form-drawer .form_discard_save .submit,
.pp-form-drawer .form_discard_save button[type="submit"],
.pp-form-drawer .form_discard_save .save {
    background:var(--pp-blue); border-color:var(--pp-blue); color:#fff; box-shadow:0 2px 6px rgba(37,99,235,.28);
}
.pp-form-drawer .form_discard_save .submit:hover,
.pp-form-drawer .form_discard_save button[type="submit"]:hover { background:var(--pp-blue-dark); border-color:var(--pp-blue-dark); color:#fff; }

/* totals / summary rows inside forms */
.pp-form-drawer table tfoot td,
.pp-form-drawer .total_row,
.pp-form-drawer .grand_total { font-weight:800; color:var(--pp-navy); }

/* edit partials that wrap the form in #editContent */
.pp-form-drawer #editContent { background:#fff; border:1px solid #E5E9EF; border-radius:12px; padding:18px; box-shadow:0 1px 2px rgba(19,66,97,.05); }


/* ============================================================
   CRM TASK MODULE (.task-page) — mockup polish
   Base looks are inlined in the blades/controller markup; these
   rules add the hover / interaction states inline styles can't.
   ============================================================ */

/* Table row action icon buttons (datatable action column) */
.task-page .row-acts .act-btn { transition: background .15s, color .15s, border-color .15s; }
.task-page .row-acts .act-btn:hover { background: #F5F7FA; color: #134261; }

/* "All Tasks" table title bar */
.task-page .table-bar { border-top-left-radius: inherit; border-top-right-radius: inherit; }

/* View drawer: gradient hero close button hover */
.task-page .tvd-head .tvd-close:hover { background: rgba(255,255,255,.25); }

/* View drawer: body hosts the hero flush to the edges */
.task-page.task-view-drawer .drawer-body { padding: 0; }

/* ===== CRM Lead — mockup table cells ===== */
.lead-page .client-cell{display:flex;align-items:center;gap:10px;}
.lead-page .client-avatar{width:30px;height:30px;border-radius:50%;background:var(--accent-soft,rgba(33,100,166,.12));color:var(--accent,#2164A6);display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;flex-shrink:0;}
.lead-page .pid{font-weight:700;color:var(--navy,#134261);}
.lead-page .addr{color:var(--text-muted,#6B7686);font-weight:500;}
.lead-page .type-pill{display:inline-block;font-size:11.5px;font-weight:600;color:var(--text-muted,#6B7686);background:var(--gray-bg,#F5F7FA);padding:3px 10px;border-radius:8px;}
.lead-page .stage-pill svg{width:11px;height:11px;}
.lead-page .common_table thead th.right{text-align:right;}

/* ===== CRM Lead — view drawer summary head + mini KPI row (mockup vd-drawer) ===== */
.lead-page .vd-summary-head{margin-bottom:14px;}
.lead-page .vd-summary-title{font-size:16px;font-weight:800;color:var(--navy,#134261);margin-bottom:5px;letter-spacing:-.2px;}
.lead-page .vd-summary-sub{font-size:12.5px;color:var(--text-muted,#6B7686);display:flex;align-items:center;gap:8px;}
.lead-page .vd-kpi-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px;}
.lead-page .vd-kpi{border:1px solid var(--border,#D9DDE3);border-radius:10px;padding:12px 13px;background:var(--gray-bg,#F5F7FA);}
.lead-page .vd-kpi .vdk-label{font-size:10px;font-weight:700;color:var(--text-muted,#6B7686);text-transform:uppercase;letter-spacing:.3px;margin-bottom:4px;}
.lead-page .vd-kpi .vdk-value{font-size:13px;font-weight:800;color:var(--navy,#134261);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media (max-width:520px){.lead-page .vd-kpi-row{grid-template-columns:1fr 1fr;}}

/* ============================================================
   UNIFIED SHELL — Dark navy sidebar (ST-Builders-ERP-Unified)
   Restyles the existing .app_side_bar markup to the mockup's
   dark navy gradient shell. No markup changes; overrides only.
   ============================================================ */
.app_side_bar {
    background: linear-gradient(180deg, #0B3A63 0%, #0F4C81 100%) !important;
    border-right: none !important;
    color: #C9DAEA !important;
    box-shadow: 2px 0 14px rgba(11,58,99,.20) !important;
}

/* ---- Brand head ---- */
.app_side_bar .side_bar_logo,
.app_side_bar .side-brand {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
    display: flex; align-items: center; gap: 11px;
    padding: 14px 16px !important;
}
.app_side_bar .side-brand-mark {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: rgba(255,255,255,.12); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.app_side_bar .side-brand-mark svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
.app_side_bar .side-brand-text { min-width: 0; }
.app_side_bar .side-brand-text .b-name { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.app_side_bar .side-brand-text .tag { color: #C9DAEA; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ---- Section labels (.admin_dash_cat h6 → mockup .sb-label) ---- */
.app_side_bar .admin_dash_cat { margin-bottom: 2px; }
.app_side_bar .admin_dash_cat h6 {
    color: rgba(201,218,234,.55) !important;
    font-size: 9.5px !important; font-weight: 800 !important;
    letter-spacing: .9px !important; padding: 12px 10px 5px !important; margin: 0 !important;
}

/* ---- Scroll area ---- */
.app_side_bar .admin_content { padding: 6px 10px 26px !important; gap: 2px !important; }
.app_side_bar .admin_content::-webkit-scrollbar { width: 6px; height: 6px; }
.app_side_bar .admin_content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); border-radius: 6px; }
.app_side_bar .admin_content::-webkit-scrollbar-track { background: transparent; }

/* ---- Icons: light on dark (line icons via stroke, fill/solid icons via fill) ---- */
.app_side_bar .menu-item svg,
.app_side_bar .accordion-button svg { color: #C9DAEA; opacity: 1; }
.app_side_bar .menu-item svg path[stroke]:not([stroke="none"]),
.app_side_bar .accordion-button svg path[stroke]:not([stroke="none"]) { stroke: currentColor !important; }
.app_side_bar .menu-item svg path:not([stroke]):not([fill="none"]),
.app_side_bar .accordion-button svg path:not([stroke]):not([fill="none"]) { fill: currentColor !important; }
.app_side_bar .menu-item svg rect:not([fill="none"]),
.app_side_bar .menu-item svg circle:not([fill="none"]) { fill: currentColor; }

/* ---- Leaf links (direct + nested) ---- */
.app_side_bar .menu-item {
    color: #C9DAEA !important; font-weight: 500 !important;
    border: none !important; border-radius: 8px !important;
}
.app_side_bar .menu-item:hover {
    background: rgba(255,255,255,.08) !important; color: #fff !important;
}
.app_side_bar .menu-item:hover svg { color: #fff; }

/* ---- Active leaf → light pill + teal left bar ---- */
.app_side_bar .menu-item.active,
.app_side_bar .accordion-body .menu-item.active {
    background: rgba(255,255,255,.14) !important; color: #fff !important;
    font-weight: 700 !important; border: none !important;
}
.app_side_bar .menu-item.active svg { color: #fff; }
.app_side_bar .menu-item.active::before {
    content: "" !important; position: absolute !important;
    left: 0 !important; top: 6px !important; bottom: 6px !important;
    height: auto !important; width: 3px !important;
    transform: none !important; border-radius: 3px !important;
    background: #1B9AAA !important;
}
.app_side_bar .admin_dash_btns .menu-item.active svg path[stroke] { stroke: #fff !important; }
.app_side_bar .admin_dash_btns .menu-item.active svg path:not([stroke]) { fill: #fff !important; }

/* ---- Group toggle (.accordion-button → mockup .grp-head) ---- */
.app_side_bar .accordion,
.app_side_bar .accordion-item,
.app_side_bar .accordion-header { background: transparent !important; border: none !important; }
.app_side_bar .accordion-button {
    color: #C9DAEA !important; background: transparent !important;
    border: none !important; font-weight: 600 !important; box-shadow: none !important;
}
.app_side_bar .accordion-button::after { color: rgba(201,218,234,.7) !important; }
.app_side_bar .accordion-button:hover {
    background: rgba(255,255,255,.08) !important; color: #fff !important;
}
.app_side_bar .accordion-button:hover svg { color: #fff; }
.app_side_bar .accordion-button:not(.collapsed) {
    background: rgba(255,255,255,.06) !important; color: #fff !important; border: none !important;
}
.app_side_bar .accordion-button:not(.collapsed)::after { color: #fff !important; }
.app_side_bar .accordion-button:not(.collapsed) svg { color: #fff; }
.app_side_bar .accordion-button:not(.collapsed) svg path[stroke] { stroke: #fff !important; }

/* ---- Nested body (indented leaves) ---- */
.app_side_bar .accordion-body { padding: 2px 0 4px !important; }
.app_side_bar .accordion-body .menu-item { padding-left: 40px !important; border-left: none !important; }
.app_side_bar .accordion-body .menu-item:hover { border-left: none !important; }

/* ---- Bottom bar (if present) ---- */
.app_side_bar .admin_botom_drop_down_container {
    background: rgba(0,0,0,.16) !important; border-top: 1px solid rgba(255,255,255,.10) !important;
}
.app_side_bar .admin_botom_drop_down_container .common_div { color: #C9DAEA !important; }
.app_side_bar .admin_botom_drop_down_container .common_div svg path { fill: #C9DAEA !important; }
.app_side_bar .admin_botom_drop_down_container .common_div:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.app_side_bar .admin_botom_drop_down_container .common_div:hover svg path { fill: #fff !important; }

/* ============================================================
   DASHBOARD — Executive Overview (ST-Builders-ERP-Unified)
   Scoped to .exec-overview. Cross-module KPI + chart grid.
   ============================================================ */
.exec-overview { --eo-navy:#134261; --eo-accent:#2563EB; --eo-success:#16A34A;
    --eo-warn:#D97706; --eo-danger:#DC2626; --eo-purple:#7C3AED; --eo-teal:#0D9488;
    --eo-muted:#6B7686; --eo-border:#E5E9EF; --eo-soft:#EEF1F6; }

.exec-overview .eo-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.exec-overview .eo-head h1 { font-size:24px; font-weight:800; color:var(--eo-navy); letter-spacing:-.4px; margin:0 0 4px; }
.exec-overview .eo-head p { font-size:13px; color:var(--eo-muted); margin:0; }
.exec-overview .eo-actions { display:flex; gap:9px; }
.exec-overview .eo-actions .btn { height:38px; }

/* KPI rows */
.exec-overview .ovd-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:14px; }
@media(max-width:1100px){ .exec-overview .ovd-kpis{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:620px){ .exec-overview .ovd-kpis{ grid-template-columns:1fr; } }
.exec-overview .ovd-kpi { background:#fff; border:1px solid var(--eo-border); border-radius:16px; box-shadow:0 1px 2px rgba(19,66,97,.05); padding:15px 17px; min-width:0; transition:.15s; }
.exec-overview .ovd-kpi:hover { box-shadow:0 4px 14px rgba(19,66,97,.09); transform:translateY(-1px); }
.exec-overview .ovd-kpi-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; gap:8px; }
.exec-overview .ovd-kpi-label { font-size:11px; font-weight:800; color:var(--eo-muted); letter-spacing:.4px; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.exec-overview .ovd-kpi-ico { width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.exec-overview .ovd-kpi-ico svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; }
.exec-overview .ovd-kpi-ico.navy   { background:rgba(37,99,235,.10); color:var(--eo-accent); }
.exec-overview .ovd-kpi-ico.success{ background:rgba(22,163,74,.10); color:var(--eo-success); }
.exec-overview .ovd-kpi-ico.warn   { background:rgba(217,119,6,.10); color:var(--eo-warn); }
.exec-overview .ovd-kpi-ico.danger { background:rgba(220,38,38,.10); color:var(--eo-danger); }
.exec-overview .ovd-kpi-ico.purple { background:rgba(124,58,237,.10); color:var(--eo-purple); }
.exec-overview .ovd-kpi-ico.teal   { background:rgba(13,148,136,.10); color:var(--eo-teal); }
.exec-overview .ovd-kpi-value { font-size:26px; font-weight:800; color:var(--eo-navy); line-height:1; letter-spacing:-.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.exec-overview .ovd-kpi-value .u { font-size:13px; font-weight:700; color:var(--eo-muted); }
.exec-overview .ovd-kpi-sub { display:flex; gap:16px; margin-top:11px; padding-top:10px; border-top:1px solid var(--eo-border); }
.exec-overview .ovd-ks { display:flex; flex-direction:column; gap:2px; min-width:0; }
.exec-overview .ovd-ks-l { font-size:10px; font-weight:700; color:var(--eo-muted); text-transform:uppercase; letter-spacing:.3px; white-space:nowrap; }
.exec-overview .ovd-ks-v { font-size:13.5px; font-weight:800; color:var(--eo-navy); white-space:nowrap; }

/* Chart grids */
.exec-overview .ovd-grid-2 { display:grid; grid-template-columns:2fr 1fr; gap:14px; margin-bottom:14px; }
.exec-overview .ovd-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:14px; }
@media(max-width:980px){ .exec-overview .ovd-grid-2, .exec-overview .ovd-grid-3 { grid-template-columns:1fr; } }
.exec-overview .ovd-chart { background:#fff; border:1px solid var(--eo-border); border-radius:16px; box-shadow:0 1px 2px rgba(19,66,97,.05); padding:15px 17px; min-width:0; }
.exec-overview .ovd-chart-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--eo-border); }
.exec-overview .ovd-chart-head h3 { margin:0; font-size:13.5px; font-weight:800; color:var(--eo-navy); letter-spacing:-.2px; }
.exec-overview .ovd-hint { font-size:10.5px; font-weight:700; color:var(--eo-muted); text-transform:uppercase; letter-spacing:.4px; white-space:nowrap; }
.exec-overview .ovd-legend { display:flex; gap:13px; }
.exec-overview .ovd-legend .lg { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; color:var(--eo-muted); white-space:nowrap; }
.exec-overview .ovd-legend .lg i { width:10px; height:10px; border-radius:3px; display:inline-block; }

/* Grouped / horizontal bars */
.exec-overview .ovd-bars { display:flex; flex-direction:column; gap:14px; }
.exec-overview .ovd-brow { display:flex; flex-direction:column; gap:5px; font-size:12px; color:var(--eo-navy); }
.exec-overview .ovd-brow .bl { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.exec-overview .ovd-brow .bl span { font-weight:700; color:var(--eo-navy); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.exec-overview .ovd-brow .bl b { font-weight:800; color:var(--eo-muted); font-size:11px; }
.exec-overview .ovd-bpair { display:flex; flex-direction:column; gap:4px; }
.exec-overview .ovd-btrack { height:8px; border-radius:99px; background:var(--eo-soft); overflow:hidden; }
.exec-overview .ovd-btrack i { display:block; height:100%; border-radius:99px; transition:width .5s ease; }

/* Donut */
.exec-overview .ovd-donut-wrap { display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:center; padding:6px 0; }
.exec-overview .ovd-donut-legend { display:flex; flex-direction:column; gap:9px; min-width:0; }
.exec-overview .ovd-dl { display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--eo-navy); white-space:nowrap; }
.exec-overview .ovd-dl b { margin-left:auto; padding-left:14px; font-weight:800; }
.exec-overview .ovd-dot { width:10px; height:10px; border-radius:3px; flex:0 0 auto; }

/* Progress list */
.exec-overview .ovd-prog { display:flex; flex-direction:column; gap:13px; }
.exec-overview .ovd-prow .pl { display:flex; align-items:center; justify-content:space-between; margin-bottom:5px; font-size:12px; }
.exec-overview .ovd-prow .pl span { font-weight:700; color:var(--eo-navy); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.exec-overview .ovd-prow .pl b { font-weight:800; color:var(--eo-accent); }

/* Activity feed */
.exec-overview .ovd-feed { display:flex; flex-direction:column; }
.exec-overview .ovd-feed-row { display:flex; align-items:flex-start; gap:10px; padding:9px 0; border-top:1px solid var(--eo-border); }
.exec-overview .ovd-feed-row:first-child { border-top:none; padding-top:2px; }
.exec-overview .ovd-feed-ic { width:26px; height:26px; border-radius:7px; background:rgba(37,99,235,.10); color:var(--eo-accent); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.exec-overview .ovd-feed-ic svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; }
.exec-overview .ovd-feed-tx { min-width:0; }
.exec-overview .ovd-feed-tx p { margin:0; font-size:12.5px; font-weight:600; color:var(--eo-navy); line-height:1.35; }
.exec-overview .ovd-feed-tx .t { font-size:10.5px; color:var(--eo-muted); font-weight:600; margin-top:1px; }
.exec-overview .ovd-empty { padding:26px 10px; text-align:center; font-size:12px; color:var(--eo-muted); }

/* ============================================================
   EMPLOYEE Add/Update forms — files(2)/employees.html look
   Maps existing .common_employee_bg / .heading h3 section markup
   to the mockup's .form-section / .form-section-title design.
   Scoped to .employee-page (on the add/edit drawer shells).
   ============================================================ */
.employee-page .common_employee_bg {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E5E9EF;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.employee-page .common_employee_bg:last-of-type { border-bottom: none; margin-bottom: 6px; }

.employee-page .common_employee_bg .heading {
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 14px;
    display: block;
}
.employee-page .common_employee_bg .heading h3 {
    font-size: 14.5px;
    font-weight: 800;
    color: #134261;
    margin: 0;
    padding-left: 11px;
    border-left: 3px solid #2164A6;
    line-height: 1.25;
}

/* section body — drop the big Bootstrap padding, tighten the grid */
.employee-page .common_employee_bg .p-4 { padding: 0 !important; }
.employee-page .common_employee_bg .row.g-4 { --bs-gutter-y: 14px; --bs-gutter-x: 14px; }

/* fields — mockup .form-field (labels + inputs already themed by .pp-form-drawer) */
.employee-page .form_input label,
.employee-page .slect-status label { font-size: 12.5px; font-weight: 600; color: #2E2E2E; }
.employee-page .form_input label span,
.employee-page .form_input label .red { color: #DC2626; }
.employee-page .common_employee_bg .form_input input:not([type="checkbox"]):not([type="radio"]),
.employee-page .common_employee_bg .form_input select,
.employee-page .common_employee_bg .slect-status select {
    font-size: 13.5px; padding: 9px 11px; border-radius: 10px; border: 1px solid #E5E9EF; background: #fff;
}
.employee-page .common_employee_bg .form_input input:focus,
.employee-page .common_employee_bg .form_input select:focus,
.employee-page .common_employee_bg .slect-status select:focus {
    outline: none; border-color: #2164A6; box-shadow: 0 0 0 3px rgba(33,100,166,.12);
}
.employee-page .common_employee_bg .form_input input::placeholder { color: #A7AFBC; }

/* file upload → mockup .file-select-btn (dashed) */
.employee-page .file-upload {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: #6B7686;
    background: #F5F7FA; border: 1px dashed #D9DDE3; border-radius: 10px; padding: 9px 11px; cursor: pointer;
}
.employee-page .file-upload:hover { background: #EEF1F6; border-color: #2164A6; color: #134261; }

/* toggle-revealed sub-sections keep the section rhythm */
.employee-page .driverdoc-field .common_employee_bg,
.employee-page .document-field .common_employee_bg,
.employee-page .gpslogin-field .common_employee_bg { border-bottom: none; }

/* drawer footer save/cancel bar */
.employee-page .form_discard_save {
    display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap;
    margin-top: 6px; padding-top: 14px; border-top: 1px solid #E5E9EF;
}

/* ===== Employee workflow inline "Add" forms ===== */
.employee-page .wf-add-panel { border:1px solid #E5E9EF; border-radius:12px; background:#F7F9FC; padding:14px; margin-bottom:12px; display:none; }
.employee-page .wf-add-panel.open { display:block; }
.employee-page .wf-add-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.employee-page .wf-add-grid .full { grid-column:1 / -1; }
@media(max-width:620px){ .employee-page .wf-add-grid { grid-template-columns:1fr; } }
.employee-page .wf-add-field { display:flex; flex-direction:column; gap:5px; }
.employee-page .wf-add-field label { font-size:12px; font-weight:600; color:#2E2E2E; }
.employee-page .wf-add-field label .req { color:#DC2626; }
.employee-page .wf-add-field input, .employee-page .wf-add-field select, .employee-page .wf-add-field textarea {
    height:40px; border:1px solid #E5E9EF; border-radius:9px; padding:8px 11px; font-size:13px; background:#fff; color:#2E2E2E; width:100%;
}
.employee-page .wf-add-field textarea { height:auto; min-height:60px; }
.employee-page .wf-add-field select[multiple] { height:auto; min-height:76px; }
.employee-page .wf-add-field input:focus, .employee-page .wf-add-field select:focus, .employee-page .wf-add-field textarea:focus {
    outline:none; border-color:#2164A6; box-shadow:0 0 0 3px rgba(33,100,166,.12);
}
.employee-page .wf-add-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
.employee-page .wf-add-toggle.on { background:#2164A6; border-color:#2164A6; color:#fff; }

/* ============================================================
   Employee workflow — mockup collapsible "Add" cards (.sd-*)
   + separate Payroll add drawer. Scoped to .employee-page.
   ============================================================ */
.employee-page .wf-addc { background:#F5F7FA; border:1px solid #E5E9EF; border-radius:11px; margin-bottom:16px; overflow:hidden; }
.employee-page .wf-addc-head { width:100%; display:flex; align-items:center; gap:9px; padding:10px 13px; background:none; border:none; cursor:pointer; text-align:left; }
.employee-page .wf-addc-head:hover { background:#EEF1F6; }
.employee-page .wf-addc-ico { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#fff; }
.employee-page .wf-addc-ico svg { width:13px; height:13px; stroke:#fff; fill:none; stroke-width:2.5; }
.employee-page .wf-addc-title { font-size:12.5px; font-weight:700; color:#134261; display:flex; align-items:center; gap:8px; }
.employee-page .sd-badge { display:inline-flex; align-items:center; font-size:10px; font-weight:700; padding:2px 9px; border-radius:20px; background:rgba(19,66,97,.08); color:#134261; white-space:nowrap; }
.employee-page .wf-addc-chev { width:13px; height:13px; stroke:#6B7686; fill:none; stroke-width:2; margin-left:auto; transition:transform .18s; flex-shrink:0; }
.employee-page .wf-addc.open .wf-addc-chev { transform:rotate(180deg); }
.employee-page .wf-addc-body { display:none; padding:0 13px 13px; }
.employee-page .wf-addc.open .wf-addc-body { display:block; }

.employee-page .sd-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.employee-page .sd-grid .full { grid-column:1 / -1; }
@media(max-width:560px){ .employee-page .sd-grid { grid-template-columns:1fr; } }
.employee-page .sd-field { display:flex; flex-direction:column; gap:5px; }
.employee-page .sd-field label { font-size:12px; font-weight:600; color:#2E2E2E; }
.employee-page .sd-field label .req { color:#DC2626; }
.employee-page .sd-field input, .employee-page .sd-field select, .employee-page .sd-field textarea {
    font-size:13px; padding:8px 10px; border-radius:9px; border:1px solid #E5E9EF; background:#fff; color:#2E2E2E; width:100%;
}
.employee-page .sd-field select[multiple] { min-height:74px; }
.employee-page .sd-field textarea { resize:vertical; min-height:54px; }
.employee-page .sd-field input:focus, .employee-page .sd-field select:focus, .employee-page .sd-field textarea:focus {
    outline:none; border-color:#2164A6; box-shadow:0 0 0 3px rgba(33,100,166,.12);
}
.employee-page .sd-hint { font-size:11px; color:#6B7686; }
.employee-page .wf-save-entry { margin-top:12px; width:100%; padding:9px; border:none; border-radius:9px; color:#fff; font-weight:700; font-size:12.5px; cursor:pointer; }
.employee-page .wf-save-entry:hover { filter:brightness(.95); }

/* Payroll tab banner + Add-Payroll button */
.employee-page .pf-banner { background:#F5F7FA; border:1px solid #E5E9EF; border-radius:11px; margin-bottom:16px; padding:11px 13px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.employee-page .pf-banner .pf-banner-tx { font-size:12.5px; font-weight:700; color:#134261; }
.employee-page .pf-banner .btn.pf-open { background:#D97706; border-color:#D97706; color:#fff; }
.employee-page .pf-banner .btn.pf-open:hover { background:#B45309; border-color:#B45309; }

/* Payroll add drawer repeaters + summary */
#payrollAddDrawer .pf-rep-row { display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:8px; align-items:end; margin-bottom:8px; }
#payrollAddDrawer .pf-rep-row .pf-del { width:34px; height:38px; border:1px solid #E5E9EF; border-radius:8px; background:#fff; color:#DC2626; cursor:pointer; display:flex; align-items:center; justify-content:center; }
#payrollAddDrawer .pf-add-line { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:#2164A6; background:#EAF1FC; border:1px dashed #B9D2EE; border-radius:8px; padding:7px 11px; cursor:pointer; }
#payrollAddDrawer .pf-sec-title { font-size:12.5px; font-weight:800; color:#134261; margin:16px 0 9px; padding-left:9px; border-left:3px solid #2164A6; }
#payrollAddDrawer .pf-summary { background:#F5F7FA; border:1px solid #E5E9EF; border-radius:11px; padding:13px 15px; margin-top:16px; display:flex; flex-direction:column; gap:8px; }
#payrollAddDrawer .pf-sum-row { display:flex; align-items:center; justify-content:space-between; font-size:13px; }
#payrollAddDrawer .pf-sum-row span { color:#6B7686; font-weight:600; }
#payrollAddDrawer .pf-sum-row b { color:#134261; font-weight:800; }
#payrollAddDrawer .pf-sum-row.net { border-top:1px solid #D9DDE3; padding-top:9px; font-size:15px; }
#payrollAddDrawer .pf-sum-row.net b { color:#16A34A; }

/* ============================================================
   VOUCHER-CC-MOCKUP-ALIGN-2026 — final alignment to vouchers.html
   (a) create/edit drawer field polish (vd-field look)
   (b) view/show drawer read-view (navy table, pill status, card)
   Restyle-only: no markup / id / JS hooks changed.
   ============================================================ */

/* ---- (a) create / edit drawer: mockup .vd-field label + input ---- */
.voucher-drawer .st-popup-container label,
.voucher-drawer .st-popup-container .form_input label,
.voucher-line-drawer .st-popup-container label {
    font-size: 12px;
    font-weight: 700;
    color: #2E2E2E;
    letter-spacing: .1px;
}
.voucher-drawer .st-popup-container label span,
.voucher-line-drawer .st-popup-container label .red,
.voucher-line-drawer .st-popup-container label .required { color: #DC2626; }
/* inputs → 10px radius per vd-field spec (overrides earlier 8px) */
.voucher-drawer .st-popup-container .form_input input,
.voucher-drawer .st-popup-container textarea.editor,
.voucher-line-drawer .form_input input,
.voucher-line-drawer .form-select,
.voucher-line-drawer .slect-status .form-select { border-radius: 10px; }
/* drawer heading → soft gradient like mockup .vd-head */
.voucher-drawer .st-popup-heading {
    background: linear-gradient(180deg,#fff,#FAFCFE) !important;
}
.voucher-drawer .st-popup-container > .st-popup-form > .d-flex.justify-content-between p.m-0 {
    font-size: 12.5px; font-weight: 700; color: #134261;
}

/* ---- (b) view / show drawer: read-view (appended to <body>, so scope
        to its own voucher-specific container class, NOT .voucher-cc) ---- */
.Common_vouchar_data_container .main_heading .left h3 { font-size: 17px; font-weight: 800; color: #134261; }
.Common_vouchar_data_container .main_heading .left p { font-size: 12px; color: #6B7686; margin: 2px 0 0; }
.Common_vouchar_data_container .voucher-header h2 { font-size: 15px; font-weight: 800; color: #134261; }
.Common_vouchar_data_container .account_buttons .print,
.Common_vouchar_data_container .account_buttons .email,
.Common_vouchar_data_container .account_buttons .action-btns a {
    border-radius: 9px; border: 1px solid #E1EAF8; transition: .15s;
}
.Common_vouchar_data_container .account_buttons .action-btns a:hover { background: #F3F7FD; color: #134261; }
/* hide the A4 print block on-screen in the view drawer (still prints) */
@media screen {
    .Common_vouchar_data_container #printSection { display: none !important; }
}
/* ============================================================
   END VOUCHER-CC-MOCKUP-ALIGN-2026
   ============================================================ */

/* ===== VOUCHER-DRAWER vd-* mockup styles (scoped) ===== */
.voucher-drawer{--navy:#134261;--navy-soft:rgba(19,66,97,.07);--accent:#2164A6;--accent-soft:rgba(33,100,166,.12);--border:#D9DDE3;--white:#fff;--gray-bg:#F5F7FA;--text:#2E2E2E;--text-muted:#6B7686;--success:#16A34A;--info:#2563EB;--info-soft:rgba(37,99,235,.10);--danger:#DC2626;--danger-soft:rgba(220,38,38,.10);--radius-lg:14px;--radius-md:12px;--radius-sm:9px;--shadow-sm:0 1px 2px rgba(19,66,97,.06);--shadow-md:0 4px 14px rgba(19,66,97,.10);}
.voucher-drawer .vd-lines {border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden;}
.voucher-drawer .vd-lines table {width:100%; border-collapse:collapse; font-size:12.5px; table-layout:fixed; min-width:0;}
.voucher-drawer .vd-lines thead th {background:var(--navy); color:#fff; text-align:left; font-weight:700; font-size:10.5px;
  letter-spacing:.4px; text-transform:uppercase; padding:9px 9px; overflow:hidden; text-overflow:ellipsis;}
.voucher-drawer .vd-lines thead th.num {text-align:right; width:24%;}
.voucher-drawer .vd-lines thead th.act {width:40px; text-align:center; padding-left:2px; padding-right:2px;}
.voucher-drawer .vd-lines tbody td {padding:5px 6px; border-bottom:1px solid var(--border); vertical-align:middle; overflow:hidden;}
.voucher-drawer .vd-lines tbody tr:last-child td {border-bottom:none;}
.voucher-drawer .vd-lines tbody input {width:100%; border:1px solid transparent; background:transparent; font-family:inherit; font-size:12.5px;
  padding:5px 7px; border-radius:6px; color:var(--text);}
.voucher-drawer .vd-lines tbody input:hover {background:var(--gray-bg);}
.voucher-drawer .vd-lines tbody input:focus {outline:none; background:#fff; border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft);}
.voucher-drawer .vd-lines tbody input.num {text-align:right; font-variant-numeric:tabular-nums;}
.voucher-drawer .vd-lines .del-row {width:26px; height:26px; border-radius:7px; border:none; background:transparent; color:#b7bcc3;
  display:flex; align-items:center; justify-content:center; margin:0 auto;}
.voucher-drawer .vd-lines .del-row:hover {background:var(--danger-soft); color:var(--danger);}
.voucher-drawer .vd-lines .del-row svg {width:14px; height:14px; stroke:currentColor; stroke-width:2; fill:none;}
.voucher-drawer .vd-addline {margin-top:10px; width:100%; border:1.4px dashed var(--border); background:#fff; color:var(--accent);
  font-family:inherit; font-size:12.5px; font-weight:700; padding:10px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center; gap:7px; transition:all .15s;}
.voucher-drawer .vd-addline:hover {border-color:var(--accent); background:var(--accent-soft);}
.voucher-drawer .vd-addline svg {width:15px; height:15px; stroke:currentColor; stroke-width:2.2; fill:none;}
.voucher-drawer .vd-totals {margin-top:12px; display:flex; align-items:center; justify-content:space-between;
  background:var(--navy); color:#fff; border-radius:var(--radius-md); padding:12px 16px;}
.voucher-drawer .vd-totals .tl {font-size:12px; font-weight:700; opacity:.85; letter-spacing:.3px; text-transform:uppercase;}
.voucher-drawer .vd-totals .tv {font-size:17px; font-weight:800; font-variant-numeric:tabular-nums;}
.voucher-drawer .vd-balance {display:flex; align-items:center; gap:6px; font-size:12px; font-weight:800; color:#bff2d4;}
.voucher-drawer .vd-balance svg {width:15px; height:15px; stroke:currentColor; stroke-width:2.4; fill:none;}
.voucher-drawer .vd-banner {display:flex; align-items:center; gap:9px; background:#fdf3d9; color:#92700a;
  border:1px solid #f0dca0; border-radius:var(--radius-sm); padding:10px 13px; font-size:12px; font-weight:600; margin-bottom:14px;}
.voucher-drawer .vd-head {flex-shrink:0; padding:18px 24px 15px; border-bottom:1px solid var(--border);
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  background:linear-gradient(180deg,#fff, #fbfcfd);}
.voucher-drawer .vd-head h2 {display:flex; align-items:center; gap:10px; margin:0;
  font-size:17px; font-weight:800; color:var(--navy);}
.voucher-drawer .vd-head h2 svg {width:19px; height:19px; stroke:var(--navy); stroke-width:2; fill:none;}
.voucher-drawer .vd-meta {display:flex; align-items:center; gap:14px; margin-top:8px; flex-wrap:wrap;}
.voucher-drawer .vd-meta .m {font-size:12px; color:var(--text-muted);}
.voucher-drawer .vd-meta .m b {color:var(--navy); font-weight:700;}
.voucher-drawer .vd-status-chip {font-size:10.5px; font-weight:800; letter-spacing:.3px; text-transform:uppercase;
  padding:4px 11px; border-radius:999px;}
.voucher-drawer .vd-status-chip.pending {background:var(--info-soft); color:var(--info);}
.voucher-drawer .vd-status-chip.draft {background:#eef0f3; color:#5b6470;}
.voucher-drawer .vd-close {flex-shrink:0; width:34px; height:34px; border-radius:9px; border:1px solid var(--border);
  background:#fff; display:flex; align-items:center; justify-content:center; color:var(--text-muted);
  transition:all .15s;}
.voucher-drawer .vd-close:hover {background:var(--danger-soft); color:var(--danger); border-color:transparent;}
.voucher-drawer .vd-close svg {width:16px; height:16px; stroke:currentColor; stroke-width:2.2; fill:none;}
.voucher-drawer .vd-toolbar {flex-shrink:0; padding:9px 24px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; background:var(--gray-bg);}
.voucher-drawer .vd-autosave {display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--text-muted); font-weight:600;}
.voucher-drawer .vd-autosave .pulse {width:7px; height:7px; border-radius:50%; background:var(--success); animation:pulse 1.8s infinite;}
.voucher-drawer .vd-body {flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:20px 24px 28px;}
.voucher-drawer .vd-section-label {font-size:11px; font-weight:800; letter-spacing:.5px; text-transform:uppercase;
  color:var(--text-muted); margin:18px 0 10px; display:flex; align-items:center; gap:8px;}
.voucher-drawer .vd-section-label:first-child {margin-top:0;}
.voucher-drawer .vd-section-label::after {content:""; flex:1; height:1px; background:var(--border);}
.voucher-drawer .vd-grid2 {display:grid; grid-template-columns:1fr 1fr; gap:13px 16px;}
.voucher-drawer .vd-field {display:flex; flex-direction:column; gap:6px;}
.voucher-drawer .vd-field.full {grid-column:1 / -1;}
.voucher-drawer .vd-field label {font-size:12px; font-weight:700; color:var(--text);}
.voucher-drawer .vd-field label .req {color:var(--danger); margin-left:2px;}
.voucher-drawer .vd-field label .opt {color:var(--text-muted); font-weight:500; font-size:11px; margin-left:4px;}
.voucher-drawer .vd-field input, .voucher-drawer .vd-field select, .voucher-drawer .vd-field textarea {font-family:inherit; font-size:13px; color:var(--text); background:#fff;
  border:1.4px solid var(--border); border-radius:var(--radius-sm); padding:9px 11px; width:100%;
  transition:border-color .15s, box-shadow .15s;}
.voucher-drawer .vd-field textarea {resize:vertical; min-height:70px; line-height:1.5;}
.voucher-drawer .vd-field input:focus, .voucher-drawer .vd-field select:focus, .voucher-drawer .vd-field textarea:focus {outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}
.voucher-drawer .vd-field input::placeholder, .voucher-drawer .vd-field textarea::placeholder {color:#a7b0bd;}

/* ============================================================
   VOUCHER DRAWERS - faithful mockup .vd-* MARKUP styling (2026)
   Scoped under .vd-drawerize so it cannot leak. Applies to the
   voucher create drawers, the add-ledger line pickers, and the
   ledger / sub-ledger create drawers. Preserves all form
   ids / names / JS hooks - this is a pure visual layer.
   ============================================================ */

/* heading -> mockup .vd-head */
.vd-drawerize .st-popup-heading.vd-head,
.vd-drawerize .vd-head {
    padding: 18px 24px 15px !important;
    border-bottom: 1px solid var(--border, #D9DDE3) !important;
    display: flex !important; align-items: flex-start; justify-content: space-between; gap: 14px;
    background: linear-gradient(180deg, #fff, #fbfcfd);
}
.vd-drawerize .vd-head-titlewrap { display: flex; flex-direction: column; min-width: 0; }
.vd-drawerize .vd-head h3 {
    display: flex; align-items: center; gap: 10px; margin: 0;
    font-size: 17px; font-weight: 800; color: var(--navy, #134261);
}
.vd-drawerize .vd-head h3 svg { width: 19px; height: 19px; stroke: var(--navy, #134261); stroke-width: 2; fill: none; flex-shrink: 0; }
.vd-drawerize .vd-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.vd-drawerize .vd-meta .m { font-size: 12px; color: var(--text-muted, #6B7686); }
.vd-drawerize .vd-meta .m b { color: var(--navy, #134261); font-weight: 700; }
.vd-drawerize .vd-status-chip {
    font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
    padding: 4px 11px; border-radius: 999px;
}
.vd-drawerize .vd-status-chip.pending { background: var(--info-soft, rgba(37,99,235,.10)); color: var(--info, #2563EB); }
.vd-drawerize .vd-status-chip.draft { background: #eef0f3; color: #5b6470; }

/* close button -> mockup .vd-close (reuses existing close hook classes) */
.vd-drawerize .vd-head .vd-close {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border, #D9DDE3);
    background: #fff; display: flex; align-items: center; justify-content: center; color: var(--text-muted, #6B7686);
    transition: all .15s; font-size: 16px; padding: 0;
}
.vd-drawerize .vd-head .vd-close:hover { background: var(--danger-soft, rgba(220,38,38,.10)); color: var(--danger, #DC2626); border-color: transparent; }
.vd-drawerize .vd-head .vd-close i { line-height: 1; }

/* live balance chip injected by JS after the h3 */
.vd-drawerize .vd-balance-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: .3px;
    padding: 5px 11px; border-radius: 999px; margin-top: 8px; white-space: nowrap; align-self: flex-start;
}
.vd-drawerize .vd-balance-chip.ok { background: rgba(22,163,74,.12); color: #16A34A; }
.vd-drawerize .vd-balance-chip.off { background: rgba(220,38,38,.12); color: #DC2626; }
.vd-drawerize .vd-balance-chip svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* section dividers */
.vd-drawerize .vd-section-label {
    font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    color: var(--text-muted, #6B7686); margin: 20px 0 12px; display: flex; align-items: center; gap: 8px;
}
.vd-drawerize .vd-section-label:first-child { margin-top: 0; }
.vd-drawerize .vd-section-label::after { content: ""; flex: 1; height: 1px; background: var(--border, #D9DDE3); }

/* form grid + explicit .vd-field */
.vd-drawerize .vd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.vd-drawerize .vd-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.vd-drawerize .vd-field.full { grid-column: 1 / -1; }
.vd-drawerize .vd-field > label { font-size: 12px; font-weight: 700; color: var(--text, #2E2E2E); margin: 0; }
.vd-drawerize .vd-field label .req,
.vd-drawerize .vd-field label span.red,
.vd-drawerize .vd-field label span.required { color: var(--danger, #DC2626); margin-left: 2px; }
.vd-drawerize .vd-field label .opt { color: var(--text-muted, #6B7686); font-weight: 500; font-size: 11px; margin-left: 4px; }

/* generic legacy field blocks inside a vd drawer also get vd-field styling */
.vd-drawerize .st-popup-container .form_input > input,
.vd-drawerize .st-popup-container .form_input > textarea,
.vd-drawerize .st-popup-container .form-select,
.vd-drawerize .st-popup-container .editor-wrapper textarea,
.vd-drawerize .vd-field > input,
.vd-drawerize .vd-field > select,
.vd-drawerize .vd-field > textarea {
    font-family: inherit; font-size: 13px; color: var(--text, #2E2E2E); background: #fff;
    border: 1.4px solid var(--border, #D9DDE3); border-radius: var(--radius-sm, 8px); padding: 9px 11px; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.vd-drawerize .vd-field > textarea,
.vd-drawerize .st-popup-container .editor-wrapper textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.vd-drawerize .st-popup-container .form_input > input:focus,
.vd-drawerize .st-popup-container .form_input > textarea:focus,
.vd-drawerize .st-popup-container .form-select:focus,
.vd-drawerize .st-popup-container .editor-wrapper textarea:focus,
.vd-drawerize .vd-field > input:focus,
.vd-drawerize .vd-field > select:focus,
.vd-drawerize .vd-field > textarea:focus {
    outline: none; border-color: var(--accent, #2164A6); box-shadow: 0 0 0 3px var(--accent-soft, rgba(33,100,166,.12));
}
.vd-drawerize .st-popup-container .form_input > label,
.vd-drawerize .st-popup-container .slect-status > label,
.vd-drawerize .st-popup-container .custom-select > label { font-size: 12px; font-weight: 700; color: var(--text, #2E2E2E); }
.vd-drawerize .st-popup-container .form_input > label > span,
.vd-drawerize .st-popup-container .slect-status > label > span,
.vd-drawerize .st-popup-container .custom-select > label > span { color: var(--danger, #DC2626); }
.vd-drawerize .st-popup-container .row.g-4 { row-gap: 14px !important; }

/* line entry table -> mockup .vd-lines */
.vd-drawerize .vd-lines { border: 1px solid var(--border, #D9DDE3); border-radius: var(--radius-md, 12px); overflow: hidden; }
.vd-drawerize .vd-lines table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 0; }
.vd-drawerize .vd-lines thead th {
    background: var(--navy, #134261) !important; color: #fff !important; text-align: left; font-weight: 700; font-size: 10.5px;
    letter-spacing: .4px; text-transform: uppercase; padding: 10px; border: none !important;
}
.vd-drawerize .vd-lines thead th.num { text-align: right; }
.vd-drawerize .vd-lines tbody td { padding: 9px 10px; border: none !important; border-bottom: 1px solid var(--border, #D9DDE3) !important; vertical-align: middle; font-size: 12.5px; }
.vd-drawerize .vd-lines tbody td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.vd-drawerize .vd-lines tbody tr:hover td { background: var(--accent-soft, rgba(33,100,166,.06)); }
/*.vd-drawerize .vd-lines tfoot td {
    background: var(--navy, #134261) !important; color: #fff !important; font-weight: 800; font-size: 14px;
    padding: 13px 10px !important; border: none !important; font-variant-numeric: tabular-nums; text-align: right;
}*/
.vd-drawerize .vd-lines tfoot td:first-child { text-align: left; }
.vd-drawerize .vd-lines tfoot #totalDebit { color: #7CE0A6 !important; }
.vd-drawerize .vd-lines tfoot #totalCredit { color: #9CC3F0 !important; }
.vd-drawerize .vd-lines tfoot #totalAmount { color: #7CE0A6 !important; }

/* footer button row */
.vd-drawerize .form_discard_save.vd-foot { border-top: 1px solid var(--border, #D9DDE3); padding-top: 16px; margin-top: 18px; }
.vd-drawerize .form_discard_save .submit {
    background: var(--navy, #134261); border: 1px solid var(--navy, #134261); color: #fff;
    border-radius: 9px; padding: 9px 22px; font-weight: 600; font-size: 13px; transition: .14s;
}
.vd-drawerize .form_discard_save .submit:hover { background: var(--accent, #2164A6); border-color: var(--accent, #2164A6); }
.vd-drawerize .form_discard_save .discard {
    background: #fff; border: 1px solid var(--border, #D9DDE3); color: var(--text-muted, #6B7686);
    border-radius: 9px; padding: 9px 18px; font-weight: 600; font-size: 13px;
}
.vd-drawerize .form_discard_save .discard:hover { background: var(--gray-bg, #F5F7FA); color: var(--navy, #134261); }

/* project / info banner */
.vd-drawerize .vd-banner {
    display: flex; align-items: center; gap: 9px; background: #fdf3d9; color: #92700a;
    border: 1px solid #f0dca0; border-radius: var(--radius-sm, 8px); padding: 10px 13px; font-size: 12px; font-weight: 600; margin-bottom: 14px;
}
.vd-drawerize .vd-banner svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }

/* hide the A4 print sheet on screen (still renders when printing) */
@media screen {
    .vd-drawerize #printSection,
    .vd-drawerize .common_print_header,
    .vd-drawerize .print-body,
    .vd-drawerize .payment_print_footer { display: none !important; }
}

/* voucher-page inline Add-Ledger / Add-Sub-Ledger popups (extra.blade.php)
   -> right-slide drawers keyed on the existing .active toggle */
.vouchar_inner_popup_wrapper2,
.vouchar_inner_popup_wrapper3 {
    position: fixed; inset: 0; z-index: 10002; display: flex; justify-content: flex-end;
    background: rgba(15, 32, 49, .42); visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.vouchar_inner_popup_wrapper2.active,
.vouchar_inner_popup_wrapper3.active { visibility: visible; opacity: 1; pointer-events: auto; }
.vouchar_inner_popup_wrapper2 .inner_bg,
.vouchar_inner_popup_wrapper3 .inner_bg {
    height: 100vh; width: min(560px, 100vw); background: #fff; box-shadow: -18px 0 48px rgba(19, 66, 97, .20);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); overflow-y: auto; margin: 0; border-radius: 0;
}
.vouchar_inner_popup_wrapper2.active .inner_bg,
.vouchar_inner_popup_wrapper3.active .inner_bg { transform: translateX(0); }
.vouchar_inner_popup_wrapper2 .inner_content,
.vouchar_inner_popup_wrapper3 .inner_content { padding: 0; }

/* --- v6 #vdLineDrawer parity: pinned head + scrolling body + pinned foot ---
   The panel becomes a flex column so .vd-body is the only scroll region.
   NOTE: the .active visibility/opacity hide is intentionally left alone —
   switching it to display:none collapses the select2 control to 0px. */
.vouchar_inner_popup_wrapper2 .inner_bg,
.vouchar_inner_popup_wrapper3 .inner_bg { display: flex; flex-direction: column; overflow: hidden; }
.vouchar_inner_popup_wrapper2 .inner_content,
.vouchar_inner_popup_wrapper3 .inner_content { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.vouchar_inner_popup_wrapper2 .inner_content > form,
.vouchar_inner_popup_wrapper3 .inner_content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.vouchar_inner_popup_wrapper2 .vd-head,
.vouchar_inner_popup_wrapper3 .vd-head { flex-shrink: 0; }
.vouchar_inner_popup_wrapper2 .vd-body,
.vouchar_inner_popup_wrapper3 .vd-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 20px 24px 28px;
}
.vouchar_inner_popup_wrapper2 .vd-foot,
.vouchar_inner_popup_wrapper3 .vd-foot {
    flex-shrink: 0; padding: 14px 24px; border-top: 1px solid var(--border, #D9DDE3);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fbfcfd;
    margin: 0;
}

/* close button icon (mockup uses an inline svg X, not a bootstrap <i>) */
.vd-drawerize .vd-head .vd-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.vd-drawerize .vd-head .vd-close { cursor: pointer; }

/* keyboard hint — mockup .vd-foot .kbd-hint (only ever inside .vd-foot) */
.vd-drawerize .vd-foot .kbd-hint { font-size: 11px; color: var(--text-muted, #6B7686); }
.vd-drawerize .vd-foot .kbd-hint kbd {
    font-family: inherit; font-size: 10.5px; font-weight: 700; background: #fff;
    border: 1px solid var(--border, #D9DDE3); border-bottom-width: 2px; border-radius: 5px;
    padding: 1px 6px; color: var(--text, #2E2E2E);
}

/* footer action pair — mockup .vd-foot-actions > .btn / .btn.btn-primary */
.vd-drawerize .vd-foot-actions { display: flex; gap: 9px; }
.vd-drawerize .vd-foot-actions .btn {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
    border-radius: 8px; padding: 9px 15px; border: 1px solid var(--border, #D9DDE3);
    background: #fff; color: var(--text, #2E2E2E); transition: .15s; white-space: nowrap; cursor: pointer;
}
.vd-drawerize .vd-foot-actions .btn:hover { background: var(--gray-bg, #F5F7FA); }
.vd-drawerize .vd-foot-actions .btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }
.vd-drawerize .vd-foot-actions .btn.btn-primary {
    background: var(--navy, #134261); border-color: var(--navy, #134261); color: #fff;
}
.vd-drawerize .vd-foot-actions .btn.btn-primary:hover { background: var(--accent, #2164A6); border-color: var(--accent, #2164A6); }
.vd-drawerize .vd-foot-actions .btn[disabled] { opacity: .65; cursor: default; }
/* the global @media(max-width:700px) `.btn{flex:1}` would stretch these */
.vd-drawerize .vd-foot-actions .btn { flex: 0 0 auto; }
/* ============================================================
   END VOUCHER DRAWERS vd-* MARKUP styling (2026)
   ============================================================ */

/* ===== Voucher VIEW → right-slide drawer (mockup vd-view) ===== */
.vouchar_data_bg {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(15,32,49,.42);
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
    display: flex; justify-content: flex-end;
}
.vouchar_data_bg.active { opacity: 1; visibility: visible; }
.vouchar_data_bg .Common_vouchar_data_container {
    width: min(720px, 96vw); height: 100vh; max-height: 100vh; margin: 0;
    background: #fff; overflow-y: auto;
    box-shadow: -18px 0 48px rgba(19,66,97,.20);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    border-radius: 0;
}
.vouchar_data_bg.active .Common_vouchar_data_container { transform: translateX(0); }
.vouchar_data_bg .Common_vouchar_data_container .inner_content { padding: 0 22px 26px; }
.vouchar_data_bg .Common_vouchar_data_container .heading {
    position: sticky; top: 0; background: #fff; z-index: 5;
    padding: 16px 0 12px; border-bottom: 1px solid #E5E9EF; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.vouchar_data_bg .closeVoucharBtn { cursor: pointer; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #E5E9EF; display: flex; align-items: center; justify-content: center; color: #6B7686; }
.vouchar_data_bg .closeVoucharBtn:hover { background: rgba(220,38,38,.10); color: #DC2626; border-color: transparent; }

/* ===== Global delete confirm (app.blade.php #globalDeleteModal) ===== */
#globalDeleteModal .delete_msg h4 { color: var(--danger, #DC2626); margin: 0 0 8px; font-size: 17px; font-weight: 800; }
#globalDeleteModal .delete_msg p { font-size: 13.5px; color: var(--text, #2E2E2E); margin: 0 0 6px; }
#globalDeleteModal .delete_input { width: 100%; margin: 10px 0 4px; border-radius: 8px; border: 1px solid var(--border, #D9DDE3); outline: none; background: #fff; padding: 10px 13px; font-size: 13.5px; }
#globalDeleteModal .delete_input:focus { border-color: var(--danger, #DC2626); box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
#globalDeleteModal .g-del-cancel { background: #fff; border: 1px solid var(--border, #D9DDE3); color: var(--text, #2E2E2E); padding: 8px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: .15s; }
#globalDeleteModal .g-del-cancel:hover { background: var(--gray-bg, #F5F7FA); }
#globalDeleteModal .g-del-confirm { background: var(--danger, #DC2626); color: #fff; border: none; padding: 8px 20px; border-radius: 8px; font-weight: 600; opacity: .5; cursor: not-allowed; transition: .15s; }
#globalDeleteModal .g-del-confirm.enabled { opacity: 1; cursor: pointer; }
#globalDeleteModal .g-del-confirm.enabled:hover { background: #B91C1C; }

/* ===== Voucher debit/credit + mode segmented control (.vd-seg) ===== */
.vd-drawerize .vd-seg { display:inline-flex; background:#F5F7FA; border:1px solid #D9DDE3; border-radius:10px; padding:3px; gap:3px; }
.vd-drawerize .vd-seg button { border:none; background:transparent; font-family:inherit; font-size:12.5px; font-weight:700; color:#6B7686; padding:8px 20px; border-radius:8px; display:inline-flex; align-items:center; gap:6px; cursor:pointer; transition:.15s; }
.vd-drawerize .vd-seg button svg { width:14px; height:14px; stroke:currentColor; stroke-width:2; fill:none; }
.vd-drawerize .vd-seg button:hover { color:#134261; }
.vd-drawerize .vd-seg button.active[data-t="Debit"] { background:#fff; color:#1c7a45; box-shadow:0 1px 2px rgba(19,66,97,.08); }
.vd-drawerize .vd-seg button.active[data-t="Credit"] { background:#fff; color:#2164A6; box-shadow:0 1px 2px rgba(19,66,97,.08); }
.vd-drawerize .vd-seg button.active[data-t="bank"] { background:#fff; color:#134261; box-shadow:0 1px 2px rgba(19,66,97,.08); }
.vd-drawerize .vd-seg button.active[data-t="cash"] { background:#fff; color:#1c7a45; box-shadow:0 1px 2px rgba(19,66,97,.08); }


/* == merged from INV_CSS_FRAGMENT.md == */
/* ===================== Inventory Master (scoped: .inventory-page) ===================== */

/* --- KPI polish (inherits global .kpi; adds sub-line spacing + hover lift) --- */
.inventory-page .kpi { transition: box-shadow .18s ease, transform .18s ease; }
.inventory-page .kpi:hover { box-shadow: 0 6px 18px rgba(19,66,97,.10); transform: translateY(-1px); }
.inventory-page .kpi .kpi-value { color: #134261; }

/* --- Products column: product chips (from InventoryController products_list) --- */
.inventory-page .inv-prod-list { display: flex; flex-direction: column; gap: 5px; }
.inventory-page .inv-prod-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; color: #134261; line-height: 1.3;
}
.inventory-page .inv-prod-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    background: #2164A6; box-shadow: 0 0 0 3px rgba(33,100,166,.12);
}

/* --- Status pills (table inventory_stat + show modal) --- */
.inventory-page .inv-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.inventory-page .inv-pill-done      { background: rgba(22,163,74,.10);  color: #16A34A; }
.inventory-page .inv-pill-pending   { background: rgba(217,119,6,.10);  color: #D97706; }
.inventory-page .inv-pill-cancelled { background: rgba(220,38,38,.10);  color: #DC2626; }
.inventory-page .inv-pill-progress  { background: rgba(37,99,235,.10);  color: #2563EB; }
.inventory-page .inv-pill-idle      { background: rgba(107,118,134,.12); color: #6B7686; }

/* --- Action icons: normalise the status three-dots + eye link to 32px bordered squares.
   (.common_table already styles > a / .status-icon-btn; this tightens the btn-group wrapper.) --- */
.inventory-page .common_table td .table_actions .btn-group { display: inline-flex; }
.inventory-page .common_table td .table_actions .status-icon-btn { font-size: 15px; line-height: 1; }
.inventory-page .common_table td .table_actions > a i,
.inventory-page .common_table td .table_actions .status-icon-btn i { font-size: 15px; }
/* dropdown items in the status menu */
.inventory-page .table_actions .dropdown-menu { padding: 6px; border-radius: 10px; border: 1px solid #E5E9EF; box-shadow: 0 8px 26px rgba(19,66,97,.14); }
.inventory-page .table_actions .dropdown-menu li { border-radius: 7px; }
.inventory-page .table_actions .dropdown-menu li:hover { background: #F5F7FA; }
.inventory-page .table_actions .dropdown-menu .dropdown-item { padding: 5px 8px; font-size: 13px; font-weight: 600; }

/* ===================== Show / View modal (product-master read layout) ===================== */
.inventory-page .inv-view-card {
    width: 720px; max-width: 94vw; padding: 0; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(19,66,97,.22);
}
.inventory-page .inv-view-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid #EEF1F6;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}
.inventory-page .inv-view-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.inventory-page .inv-view-ico {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    background: rgba(33,100,166,.10); color: #134261;
    display: flex; align-items: center; justify-content: center;
}
.inventory-page .inv-view-ico svg { width: 20px; height: 20px; }
.inventory-page .inv-view-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #134261; text-transform: none; letter-spacing: 0; }
.inventory-page .inv-view-sub { font-size: 12px; color: #6B7686; margin-top: 2px; }
.inventory-page .inv-view-close {
    width: 34px; height: 34px; border-radius: 9px; border: 1px solid #E5E9EF; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #6B7686; flex-shrink: 0; transition: .15s;
}
.inventory-page .inv-view-close:hover { background: #F5F7FA; color: #134261; }
.inventory-page .inv-view-close svg { width: 17px; height: 17px; }

.inventory-page .inv-view-body { padding: 20px 22px 24px; max-height: 72vh; overflow-y: auto; }
.inventory-page .inv-view-section { margin-bottom: 22px; }
.inventory-page .inv-view-section:last-child { margin-bottom: 0; }
.inventory-page .inv-view-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    color: #134261; margin-bottom: 14px; padding-bottom: 9px; border-bottom: 1px solid #EEF1F6;
}
.inventory-page .inv-view-section-title svg { width: 14px; height: 14px; }

.inventory-page .inv-view-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.inventory-page .inv-vf-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #94A0AE; margin-bottom: 4px; }
.inventory-page .inv-vf-value { font-size: 13.5px; font-weight: 600; color: #2E2E2E; word-break: break-word; }

.inventory-page .inv-view-table-wrap { border: 1px solid #E5E9EF; border-radius: 12px; overflow: hidden; }
.inventory-page .inv-view-table { width: 100%; border-collapse: collapse; }
.inventory-page .inv-view-table thead th {
    background: #F5F7FA; text-align: left; padding: 10px 14px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: #6B7686; border-bottom: 1px solid #E5E9EF;
}
.inventory-page .inv-view-table tbody td { padding: 11px 14px; font-size: 13px; color: #2E2E2E; border-bottom: 1px solid #EEF1F6; }
.inventory-page .inv-view-table tbody tr:last-child td { border-bottom: none; }
.inventory-page .inv-view-table tbody tr:nth-child(even) td { background: #FAFBFD; }
.inventory-page .inv-view-empty {
    padding: 22px; text-align: center; font-size: 13px; color: #6B7686;
    background: #F8FAFC; border: 1px dashed #D9DDE3; border-radius: 12px;
}

@media (max-width: 640px) {
    .inventory-page .inv-view-grid { grid-template-columns: repeat(2, 1fr); }
}

/* == merged from PO_CSS_FRAGMENT.md == */
/* ===== Purchase Cycle view drawer — small polish (reuses global view classes) ===== */
#viewDrawer .drawer-tabbed .doc-row > .pill { margin-left: auto; flex-shrink: 0; align-self: center; }
#viewDrawer .view-section .view-section-title .pill { margin-left: 6px; }
/* keep the wide purchase-order view drawer body comfortable */
#viewDrawer.drawer-wide .view-grid { gap: 12px 22px; }

/* ===== Desktop collapsible sidebar (icon rail, expands on hover) ===== */
@media (min-width: 993px) {
    body.sidebar-collapsed { --side-w: 76px; }
    body.sidebar-collapsed .app_side_bar { width: 76px !important; transition: width .18s ease, box-shadow .18s ease; }
    body.sidebar-collapsed .admin_right_content { width: calc(100% - 76px) !important; }
    /* collapsed rail: hide text/labels/chevrons + nested submenus; keep icons */
    body.sidebar-collapsed .app_side_bar .side-brand-text,
    body.sidebar-collapsed .app_side_bar .admin_dash_cat h6,
    body.sidebar-collapsed .app_side_bar .accordion-button::after,
    body.sidebar-collapsed .app_side_bar .accordion-collapse { display: none !important; }
    body.sidebar-collapsed .app_side_bar .side_bar_logo,
    body.sidebar-collapsed .app_side_bar .side-brand { justify-content: center !important; padding: 14px 8px !important; }
    body.sidebar-collapsed .app_side_bar .menu-item,
    body.sidebar-collapsed .app_side_bar .accordion-button,
    body.sidebar-collapsed .app_side_bar .admin_dash_btns > a {
        font-size: 0 !important; gap: 0 !important; justify-content: center !important; padding: 11px 0 !important;
    }
    body.sidebar-collapsed .app_side_bar .menu-item svg,
    body.sidebar-collapsed .app_side_bar .accordion-button svg,
    body.sidebar-collapsed .app_side_bar .admin_dash_btns > a svg { width: 20px !important; height: 20px !important; flex: 0 0 auto; }
    body.sidebar-collapsed .app_side_bar .menu-item i,
    body.sidebar-collapsed .app_side_bar .accordion-button i { font-size: 18px !important; }
    body.sidebar-collapsed .app_side_bar .menu-item.active::before { display: none !important; }
    body.sidebar-collapsed .app_side_bar .admin_content { padding-left: 8px !important; padding-right: 8px !important; }

    /* Expand to full sidebar on hover (overlay) so submenus + bottom links stay reachable */
    body.sidebar-collapsed .app_side_bar:hover { width: 240px !important; z-index: 10005 !important; box-shadow: 6px 0 30px rgba(0,0,0,.30) !important; }
    body.sidebar-collapsed .app_side_bar:hover .side-brand-text,
    body.sidebar-collapsed .app_side_bar:hover .admin_dash_cat h6,
    body.sidebar-collapsed .app_side_bar:hover .accordion-button::after { display: block !important; }
    body.sidebar-collapsed .app_side_bar:hover .accordion-collapse.show { display: block !important; }
    body.sidebar-collapsed .app_side_bar:hover .side_bar_logo,
    body.sidebar-collapsed .app_side_bar:hover .side-brand { justify-content: flex-start !important; padding: 14px 18px !important; }
    body.sidebar-collapsed .app_side_bar:hover .menu-item,
    body.sidebar-collapsed .app_side_bar:hover .accordion-button,
    body.sidebar-collapsed .app_side_bar:hover .admin_dash_btns > a {
        font-size: 13px !important; gap: 10px !important; justify-content: flex-start !important; padding: 9px 14px !important;
    }
    body.sidebar-collapsed .app_side_bar:hover .menu-item.active::before { display: block !important; }
    body.sidebar-collapsed .app_side_bar:hover .admin_botom_drop_down_container { flex-direction: row !important; }
}

/* ===== Reusable document repeater (.sd-sec / .emp-doc-row / .edr-*) ===== */
.sd-sec { border:1px solid #E3E8EF; border-radius:11px; margin:0 0 14px; overflow:hidden; background:#fff; }
.sd-sec > .sd-sec-title { list-style:none; cursor:pointer; padding:12px 15px; font-size:12.5px; font-weight:800; color:#134261; background:#F5F7FA; display:flex; align-items:center; justify-content:space-between; }
.sd-sec > .sd-sec-title::-webkit-details-marker { display:none; }
.sd-sec > .sd-sec-title::after { content:"▸"; color:#6B7686; font-size:11px; transition:.15s; }
.sd-sec[open] > .sd-sec-title::after { transform:rotate(90deg); }
.sd-sec .sd-sec-body { padding:14px 15px; }
.emp-doc-list { display:flex; flex-direction:column; gap:12px; }
.emp-doc-row { position:relative; border:1px solid #E3E8EF; border-radius:10px; padding:14px 14px 12px; background:#FCFDFE; }
.emp-doc-row .edr-del { position:absolute; top:8px; right:8px; width:26px; height:26px; border:1px solid #E3E8EF; background:#fff; border-radius:7px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#6B7686; padding:0; }
.emp-doc-row .edr-del:hover { border-color:#DC2626; color:#DC2626; background:rgba(220,38,38,.06); }
.emp-doc-row .edr-del svg { width:13px; height:13px; stroke:currentColor; stroke-width:2.4; fill:none; }
.emp-doc-row .edr-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-right:30px; }
.emp-doc-row .edr-grid > div:only-child { grid-column:1 / -1; }
.emp-doc-row .edr-grid label { display:block; font-size:11.5px; font-weight:700; color:#2E2E2E; margin:0 0 5px; }
.emp-doc-row .edr-type, .emp-doc-row .edr-num { width:100%; border:1px solid #D9DDE3; border-radius:8px; padding:8px 10px; font-family:inherit; font-size:12.5px; color:#2E2E2E; background:#fff; }
.emp-doc-row .edr-type:focus, .emp-doc-row .edr-num:focus { outline:none; border-color:#2164A6; box-shadow:0 0 0 3px rgba(33,100,166,.12); }
.emp-doc-row .edr-upload { margin-top:11px; display:inline-flex; align-items:center; gap:8px; border:1px dashed #C4CCD6; background:#F7F9FC; border-radius:8px; padding:9px 13px; font-family:inherit; font-size:12px; font-weight:600; color:#6B7686; cursor:pointer; width:100%; }
.emp-doc-row .edr-upload:hover { border-color:#2164A6; color:#2164A6; background:rgba(33,100,166,.05); }
.emp-doc-row .edr-upload svg { width:15px; height:15px; stroke:currentColor; stroke-width:2; fill:none; }
.add-doc-row-btn { display:inline-flex; align-items:center; gap:7px; border:1px solid #2164A6; background:rgba(33,100,166,.06); color:#2164A6; border-radius:8px; padding:8px 14px; font-family:inherit; font-size:12.5px; font-weight:700; cursor:pointer; }
.add-doc-row-btn:hover { background:#2164A6; color:#fff; }
.add-doc-row-btn svg { width:15px; height:15px; stroke:currentColor; stroke-width:2.2; fill:none; }



.form-switch .form-check-input {
  width: auto !important;
}
/* document repeater: existing-file chips (edit prefill) */
.emp-doc-row .edr-existing { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.emp-doc-row .edr-file-chip { display:inline-flex; align-items:center; gap:6px; border:1px solid #D9DDE3; background:#fff; border-radius:7px; padding:5px 9px; font-size:11.5px; font-weight:600; color:#134261; text-decoration:none; }
.emp-doc-row .edr-file-chip:hover { border-color:#2164A6; background:rgba(33,100,166,.05); }
.emp-doc-row .edr-file-chip svg { width:12px; height:12px; stroke:currentColor; stroke-width:2; fill:none; }







.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.search-dropdown-item:hover {
    background: #f0f0f0;
    color: #134261;
}

.no-results {
    padding: 10px 15px;
    color: #999;
    text-align: center;
}




.backup_filter_button_container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.backup_filter_button_container button {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.backup_filter_button_container button:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.backup_filter_button_container button.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}
/* ============================================================
   PROCUREMENT SECTION KIT (.pc-*) — ST-ERP-Complete mockup
   Section cards ("Document Details" / "Products"), info note,
   totals box and read-only value grid used inside the
   purchase-entries add / edit / view drawers. Global pc-
   prefix (no collisions). Purely additive — no markup breaks.
   ============================================================ */
.pc-note{display:flex;align-items:center;gap:8px;font-size:11.5px;font-weight:600;color:#6B7686;background:#fff;border:1px solid #E5E9EF;padding:9px 12px;border-radius:9px;margin-bottom:14px;line-height:1.45;}
.pc-note svg{width:15px;height:15px;stroke:#2563EB;fill:none;stroke-width:2;flex-shrink:0;}

.pc-sec{background:#fff;border:1px solid #E5E9EF;border-radius:12px;margin-bottom:16px;overflow:hidden;box-shadow:0 1px 2px rgba(19,66,97,.05);}
.pc-sec-h{padding:14px 18px;border-bottom:1px solid #EDEFF3;display:flex;align-items:center;gap:11px;}
.pc-sec-h .pc-ci{width:32px;height:32px;border-radius:9px;background:#F3F7FD;display:flex;align-items:center;justify-content:center;color:#2563EB;flex-shrink:0;}
.pc-sec-h .pc-ci svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.pc-sec-h h3{margin:0;font-size:14.5px;font-weight:700;color:#134261;line-height:1.2;}
.pc-sec-h p{margin:2px 0 0;font-size:11.5px;color:#6B7686;line-height:1.3;}
.pc-sec-b{padding:18px;}
.pc-divider{height:1px;background:#E5E9EF;margin:16px 0;}

/* form background reset so pc-sec cards read as cards on grey */
.pp-form-drawer .drawer-body{background:#F5F7FA;}
.pp-form-drawer form.pc-form,
.pp-form-drawer #editContent:has(.pc-sec){background:transparent;border:none;box-shadow:none;padding:0;}

/* totals box */
.pc-sumbox{margin-top:16px;margin-left:auto;max-width:360px;background:#fff;border:1px solid #E5E9EF;border-radius:14px;padding:8px 16px;box-shadow:0 1px 2px rgba(15,37,64,.04);}
.pc-sumrow{display:flex;justify-content:space-between;align-items:center;padding:7px 2px;font-size:13.5px;color:#6B7686;}
.pc-sumrow .pc-sv{font-weight:700;color:#1F2937;}
.pc-sumrow.grand{border-top:2px solid #E5E9EF;margin-top:8px;padding:12px 2px 6px;font-size:16px;color:#1F2937;font-weight:800;}
.pc-sumrow.grand .pc-sv{color:#1E3A8A;font-weight:800;font-size:18px;}

/* read-only value grid inside a pc-sec (view drawers) */
.pc-vgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 18px;}
.pc-vf{display:flex;flex-direction:column;gap:4px;min-width:0;}
.pc-vf.full{grid-column:1/-1;}
.pc-vf .pc-vl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#97A0B3;}
.pc-vf .pc-vv{font-size:13.5px;font-weight:600;color:#1F2937;word-break:break-word;line-height:1.4;}
@media(max-width:640px){.pc-vgrid{grid-template-columns:1fr 1fr;}}

/* products/items table inside a pc-sec (mirrors mockup .li-table) */
.pc-sec .table-responsive{border:none;}
.pc-sec table.table{margin-bottom:0;}
.pc-sec table.table thead th{background:#F3F7FD;color:#1E3A8A;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;padding:10px 11px;border-bottom:1.5px solid #E1EAF8;text-align:left;white-space:nowrap;}
.pc-sec table.table tbody td{padding:9px 11px;border-bottom:1px solid #EDEFF3;font-size:12.5px;color:#1F2937;vertical-align:middle;}
.pc-sec table.table tbody tr:hover{background:#FAFBFD;}
.pc-sec .pc-add-row{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:9px;border:1.5px dashed #B9D2EE;background:#F3F7FD;color:#2563EB;font-weight:700;font-size:13px;margin-top:12px;}
.pc-sec .pc-add-row:hover{background:#E7F0FB;}

/* read-only items table in view drawers */
.pc-sec table.pc-vtable td,.pc-sec table.pc-vtable th{font-weight:500;}
.pc-sec table.pc-vtable td.amt,.pc-sec table.pc-vtable th.amt{text-align:right;font-weight:700;color:#134261;}

/* list tables: no horizontal scroll — wrap cell text onto multiple rows to fit width */
.pc-list-table{width:100%;overflow-y: visible}
.pc-list-table > table{width:100%;table-layout:auto;}
.pc-list-table > table th,
.pc-list-table > table td{white-space:normal;word-break:break-word;overflow-wrap:anywhere;vertical-align:middle;}
.pc-list-table > table input,
.pc-list-table > table select,
.pc-list-table > table textarea{width:100%;min-width:0;box-sizing:border-box;}

/* compact item-entry rows — fit a whole row in the available width (mockup .li-table).
   Anchored on .purchase_data_table.add_inventory_table (2 classes) to beat the global
   `.purchase_data_table .table thead th` / `.common_table .table tbody td` rules that
   force nowrap + height:52px + 16px padding. */
.purchase_data_table.add_inventory_table .pc-list-table > table{font-size:13px;table-layout:auto;width:100%;margin:0;}
.purchase_data_table.add_inventory_table .pc-list-table > table thead tr th{
  background:#F3F7FD;color:#6B7686;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;
  padding:8px 7px;height:auto;white-space:normal;}
.purchase_data_table.add_inventory_table .pc-list-table > table tbody tr td{
  padding:5px 6px;height:auto;white-space:normal;word-break:break-word;font-size:13px;vertical-align:middle;}
.purchase_data_table.add_inventory_table .pc-list-table .form_input{margin-bottom:0;gap:2px;}
.purchase_data_table.add_inventory_table .pc-list-table input,
.purchase_data_table.add_inventory_table .pc-list-table select,
.purchase_data_table.add_inventory_table .pc-list-table textarea{
  width:100%;min-width:0;box-sizing:border-box;padding:6px 8px;font-size:13px;border-radius:8px;height:auto;min-height:0;line-height:1.3;}
.purchase_data_table.add_inventory_table .pc-list-table .select-box{width:100% !important;}
.purchase_data_table.add_inventory_table .pc-list-table .select-box .selected{padding:6px 24px 6px 8px;font-size:13px;min-height:0;}
.purchase_data_table.add_inventory_table .pc-list-table .rate-display{min-width:0 !important;padding:6px 8px !important;}
.purchase_data_table.add_inventory_table .pc-list-table .item-amount{width:100% !important;padding:0 !important;}
.purchase_data_table.add_inventory_table .pc-list-table .remove-item-btn{padding:4px 7px;font-size:12px;}

/* Reusable bill/file upload (resources/views/purchaseaccounting/common/bill-upload.blade.php) */
.bill-upload{display:flex;flex-direction:column;gap:8px;}
.bill-existing,.bill-preview{display:flex;flex-wrap:wrap;gap:8px;}
.bill-existing:empty,.bill-preview:empty{display:none;}
.bill-chip,.bill-newchip{position:relative;display:inline-flex;align-items:center;gap:6px;max-width:190px;padding:5px 26px 5px 8px;border:1px solid #E1EAF8;border-radius:8px;background:#F7F9FC;font-size:12px;}
.bill-newchip{background:#EFF6FF;border-color:#BFDBFE;}
.bill-chip-link{display:inline-flex;align-items:center;gap:6px;color:#134261;text-decoration:none;overflow:hidden;}
.bill-chip img,.bill-newchip-img{width:26px;height:26px;object-fit:cover;border-radius:5px;flex-shrink:0;}
.bill-chip i,.bill-newchip > i{font-size:16px;color:#2563EB;flex-shrink:0;}
.bill-chip-name,.bill-newchip-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bill-chip-del,.bill-newchip-del{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:16px;height:16px;line-height:15px;text-align:center;border:none;border-radius:50%;background:#DC2626;color:#fff;font-size:12px;cursor:pointer;padding:0;}
.bill-chip-del:hover,.bill-newchip-del:hover{background:#B91C1C;}
.bill-dropzone{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1.5px dashed #B9D2EE;border-radius:9px;background:#F3F7FD;color:#2563EB;font-weight:600;font-size:13px;cursor:pointer;width:fit-content;}
.bill-dropzone:hover{background:#E7F0FB;}
.bill-dropzone i{font-size:16px;}
.bill-dropzone .bill-input{display:none;}

/* Role: "Select Role" presented as a labelled project-style field */
.role-select-field{max-width:340px;margin-bottom:22px;}
.role-select-field > label{display:block;font-weight:600;font-size:13px;color:#134261;}

/* Role permission tabs restyled to match the vehicle drawer tabs (.view-tabs look):
   underline strip instead of Bootstrap's boxed nav-tabs. Bootstrap keeps handling switching.
   Targets the index (#permTabs), add (#createPermTabs) and edit (#editPermTabs) tab strips. */
#permTabs.nav-tabs,#createPermTabs.nav-tabs,#editPermTabs.nav-tabs{
  border-bottom:1px solid #D9DDE3;gap:2px;flex-wrap:wrap;margin-bottom:18px;}
#permTabs .nav-item,#createPermTabs .nav-item,#editPermTabs .nav-item{margin:0;}
#permTabs .nav-link,#createPermTabs .nav-link,#editPermTabs .nav-link{
  font-size:12px;font-weight:600;color:#6B7686;background:transparent;border:none;border-radius:0;
  padding:9px 12px;position:relative;display:flex;align-items:center;gap:6px;white-space:nowrap;transition:color .13s;}
#permTabs .nav-link:hover,#createPermTabs .nav-link:hover,#editPermTabs .nav-link:hover{color:#134261;border:none;}
#permTabs .nav-link.active,#createPermTabs .nav-link.active,#editPermTabs .nav-link.active{
  color:#134261;font-weight:700;background:transparent;border:none;}
#permTabs .nav-link.active::after,#createPermTabs .nav-link.active::after,#editPermTabs .nav-link.active::after{
  content:'';position:absolute;left:4px;right:4px;bottom:-1px;height:2.5px;background:#2164A6;border-radius:2px 2px 0 0;}

/* Vehicle workflow approver actions (fuel/maintenance approve / semi-approve / reject) */
.wf-mgr-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid #EEF1F6;}
.wf-mgr-btn{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;border-radius:8px;padding:6px 12px;border:1px solid transparent;cursor:pointer;transition:.15s;}
.wf-mgr-btn svg{width:14px;height:14px;}
.wf-mgr-btn.approve{background:#134261;color:#fff;}
.wf-mgr-btn.approve:hover{background:#0e2f47;}
.wf-mgr-btn.semi{background:#EAF1FC;color:#2563EB;border-color:#BFDBFE;}
.wf-mgr-btn.semi:hover{background:#dbe8fb;}
.wf-mgr-btn.reject{background:#FDECEC;color:#DC2626;border:1px solid #DC2626;}
.wf-mgr-btn.reject:hover{background:#DC2626;color:#fff;}
.wf-mgr-semi{margin-top:8px;background:#F7F9FC;border:1px solid #E1EAF8;border-radius:9px;padding:10px 11px;}
.wf-mgr-semi > label{font-size:10.5px;font-weight:700;color:#134261;display:block;margin-bottom:6px;}
.wf-mgr-semi-row{display:flex;gap:8px;}
.wf-mgr-semi-row input{flex:1;min-width:0;border:1px solid #D9DDE3;border-radius:7px;padding:6px 9px;font-size:12.5px;}
.wf-mgr-semi-go{border:none;background:#2563EB;color:#fff;border-radius:7px;padding:6px 12px;font-size:11.5px;font-weight:700;cursor:pointer;white-space:nowrap;}
.wf-mgr-semi-go:hover{background:#1d4fd7;}

/* Employee add/edit drawer — compact width matching the HTML side-drawer (480px), two-column form.
   Scoped to the add/edit drawers only so the wide workflow drawer is not affected. */
#addDrawer.employee-page,#editDrawer.employee-page{width:480px;}
@media(max-width:520px){#addDrawer.employee-page,#editDrawer.employee-page{width:100vw;}}
/* Employee workflow drawer — wide (tabs, tables, cards) */
#empWorkflowDrawer{width:1040px;max-width:100vw;}
@media(max-width:1080px){#empWorkflowDrawer{width:100vw;}}

/* Attendance Calendar — right-side drawer (portaled to <body> as #ewfCalPortal).
   Backdrop fades in; the panel slides from the right when .open is added. */
.ewf-cal-ov{position:fixed;inset:0;background:rgba(19,66,97,.45);z-index:1300;display:none;opacity:0;transition:opacity .22s;}
.ewf-cal-ov.open{opacity:1;}
.ewf-cal-panel{position:absolute;top:0;right:0;height:100vh;width:460px;max-width:100%;background:#fff;box-shadow:-6px 0 32px rgba(19,66,97,.28);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .27s cubic-bezier(.2,.8,.3,1);}
.ewf-cal-ov.open .ewf-cal-panel{transform:translateX(0);}
.ewf-cal-head{display:flex;align-items:center;gap:11px;padding:16px 18px;border-bottom:1px solid #D9DDE3;flex-shrink:0;}
.ewf-cal-htxt{flex:1;min-width:0;}
.ewf-cal-title{font-size:15px;font-weight:800;color:#134261;}
.ewf-cal-sub{font-size:11.5px;color:#6B7686;margin-top:1px;}
.ewf-cal-close{width:30px;height:30px;border-radius:8px;border:1px solid #D9DDE3;background:#fff;display:flex;align-items:center;justify-content:center;color:#6B7686;cursor:pointer;flex-shrink:0;}
.ewf-cal-close:hover{background:#F5F7FA;color:#134261;}
.ewf-cal-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;}
.ewf-cal-body{padding:16px 18px 24px;overflow-y:auto;flex:1;min-height:0;}
@media(max-width:500px){.ewf-cal-panel{width:100vw;}}
body.theme-dark .ewf-cal-panel{background:#16202b;box-shadow:-6px 0 32px rgba(0,0,0,.45);}
body.theme-dark .ewf-cal-head{border-color:#26333f;}
body.theme-dark .ewf-cal-title{color:#E6EDF3;}
body.theme-dark .ewf-cal-close{background:#1d2a36;border-color:#2f3d4a;color:#9AA7B4;}

/* Employee workflow: Calendar view button + monthly attendance calendar drawer */
.wf-cal-btn{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:7px 14px;border-radius:9px;border:1.5px solid #D9DDE3;background:#fff;color:#6B7686;cursor:pointer;transition:.15s;}
.wf-cal-btn:hover{border-color:#2164A6;color:#134261;}
.wf-cal-btn svg{width:14px;height:14px;}
.emp-cal-drawer{width:460px;z-index:600;}
#empCalDrawerBackdrop{z-index:599;}
@media(max-width:500px){.emp-cal-drawer{width:100vw;}}
.cal-legend{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:14px;}
.cal-legend .legend-item{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:#6B7686;}
.cal-legend .legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block;}
.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:6px;}
.cal-weekdays span{text-align:center;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#97A0B3;}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;}
.cal-day{position:relative;aspect-ratio:1/1;border:1px solid #E1EAF8;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;}
.cal-day.empty{border:none;background:transparent;}
.cal-day.weekend{background:#F7F9FC;}
.cal-day-num{font-size:12.5px;font-weight:700;color:#134261;}
.cal-day-dot{width:7px;height:7px;border-radius:50%;margin-top:4px;}

/* Employee workflow tab strip wraps onto multiple rows (like the HTML .wf-tabs) */
#empWorkflowContent .view-tabs{flex-wrap:wrap;gap:2px 3px;row-gap:2px;}

/* Calendar drawer — "This Week's Attendance" strip (like the HTML .week-attendance) */
.cal-weeklabel{font-size:10.5px;font-weight:700;color:#6B7686;text-transform:uppercase;letter-spacing:.4px;margin:18px 0 8px;}
.cal-weekstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;}
.cal-weekstrip .week-day{text-align:center;}
.cal-weekstrip .wd-label{font-size:10px;font-weight:700;color:#6B7686;margin-bottom:6px;text-transform:uppercase;}
.cal-weekstrip .wd-hours{font-size:13px;font-weight:800;color:#16A34A;background:rgba(22,163,74,.10);border-radius:9px;padding:8px 4px;}
.cal-weekstrip .week-day.partial .wd-hours{background:rgba(217,119,6,.10);color:#D97706;}
.cal-weekstrip .week-day.off .wd-hours{background:#F1F3F6;color:#97A0B3;}
.cal-weekstrip .week-day.today .wd-hours{box-shadow:inset 0 0 0 1.6px #2164A6;}

/* Employee workflow: approve / semi-approve / reject action buttons (loan / asset / leave rows) */
.emp-appr{display:inline-flex;gap:4px;}
.emp-appr-btn{width:26px;height:26px;border-radius:7px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.13s;padding:0;}
.emp-appr-btn svg{width:14px;height:14px;}
.emp-appr-btn.approve{background:#EAF7EE;color:#16A34A;border-color:#BBE6C8;}
.emp-appr-btn.approve:hover{background:#16A34A;color:#fff;}
.emp-appr-btn.semi{background:#EAF1FC;color:#2563EB;border-color:#BFDBFE;}
.emp-appr-btn.semi:hover{background:#2563EB;color:#fff;}
.emp-appr-btn.reject{background:#FDECEC;color:#DC2626;border-color:#F5C2C2;}
.emp-appr-btn.reject:hover{background:#DC2626;color:#fff;}

/* Labelled Approve / Semi-Approve / Reject button row (like the combined .mgr-act-row) */
.mgr-act-row{display:flex;gap:7px;margin-top:10px;}
.mgr-act-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 10px;border-radius:8px;font-size:12px;font-weight:700;border:none;cursor:pointer;transition:.13s;}
.mgr-act-btn svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.5;}
.mgr-act-btn.approve{background:rgba(22,163,74,.10);color:#16A34A;}
.mgr-act-btn.approve:hover{background:#16A34A;color:#fff;}
.mgr-act-btn.semi{background:rgba(37,99,235,.10);color:#2563EB;}
.mgr-act-btn.semi:hover{background:#2563EB;color:#fff;}
.mgr-act-btn.reject{background:rgba(220,38,38,.10);color:#DC2626;}
.mgr-act-btn.reject:hover{background:#DC2626;color:#fff;}

/* Semi-approval inline form (revealed by the Semi-Approve button) + already-semi banner */
.mgr-act-wrap{display:block;}
.mgr-semi-info{font-size:11.5px;font-weight:700;color:#2563EB;background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.18);border-radius:8px;padding:7px 10px;margin-bottom:8px;line-height:1.4;}
.mgr-semi-info b{color:#134261;}
.mgr-semi-box{display:none;background:#F5F7FA;border:1px solid #E3E8EF;border-radius:9px;padding:10px 12px;margin-top:8px;}
.mgr-semi-lbl{display:block;font-size:11px;font-weight:700;color:#2563EB;margin:0 0 5px;}
.mgr-semi-lbl:not(:first-child){margin-top:10px;}
.mgr-semi-req{font-weight:400;color:#6B7686;margin-left:3px;}
.mgr-semi-box .mgr-semi-val,.mgr-semi-box .mgr-semi-note{width:100%;box-sizing:border-box;font-family:inherit;font-size:12.5px;padding:7px 9px;border-radius:7px;border:1px solid #D9DDE3;background:#fff;color:#2E2E2E;}
.mgr-semi-box .mgr-semi-val:focus,.mgr-semi-box .mgr-semi-note:focus{outline:none;border-color:#2164A6;}
.mgr-semi-box .mgr-semi-note{resize:vertical;}
.mgr-semi-confirm{margin-top:9px;width:100%;padding:8px;background:#2563EB;border:none;border-radius:8px;color:#fff;font-weight:700;font-size:12px;cursor:pointer;}
.mgr-semi-confirm:hover{filter:brightness(.95);}
body.theme-dark .mgr-semi-box{background:#1a2531;border-color:#26333f;}
body.theme-dark .mgr-semi-box .mgr-semi-val,body.theme-dark .mgr-semi-box .mgr-semi-note{background:#1d2a36;border-color:#2f3d4a;color:#E6EDF3;}

/* Pending-request card that carries the labelled action row (table tabs) */
.wf-pend-wrap{margin-top:6px;}
.wf-pend-label{font-size:11px;font-weight:800;color:#D97706;text-transform:uppercase;letter-spacing:.4px;margin:14px 0 8px;}
.wf-pend-card{border:1px solid #E3E8EF;border-radius:11px;padding:12px 13px;margin-bottom:10px;background:#fff;}
.wf-pend-card .wf-pend-hd{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;}
.wf-pend-card .wf-pend-title{font-size:13px;font-weight:800;color:#134261;}

/* Employee workflow: pending request cards (like the HTML .prv-card) */
.wf-pending-label{font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#D97706;margin:2px 0 10px;}
.prv-card{border:1px solid #E1EAF8;border-left:3px solid #D97706;border-radius:11px;padding:12px 14px;margin-bottom:12px;background:#fff;}
.prv-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.prv-title{font-size:13.5px;font-weight:800;color:#134261;}
.prv-sub{font-size:11.5px;color:#6B7686;margin-top:3px;line-height:1.4;}
.prv-amt{font-size:14px;font-weight:800;color:#134261;white-space:nowrap;}
.prv-actions{display:flex;gap:7px;margin-top:11px;}
.prv-btn{flex:1;width:auto;height:auto;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 8px;border-radius:8px;font-size:12px;font-weight:700;border:1px solid transparent;cursor:pointer;}
.prv-btn svg{width:12px;height:12px;stroke-width:2.5;}
.prv-btn.approve{background:#EAF7EE;color:#16A34A;}
.prv-btn.approve:hover{background:#16A34A;color:#fff;}
.prv-btn.counter{background:#EAF1FC;color:#2563EB;}
.prv-btn.counter:hover{background:#2563EB;color:#fff;}
.prv-btn.reject{background:#FDECEC;color:#DC2626;}
.prv-btn.reject:hover{background:#DC2626;color:#fff;}

/* ================= GPS tab (workflow drawer) ================= */
/* Login-location policy selector (ref combined .gps-policy-*) */
.gps-policy-card{border:1px solid #D9DDE3;border-radius:12px;padding:14px 15px;margin-bottom:16px;}
.gps-policy-title{font-size:13px;font-weight:800;color:#134261;margin-bottom:5px;}
.gps-policy-sub{font-size:11.5px;color:#6B7686;margin-bottom:12px;line-height:1.4;}
.gps-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
@media(max-width:520px){.gps-policy-grid{grid-template-columns:1fr;}}
.gps-policy-opt{border:1.5px solid #D9DDE3;border-radius:11px;padding:11px 12px;cursor:pointer;transition:border-color .15s,background .15s;position:relative;}
.gps-policy-opt:hover{border-color:#2164A6;}
.gps-policy-opt.on{border-color:#2164A6;background:#EAF1FA;}
.gps-policy-opt .gpo-t{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:#134261;padding-right:22px;}
.gps-policy-opt .gpo-d{font-size:11px;color:#6B7686;margin-top:5px;line-height:1.4;}
.gps-policy-opt .gpo-check{position:absolute;top:10px;right:10px;width:18px;height:18px;border-radius:50%;border:2px solid #D9DDE3;display:flex;align-items:center;justify-content:center;}
.gps-policy-opt.on .gpo-check{border-color:#2164A6;background:#2164A6;}
.gps-policy-opt.on .gpo-check svg{width:10px;height:10px;stroke:#fff;fill:none;stroke-width:3;}
.gps-policy-opt:not(.on) .gpo-check svg{display:none;}

/* Capture rows (tap to open the map popup) */
.gps-cap-label{font-size:10.5px;font-weight:700;color:#6B7686;text-transform:uppercase;letter-spacing:.4px;margin:4px 0 8px;}
.gps-cap-row{display:flex;align-items:center;gap:10px;border:1px solid #D9DDE3;border-radius:10px;padding:9px 12px;margin-bottom:7px;cursor:pointer;transition:border-color .15s,background .15s;}
.gps-cap-row:hover{border-color:#2164A6;background:#F5F8FC;}
.gps-cap-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.gps-cap-main{flex:1;min-width:0;}
.gps-cap-loc{font-size:12.5px;font-weight:700;color:#134261;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gps-cap-sub{font-size:11px;color:#6B7686;}
.gps-cap-pin{width:15px;height:15px;fill:none;stroke-width:2;flex-shrink:0;}
.gps-cap-status{font-size:10px;font-weight:700;flex-shrink:0;}

/* Map popup — portalled to <body> so it escapes the drawer stacking context */
.gps-map-ov{position:fixed;inset:0;background:rgba(19,66,97,.45);z-index:1300;display:none;align-items:center;justify-content:center;padding:20px;}
.gps-map-card{background:#fff;width:min(600px,96vw);max-width:100%;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(19,66,97,.35);}
.gps-map-head{display:flex;align-items:center;gap:11px;padding:15px 18px;background:linear-gradient(135deg,#134261 0%,#2164A6 100%);}
.gps-map-ic{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.gps-map-ic svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2.2;}
.gps-map-htxt{flex:1;min-width:0;}
.gps-map-title{font-size:15.5px;font-weight:800;color:#fff;}
.gps-map-hsub{font-size:11.5px;color:rgba(255,255,255,.8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gps-map-close{width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.16);border:none;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.gps-map-close svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;}
.gps-map-frame{width:100%;height:300px;border:0;display:block;}
.gps-map-noframe{height:200px;display:flex;align-items:center;justify-content:center;color:#6B7686;font-size:13px;}
.gps-map-body{padding:14px 18px;}
.gps-map-info{display:flex;align-items:center;gap:10px;background:#F5F7FA;border-radius:11px;padding:11px 13px;}
.gps-map-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.gps-map-itxt{flex:1;min-width:0;}
.gps-map-loc{font-size:13.5px;font-weight:800;color:#134261;}
.gps-map-coords{font-size:11.5px;color:#6B7686;}
.gps-map-link{font-size:11.5px;font-weight:700;color:#2164A6;text-decoration:none;background:#EAF1FA;padding:6px 11px;border-radius:8px;flex-shrink:0;}

/* ================= Unified file upload — ONE consistent look everywhere =================
   Overrides all the older per-context .file-upload styles so every upload field on the
   site looks and behaves identically: a compact dashed box that shows the file name. */
.file-upload{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:44px !important;
  height:auto !important;
  padding:10px 14px !important;
  border:1.5px dashed #C7D2E0 !important;
  border-radius:9px !important;
  background:#F7F9FC !important;
  color:#6B7686 !important;
  cursor:pointer !important;
  overflow:hidden !important;
  text-align:center !important;
  transition:.15s !important;
  box-shadow:none !important;
}
.file-upload:hover{border-color:#2563EB !important;background:#F3F7FD !important;}
.file-upload input[type="file"]{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:0 !important;
  margin:0 !important;
  padding:0 !important;
  cursor:pointer !important;
}
.file-upload .placeholder-data{margin:0 !important;width:100%;min-width:0;}
.file-upload .placeholder-data i,
.file-upload .placeholder-data svg{display:none !important;}
.file-upload .placeholder-data p{
  margin:0 !important;font-size:13px !important;font-weight:600 !important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.file-upload .preview{display:none !important;}   /* filename shown in the box — no thumbnail grid */
.file-upload.has-file{border-color:#16A34A !important;background:#F3FBF6 !important;border-style:solid !important;}
.file-upload.has-file .placeholder-data{display:block !important;}
.file-upload.has-file .placeholder-data p{color:#16A34A !important;}
.file-upload.dragover{border-color:#2563EB !important;background:#EAF1FC !important;}

/* Config-style toggle box (like the HTML .cfg-toggle) — wraps a real checkbox */
.cfg-toggle{display:inline-flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #D9DDE3;border-radius:9px;background:#fff;cursor:pointer;font-size:12.5px;font-weight:600;color:#134261;user-select:none;margin:0;}
.cfg-toggle input[type="checkbox"]{position:absolute;opacity:0;width:0;height:0;margin:0;}
.cfg-toggle .toggle-track{width:34px;height:19px;border-radius:20px;background:#CBD2DC;position:relative;flex-shrink:0;transition:background .18s;}
.cfg-toggle .toggle-track::after{content:"";position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#fff;transition:transform .18s;box-shadow:0 1px 2px rgba(0,0,0,.2);}
.cfg-toggle input[type="checkbox"]:checked ~ .toggle-track{background:#134261;}
.cfg-toggle input[type="checkbox"]:checked ~ .toggle-track::after{transform:translateX(15px);}

/* PDC receiver / bank select-box: keep the selected value on a single line */
.receiver-select .selected,
.bank-select .selected{flex-wrap:nowrap;min-width:0;}
.receiver-select .select-box-placeholder,
.bank-select .select-box-placeholder{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.receiver-select .options-list li .subledger-name,
.bank-select .options-list li .subledger-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* Purchase-order status dropdown — manually toggled, positioned below-right of the button */
.table_actions .btn-group{position:relative;}
.table_actions .btn-group > .dropdown-menu{position:absolute;top:100%;right:0;left:auto;z-index:1051;margin-top:4px;min-width:190px;border:1px solid #E5E9EF;border-radius:10px;box-shadow:0 8px 26px rgba(19,66,97,.14);padding:6px;background:#fff;}
.table_actions .btn-group > .dropdown-menu.show{display:block;}
.table_actions .btn-group > .dropdown-menu li{list-style:none;}
.table_actions .btn-group > .dropdown-menu .dropdown-item{padding:7px 10px;font-size:13px;font-weight:600;border-radius:7px;cursor:pointer;}
.table_actions .btn-group > .dropdown-menu .dropdown-item:hover{background:#F3F7FD;color:#134261;}

/* Profile page — matches the app card/form design system */
.profile-form .profile-card{background:#fff;border:1px solid #E5E9EF;border-radius:16px;padding:24px 26px;box-shadow:0 1px 2px rgba(19,66,97,.05);max-width:1040px;}
.profile-avatar-row{display:flex;align-items:center;gap:20px;padding-bottom:22px;margin-bottom:4px;border-bottom:1px solid #EEF1F6;flex-wrap:wrap;}
.profile-avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid #EAF1FC;flex-shrink:0;background:#F3F7FD;}
.profile-avatar-row h5{margin:0 0 2px;font-size:15px;font-weight:700;color:#134261;}
.profile-avatar-row p{margin:0 0 10px;font-size:12.5px;color:#6B7686;}
.profile-form .input_password{position:relative;}
.profile-form .input_password input{width:100%;padding-right:38px;}
.profile-form .input_password .password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);cursor:pointer;color:#97A0B3;font-size:16px;}

/* ===== Checkboxes / radios — clean, app-consistent (replaces the bright #0d6efd) ===== */
.form-check-input{width:16px;height:16px;margin-top:.15em;border:1.5px solid #C7D2E0;background-color:#fff;cursor:pointer;transition:.12s;}
.form-check-input:checked{background-color:#2164A6;border-color:#2164A6;}
.form-check-input:indeterminate{background-color:#2164A6;border-color:#2164A6;}
.form-check-input:focus{border-color:#7FB0E6;box-shadow:0 0 0 3px rgba(33,100,166,.15);outline:none;}
.form-check-input:disabled{opacity:.55;}
/* keep the switch variant a pill, just recoloured to the app accent */
.form-switch .form-check-input{width:2.1em;border-radius:2em;}

/* ===== Role "Select Role" field — clean form-field dropdown (not the pill button) ===== */
.role-select-field .add_expenses{
    width:100% !important;
    justify-content:space-between !important;
    gap:10px;
    padding:9px 14px !important;
    font-size:14px !important;
    font-weight:500 !important;
    background-color:#fff !important;
    color:#134261 !important;
    border:1px solid #D9DDE3 !important;
    border-radius:9px !important;
}
.role-select-field .add_expenses:hover{background-color:#F7F9FC !important;color:#134261 !important;border-color:#B9D2EE !important;}
.role-select-field .add_expenses .expIcon{transition:transform .18s;}
.role-select-field .add_expenses .expIcon path{stroke:#6B7686 !important;}
.role-select-field .add_expenses .expIcon.active{transform:rotate(180deg);}
.role-select-field .add_exprense_dropdown_container{margin-top:6px;border:1px solid #E1EAF8;border-radius:9px;box-shadow:0 8px 24px rgba(19,66,97,.10);background:#fff;overflow:hidden;}
.role-select-field .add_exprense_dropdown_container a{display:block;padding:9px 14px;font-size:13.5px;color:#134261;text-decoration:none;}
.role-select-field .add_exprense_dropdown_container a:hover{background:#F3F7FD;}

/* ============================================================
   PROCUREMENT HUB KPI DASHBOARD (.procurement-page .dash-top)
   ST-ERP-Complete .dcard KPI cards — icon, big value, sub
   amount, progress bar, footer tag. Scoped to procurement hub.
   ============================================================ */
.procurement-page .dash-top{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px;}
@media(max-width:1200px){.procurement-page .dash-top{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.procurement-page .dash-top{grid-template-columns:1fr;}}
.procurement-page .dcard{background:#fff;border:1px solid #E5E9EF;border-radius:16px;padding:18px 20px;position:relative;overflow:hidden;box-shadow:0 1px 2px rgba(19,66,97,.05);transition:transform .16s,box-shadow .16s;}
.procurement-page .dcard:hover{transform:translateY(-2px);box-shadow:0 4px 14px rgba(19,66,97,.09);}
.procurement-page .dcard .dc-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.procurement-page .dcard .dc-lab{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#6B7686;line-height:1.3;}
.procurement-page .dcard .dc-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex:none;}
.procurement-page .dcard .dc-ic svg{width:22px;height:22px;stroke-width:2;fill:none;}
.procurement-page .dcard .dc-big{font-size:30px;font-weight:800;color:#0f2540;margin-top:12px;line-height:1;letter-spacing:-.5px;}
.procurement-page .dcard .dc-big small{font-size:13px;font-weight:700;color:#6B7686;margin-left:4px;}
.procurement-page .dcard .dc-sub{font-size:13px;color:#97A0B3;margin-top:4px;font-weight:600;}
.procurement-page .dcard .dc-bar{height:6px;border-radius:99px;background:#eef2f6;margin-top:14px;overflow:hidden;}
.procurement-page .dcard .dc-bar > i{display:block;height:100%;border-radius:99px;}
.procurement-page .dcard .dc-foot{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-size:11.5px;color:#97A0B3;font-weight:600;gap:8px;}
.procurement-page .dc-tag{display:inline-block;padding:3px 9px;border-radius:8px;font-size:11px;font-weight:800;white-space:nowrap;}
.procurement-page .dc-tag.up{background:#eaf7ee;color:#15803d;}
.procurement-page .dc-tag.warn{background:#fef4e6;color:#b45309;}
.procurement-page .dc-tag.mut{background:#eef2f6;color:#475569;}

/* Supplier-rates picker must slide in ON TOP of the procurement order drawer/form */
#supplierRatesModal.supplier-rates-drawer { z-index: 10060 !important; }
#supplierRatesModal.supplier-rates-drawer .st-popup-content { box-shadow: -16px 0 40px rgba(10,30,61,.22); }

/* =====================================================================
   ============= v6 DESIGN SYSTEM (content) =============================
   Scoped under `.erp-shell .content-area` so it overrides page-specific
   rules via specificity while never touching the shell chrome
   (sidebar / header / footer live outside `.content-area`).
   Light-mode styling; dark mode is handled by erp-dark.css.
   ===================================================================== */

/* -------- 1. BASE TYPOGRAPHY ---------------------------------------- */
.erp-shell .content-area {
  color: var(--v6-text);
  -webkit-font-smoothing: antialiased;
}
.erp-shell .content-area h1,
.erp-shell .content-area h2,
.erp-shell .content-area h3,
.erp-shell .content-area h4,
.erp-shell .content-area h5,
.erp-shell .content-area h6 {
  color: var(--v6-heading);
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.erp-shell .content-area h1 { font-size: 22px; letter-spacing: -.5px; }
.erp-shell .content-area h2 { font-size: 19px; letter-spacing: -.4px; font-weight: 700; }
.erp-shell .content-area h3 { font-size: 16.5px; letter-spacing: -.3px; font-weight: 700; }
.erp-shell .content-area h4 { font-size: 15px; font-weight: 700; }
.erp-shell .content-area h5 { font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; }
.erp-shell .content-area h6 { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--v6-muted); }
.erp-shell .content-area p { color: var(--v6-text); line-height: 1.6; }
.erp-shell .content-area a { color: var(--v6-accent); text-decoration: none; transition: color .15s; }
.erp-shell .content-area a:hover { color: var(--v6-primary); }
.erp-shell .content-area small { font-size: 11.5px; color: var(--v6-muted); }
.erp-shell .content-area label { color: var(--v6-text); font-weight: 600; }
.erp-shell .content-area hr { border: none; border-top: 1px solid var(--v6-border); margin: 16px 0; opacity: 1; }
.erp-shell .content-area .text-muted,
.erp-shell .content-area .text-secondary { color: var(--v6-muted) !important; }

/* -------- 2. BUTTONS ------------------------------------------------ */
.erp-shell .content-area .btn,
.erp-shell .content-area button.save,
.erp-shell .content-area .form_discard_save .save,
.erp-shell .content-area .form_discard_save .discard,
.erp-shell .content-area .form_discard_save .skip_btn,
.erp-shell .content-area .st-popup-btn,
.erp-shell .content-area .add_btn,
.erp-shell .content-area .filter_btn,
.erp-shell .content-area .asset_filter_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 15px;
  border-radius: var(--v6-radius);
  border: 1px solid var(--v6-border);
  background: var(--v6-surface);
  color: var(--v6-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.erp-shell .content-area .btn svg,
.erp-shell .content-area .st-popup-btn svg { width: 15px; height: 15px; }
.erp-shell .content-area .btn:hover { border-color: var(--v6-border-strong); background: var(--v6-surface-2); }
.erp-shell .content-area .btn:active { transform: translateY(.5px); }
.erp-shell .content-area .btn:focus-visible { outline: none; box-shadow: var(--v6-ring); }

/* Primary / save / submit — navy fill */
.erp-shell .content-area .btn-primary,
.erp-shell .content-area .btn-primary-modern,
.erp-shell .content-area button.save,
.erp-shell .content-area .form_discard_save .save,
.erp-shell .content-area .st-popup-btn.save,
.erp-shell .content-area .add_btn {
  background: var(--v6-primary);
  border-color: var(--v6-primary);
  color: #fff;
  box-shadow: var(--v6-shadow);
}
.erp-shell .content-area .btn-primary:hover,
.erp-shell .content-area .btn-primary-modern:hover,
.erp-shell .content-area button.save:hover,
.erp-shell .content-area .form_discard_save .save:hover,
.erp-shell .content-area .st-popup-btn.save:hover,
.erp-shell .content-area .add_btn:hover {
  background: var(--v6-primary-d);
  border-color: var(--v6-primary-d);
  color: #fff;
  box-shadow: var(--v6-shadow-h);
}

/* Secondary / discard / cancel — bordered neutral */
.erp-shell .content-area .btn-secondary,
.erp-shell .content-area .form_discard_save .discard,
.erp-shell .content-area .filter_btn,
.erp-shell .content-area .asset_filter_btn {
  background: var(--v6-surface);
  border-color: var(--v6-border);
  color: var(--v6-text);
}
.erp-shell .content-area .btn-secondary:hover,
.erp-shell .content-area .form_discard_save .discard:hover,
.erp-shell .content-area .filter_btn:hover,
.erp-shell .content-area .asset_filter_btn:hover {
  background: var(--v6-surface-2);
  border-color: var(--v6-border-strong);
  color: var(--v6-heading);
}

/* Outline variants */
.erp-shell .content-area .btn-outline-primary { background: transparent; border-color: var(--v6-primary); color: var(--v6-primary); }
.erp-shell .content-area .btn-outline-primary:hover { background: var(--v6-primary); color: #fff; }
.erp-shell .content-area .btn-outline-secondary { background: transparent; border-color: var(--v6-border-strong); color: var(--v6-muted); }
.erp-shell .content-area .btn-outline-secondary:hover { background: var(--v6-surface-2); color: var(--v6-heading); }
.erp-shell .content-area .btn-outline-danger { background: transparent; border-color: var(--v6-danger); color: var(--v6-danger); }
.erp-shell .content-area .btn-outline-danger:hover { background: var(--v6-danger); color: #fff; }

/* Danger / delete — placed after .discard so combined `.discard.btn-danger` wins */
.erp-shell .content-area .btn-danger,
.erp-shell .content-area .form_discard_save .skip_btn {
  background: var(--v6-danger);
  border-color: var(--v6-danger);
  color: #fff;
}
.erp-shell .content-area .btn-danger:hover,
.erp-shell .content-area .form_discard_save .skip_btn:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* Success */
.erp-shell .content-area .btn-success { background: var(--v6-success); border-color: var(--v6-success); color: #fff; }
.erp-shell .content-area .btn-success:hover { background: #15803d; border-color: #15803d; color: #fff; }

/* Sizes */
.erp-shell .content-area .btn-sm { padding: 6px 11px; font-size: 12px; border-radius: var(--v6-radius-sm); }
.erp-shell .content-area .btn-lg { padding: 11px 20px; font-size: 13.5px; }
.erp-shell .content-area .btn:disabled,
.erp-shell .content-area .btn.disabled { opacity: .55; cursor: not-allowed; }

/* -------- 3. FORM CONTROLS ----------------------------------------- */
.erp-shell .content-area input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]),
.erp-shell .content-area textarea,
.erp-shell .content-area select,
.erp-shell .content-area .form-control,
.erp-shell .content-area .form-select,
.erp-shell .content-area .form_input input,
.erp-shell .content-area .form_input textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: var(--v6-text);
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius);
  padding: 8px 12px;
  min-height: 38px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.erp-shell .content-area textarea,
.erp-shell .content-area .form_input textarea { min-height: 78px; resize: vertical; }
.erp-shell .content-area select,
.erp-shell .content-area .form-select { padding-right: 32px; cursor: pointer; }
.erp-shell .content-area input:focus,
.erp-shell .content-area textarea:focus,
.erp-shell .content-area select:focus,
.erp-shell .content-area .form-control:focus,
.erp-shell .content-area .form-select:focus,
.erp-shell .content-area .form_input input:focus,
.erp-shell .content-area .form_input textarea:focus {
  border-color: var(--v6-accent);
  box-shadow: var(--v6-ring);
  outline: none;
}
.erp-shell .content-area input::placeholder,
.erp-shell .content-area textarea::placeholder,
.erp-shell .content-area .form_input input::placeholder { color: var(--v6-muted); opacity: 1; }
.erp-shell .content-area .form_input label,
.erp-shell .content-area .form-label,
.erp-shell .content-area .up_label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--v6-primary);
  margin-bottom: 5px;
}
.erp-shell .content-area .form_input label span,
.erp-shell .content-area .up_label span { color: var(--v6-danger); }
/* checkboxes / radios / switches */
.erp-shell .content-area input[type=checkbox],
.erp-shell .content-area input[type=radio] { accent-color: var(--v6-primary); width: 15px; height: 15px; cursor: pointer; }
.erp-shell .content-area .form-check-input { border: 1px solid var(--v6-border-strong); }
.erp-shell .content-area .form-check-input:checked { background-color: var(--v6-primary); border-color: var(--v6-primary); }
.erp-shell .content-area .form-check-input:focus { border-color: var(--v6-accent); box-shadow: var(--v6-ring); }
.erp-shell .content-area .form-switch .form-check-input:checked { background-color: var(--v6-primary); border-color: var(--v6-primary); }
.erp-shell .content-area .input-group-text {
  background: var(--v6-surface-2);
  border: 1px solid var(--v6-border);
  color: var(--v6-muted);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--v6-radius);
}
.erp-shell .content-area .select-box .selected {
  border-radius: var(--v6-radius);
  border: 1px solid var(--v6-border);
  min-height: 38px;
}
.erp-shell .content-area .select-box .selected:focus,
.erp-shell .content-area .select-box.open .selected { border-color: var(--v6-accent); box-shadow: var(--v6-ring); }

/* -------- 4. TABLES ------------------------------------------------- */
.erp-shell .content-area table,
.erp-shell .content-area .table,
.erp-shell .content-area .common_table .table,
.erp-shell .content-area .purchase_data_table .table,
.erp-shell .content-area .expense_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: var(--v6-text);
}
.erp-shell .content-area table thead th,
.erp-shell .content-area .table thead th,
.erp-shell .content-area .common_table .table thead tr th,
.erp-shell .content-area .purchase_data_table .table thead tr th,
.erp-shell .content-area .expense_table thead th {
  background: var(--v6-surface-2);
  color: var(--v6-muted);
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 10px 14px;
  height: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--v6-border);
}
.erp-shell .content-area table tbody td,
.erp-shell .content-area table tbody th,
.erp-shell .content-area .table tbody td,
.erp-shell .content-area .common_table .table tbody tr td,
.erp-shell .content-area .common_table .table tbody tr th,
.erp-shell .content-area .purchase_data_table .table tbody tr td,
.erp-shell .content-area .expense_table tbody td {
  padding: 10px 14px;
  height: auto;
  font-size: 12.5px;
  /* 400, not 500: no mockup module sets font-weight on `td` — all ten inherit
     the 400 default. Forcing 500 here flattened the deliberate weight hierarchy,
     because the rows the mockup *does* bold (group/total/running-balance at
     600-700, and inline font-weight:500 on ledger and party names) no longer
     stood apart from ordinary cells. */
  font-weight: 400;
  color: var(--v6-text);
  border-bottom: 1px solid var(--v6-border);
  vertical-align: middle;
}
.erp-shell .content-area .common_table .table tr { border-top: none; border-bottom: 1px solid var(--v6-border); }
/* Row hover. Two things were wrong here:
   (a) the tint — every mockup module hovers rows to a light BLUE
       (var(--accent-soft) / --light-blue / rgba(33,100,166,.03)); this painted
       flat grey #F1F5F9 instead;
   (b) it must stay on the `td`. A cell background always paints above its row
       background, so a `tr:hover{background:…}` in any view is invisible while
       this rule exists. Views that set row hover on the `tr` were silently
       losing to this rule — keep the cell-level selector and fix the colour
       here rather than adding competing `tr` rules per screen. */
.erp-shell .content-area table tbody tr:hover td,
.erp-shell .content-area .table tbody tr:hover td,
.erp-shell .content-area .common_table .table tbody tr:hover td,
.erp-shell .content-area .purchase_data_table .table tbody tr:hover td { background: var(--v6-accent-soft); }
.erp-shell .content-area .common_table .table tbody tr:nth-child(even) { background: var(--v6-surface-2); }
.erp-shell .content-area .common_table .table tbody tr:nth-child(even):hover td { background: var(--v6-accent-soft); }

/* DataTables + app pager */
.erp-shell .content-area .dataTables_wrapper .dataTables_filter input,
.erp-shell .content-area .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius);
  padding: 7px 11px;
  font-size: 12.5px;
  background: var(--v6-surface);
}
.erp-shell .content-area .dataTables_wrapper .dataTables_info { color: var(--v6-muted); font-size: 12px; }
.erp-shell .content-area .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid var(--v6-border) !important;
  border-radius: var(--v6-radius-sm) !important;
  padding: 6px 11px !important;
  margin: 0 2px;
  color: var(--v6-text) !important;
  background: var(--v6-surface) !important;
  font-size: 12.5px;
}
.erp-shell .content-area .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.erp-shell .content-area .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--v6-primary) !important;
  border-color: var(--v6-primary) !important;
  color: #fff !important;
}
.erp-shell .content-area .pagination_number {
  height: 34px; width: 34px;
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-sm);
  color: var(--v6-text);
  font-size: 13px;
  font-weight: 600;
}
.erp-shell .content-area .pagination_number.active,
.erp-shell .content-area .pagination_number:hover { background: var(--v6-primary); border-color: var(--v6-primary); color: #fff; }
.erp-shell .content-area .row_per_page select {
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-sm);
  padding: 5px 8px;
  min-height: 32px;
}
.erp-shell .content-area .table-responsive {
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-lg);
  overflow: visible;
}

/* -------- 5. CARDS / PANELS / SECTIONS ----------------------------- */
.erp-shell .content-area .card,
.erp-shell .content-area .box,
.erp-shell .content-area .panel {
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-lg);
  box-shadow: var(--v6-shadow);
}
.erp-shell .content-area .card:hover { box-shadow: var(--v6-shadow-h); }
.erp-shell .content-area .card-header,
.erp-shell .content-area .panel-heading {
  background: var(--v6-surface);
  border-bottom: 1px solid var(--v6-border);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--v6-heading);
  letter-spacing: -.2px;
  border-top-left-radius: var(--v6-radius-lg);
  border-top-right-radius: var(--v6-radius-lg);
}
.erp-shell .content-area .card-body { padding: 18px; }
.erp-shell .content-area .card-footer {
  background: var(--v6-surface-2);
  border-top: 1px solid var(--v6-border);
  padding: 12px 18px;
  border-bottom-left-radius: var(--v6-radius-lg);
  border-bottom-right-radius: var(--v6-radius-lg);
}
.erp-shell .content-area .view-section,
.erp-shell .content-area .tw-section {
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-lg);
  box-shadow: var(--v6-shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}
/* v6 .form-section — a section divider, NOT a boxed card */
.erp-shell .content-area .form-section {
  background: none;
  border: none;
  border-bottom: 1px solid var(--v6-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 18px;
  margin-bottom: 22px;
}
/* Drawers / popups / modals render OUTSIDE .content-area (in @section('footer')),
   so mirror the v6 form-section styling for them too. */
.drawer .form-section-title,
.st-popup .form-section-title,
.modal .form-section-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy, #134261);
  margin-bottom: 14px;
  padding-left: 11px;
  border-left: 3px solid var(--accent, #2164A6);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.drawer .form-section,
.st-popup .form-section,
.modal .form-section {
  background: none;
  border: none;
  border-bottom: 1px solid var(--v6-border, #E2E8F0);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 18px;
  margin-bottom: 22px;
}
.drawer .view-section-title,
.drawer .tw-section-title,
.st-popup .view-section-title,
.modal .view-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--navy, #134261);
  margin-bottom: 10px;
}
.drawer .view-section-title svg,
.drawer .tw-section-title svg { width: 14px; height: 14px; color: var(--accent, #2164A6); }
/* v6 .form-section-title — navy title with accent left-bar (exact v6 spec) */
.erp-shell .content-area .form-section-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy, #134261);
  margin-bottom: 14px;
  padding-left: 11px;
  border-left: 3px solid var(--accent, #2164A6);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
  padding-bottom: 0;
}
/* v6 .tr-section-title — uppercase title with icon (view / workflow sections) */
.erp-shell .content-area .view-section-title,
.erp-shell .content-area .tw-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--navy, #134261);
  margin-bottom: 10px;
}
.erp-shell .content-area .view-section-title svg,
.erp-shell .content-area .tw-section-title svg { width: 14px; height: 14px; color: var(--accent, #2164A6); }
.erp-shell .content-area .detail_heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--v6-muted);
  margin-bottom: 4px;
}
.erp-shell .content-area .detail_text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v6-heading);
}

/* -------- 6. BADGES / PILLS / STATUS CHIPS ------------------------- */
.erp-shell .content-area .badge,
.erp-shell .content-area .pill,
.erp-shell .content-area .chip,
.erp-shell .content-area .tag,
.erp-shell .content-area .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--v6-pill);
  background: var(--v6-neutral-soft);
  color: var(--v6-muted);
  white-space: nowrap;
}
/* state variants (semantic + common app status words) */
.erp-shell .content-area .badge.success,   .erp-shell .content-area .pill.success,   .erp-shell .content-area .chip.success,
.erp-shell .content-area .status-badge.approved, .erp-shell .content-area .status-badge.completed, .erp-shell .content-area .status-badge.active,
.erp-shell .content-area .pill.approved,   .erp-shell .content-area .pill.completed,  .erp-shell .content-area .pill.paid,
.erp-shell .content-area .badge-success,   .erp-shell .content-area .bg-success {
  background: var(--v6-success-soft); color: var(--v6-success);
}
.erp-shell .content-area .badge.warning,   .erp-shell .content-area .pill.warning,   .erp-shell .content-area .chip.warning,
.erp-shell .content-area .status-badge.in-progress, .erp-shell .content-area .status-badge.pending, .erp-shell .content-area .status-badge.hold,
.erp-shell .content-area .pill.pending,    .erp-shell .content-area .pill.progress,   .erp-shell .content-area .pill.partial,
.erp-shell .content-area .badge-warning,   .erp-shell .content-area .bg-warning {
  background: var(--v6-warning-soft); color: #B45309;
}
.erp-shell .content-area .badge.danger,    .erp-shell .content-area .pill.danger,     .erp-shell .content-area .chip.danger,
.erp-shell .content-area .status-badge.rejected, .erp-shell .content-area .status-badge.cancelled, .erp-shell .content-area .status-badge.overdue,
.erp-shell .content-area .pill.rejected,   .erp-shell .content-area .pill.cancelled,  .erp-shell .content-area .pill.unpaid,
.erp-shell .content-area .badge-danger,    .erp-shell .content-area .bg-danger {
  background: var(--v6-danger-soft); color: var(--v6-danger);
}
.erp-shell .content-area .badge.info,      .erp-shell .content-area .pill.info,       .erp-shell .content-area .chip.info,
.erp-shell .content-area .status-badge.new, .erp-shell .content-area .pill.new,        .erp-shell .content-area .pill.open,
.erp-shell .content-area .badge-info,      .erp-shell .content-area .bg-info,         .erp-shell .content-area .bg-primary {
  background: var(--v6-accent-soft); color: var(--v6-accent);
}
.erp-shell .content-area .badge.neutral,   .erp-shell .content-area .pill.neutral,    .erp-shell .content-area .chip.neutral,
.erp-shell .content-area .status-badge.draft, .erp-shell .content-area .pill.draft,    .erp-shell .content-area .pill.closed,
.erp-shell .content-area .bg-secondary {
  background: var(--v6-neutral-soft); color: var(--v6-muted);
}

/* -------- 7. TABS / NAV -------------------------------------------- */
.erp-shell .content-area .nav-tabs {
  border-bottom: 1px solid var(--v6-border);
  gap: 2px;
}
.erp-shell .content-area .nav-tabs .nav-link,
.erp-shell .content-area .content-tabs .tab {
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--v6-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.1px;
  padding: 10px 14px;
  border-radius: 0;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.erp-shell .content-area .nav-tabs .nav-link:hover,
.erp-shell .content-area .content-tabs .tab:hover { color: var(--v6-primary); border-bottom-color: var(--v6-border-strong); }
.erp-shell .content-area .nav-tabs .nav-link.active,
.erp-shell .content-area .content-tabs .tab.active {
  color: var(--v6-primary);
  background: none;
  border-bottom-color: var(--v6-primary);
}

/* -------- 8. MODALS / POPUPS / DRAWERS ----------------------------- */
.erp-shell .content-area .modal-content,
.erp-shell .content-area .st-popup-content {
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-lg);
  box-shadow: var(--v6-shadow-lift);
}
.erp-shell .content-area .modal-header,
.erp-shell .content-area .st-popup-heading {
  border-bottom: 1px solid var(--v6-border);
  padding: 16px 20px;
}
.erp-shell .content-area .modal-header .modal-title,
.erp-shell .content-area .st-popup-heading h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--v6-primary);
}
.erp-shell .content-area .modal-body,
.erp-shell .content-area .st-popup-container { padding: 20px; }
.erp-shell .content-area .modal-footer{
  border-top: 1px solid var(--v6-border);
  padding: 14px 20px;
  gap: 8px;
}
.erp-shell .content-area .close-modal {
  border-radius: var(--v6-radius);
  border: 1px solid var(--v6-border);
  color: var(--v6-muted);
}
.erp-shell .content-area .close-modal:hover { background: var(--v6-bg); color: var(--v6-primary); }

/* -------- 9. MISC (empty states, tooltips, counters, kpi) ---------- */
.erp-shell .content-area .empty-state,
.erp-shell .content-area .no-data,
.erp-shell .content-area .no_data_found,
.erp-shell .content-area .no-records {
  text-align: center;
  color: var(--v6-muted);
  font-size: 13px;
  padding: 36px 20px;
  line-height: 1.6;
}
.erp-shell .content-area .empty-state svg,
.erp-shell .content-area .no-data svg { width: 40px; height: 40px; color: var(--v6-border-strong); margin-bottom: 10px; }
.erp-shell .content-area .count-badge,
.erp-shell .content-area .counter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--v6-pill);
  background: var(--v6-primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.erp-shell .content-area .tooltip-box,
.erp-shell .content-area [data-tip]::after {
  background: var(--v6-heading);
  color: #fff;
  font-size: 11.5px;
  border-radius: var(--v6-radius-sm);
  padding: 6px 9px;
  box-shadow: var(--v6-shadow-lift);
}
/* Generic KPI blocks that are NOT dashboard `.ovd-*` / `.dk-*` / `.eo-*` */
.erp-shell .content-area .kpi {
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-md);
  box-shadow: var(--v6-shadow);
  padding: 14px 16px;
}
.erp-shell .content-area .kpi-label { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--v6-muted); }
.erp-shell .content-area .kpi-value { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--v6-primary); }
/* ================= /v6 DESIGN SYSTEM (content) ================= */



.ov-top .row > * {
  width: auto;
}
/* ============================================================
   VOUCHER **VIEW** DRAWER — mockup .vd-drawer geometry
   ------------------------------------------------------------
   Reference: the combined mockup's `.vd-drawer` (fresh decode of
   ST-Builders-ERP-v6.html -> vouchers module, rule at line 382):

       .vd-drawer{ position:fixed; top:0; right:0; height:100dvh;
                   width:660px; max-width:94vw; display:flex;
                   flex-direction:column; ... }

   The app renders these drawers inside the legacy panels
   `.vouchar_data_bg > .Common_vouchar_data_container` (journal /
   payment / receipt) and `.st-popup > .st-popup-content` (contra).
   Neither is a flex column, and both scroll the whole panel
   (`overflow-y:auto`), so the ported `.vd-head{flex-shrink:0}` /
   `.vd-body{flex:1 1 auto;overflow-y:auto}` / `.vd-foot` rules were
   inert: the head and foot scrolled away with the content instead of
   pinning, which is why `.vd-foot` carried `position:sticky` and two
   of the blades carried inline `padding-left/right:24px` patches.

   Scoped to `.vd-view` (added to the four view-drawer roots) so the
   CREATE drawers, and the 139 other blades using `.st-popup`, are
   untouched.
   ============================================================ */

/* the sliding panel itself -> mockup .vd-drawer */
.vouchar_data_bg.voucher-drawer.vd-view .Common_vouchar_data_container,
.st-popup.voucher-drawer.vd-view > .st-popup-content {
    width: min(660px, 94vw);
    height: 100vh; height: 100dvh;
    max-height: 100vh; max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* .vd-body is the only scroll region, as in the mockup */
}

/* The contra drawer rides `.st-popup`, and `.voucher-drawer .st-popup-content`
   ships `width: min(700px, 100vw) !important` (custom.css:11176). The mockup
   panel is 660px, so this has to out-!important it. Scoped to .vd-view, so the
   contra CREATE drawer keeps its current 700px. */
.st-popup.voucher-drawer.vd-view > .st-popup-content { width: min(660px, 94vw) !important; }

/* scrim -> mockup .vd-scrim (adds the blur the legacy panel omits) */
.vouchar_data_bg.voucher-drawer.vd-view,
.st-popup.voucher-drawer.vd-view {
    backdrop-filter: blur(2px);
}

/* head / body / foot -> pin, scroll, pin */
.voucher-drawer.vd-view .vd-head { flex-shrink: 0; }
.voucher-drawer.vd-view .vd-toolbar { flex-shrink: 0; }
.voucher-drawer.vd-view .vd-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 24px 28px;
}

/* mockup .vd-foot{ flex-shrink:0; padding:14px 24px; background:#fbfcfd; }
   — replaces the per-blade inline padding patches and the sticky fallback. */
.voucher-drawer.vd-view .vd-foot {
    flex-shrink: 0;
    position: static;
    margin: 0;
    padding: 14px 24px;
    background: #fbfcfd;
}

/* mockup .vd-section-label{ margin:18px 0 10px } — the .vd-drawerize port
   ships 20px 0 12px, which loosens the rhythm of every section including
   the one directly above .vd-view-summary. */
.voucher-drawer.vd-view .vd-section-label { margin: 18px 0 10px; }
.voucher-drawer.vd-view .vd-section-label:first-child { margin-top: 0; }

/* ============================================================
   `.lead` — Bootstrap utility collision (second confirmed case
   after `.vr`).
   ------------------------------------------------------------
   The v6 mockup uses `.lead` as the muted page subtitle under an
   <h1> (`.page-head .lead{margin:0;font-size:13.5px;color:var(--sec-text)}`).
   Bootstrap uses it as a large lede paragraph:
       .lead{font-size:1.25rem;font-weight:300}
   custom.css never declared `.lead` at all, so Bootstrap won
   outright and four module landing pages rendered their subtitle
   at 20px Light instead of 13.5px muted — and Inter 300 is not a
   loaded weight, so the browser synthesised the face.

   Live on: general/inventory/index.blade.php:450,
   purchaseentries/purchaseorder/index.blade.php:497,
   salesdistribution/index.blade.php:22,
   sitemanagement/product/index.blade.php:238.
   ============================================================ */
.erp-shell .content-area .lead {
    margin: 0;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted, #6B7686);
}

/* ============================================================
   `.btn` — Bootstrap :hover / :active collision
   ------------------------------------------------------------
   Bootstrap (loaded first, app.blade.php:9) declares:
     .btn:hover{color:var(--bs-btn-hover-color);
                background-color:var(--bs-btn-hover-bg);
                border-color:var(--bs-btn-hover-border-color)}
     .btn.active,.btn.show,.btn:first-child:active,
     :not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);
                background-color:var(--bs-btn-active-bg);
                border-color:var(--bs-btn-active-border-color)}
   The port overrode `background` on hover but never `border-color`
   or `color`, and never touched the pressed state at all. Effects:
     - plain .btn: --bs-btn-hover-border-color is `transparent`, so
       the 1px border vanishes on hover; on press --bs-btn-active-bg
       is undefined, the declaration is invalid at computed-value
       time, and the white pill drops to transparent.
     - .btn-primary: --bs-btn-active-bg IS defined by Bootstrap
       (#0a58ca), so the navy button flashes Bootstrap blue on press.
   The pressed-state selectors are (0,2,0), so they need out-
   specifying — hence the .erp-shell prefix on those two rules.

   NOTE: deliberately NOT setting line-height:1 / inline-flex here.
   The mockup does specify them, but they shrink every button ~7px
   and reflow toolbars app-wide; that is a separate, visual-review
   change rather than a cascade-leak repair.
   ============================================================ */
.btn:hover { border-color: var(--border, #D9DDE3); color: var(--text, #2E2E2E); }
.btn-primary:hover { border-color: var(--navy, #134261); color: #fff; }

.erp-shell .btn:active,
.erp-shell .btn.active,
.erp-shell .btn.show {
    background: var(--gray-bg, #F5F7FA);
    border-color: var(--border, #D9DDE3);
    color: var(--text, #2E2E2E);
}
.erp-shell .btn-primary:active,
.erp-shell .btn-primary.active,
.erp-shell .btn-primary.show {
    background: var(--navy, #134261);
    border-color: var(--navy, #134261);
    color: #fff;
}

/* ============================================================
   .act-btn — table row action button (Fleet, Exec Supply)
   ------------------------------------------------------------
   Lifted out of VehicleController.php:141-142, which emitted these
   declarations as an INLINE style attribute on every row button.
   Inline styles beat every stylesheet rule, so the dark-mode override
   in erp-dark.css could never reach them and Fleet rendered a row of
   solid white buttons on a dark row while every other module was fixed.
   Values are carried across verbatim so light mode is unchanged.
   ============================================================ */
.act-btn {
    width: 32px; height: 30px;
    border-radius: 7px;
    border: 1px solid #d9dde3;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: #6b7686;
    cursor: pointer;
}
.act-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============================================================
   Fleet row cells (.vehicle-* / .driver-avatar)
   ------------------------------------------------------------
   Lifted verbatim out of VehicleController.php's datatable closures,
   which emitted them as inline style attributes. Inline styles beat
   every stylesheet rule, so dark mode could not reach them: the
   thumbnail and plate chip stayed #f5f7fa and the model/driver names
   stayed #134261 navy on a dark row. Values are unchanged, so light
   mode renders exactly as before.
   ============================================================ */
.vehicle-icon {
    width: 44px; height: 36px; border-radius: 8px;
    background: #f5f7fa; border: 1px solid #d9dde3;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vehicle-name { font-weight: 700; color: #134261; font-size: 12.5px; line-height: 1.3; }
.vehicle-company { font-size: 11px; color: #6b7686; }
.vehicle-plate {
    display: inline-block; margin-top: 2px;
    font-size: 10px; font-weight: 700;
    background: #f5f7fa; border: 1px solid #d9dde3; color: #134261;
    padding: 2px 7px; border-radius: 4px; letter-spacing: .4px;
}
.driver-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(140deg, #2164A6, #134261);
    color: #fff; font-weight: 700; font-size: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---- Semantic tone classes ----
   Replaces hardcoded inline color= attributes on status figures/pills. Inline
   styles beat every stylesheet rule, so any element carrying one could never
   be themed; these classes give the dark sheet something it can override.
   Prefixed names — no collision with Bootstrap or existing module selectors. */
.tone-good    { color: #16A34A; }
.tone-bad     { color: #DC2626; }
.tone-warn    { color: #D97706; }
.tone-primary { color: #134261; }
.tone-violet  { color: #7C3AED; }
.tone-muted   { color: #94A3B8; }
.tnd-stat-ic.tone-primary { background: rgba(19,66,97,.08); }
.tnd-stat-ic.tone-bad     { background: rgba(220,38,38,.10); }
