/* =========================================================
   MarketMaker CRE — Zoom Meetings Page (ONLY)
   Clean single-source CSS
   - Grid: 3 (desktop) → 2 (tablet) → 1 (phone)
   - Touch devices (Fold/phones): bump typography
   - Results area fills the screen
   - Table view scrolls horizontally when needed
   ========================================================= */

/* -----------------------------
   Root variables
------------------------------ */
:root{
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --blue: #2563eb;
  --purple: #6d28d9;

  --gray-900:#111827;
  --gray-700:#374151;
  --gray-600:#4B5563;
  --gray-300:#D1D5DB;
  --gray-200:#E5E7EB;
  --gray-100:#F3F4F6;
  --white:#FFFFFF;

  --filters-panel-bg:#315077;
  --nav-background:#f3f4f6;
  --search-text-color:#8cc63f;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 10px 18px rgba(0,0,0,.12);

  --radius: 14px;

  /* Legacy results-header vars (kept small/safe) */
  --results-header-height: 72px;
  --results-logo-height: 160px;
}

/* -----------------------------
   Base / reset
------------------------------ */
*{ box-sizing:border-box; margin:0; padding:0; }
html{
  scroll-behavior:smooth;
  height:100%;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  height:100%;
  min-height:100vh;
  font-family:var(--font-primary);
  color:var(--gray-900);
  background:#DADDDB;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* -----------------------------
   Page background / container
------------------------------ */
.hero-search{
  background: linear-gradient(
    to bottom,
    #203e5a 1%,
    #94adce 5%,
    #EAF3FF 30%,
    #FFFFFF 65%
  );
  padding: 1rem 1.25rem;
  color: var(--search-text-color);
}
.hero-container{
  max-width:1680px;
  margin:0 auto;
}

/* -----------------------------
   Layout
------------------------------ */
.search-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
  align-items:start;
}

/* -----------------------------
   Results section
------------------------------ */
.results-section{
  background: var(--filters-panel-bg);
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 12px 30px rgba(17,24,39,.08);
  border-radius:16px;
  padding:18px;
}

/* -----------------------------
   RESULTS HEADER (legacy support)
------------------------------ */
.meetings-scope .results-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height: var(--results-header-height);
}
.meetings-scope .results-title-group .results-title{ margin:0 0 4px 0; }
.meetings-scope .results-title-group .results-count{ margin:0; }

.results-title-group .results-title{
  font-size:1.6rem;
  font-weight:800;
  color:var(--search-text-color);
}
.results-count,
.count-number{
  color:var(--search-text-color);
  font-weight:700;
}

.meetings-scope .results-header .nav-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  height:56px;
  padding:0;
  margin:0;
  overflow:visible;
}

.meetings-scope .results-header .nav-logo .logo-img{
  height:110px;
  width:auto;
  max-width:240px;
  display:block;
  object-fit:contain;
}

/* -----------------------------
   Current company row
------------------------------ */
.mm-company-row{
  display:flex;
  justify-content:flex-end;
  margin-bottom:10px;
}
.mm-company-name{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  padding:6px 10px;
  border-radius:999px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:900;
  font-size:13px;
  color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
}

/* -----------------------------
   Compact top area used by meetings page
------------------------------ */
.meetings-scope .page-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.meetings-scope .page-topbar-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  min-width:0;
  flex:1 1 auto;
}
.meetings-scope .page-title-stack{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.meetings-scope .page-title-stack .results-title,
.meetings-scope .page-title-stack .results-count,
.meetings-scope .page-title-stack .results-selected-count{
  margin:0;
}
.meetings-scope .page-topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  min-width:0;
}
.meetings-scope .page-subbar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.meetings-scope .page-brand-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  height:52px;
  overflow:visible;
}
.meetings-scope .page-brand-logo .logo-img{
  height:92px;
  width:auto;
  max-width:220px;
  display:block;
  object-fit:contain;
}
.meetings-scope .page-topbar .view-toggle{
  margin-left:0;
}
.meetings-scope .page-topbar .back-btn,
.meetings-scope .page-topbar .clear-btn,
.meetings-scope .page-subbar .session-pill{
  margin-top:0 !important;
}
.meetings-scope .page-compact-btn{
  padding:8px 12px !important;
  min-height:38px;
  font-size:13px;
}

/* -----------------------------
   View toggle
------------------------------ */
.view-toggle{
  display:flex;
  gap:8px;
  background:var(--gray-100);
  padding:6px;
  border-radius:14px;
}
.view-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:none;
  background:transparent;
  color:var(--gray-600);
  font-weight:700;
  border-radius:12px;
  cursor:pointer;
}
.view-btn.active{
  background:#fff;
  color:var(--blue);
  box-shadow:var(--shadow-sm);
}

/* -----------------------------
   Results body
------------------------------ */
.results-body{
  overflow: visible;
  max-height: none;
  padding-right:0;
  margin-top:6px;
}

/* =========================================================
   CARDS GRID
   ========================================================= */
.meetings-scope #meetings-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

@media (max-width: 1350px){
  .meetings-scope #meetings-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px){
  .meetings-scope #meetings-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CARD STYLING
   ========================================================= */
.meetings-scope .property-card{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:18px;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.meetings-scope .meeting-company{
  font-size:1.15rem;
  font-weight:900;
  color:var(--purple);
  margin-bottom:8px;
  line-height:1.2;
}

.meetings-scope .property-card-body{
  position:relative;
}

.meetings-scope .property-card-body p{
  margin:0 0 8px 0;
  color:var(--gray-900);
  line-height:1.4;
  font-size:1rem;
}

.meetings-scope .meeting-date span{
  color:var(--purple);
  font-weight:800;
}

.meetings-scope .meeting-topic{
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
  line-height: 1.25 !important;
}

/* =========================================================
   ACTIONS
   ========================================================= */
.meetings-scope .meeting-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.meetings-scope .meeting-actions-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.meetings-scope .mm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  height:40px;
  border-radius:10px;
  font-weight:800;
  border:none;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  font-size:0.95rem;
}
.meetings-scope .meeting-actions .mm-btn-uniform{
  min-width:92px;
  height:36px;
  padding:0 12px;
  box-sizing:border-box;
  white-space:nowrap;
}
.meetings-scope .meeting-actions a.mm-btn-uniform{
  text-decoration:none;
}
.meetings-scope .mm-btn-zoom{
  background:var(--purple);
  color:#fff;
}
.meetings-scope .mm-btn-zoom:hover{ filter:brightness(.95); }
.meetings-scope .mm-btn-email{
  background:var(--blue);
  color:#fff;
}
.meetings-scope .mm-btn-email:hover{ filter:brightness(.95); }
.meetings-scope .mm-btn-email.is-sent{
  background:#16a34a;
}
.meetings-scope .mm-btn-cancel{
  background:#dc2626;
  color:#fff;
}
.meetings-scope .mm-btn-cancel:hover{ filter:brightness(.95); }
.meetings-scope .mm-btn-cancel.is-canceled{
  background:#991b1b;
  opacity:.9;
}
.meetings-scope .mm-btn.mm-btn-remind,
.meetings-scope .mm-btn.mm-btn-forward,
.meetings-scope .mm-btn.mm-btn-update,
.meetings-scope .mm-btn.mm-btn-copy,
.meetings-scope .mm-btn.mm-btn-remind.mm-btn-forward{
  background: var(--blue) !important;
  color:#fff !important;
  border:none !important;
}
.meetings-scope .mm-btn.mm-btn-remind:hover,
.meetings-scope .mm-btn.mm-btn-forward:hover,
.meetings-scope .mm-btn.mm-btn-update:hover,
.meetings-scope .mm-btn.mm-btn-copy:hover,
.meetings-scope .mm-btn.mm-btn-remind.mm-btn-forward:hover{
  filter:brightness(.95) !important;
}

/* =========================================================
   COMPLETED BADGE
   ========================================================= */
.meetings-scope .meeting-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.meetings-scope .meeting-header .meeting-company{
  flex:1;
  min-width:0;
  margin-bottom:8px;
}
.meetings-scope .meeting-status-badge{
  position:static;
  top:auto;
  right:auto;
  z-index:auto;
  cursor:pointer;
  user-select:none;
  flex:0 0 auto;
  margin-top:2px;
}
.meetings-scope .meeting-status-checkbox{
  display:none;
}
.meetings-scope .status-pill{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#f3f4f6;
  color:#6b7280;
  transition:all .2s ease;
}
.meetings-scope .status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#9ca3af;
  transition:all .2s ease;
}
.meetings-scope .meeting-status-checkbox:checked + .status-pill{
  background:#dcfce7;
  color:#166534;
}
.meetings-scope .meeting-status-checkbox:checked + .status-pill .status-dot{
  background:#22c55e;
}
.meetings-scope .property-card.is-complete{
  opacity:.85;
}
.meetings-scope .property-card.is-complete .meeting-company{
  text-decoration:line-through;
}

/* =========================================================
   ATTENDEES
   ========================================================= */
.meetings-scope .attendees-wrap{
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.08);
}
.meetings-scope .attendees-title{
  font-size:0.8rem;
  font-weight:800;
  margin-bottom:8px;
  color:var(--gray-900);
}
.meetings-scope .attendees-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:8px;
}
.meetings-scope .attendee-chip{
  border:1px solid #e6e8ee;
  border-radius:12px;
  padding:6px 8px;
  background:#fff;
  min-width:0;
}
.meetings-scope .attendee-name{
  font-size:0.9rem;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================================================
   TOUCH DEVICES
   ========================================================= */
@media (hover: none) and (pointer: coarse){
  .meetings-scope .meeting-company{ font-size:1.45rem; }
  .meetings-scope .property-card-body p{ font-size:1.18rem; }
  .meetings-scope .attendee-name{ font-size:1.05rem; }
  .meetings-scope .mm-btn{ font-size:1.05rem; padding:14px 18px; height:44px; }
  .meetings-scope .results-title-group .results-title{ font-size:1.8rem; }
}

/* =========================================================
   TABLE VIEW
   ========================================================= */
.meetings-scope .results-table-wrapper{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
.meetings-scope .results-table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
  background:#fff;
}
.meetings-scope .results-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--gray-100);
  color:var(--gray-900);
}
.meetings-scope .results-table th,
.meetings-scope .results-table td{
  padding:12px;
  border-bottom:1px solid var(--gray-200);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:14px;
}
.meetings-scope .results-table tbody tr{
  border-bottom:2px solid var(--purple);
}
.meetings-scope .results-table tbody tr:last-child{
  border-bottom:none;
}
.meetings-scope a.link-btn,
.meetings-scope button.link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid #c7cbe0;
  background:#fff;
  text-decoration:none;
  cursor:pointer;
  font-weight:800;
}

/* =========================================================
   MOBILE READABILITY FIX
   ========================================================= */
@media (max-width: 700px){
  body.meetings-scope{
    font-size: 16px;
  }
}

@media (hover:none) and (pointer:coarse){
  body.meetings-scope{ font-size:18px; }
  .meetings-scope .property-card{ padding:20px; }
  .meetings-scope .meeting-company{ font-size:1.55rem; line-height:1.2; }
  .meetings-scope .property-card-body p{ font-size:1.15rem; line-height:1.45; }
  .meetings-scope .attendees-title{ font-size:1rem; }
  .meetings-scope .attendee-name{ font-size:1.05rem; }
  .meetings-scope .mm-btn{ font-size:1.05rem; height:48px; padding:14px 18px; }
}

/* -----------------------------
   Quick filter
------------------------------ */
.meetings-scope .quick-filter{
  margin-top:10px;
  margin-bottom:16px;
}
.meetings-scope .quick-filter input{
  background:#ffffff !important;
  color:#111827 !important;
  border:1px solid rgba(17,24,39,.18) !important;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}
.meetings-scope .quick-filter input::placeholder{
  color:rgba(17,24,39,.55) !important;
}
.meetings-scope .quick-filter .clear-btn{
  background:#ffffff !important;
  color:#111827 !important;
  border:1px solid rgba(17,24,39,.18) !important;
}
.meetings-scope .results-body{
  margin-top:6px;
}

/* Table cancel link */
.meetings-scope .mm-cancel-link{
  border-color:#fecaca;
  color:#b91c1c;
  font-weight:800;
}

/* -----------------------------
   Mobile layout tightening
------------------------------ */
@media (max-width: 900px){
  .hero-search{
    padding:8px !important;
  }

  .results-section{
    padding:10px !important;
  }

  .meetings-scope .page-topbar{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    margin-bottom:8px;
  }

  .meetings-scope .page-topbar-left,
  .meetings-scope .page-topbar-right{
    width:100%;
    justify-content:space-between;
  }

  .meetings-scope .page-brand-logo{
    height:38px;
    justify-content:flex-end;
    overflow:visible;
  }

  .meetings-scope .page-brand-logo .logo-img{
    height:64px;
    max-width:170px;
  }

  .meetings-scope .page-subbar{
    gap:6px;
    margin-bottom:8px;
  }

  .meetings-scope #meetings-grid{
    grid-template-columns:1fr;
  }
}
/* ===== FINAL LOGO FIX — put at very bottom of file ===== */

/* old/legacy results-header logo */
.meetings-scope .results-header .nav-logo{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:72px !important;
  min-height:72px !important;
  overflow:visible !important;
}

.meetings-scope .results-header .nav-logo .logo-img{
  display:block !important;
  height:110px !important;
  max-height:none !important;
  width:auto !important;
  max-width:260px !important;
  object-fit:contain !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* actual meetings topbar logo */
.meetings-scope .page-brand-logo{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:72px !important;
  min-height:72px !important;
  overflow:visible !important;
  flex:0 0 auto !important;
}

.meetings-scope .page-brand-logo .logo-img{
  display:block !important;
  height:110px !important;
  max-height:none !important;
  width:auto !important;
  max-width:260px !important;
  object-fit:contain !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* keep top section from blowing up */
.meetings-scope .page-topbar{
  align-items:center !important;
  min-height:auto !important;
}

.meetings-scope .page-topbar-right{
  align-items:center !important;
}

/* mobile */
@media (max-width: 900px){
  .meetings-scope .page-brand-logo{
    height:48px !important;
    min-height:48px !important;
    justify-content:flex-end !important;
  }

  .meetings-scope .page-brand-logo .logo-img{
    height:72px !important;
    max-width:180px !important;
  }

  .meetings-scope .results-header .nav-logo{
    height:48px !important;
    min-height:48px !important;
  }

  .meetings-scope .results-header .nav-logo .logo-img{
    height:72px !important;
    max-width:180px !important;
  }

 input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="search"],
select,
textarea,
.form-control,
.modal input,
.modal select,
.modal textarea,
.card input,
.card select,
.card textarea {
  background-color: #eef2f7 !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus,
.card input:focus,
.card select:focus,
.card textarea:focus {
  background-color: #ffffff !important;
  color: #111827 !important;
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}

/* Restore shaded form fields */
input,
select,
textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#f3f4f6;
  color:#111;
  outline:none;
  font-size:14px;
  font-family:Inter,Segoe UI,Arial,sans-serif
}

input:focus,
select:focus,
textarea:focus{
  background:#fff;
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.12);
}
/* FIXED FORM FIELD STYLE */
input,
select,
textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#bfc3ce;
  color:#111;
  outline:none;
  font-size:14px;
  font-family:Inter,Segoe UI,Arial,sans-serif
}

input:focus,
select:focus,
textarea:focus{
  background:#fff;
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.12)
}
/* GLOBAL FORM FIELD STYLE */

.form-grid input,
.form-grid select,
.form-grid textarea,
.form-card input,
.form-card select,
.form-card textarea {
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#bfc3ce;
  color:#111;
  outline:none;
  font-size:14px;
  font-family:Inter,Segoe UI,Arial,sans-serif;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  background:#fff;
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.12);
}

/* Force whole broker task card color by follow-up state */
#tasks-grid .property-card.bt-card-future {
  background: linear-gradient(180deg, #f4fff7 0%, #e8f9ef 100%) !important;
  border: 2px solid #86d19f !important;
  box-shadow: 0 0 0 1px rgba(134, 209, 159, 0.18) inset !important;
}

#tasks-grid .property-card.bt-card-past {
  background: linear-gradient(180deg, #fff7f7 0%, #fde2e2 100%) !important;
  border: 2px solid #e29b9b !important;
  box-shadow: 0 0 0 1px rgba(226, 155, 155, 0.18) inset !important;
}

/* =========================================================
   MEETING NOTES — Match Broker Tasks Styling
   ========================================================= */

.meetings-scope .meeting-notes textarea,
.meetings-scope .meeting-notes input[type="date"]{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  background:#ffffff !important;
  color:#111827 !important;
  font-size:14px;
  font-family:Inter, Segoe UI, Arial, sans-serif;
  outline:none;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}

.meetings-scope .meeting-notes textarea{
  min-height:90px;
  resize:vertical;
}

.meetings-scope .meeting-notes textarea:focus,
.meetings-scope .meeting-notes input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
  background:#ffffff;
}

#tasks-grid.al-single-row,
.al-grid-table{
  display:block;
  width:100%;
}

.al-grid-row{
  display:grid;
  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(180px, 1.2fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    minmax(140px, .9fr);
  gap:12px;
  align-items:center;
}

.al-grid-head{
  padding:12px 14px;
  border:1px solid #d9e1ea;
  border-radius:14px;
  background:#eef4ff;
  font-weight:800;
  color:#122033;
  margin-bottom:10px;
}

.al-grid-item{
  padding:14px;
  border:1px solid #d9e1ea;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(16,24,40,.05);
  margin-bottom:10px;
}

.al-company-name{
  font-weight:800;
  color:#122033;
}

.al-profile-id{
  font-size:12px;
  color:#5e6a79;
  margin-top:4px;
}

.al-select{
  width:100%;
  min-height:40px;
  border:1px solid #d9e1ea;
  border-radius:10px;
  padding:8px 10px;
  background:#fff;
}

.al-col-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

.al-save-btn{
  border:0;
  border-radius:10px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
  background:#1d4ed8;
  color:#fff;
}

.al-status{
  font-size:12px;
  color:#5e6a79;
}

.al-status.ok{
  color:#15803d;
  font-weight:700;
}

.al-status.err{
  color:#b91c1c;
  font-weight:700;
}

@media (max-width: 1200px){
  .al-grid-table{
    overflow-x:auto;
  }

  .al-grid-row{
    min-width:1320px;
  }
}


/* =========================================================
   Accounts Listing — Single Row Grid
   Put this at the VERY BOTTOM of the CSS file
   ========================================================= */

#tasks-grid.al-single-row {
  display: block;
  width: 100%;
}

#tasks-grid.al-single-row .al-grid-table {
  display: block;
  width: 100%;
}

#tasks-grid.al-single-row .al-grid-head,
#tasks-grid.al-single-row .al-grid-item {
  display: grid !important;
  grid-template-columns:
    minmax(240px, 1.7fr)
    minmax(180px, 1.2fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    minmax(130px, .8fr);
  gap: 12px;
  align-items: center;
  width: 100%;
}

#tasks-grid.al-single-row .al-grid-head {
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid #d9e1ea;
  border-radius: 14px;
  background: #eef4ff;
  font-weight: 800;
  color: #122033;
}

#tasks-grid.al-single-row .al-grid-item {
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid #d9e1ea;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16,24,40,.05);
}

#tasks-grid.al-single-row .al-col-company,
#tasks-grid.al-single-row .al-col-brokerage,
#tasks-grid.al-single-row .al-col-broker,
#tasks-grid.al-single-row .al-col-caller,
#tasks-grid.al-single-row .al-col-sales,
#tasks-grid.al-single-row .al-col-trainer,
#tasks-grid.al-single-row .al-col-actions {
  min-width: 0;
}

#tasks-grid.al-single-row .al-company-name {
  font-weight: 800;
  color: #122033;
  line-height: 1.2;
}

#tasks-grid.al-single-row .al-profile-id {
  margin-top: 4px;
  font-size: 12px;
  color: #5e6a79;
}

#tasks-grid.al-single-row .al-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  background: #fff;
}

#tasks-grid.al-single-row .al-col-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

#tasks-grid.al-single-row .al-save-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: #1d4ed8;
  color: #fff;
}

#tasks-grid.al-single-row .al-status {
  font-size: 12px;
  color: #5e6a79;
}

#tasks-grid.al-single-row .al-status.ok {
  color: #15803d;
  font-weight: 700;
}

#tasks-grid.al-single-row .al-status.err {
  color: #b91c1c;
  font-weight: 700;
}

@media (max-width: 1200px) {
  #tasks-grid.al-single-row {
    overflow-x: auto;
  }

  #tasks-grid.al-single-row .al-grid-head,
  #tasks-grid.al-single-row .al-grid-item {
    min-width: 1400px;
  }
}

/* Accounts Listing dropdowns only */

.al-select{
  width:100%;
  min-height:40px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:8px 10px;
  background:#e5e7eb;   /* dropdown color */
  color:#111827;
  font-weight:600;
}

.al-select:focus{
  background:#ffffff;
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.15);
}


}