@import url(https://use.fontawesome.com/releases/v5.0.10/css/all.css);


/* =========================================================
   CSS Variables (Theme & Colors)
   ========================================================= */
:root {
  --blue: #4FA9E6;
  --dark-blue: #102837;
  --teal: #4FDAD6;
  --light-blue: #64b6ff;

  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #198754;

  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;

  --bs-primary: #c00000;
  --bs-secondary: #787b82;
  --bs-success: #11d3bc;
  --bs-info: #a2d5f2;
  --bs-warning: #ff7e67;
  --bs-danger: #f67280;
  --bs-light: #fafafa;
  --bs-dark: #4e4e4e;
  --bs-black: #181818;
  --bs-blue: #0d6efd;

  --surface-blue: rgba(6,139,221,.92);
  --surface-blue-soft: rgba(6,139,221,.85);

  --primary-brand-color: var(--bs-blue);
  --secondary-brand-color: var(--bs-secondary);
  --accent: var(--teal);
}


/* =========================================================
   Base / Global Styles
   ========================================================= */
body {
  font-size: 14px;
  color: var(--bs-dark);
  font-family: "Roboto", arial, sans-serif;
}

a:hover {
  color: #fff;
}

.d-none {
  display: none !important;
}

button {
  border-radius: 6px !important;
}

.main-info{
  font-size: 15px;
}

/* =========================================================
   BUTTON STYLES
   ========================================================= */

/* SEARCH */

.search {
    background: #61a1fe;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.search:hover {
    background: #0d6efd;
    color: white;
}

.search:disabled {
    background: #bcd7ff;
    color: #ffffff;
    cursor: not-allowed;
}


/* RESET */


.reset {
    background: #ffffff;
    color: #6c757d;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #6c757d;
    cursor: pointer;
}

.reset:hover {
    background: #6c757d;
    color: #ffffff;
}

.reset:disabled {
    background: #f1f3f5;
    color: #adb5bd;
    border-color: #ced4da;
    cursor: not-allowed;
}

/* ===============================
   Modern Dropdown Menu
================================ */

.dropdown-menu {
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  min-width: 220px;
}

/* Dropdown items */
.dropdown-menu .dropdown-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover / focus */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #f1f5f9;
  color: #0d6efd;
}

/* Active (optional if Bootstrap applies it) */
.dropdown-menu .dropdown-item.active {
  background-color: #e0e7ff;
  color: #0d6efd;
}

/* Remove Bootstrap blue outline */
.dropdown-menu .dropdown-item:active {
  background-color: #e0e7ff;
  color: #0d6efd;
}



/* ===============================
   Button Styling
================================ */

/* HIDE SEARCH FORM */

.hide-search-form {
    background: #ffffff;
    color: #6c757d;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #6c757d;
    cursor: pointer;
}

.hide-search-form:hover {
    background: #6c757d;
    color: #ffffff;
}

.hide-search-form:disabled {
    background: #f1f3f5;
    color: #adb5bd;
    border-color: #ced4da;
    cursor: not-allowed;
}


/* PRINT LEADS */

#print_leads {
    background: #9ab973;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

#print_leads:hover {
    background: #6b8e23;
}

#print_leads:disabled {
    background: #c9d8b6;
    color: #ffffff;
    cursor: not-allowed;
}


/* EXPORT */

.export {
    background: #6c757d;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.export:hover {
    background: #212529;
}

.export:disabled {
    background: #adb5bd;
    color: #ffffff;
    cursor: not-allowed;
}


/* ASSIGN SELECTED LEADS */

.assign-selected-leads {
    background: #ffa07a;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.assign-selected-leads:hover {
    background: #cc5500;
}

.assign-selected-leads:disabled {
    background: #ffd1b8;
    color: #ffffff;
    cursor: not-allowed;
}


/* NEW QUOTE */

.new-quote {
    background: #ffffff;
    color: #0d6efd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #0d6efd;
    cursor: pointer;
}

.new-quote:hover {
    background: #0d6efd;
    color: #ffffff;
}

.new-quote:disabled {
    background: #f1f5ff;
    color: #9ec5fe;
    border-color: #9ec5fe;
    cursor: not-allowed;
}


/* BULK ACTIONS */

.bulk-actions {
    background: #24ccc3;
    border: 1px solid #24ccc3;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.bulk-actions:hover {
    background: #1ea9a2;
}

.bulk-actions:disabled {
     background: #9fe4df;
    color: #ffffff;
    cursor: not-allowed;
    border: 1px solid #9fe4df;
}


/* =========================================================
   Utility Text Colors
   ========================================================= */
.accent-color {
  color: var(--primary-brand-color);
}

.alternative-color {
  color: var(--dark-blue);
}


/* =========================================================
   Layout Wrappers
   ========================================================= */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  overflow: hidden;
  min-height: 100vh;
}


/* =========================================================
   Content Area
   ========================================================= */
#content {
  width: calc(100% - 80px);
  padding: 0px 10px 20px 10px;
  max-height: 100vh;
  transition: all 0.3s ease;
  overflow: scroll;
}

#content.short {
  width: calc((100% - 80px) - 90px);
}


/* =========================================================
   Sidebar Container
   ========================================================= */
#sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 240px;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  transition: width .18s ease;
  position: relative;
  z-index: 3000;
}

#sidebar {
  background: linear-gradient(
    180deg,
    var(--primary-brand-color) 0%,
    var(--surface-blue-soft) 100%
  );
}

#sidebar.active {
  width: 72px;
  padding: 16px 8px;
}

#sidebar,
#sidebar * {
  color: #ffffff;
}

#sidebar {
  box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}



/* =========================================================
   Sidebar Header / Logo
   ========================================================= */
#sidebar .sidebar-header {
  position: relative;
  padding-top: 52px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
}

.lead_central_logo {
  height: 150px;
}

.nav-logo {
  width: 100%;
  max-width: 120px;
  height: auto;
  transition: max-width .18s ease, opacity .18s ease;
}

.sidebar-header:hover .nav-logo {
  transform: scale(1.1);
}

#side-ul .dropdown-menu {
   background: linear-gradient(
    180deg,
    var(--primary-brand-color) 0%,
    var(--surface-blue-soft) 100%
  );
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px;
  min-width: 280px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 100%;
  transform: none;
  z-index: 1050;
}

#side-ul .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

#side-ul .dropdown-item {
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
}

#side-ul .dropdown-item:hover {
  background: rgba(255,255,255,.14);
}


/* =========================================================
   Sidebar Navigation
   ========================================================= */
#side-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#side-ul .nav-link {
  color: rgba(255,255,255,.88);
  position: relative;
}

#side-ul .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

#side-ul .nav-link.active {
  background: rgba(255,255,255,.14);
}

#side-ul .nav-link:hover {
  background: rgba(255,255,255,.10);
}

#side-ul .nav-link.active {
  background: rgba(255,255,255,.18);
}

#side-ul .dropdown-item:hover {
  background: rgba(255,255,255,.12);
}

#side-ul .active {
  background-color: var(--dark-blue);
  color: white;
}

#side-ul .nav-item.dropdown {
  position: relative;
}

#side-ul .nav-link.active::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
}


/* =========================================================
   Sidebar Icons & Labels
   ========================================================= */
.side-icons {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.side-icons {
  color: rgba(255,255,255,.7);
}

.nav-link:hover .side-icons,
.nav-link.active .side-icons {
  color: #fff;
}

.nav-words {
  white-space: nowrap;
  transition: opacity .12s ease;
}

#sidebar.active .nav-words {
  display: none;
}

#sidebar.active .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0;
}


/* =========================================================
   Sidebar Footer (User Info)
   ========================================================= */
.side-user {
  margin-top: auto;
  font-size: 12px;
  opacity: .85;
  text-align: center;
}


/* =========================================================
   Sidebar Expand / Collapse Buttons
   ========================================================= */
#expand-button {
  position: absolute;
  top: 12px;
  right: 5px;
}

#expand_close_button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

#expand_close_button:hover {
  background: rgba(255,255,255,.22);
}

.side_button_close {
  display: none;
}

.side_button_open {
  display: block;
}

 #sidebar .nav-link {
  border-radius: 12px;
  padding: 10px 12px;
  transition: all 0.18s ease;
}

#sidebar .nav-link:hover .side-icons {
  transform: scale(1.15);
  color: #ffffff;
}

#sidebar .nav-link.active {
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

#sidebar.active .nav-link {
  position: relative;
}

#sidebar .nav-link {
  border-radius: 10px;
}

#sidebar .nav-link:hover {
  background: rgba(255,255,255,0.10);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: scale(1.03);
}


/* =========================================================
   HEADER STYLING
   ========================================================= */
#header_nav{
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
  padding:10px 20px;
  height:56px;
  display:flex;
  align-items:center;
  box-shadow:0 1px 2px rgba(0,0,0,0.04);
}

/* title */
#header_nav .title{
  font-size:18px;
  font-weight:600;
  color:#111827;
  display:flex;
  align-items:center;
  gap:10px;
}

#header_nav .title span{
  color:#6b7280;
  font-weight:400;
  margin-left:6px;
}

/* badges */
#header_nav .env-badge,
#header_nav .status-badge{
  font-size:11px;
  padding:3px 8px;
  border-radius:6px;
  font-weight:500;
}

#header_nav .env-badge{
  background:#eef2ff;
  color:#4338ca;
}

#header_nav .status-badge{
  background:#dcfce7;
  color:#166534;
}

/* message */
#header_nav .header-message{
  max-width:500px;
  font-size:13px;
  color:#374151;
}

/* nav links */
#header_nav .navbar-nav{
  gap:12px;
}

#header_nav .navbar-nav .nav-link{
  font-size:13px;
  font-weight:500;
  color:#374151;
  padding:6px 12px;
  border-radius:6px;
  display:flex;
  align-items:center;
  gap:4px;
  transition:all 0.15s ease;
}

#header_nav .navbar-nav .nav-link:hover{
  background:#f3f4f6;
  color:#111827;
}

/* dropdown */
#header_nav .dropdown-menu{
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 12px 30px rgba(0,0,0,0.12);
  padding:8px;
  backdrop-filter:blur(8px);
  background:rgba(255,255,255,0.95);
}

/* dropdown items */
#header_nav .dropdown-item{
  font-size:13px;
  font-weight:500;
  color:#374151;
  padding:8px 14px;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:8px;
  transition:all 0.15s ease;
}

#header_nav .dropdown-item:hover{
  background:#f1f5f9;
  transform:translateX(2px);
}

#header_nav .dropdown-item:active{
  background:#e5e7eb;
}

#header_nav .dropdown-item.disabled,
#header_nav .dropdown-item[disabled]{
  color:#9ca3af;
}

/* divider */
#header_nav .dropdown-divider{
  margin:6px 0;
}

/* toggler */
#header_nav .navbar-toggler{
  border:none;
  background:transparent;
}

#header_nav .navbar-toggler:focus{
  box-shadow:none;
}

/* =========================================================
   Loading Spinner
   ========================================================= */
#loading-spinner {
  position: fixed !important;
  top: 0 !important;
  right: 0;
  bottom: 0;
  left: 0 !important;
  z-index: 99999 !important;
}

.spinner-container {
  width: 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.spinner-border {
  width: 4rem;
  height: 4rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}


/* =========================================================
   Typography / Headings
   ========================================================= */
.portal-welcome {
  font-size: 60px;
  font-weight: bold;
  opacity: 0.8;
  color: var(--dark-blue);
}

/* ============================
   Notification Dropdown
============================ */

.notification-section .btn {
  background: transparent;
  border: none;
  color: var(--bs-dark);
}

.notification-section .btn:hover {
  background: rgba(0,0,0,.05);
}

.notification-section .badge {
  font-size: 11px;
  padding: 4px 6px;
}

.notification-section .dropdown-menu {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  padding: 12px;
  width: 320px;
}

.notification-section .dropdown-header {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  padding: 0;
}

/* Clear button */
.notification-section button.btn-outline-secondary {
  border-radius: 8px;
  font-size: 12px;
  padding: 2px 8px;
}

/* Notification list */
#notificationList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

/* No Notifications */
.notification-section .no-notification {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 20px 0;
}

/* New notification  */
.notification-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fb;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s ease;
}

.notification-item:hover {
  background: #eef3f8;
}

/* Optional unread indicator */
.notification-item.unread {
  border-left: 3px solid var(--blue);
}

.page-greeting span {
  color: var(--blue);
}


/* =========================================================
   Forms
   ========================================================= */
/* checkbox */
.form-check-input:checked {
  background-color: var(--green);
  border-color: var(--green);
}

/* inputs */
/* ================================
   INPUTS (ALL SIZES)
================================ */

.form-control,
.form-select,
.form-control-sm,
.form-select-sm {
  border-radius:8px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111827;

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

/* hover */
.form-control:hover,
.form-select:hover,
.form-control-sm:hover,
.form-select-sm:hover {
  border-color:#d1d5db;
}

/* focus */
.form-control:focus,
.form-select:focus,
.form-control-sm:focus,
.form-select-sm:focus {
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,0.12);
}

/* placeholder */
.form-control::placeholder,
.form-control-sm::placeholder {
  color:#9ca3af;
}

/* select arrow fix */
.form-select,
.form-select-sm {
  background-position:right 0.6rem center;
  background-size:12px 8px;
}

.form-select {
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3E%3Cpath d='M4.646 6.146a.5.5 0 0 1 .708 0L8 8.793l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");

  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:12px;
  padding-right:30px;
}

/* ================================
   LABEL
================================ */

.form-label{
  font-size:11px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:#9ca3af;
  margin-bottom:4px;
}

/* ================================
   CONTAINER
================================ */

.form-style{
  background:#ffffff;
  border-radius:10px;
  padding:20px;
  border:1px solid #f1f5f9;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
  margin-bottom:20px;
  transition:box-shadow 0.15s ease;
}

.form-style:hover{
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

 /* =========================================================
   DATATABLE LAYOUT
========================================================= */

.dataTables_wrapper,
.dataTables_wrapper .row,
.dataTables_wrapper .col-sm-12 {
  overflow: visible !important;
}

.table.dataTable{
  z-index:1;
}

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

table.dataTable thead tr:first-child th{
  background:#e9edf2;
  border-bottom:2px solid #d8dde3;
  font-size:13px;
  font-weight:600;
  color:#374151;
  padding:16px 16px 10px 16px;
}

table.dataTable thead tr:nth-child(2) th{
  background:#e9edf2;
}

/* =========================================================
   COLUMN FILTER INPUTS
========================================================= */

table.dataTable thead input,
table.dataTable thead select{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  padding:4px 8px;
  font-size:12px;
  color:#374151;
  transition:all .15s ease;
}

table.dataTable thead input{
  height:28px;
}

table.dataTable thead input:focus,
table.dataTable thead select:focus{
  border-color:#4c6ef5;
  box-shadow:0 0 0 3px rgba(76,110,245,.12);
  outline:none;
}

/* =========================================================
   BODY
========================================================= */

table.dataTable tbody td{
  font-size:14px;
  color:#374151;
}

table.dataTable tbody tr:hover{
  background:#f7f9fb;
}

/* =========================================================
   LINKS / BUTTONS
========================================================= */

table.dataTable tbody a,
table.dataTable tbody button{
  text-decoration:none;
  color:var(--primary-brand-color);
  transition:color .15s ease;
}

table.dataTable tbody a:hover,
table.dataTable tbody button:hover{
  color:var(--accent);
}

/* =========================================================
   GRID LINES
========================================================= */

table.dataTable tbody td,
table.dataTable thead th{
  border-right:1px solid #f1f3f5;
}

table.dataTable tbody td:last-child,
table.dataTable thead th:last-child{
  border-right:none;
}

/* =========================================================
   UNREAD ROW
========================================================= */

tr.unread{
  background:#f1f5f9;
  font-weight:500;
}

tr.unread td:first-child{
  border-left:3px solid rgba(76,110,245,.9);
}

tr.read .main-info{
  color:#6b7280;
}

tr.unread .main-info{
  font-weight:bold;
}

/* =========================================================
   SEARCH FIELD
========================================================= */

div.dt-search input.dt-input{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:8px 12px;
  background:#fff;
  transition:all .15s ease;
}

div.dt-search input.dt-input:focus{
  border-color:#4c6ef5;
  box-shadow:0 0 0 3px rgba(76,110,245,.12);
  outline:none;
}

/* =========================================================
   BUTTONS
========================================================= */

.dt-button,
.dataTables_length select{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px 14px;
  font-size:13px;
  font-weight:500;
  color:#111827;
}

.dt-button:hover,
.dataTables_length select:hover{
  background:#f9fafb;
  border-color:#d1d5db;
}

.dt-buttons .dt-button{
  margin-right:8px;
}

table.dataTable tbody tr:nth-child(even){
background:#fafbfc;
}

table.dataTable thead tr:first-child th{
background:#f8fafc;
border-bottom:1px solid #e5e7eb;
}

table.dataTable thead tr:nth-child(2) th{
background:#f1f5f9;
}

table.dataTable thead input,
table.dataTable thead select{
height:32px;
padding:6px 10px;
font-size:13px;
}

table.dataTable tbody td{
padding:14px 16px;
}

/* =========================================================
   CHECKBOX
========================================================= */

table.dataTable input[type="checkbox"]{
  width:16px;
  height:16px;
  cursor:pointer;
}

/* =========================================================
   SPECIAL ROW BUTTON
========================================================= */

.assigned-select-leads{
  background:#ffa07a;
  color:white;
  padding-left:.5em !important;
  padding-right:.5em !important;
}

.assigned-select-leads:hover{
  background:#cc5500;
}
 

/* =========================================================
    Header Nav Styling
   ========================================================= */

  #header_nav {
  position: relative;
  z-index: 4000;
}

.header-nav {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}

.header-nav:hover {
  background: #f1f5f9;
  color: #111827;
}

.header-nav.active {
  background: #e0e7ff;
  color: #1d4ed8;
  font-weight: 600;
}

.header-nav.dropdown-toggle::after {
  margin-left: 6px;
  font-size: 10px;
  opacity: .6;
}

.navbar .dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  padding: 8px;
  margin-top: 6px;
}

.navbar .dropdown-item {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #374151;
}

.navbar .dropdown-item:hover {
  background: #f1f5f9;
  color: #111827;
}

/* =========================================================
    Priority Table 
   ========================================================= */

#prioritization-table{
  overflow: scroll;
  height: 100vh;
}

.priority-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 16px;
}

.priority-actions .btn {
    min-width: 140px;
    border-radius: 8px;
}

/* =========================================================
    Admin Page Styling
   ========================================================= */

.admin-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.admin-header {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--primary-brand-color);
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 12px 16px;
}

.admin-link {
  display: block;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;

  font-size: 15px;
  font-weight: 400;
  color: #4b5563;
  text-decoration: none;

  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-link:hover {
  background-color: #f1f5f9;
  color: #0d6efd;
}

.admin-link:focus-visible {
  outline: none;
  background-color: #e0e7ff;
  color: #0d6efd;
}


/* =========================================================
   BILLING STYLING
   ========================================================= */

.billing-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  margin-bottom: 32px;
}

.billing-header {
  margin-bottom: 20px;
}

.billing-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.billing-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

/* =========================================================
   LOGIN PAGE STYLING
   ========================================================= */

.login-page{
  display:flex;
  flex-direction:column;
  padding-top:8vh;
  background:linear-gradient(180deg,#f8fafc,#ffffff);
}

.login-logo{
  max-width:180px;
  height:auto;
  margin:0 auto 8px;
  display:block;
}

.login-title{
  font-size:26px;
  font-weight:700;
  letter-spacing:-0.5px;
  margin-bottom:4px;
}

.login-subtitle{
  font-size:14px;
  color:#6b7280;
}

.login-card{
  background:#fff;
  border-radius:16px;
  border:1px solid #e5e7eb;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}

.login-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

.login-card .card-header{
  background:transparent;
  border-bottom:1px solid #e5e7eb;
  font-size:16px;
  font-weight:600;
  padding:16px 20px;
}

.login-card .card-body{
  padding-top:12px;
}

.login-card label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:600;
  color:#6b7280;
}

.login-card input{
  height:44px;
  padding:12px 14px;
  font-size:15px;
  border-radius:10px;
  border:1px solid #e5e7eb;
}

.login-card input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.login-card .btn-primary{
  height:48px;
  font-size:15px;
  font-weight:500;
  border-radius:12px;
  border:none;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 10px 20px rgba(37,99,235,.25);
  transition:transform .15s ease, box-shadow .15s ease;
}

.login-card .btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(37,99,235,.35);
}

.psw a{
  font-size:12px;
  color:#6b7280;
  text-decoration:none;
}

.psw a:hover{
  color:#2563eb;
}

/* Employee login card */
.login-card:last-child{
  background:linear-gradient(180deg,#f9fafb,#f3f4f6);
  border:1px dashed #d1d5db;
  text-align:center;
}

.login-card:last-child a{
  font-weight:600;
  color:#2563eb;
  text-decoration:none;
}

@media (min-height:900px){
  .login-page{
    padding-top:10vh;
  }
}

/* =========================================================
   DIRECT ORDERS AND MANAGEMENT ORDERS STYLING
   ========================================================= */

.orders-row {
  --bs-gutter-x: 4.5px;
}

.orders-toolbar {
  display: flex;
  gap: 8px;
}

.toolbar-item {
  display: flex;
  flex-direction: column;
}

/* Desktop */
@media (min-width: 1024px) {
  .orders-toolbar {
    flex-wrap: nowrap;
  }

  .toolbar-item {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1100px) {
  .orders-toolbar {
    flex-wrap: wrap;
  }

  .toolbar-item {
    flex: 0 0 calc(25% - 8px);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .orders-toolbar {
    flex-wrap: wrap;
  }

  .toolbar-item {
    flex: 0 0 100%;
  }
}




/* =========================================================
   NEW QUOTE RGI SCREEN
========================================================= */

#order-wizard{
  padding:20px;
}

#order-wizard .card{
  border-radius:14px;
  transition:all .2s ease;
}

#order-wizard .card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

#order-wizard .card-body{
  padding:22px;
}

#order-wizard .form-control,
#order-wizard .form-select{
  border-radius:10px;
  border:1px solid #e5e7eb;
  padding:8px 10px;
}

#order-wizard .form-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:6px;
}

#order-wizard .btn-primary{
  font-weight:600;
}

#order-wizard .btn-success{
  border-radius:999px;
  padding:10px 14px;
  font-weight:600;
}

#order-wizard .btn{
  border-radius:10px;
  padding:8px 12px;
  font-weight:600;
}

#order-wizard .form-check{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}

#order-wizard .form-check-input{
  width:16px;
  height:16px;
  margin-top:0;
}

/* shared container boxes */

#order-wizard #state,
#order-wizard #state_selected,
#order-wizard #counties,
#order-wizard #geo-chosen,
#zips{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  overflow-x:hidden;
  overflow-y:auto;
}

/* tall lists */

#order-wizard #state,
#order-wizard #counties{
  min-height:220px;
  max-height:220px;
}

/* small selected lists */

#order-wizard #state_selected,
#order-wizard #geo-chosen{
  min-height:120px;
  max-height:120px;
}

/* hover */

#order-wizard #state:hover,
#order-wizard #counties:hover,
#order-wizard #state_selected:hover,
#order-wizard #geo-chosen:hover{
  border-color:#cbd5e1;
}

/* focus */

#order-wizard #state:focus-within,
#order-wizard #counties:focus-within,
#order-wizard #state_selected:focus-within{
  border-color:#93c5fd;
  box-shadow:0 0 0 .15rem rgba(59,130,246,.15);
}

/* checkbox rows */

#order-wizard .c_label,
#order-wizard #counties .form-check{
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:10px;
  margin:2px 0;
}

#order-wizard .c_label:hover,
#order-wizard #counties .form-check:hover{
  background:#f8fafc;
}

/* selected pills */

#order-wizard #state_selected .c_label,
#order-wizard #geo-chosen .c_label{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  padding:6px 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:4px 6px 4px 0;
}

/* step 3 */

#order-wizard #order-template-step-3 .demo-options{
  background:transparent;
  border:none;
  padding:0;
}

#order-wizard #order-template-step-3 .demo-buttons{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:12px;
}

#order-wizard #order-template-step-3 .col-12[style*="display:none"]{
  transition:all .25s ease;
}


/* =========================================================
   DIGITAL CREATE ORDER STYLING
========================================================= */

#digital-county-section-button,
#digital-county-section,
#new-order-step2,
#new-order-step3 {
    display: none;
}

#digital-order-wizard * {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#digital-order-wizard .email-marketing-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, .12);
    padding: 24px 28px 28px;
    position: relative;
    overflow: hidden;
}

#digital-order-wizard .email-marketing-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 60px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: .15;
    top: 18px;
    right: -60px;
    transform: skewX(-15deg);
}

#digital-order-wizard .stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

#digital-order-wizard .stepper-line {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: -1;
}

#digital-order-wizard .step {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #e5e7eb;
    color: #6b7280;
}

#digital-order-wizard .step.active {
    background: #41a5e1;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .16);
}

#digital-order-wizard .step.done {
    background: #10b981;
    color: #fff;
}

#digital-order-wizard .email-marketing-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

#digital-order-wizard .email-marketing-card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
}

#digital-order-wizard .form-step {
    display: none;
}

#digital-order-wizard .form-step.active-step {
    display: block;
}

#digital-order-wizard .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

#digital-order-wizard .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#digital-order-wizard .email-marketing-label {
    font-size: 12px;
    color: #4b5563;
}

#digital-order-wizard .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
}

#digital-order-wizard .form-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7280;
}

#digital-order-wizard .wizard-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

#digital-order-wizard .row {
    margin-bottom: 18px;
}

#digital-order-wizard .org_search_list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    padding: 6px;
}

#digital-order-wizard #user_input_new_order_multi_state {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 120px;
    max-height: 120px;
}

#digital-order-wizard #user_input_new_order_multi_state:hover {
    border-color: #cbd5e1;
}

#digital-order-wizard #user_input_new_order_multi_state:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 .15rem rgba(59, 130, 246, .15);
}

#digital-order-wizard .c_label {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    margin: 2px 0;
}

#digital-order-wizard .c_label:hover {
    background: #f8fafc;
}

#digital-order-wizard #counties,
#digital-order-wizard #geo-chosen {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    overflow-x: hidden;
    overflow-y: auto;
}

#digital-order-wizard #counties {
    min-height: 220px;
    max-height: 220px;
}

#digital-order-wizard #geo-chosen {
    min-height: 120px;
    max-height: 120px;
}

#digital-order-wizard .form-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

#digital-order-wizard .next-button,
#digital-order-wizard .back-button {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
}

#digital-order-wizard .next-button {
    background: #41a5e1;
    color: #fff;
}

#digital-order-wizard .next-button:hover {
    background: #1a90d9;
}

#digital-order-wizard .back-button {
    background: #e5e7eb;
    color: #374151;
}

#digital-order-wizard .back-button:disabled {
    opacity: .5;
    cursor: default;
}

#digital-order-wizard #new-order-step3 {
    max-width: 950px;
    margin: 0 auto;
}

#digital-order-wizard #new-order-step3 .card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

#digital-order-wizard #new-order-step3 .card-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

#digital-order-wizard #new-order-step3 .card-header h5 {
    font-size: 18px;
    font-weight: 600;
}

#digital-order-wizard #new-order-step3 .card-body {
    padding: 22px;
}

#digital-order-wizard #new-order-step3 #lineage-two {
    font-size: 13px;
    color: #374151;
}

#digital-order-wizard #new-order-step3 #lineage-two p {
    margin-bottom: 0;
}

#digital-order-wizard #new-order-step3 table {
    margin-bottom: 20px;
}

#digital-order-wizard #new-order-step3 table thead th {
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    padding: 10px 12px;
    border-bottom: 1px solid #d1d5db;
}

#digital-order-wizard #new-order-step3 table tbody td {
    padding: 11px 12px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

#digital-order-wizard #new-order-step3 table tbody td:first-child {
    width: 30%;
    font-weight: 600;
    color: #4b5563;
}

#digital-order-wizard #new-order-step3 table tbody td:last-child {
    color: #111827;
}

#digital-order-wizard #new-order-step3 .disable-style,
#digital-order-wizard #new-order-step3 .form-control-plaintext {
    font-size: 13px;
    color: #111827;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    width: 100%;
}

#digital-order-wizard #new-order-step3 td p {
    margin: 0;
}

#digital-order-wizard #new-order-step3 td p:empty::after {
    content: "—";
    color: #9ca3af;
}

#digital-order-wizard #new-order-step3 .text-end {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

/* =========================================================
  EMAIL MARKETING STYLING 
========================================================= */

#new-email-order-form,
#new-email-order-form * {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#new-email-order-form .email-marketing-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, .12);
    padding: 24px 28px 28px;
    position: relative;
    overflow: hidden;
    max-width: 1250px;
    margin: 0 auto;
}

#new-email-order-form .email-marketing-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 60px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: .15;
    top: 18px;
    right: -60px;
    transform: skewX(-15deg);
}

#new-email-order-form .stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

#new-email-order-form .stepper-line {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: -1;
}

#new-email-order-form .step {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: #e5e7eb;
    color: #6b7280;
}

#new-email-order-form .step.active {
    background: #41a5e1;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .16);
}

#new-email-order-form .step.done {
    background: #10b981;
    color: #fff;
}

#new-email-order-form .email-marketing-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-top: 2px;
    margin-bottom: 4px;
}

#new-email-order-form .email-marketing-card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    margin-bottom: 22px;
}

#new-email-order-form .form-step {
    display: none;
}

#new-email-order-form .form-step.active-step {
    display: block;
}

#new-email-order-form .form-column.form-lg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

#new-email-order-form .form-column.form-lg-row > .form-group {
    flex: 1 1 320px;
    min-width: 0;
}

#new-email-order-form .form-column.form-lg-row > .col-12 {
    min-width: 0;
}

#new-email-order-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#new-email-order-form .email-marketing-label {
    font-size: 12px;
    color: #4b5563;
}

#new-email-order-form .form-label {
    margin-bottom: 5px !important;
}

#new-email-order-form .form-control,
#new-email-order-form .form-select {
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid #d9dee7;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#new-email-order-form .form-control:focus,
#new-email-order-form .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

#new-email-order-form #entryTable {
    margin-top: 6px;
    margin-bottom: 12px;
}

#new-email-order-form #entryTable thead th {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    background: #f8fafc;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

#new-email-order-form #entryTable tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

#new-email-order-form #entryTable th:last-child,
#new-email-order-form #entryTable td:last-child {
    width: 70px;
    text-align: center;
}

#new-email-order-form #entryTable .btn-danger {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#new-email-order-form #entryTable + .text-end .next-button {
    flex: initial;
    padding: 8px 16px;
    border-radius: 8px;
}

#new-email-order-form .form-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
}

#new-email-order-form .next-button,
#new-email-order-form .back-button {
    flex: 1;
    border: none;
    min-height: 44px;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

#new-email-order-form .next-button {
    background: #41a5e1;
    color: #fff;
}

#new-email-order-form .next-button:not(:disabled):hover {
    background: #1a90d9;
}

#new-email-order-form .next-button:disabled {
    background: #93ccec;
    opacity: .5;
    cursor: not-allowed;
}

#new-email-order-form .back-button {
    background: #e5e7eb;
    color: #374151;
}

#new-email-order-form .back-button:disabled {
    opacity: .5;
    cursor: default;
}

#new-email-order-form .multi-dropdown {
    position: relative;
    width: 220px;
}

#new-email-order-form .multi-dropdown-btn {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

#new-email-order-form .multi-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    display: none;
    z-index: 1000;
    padding: 6px 0;
}

#new-email-order-form .multi-dropdown.open .multi-dropdown-menu {
    display: block;
}

#new-email-order-form .multi-dropdown-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    cursor: pointer;
}

#new-email-order-form .multi-dropdown-item:hover {
    background: #f1f1f1;
}

#new-email-order-form .multi-dropdown.disabled {
    opacity: .5;
    pointer-events: none;
}

#new-email-order-form .input-error {
    border: 2px solid red !important;
}

#new-email-order-form .website-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 220px 42px;
    gap: 12px;
    align-items: end;
}

#new-email-order-form .website-row .form-group {
    min-width: 0;
}

#new-email-order-form .website-row .form-group:last-child {
    display: flex;
    align-items: flex-end !important;
    justify-content: center !important;
}

#new-email-order-form .website-row .delete-website {
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    #new-email-order-form .form-column.form-lg-row {
        display: block;
    }

    #new-email-order-form .form-column.form-lg-row > * {
        margin-bottom: 12px;
    }

    #new-email-order-form .email-marketing-card {
        padding: 18px;
    }
}
/* =========================================================
   WATERFALL STYLING
========================================================= */
.waterfall-status{
display:inline-flex;
align-items:center;
gap:6px;
padding:4px 10px;
border-radius:999px;
background:#EEF2FF;
color:#4F46E5;
font-size:13px;
font-weight:500;
}

.waterfall-status svg{
width:8px;
height:8px;
animation:pulse 1.4s infinite;
}

@keyframes pulse{
0%{opacity:.4}
50%{opacity:1}
100%{opacity:.4}
}





/* =========================================================
   Table buttons layout STYLING
========================================================= */

#functional_buttons {
  width: 100%;
}

#functional_buttons .btn-group,
#functional_buttons > div {
  min-width: 0;
}

#functional_buttons .btn,
#functional_buttons .dropdown-toggle {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  #functional_buttons {
    align-items: stretch !important;
  }

  #functional_buttons .btn-group,
  #functional_buttons .w-100 {
    width: 100% !important;
  }

  #functional_buttons .btn {
    width: 100%;
    justify-content: center;
  }

  #search_count_max,
  #max_count_max {
    width: 100%;
    text-align: center;
  }
}






/* =========================================================
   EDIT ORG STYLING
========================================================= */

#edit-org-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Page background */
#edit-org-container.edit-org-card {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
}

/* Sections */
#edit-org-container .organization-info-section,
#edit-org-container .organization-contact-section,
#edit-org-container .organization-primaries-section,
#edit-org-container .client-quotes-programs-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Divider */
#edit-org-container .section-divider {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 24px 0;
}

/* Titles */
#edit-org-container .modern-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

/* Breadcrumb */
#edit-org-container .modern-breadcrumb {
  font-size: 13px;
  color: #6b7280;
}

#edit-org-container .modern-breadcrumb a {
  text-decoration: none;
  color: #3b82f6;
}

/* Sub link */
#edit-org-container .modern-sub-link a {
  font-size: 13px;
  color: #10b981;
  text-decoration: none;
}

/* Inputs */
#edit-org-container .form-control,
#edit-org-container .form-select {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font-size: 13px;
  transition: all .2s ease;
}

#edit-org-container .form-control:focus,
#edit-org-container .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

/* Labels */
#edit-org-container label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

/* Buttons */
#edit-org-container .btn {
  border-radius: 8px;
  font-size: 13px;
  padding: 6px 12px;
}

#edit-org-container .btn-primary {
  background: #3b82f6;
  border: none;
}

#edit-org-container .btn-primary:hover {
  background: #2563eb;
}

#edit-org-container .btn-success {
  background: #10b981;
  border: none;
}

#edit-org-container .btn-info {
  background: #06b6d4;
  border: none;
}

/* Checkbox */
#edit-org-container .large-checkbox {
  transform: scale(1.3);
}

/* Accordion */
#edit-org-container .accordion-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

#edit-org-container .accordion-button {
  background: #f9fafb;
  font-weight: 500;
  font-size: 14px;
}

#edit-org-container .accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #1e40af;
}

/* Tables */
#edit-org-container .table {
  font-size: 13px;
}

#edit-org-container .table th {
  color: #6b7280;
  font-weight: 500;
}

/* Badge */
#edit-org-container .badge {
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
}

/* Modals */
#edit-org-container .modal-content {
  border-radius: 12px;
  border: none;
}

#edit-org-container .modal-header {
  border-bottom: 1px solid #e5e7eb;
}

#edit-org-container .modal-footer {
  border-top: 1px solid #e5e7eb;
}



/* ===== EDIT ORG PAGE (SCOPED) ===== */
#edit-org-container {
  max-width: 1200px;
  margin: 0 auto;
}

#edit-org-container .modern-org-header { margin-bottom: 10px; }

#edit-org-container .modern-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

#edit-org-container .modern-breadcrumb {
  font-size: 13px;
  color: #6b7280;
}

#edit-org-container .modern-breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
}

#edit-org-container .modern-sub-link a {
  font-size: 13px;
  color: #10b981;
  text-decoration: none;
}

#edit-org-container .form-label,
#edit-org-container label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

#edit-org-container .form-control,
#edit-org-container .form-select {
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  transition: all 0.2s ease;
}

#edit-org-container .form-control:focus,
#edit-org-container .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

#edit-org-container .btn {
  border-radius: 8px;
  font-size: 13px;
  padding: 6px 12px;
}

#edit-org-container .btn-primary {
  background: #2563eb;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

#edit-org-container .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

#edit-org-container .btn-primary:active {
  transform: scale(0.98);
}

#edit-org-container .btn-success {
  background: #10b981;
  border: none;
}

#edit-org-container .btn-info {
  background: #06b6d4;
  border: none;
}

#edit-org-container .btn-light {
  background: #ffffff;
  border-radius: 6px;
  font-size: 12px;
}

#edit-org-container .btn-light:hover {
  background: #f3f4f6;
}

#edit-org-container .table {
  font-size: 14px;
  margin-bottom: 10px;
}

#edit-org-container .table thead th {
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
  padding: 6px 10px;
  border-bottom: 1px solid #e5e7eb;
}

#edit-org-container .table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

#edit-org-container .table tbody tr:hover {
  background: #f9fafb;
}

#edit-org-container .table td {
  padding: 8px 10px;
  vertical-align: middle;
}

#edit-org-container .table td:nth-child(1) {
  font-weight: 500;
  color: #111827;
}

#edit-org-container .table td:nth-child(2) {
  color: #374151;
}

#edit-org-container .table td:nth-child(3) {
  font-size: 12px;
  color: #6b7280;
}

#edit-org-container .table-scroll {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

#edit-org-container .org-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 0 1px 0 #e5e7eb;
}

#edit-org-container .accordion-item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
  overflow: hidden;
}

#edit-org-container .accordion-button {
  background: #f9fafb;
  font-size: 14px;
  font-weight: 500;
}

#edit-org-container .accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #1e40af;
}

#edit-org-container .org-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#edit-org-container .org-item {
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

#edit-org-container .org-item:hover {
  background: #f3f4f6;
}

#edit-org-container .org-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

#edit-org-container .org-link:hover {
  text-decoration: underline;
}

#edit-org-container .org-count {
  background: #e5e7eb;
  color: #374151;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

#edit-org-container .org-count:hover {
  background: #c7d2fe;
  color: #1e3a8a;
}

#edit-org-container .modal-content {
  border-radius: 12px;
  border: none;
}

#edit-org-container .modal-header {
  border-bottom: 1px solid #e5e7eb;
}

#edit-org-container .modal-footer {
  border-top: 1px solid #e5e7eb;
}

#edit-org-container .badge {
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
}

#edit-org-container .large-checkbox {
  transform: scale(1.3);
}

#edit-org-container .row {
  row-gap: 10px;
}

#edit-org-container .accordion-body h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 16px;
}


#edit-org-container .org-tree,
#edit-org-container .org-tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

#edit-org-container .org-tree-item {
  margin-bottom: 6px;
}

#edit-org-container .org-tree-form {
  margin: 0;
}

#edit-org-container .org-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

#edit-org-container .org-tree-row:hover {
  background: #f8fafc;
}

#edit-org-container .org-tree-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
}

#edit-org-container .org-tree-link:hover {
  text-decoration: underline;
}

#edit-org-container .org-tree-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #eef2f7;
  color: #475569;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

#edit-org-container .org-tree-toggle:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

#edit-org-container .org-tree-toggle-count {
  font-weight: 600;
}

#edit-org-container .org-tree-toggle-icon {
  font-size: 14px;
  transform: translateY(-1px);
}

#edit-org-container .org-tree-children {
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid #dbe3ef;
}

#edit-org-container .org-tree-empty {
  padding: 8px 10px;
  color: #6b7280;
}

#edit-org-container .org-tree,
#edit-org-container .org-tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

#edit-org-container .org-tree-children {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 1px solid #e5e7eb;
}

#edit-org-container .org-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: 6px;
  gap: 8px;
}

#edit-org-container .org-tree-row:hover {
  background: #f9fafb;
}

#edit-org-container .org-tree-link {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 14px;
}

#edit-org-container .org-tree-link:hover {
  text-decoration: underline;
}

#edit-org-container .org-tree-toggle {
  background: #eef2f7;
  border: none;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

#edit-org-container .org-tree-item {
  margin-bottom: 4px;
}

#edit-org-container .org-tree-children .org-tree-link {
  font-size: 13px;
  color: #2563eb;
}

#edit-org-container .org-tree-children .org-tree-item {
  position: relative;
}

#edit-org-container .org-tree-children .org-tree-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #cbd5f5;
  border-radius: 50%;
}

#edit-org-container .org-tree-toggle-icon {
  transition: transform 0.2s ease;
}

#edit-org-container .org-tree-toggle.is-open .org-tree-toggle-icon {
  transform: rotate(90deg);
}

.modal {
  z-index: 999999;
}