@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');


    :root {
      --primary-color: #3b82f6; /* Modern Blue */
      --primary-dark: #2563eb;
      --secondary-color: #1e293b; /* Slate 800 */
      --accent-color: #6366f1; /* Indigo */
      --success-color: #10b981;
      --danger-color: #ef4444;
      --warning-color: #f59e0b;
      --dark-bg: #0f172a; /* Slate 900 */
      --surface-bg: #ffffff;
      --page-bg: #f3f4f6;
      --text-main: #1f2937;
      --text-secondary: #6b7280;
      --border-color: #E8E8E8;
      --transparent-blue: #E5F5FB;
      --detail-header-row:#E5F5FB;
      --detail-hover-row:#F0FFF0;
      --white: #ffffff;
    }

    /* Devon CSS */

    .TableCellDetailHeader  .form-control:disabled,
    .TableCellDetailHeader .form-control[readonly], 
    .TableCellDetail .form-control:disabled,
    .TableCellDetail .form-control[readonly] {
      background-color: var(--border-color) !important;
    }

    button[name="btnTaskStartStop"]:disabled {
      background-color: var(--white) !important;
    }


    tr.TableRowColumnHeader th.TableCellColumnHeader {
      background-color: var(--primary-color) !important;
      color: #ffffff !important;
      text-align: center !important;
    }

    .TableCellColumnHeader select {
        color: #ffffff; /* white text */
        background-color: transparent;
        border-color: rgba(255,255,255,0.4);
        background-image:
            url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5H3z'/></svg>");
        background-repeat: no-repeat;
        background-position: right .75rem center;
        background-size: 12px;
    }

    /* Header row overrides */
    tr.TableRowColumnHeader input,
    tr.TableRowColumnHeader select {
      background-color: transparent !important;
      border: 1px solid rgba(255,255,255,0.4) !important;
      color: #ffffff !important;
      border-radius: 30px !important;
    }
    
    tr.TableRowColumnHeader input::placeholder {
      color: rgba(255,255,255,0.6) !important;
    }


    tr.TableRowColumnHeader select option {
      color: #1f2937 !important; /* dark text for dropdown items */
    }


    td.TableCellDetailHeader {
      background-color: var(--border-color) !important;
      color: #000000 !important;
      text-align: center !important; 
    }

    tr.TableRowDetail td.TableCellDetail {
      color: #000000 !important;
      text-align: center !important;      
    }    

    .table tbody tr:hover td.TableCellDetail {
      box-shadow: inset 0 0 0 9999px var(--detail-hover-row);
    }

    /*this overrides bootstraps setting in "form-select"*/
    .use-element-alignment {
        display: inline-block !important;
    }

    .multi-select {
        border: 1px solid var(--border-color) !important;
    }


    .multi-select-header {
        width: 100% !important;      
        display: flex;
        align-items: center;      /* valid */
        justify-content: flex-start; /* keep items on the left */
        cursor: pointer;
    }

    .multi-select-arrow {
        margin-left: auto;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #555;
        pointer-events: none; /* arrow shouldn't block clicks */
    }

    #CustomStatusBar {
        position: fixed;
        bottom: 0px;
        left: 0;
        width: 100%;
        height: 30px;

        background-color: #f1f1f1;
        color: #000000;

        padding: 2px;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
        z-index: 9999;

        /* NEW: flex layout */
        display: flex;
        align-items: center;
        justify-content: space-between;

        /* REMOVE this because it interferes with centering */
        /* text-align: left; */
    }

    .status-left {
        text-align: left;
    }

    .status-center {
        flex: 1;
        text-align: center;
    }

    .status-right {
        text-align: right;
    }

    .info-button {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1px solid #2563eb;      /* black border */
      background-color: #f2f2f2;      /* light grey fill */
      color: #2563eb;               /* black "i" */
      font-size: 11px;
      font-weight: bold;
      line-height: 16px;
      text-align: center;
      padding: 0;
      cursor: default;
    }

    .info-button:hover {
      background-color: #e0e0e0;      /* slightly darker grey on hover */
    }



  
    .BroadcastNotificationStyle.notyf__toast {
      width: 1000px !important;
      max-width: none !important;
      background: #FFFF33 !important; /* include your background here */
      color: #003366 !important;
    }

    .BroadcastNotificationStyle .notyf__wrapper {
      max-width: none !important;
      color: #003366 !important;
    }



  .ctrl-align-left {
      text-align: left !important;
  }

  .ctrl-align-center {
      text-align: center !important;
  }

  .ctrl-align-right {
      text-align: right !important;
  }

/* End Devon CSS */

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background-color: var(--page-bg);
  font-size: 0.875rem;
  padding-bottom: 45px;
  /*overflow-x: hidden;*/
}

.form-select {
  font-size: 0.875rem;
  border-radius: 30px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--secondary-color);
}
.mr-0 {
  margin-right: 0;
}

.ml-auto {
    margin-left: auto;
}

/* Navbar Modernization */
.navbar-custom {
  background-color: var(--dark-bg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.navbar-brand span {
  color: white;
}

.fs-7 {
  font-size: 0.75rem;
}

/* Header Filters */
.nav-filters {
  background: rgba(255, 255, 255, 0.05); /* Glassy background */
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.header-select {
  background-color: transparent;
  border: 1px solid transparent;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  padding-right: 2rem; /* space for arrow */
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.header-select:focus {
  background-color: rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.2);
  box-shadow: none;
  color: white;
}

.header-select option {
  background-color: var(--dark-bg);
  color: white;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.1);
}

.btn {
  border-radius: 25px;
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

/* Page Layout */
.container-fluid {
  max-width: 1600px;
  margin: 0 auto;
}


/* Tools/Search */
.search-wrapper .form-control {
  background-color: var(--surface-bg);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.search-wrapper .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-custom {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 25px;
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

.btn-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  color: white;
}

/* Table Card */
.table-container {
  background: var(--surface-bg);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  overflow-y: visible;
}




.table-responsive {
  max-height: none !important;
  min-height: none !important;
  overflow-y: visible !important;
  border-radius: 8px;
}

/* Customized Scrollbar */
.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
}


.table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background-color: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  border-top: 2px solid var(--border-color);
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 0.75rem;
}

.table thead tr th:first-child {
  border-top-left-radius: 8px;
}
.table thead tr th:last-child {
  border-top-right-radius: 8px;
}

.table tbody tr td {
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  /*padding: 0.75rem;*/
  color: var(--text-main);
  background: var(--surface-bg);
}

/* .table tbody tr:last-child td {
  border-bottom: none;
} */



 /*Input/Selects inside table - commented on 2/5/26
.table .form-select-sm,
.table .form-control-sm {
  border: 1px solid transparent; 
  background-color: transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 30px!important;
  font-size: 0.85rem;
}*/

.table thead .form-select-sm,
.table thead .form-control-sm {
  border: 1px solid transparent;
  background-color: transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 30px!important;
  font-size: 0.85rem;
}

/* Default: visible controls */
.table tbody .form-control-sm,
.table tbody .form-select-sm {
  background-color: white !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  padding: 0.25rem 0.5rem;
  border-radius: 30px!important;
  font-size: 0.85rem;  
}

.table-container {
    overflow: visible !important;
}

.table-header {
    background: var(--primary-dark);
    color: white;
}

.table-body {
    background: white;
    color: white;
}

.form-select-sm {
  border-radius: 30px !important;
  /*min-width: calc(1.75rem + 1.5em) !important;*/ /* arrow + buffer */
}

.table .form-select-sm {
  padding-right: 2rem; /* Ensure space for the chevron */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 9px;
}

.table tr:hover .form-select-sm,
.table tr:hover .form-control-sm,
.table .form-select-sm:focus,
.table .form-control-sm:focus {
  background-color: white;
  border-color: var(--border-color);
}

/* Header Filters (Inside Table Headers) */
.table thead select {
  background-color: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}


/* Action Buttons */
.btn-delete {
  background-color: #fee2e2;
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding-left: initial !important;
  padding-right: initial !important;
}

.btn-delete:hover {
  background-color: #ef4444;
  color: white;
}

/* Multi-select modern override */
.multi-select-wrapper {
  position: relative;
  width: 100%;
}

.multi-select {
  border: 1px solid transparent; 
  border-radius: 20px;
  background: transparent;
  min-height: 38px;
  max-width: 100%;
  padding: 0.25rem 2rem 0.25rem 0.5rem; /* Right padding for chevron */
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.2s ease;
}

/* Ensure it looks interactive in the table */
.table .multi-select {
  border: 1px solid rgba(0,0,0,0); /* invisible initially */
}

.table tr:hover .multi-select,
.multi-select:hover,
.multi-select.active {
  background: white;
  border-color: var(--border-color);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Chevron Icon */
.multi-select::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  opacity: 0; 
  transition: opacity 0.2s;
  pointer-events: none;
}

.table tr:hover .multi-select::after,
.multi-select:hover::after,
.multi-select.active::after {
  opacity: 1;
}

.multi-select-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  overflow: hidden;
}

.multi-select-header-placeholder {
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 0 4px;
}

.multi-select-header-option {
  background-color: #eff6ff;
  color: var(--primary-dark);
  border: 1px solid #dbeafe;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 2px 6px;
  white-space: nowrap;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
}

.multi-select-options {
  display: none; /* JS toggles this via 'active' class on wrapper */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  margin-top: 4px;
  padding: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}

.multi-select.active .multi-select-options {
  display: block;
}

.multi-select-option {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 2px;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: background-color 0.15s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.multi-select-option:hover {
  background-color: #f3f4f6;
}

.multi-select-option.multi-select-selected {
  background-color: #eff6ff;
  color: var(--primary-dark);
}

.multi-select-option-radio {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: white;
}

.multi-select-option.multi-select-selected .multi-select-option-radio {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.multi-select-option.multi-select-selected .multi-select-option-radio::after {
  content: "✓";
  color: white;
  font-size: 10px;
  font-weight: bold;
}

/* Modal specific override */
.modal .multi-select {
  border-color: var(--border-color); /* Always visible in modal */
  background: var(--surface-bg);
}
.modal .multi-select::after {
  opacity: 1; /* Always visible in modal */
}

.multi-select-option.multi-select-selected .multi-select-option-radio {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Multi-select Search Box Style */
.multi-select-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 25px;
    margin-top: 5px;
  font-size: 0.875rem;
  color: var(--text-main);
  background-color: var(--surface-bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.multi-select-search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.multi-select-search::placeholder {
  color: #9ca3af;
}


.multi-select-options {
    display: none;
}

.multi-select-header.multi-select-header-active + .multi-select-options {
    display: block;
}

/* Modal Styling */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
  background-color: #f9fafb;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Login Page Specifics */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    position: relative;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

body.login-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    left: -150px;
    z-index: 0;
}

.login-card {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.login-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.email-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.email-input-group .form-control {
    padding-right: 160px; /* Space for the domain suffix */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-color: #e2e8f0;
    border-radius: 30px;
}

.email-input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.email-domain {
    position: absolute;
    right: 1rem;
    color: #94a3b8;
    font-weight: 500;
    pointer-events: none;
    font-size: 0.9rem;
}

.btn-retrieve {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.login-footer p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
