/* ====================================================================== */
/* >SccsID>
   site.css - COMMENT
   /opt1/home/prod/sccs/lots/common/s.site.css
   delta : 11/19/26 10:16:45
   get   : 11/19/26 10:17:00
   AUTHOR abhishekt
<SccsID< */
/* @(#)site.css	1.28 26/11/19 */
/* ====================================================================== */

/* A1Lots shared styles, linked from frontTop.html, adminTop.html and
   loginTop.html as /site.css?v=YYYYMMDD. After changing this file, change
   that date in all three, or browsers keep showing their cached copy. */

body {
  background-color: #f5f7fb;
}

.sidebar {
  width: 250px;
  height: 100vh;
  /* Phones: 100vh is the screen without the browser's address and tool
     bars, so the foot of the menu (Feedback, Admin) sat behind them and
     could not be scrolled to; 100dvh is the part actually visible. A
     swipe at the end of the menu no longer scrolls the page behind it. */
  height: 100dvh;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  background: #172033;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
}

/* Admin link: at the foot of the left menu */
.sidebar .sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 0 12px;
  /* iPhones: clear the home bar at the bottom of the screen */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.sidebar .brand {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
  padding: 24px;
  text-decoration: none;
}

.sidebar .nav-link {
  color: #cbd3df;
  padding: 12px 22px;
  margin: 3px 12px;
  border-radius: 7px;
  /* icon and text side by side, so a long name (Property Management)
     wraps beside the icon instead of under it */
  display: flex;
  align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: #2d6cdf;
  color: white;
}

.main-content {
  margin-left: 250px;
  padding: 30px;
}

.page-header {
  margin-bottom: 25px;
}

.form-card {
  background: white;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  margin-bottom: 22px;
}

.form-card .card-header {
  background: white;
  border-bottom: 1px solid #edf0f4;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 17px;
}

.form-card .card-body {
  padding: 24px;
}

.form-label {
  font-weight: 500;
  color: #344054;
}

.required::after {
  content: " *";
  color: #dc3545;
}

.section-icon {
  color: #2d6cdf;
  margin-right: 8px;
}

.btn-primary {
  background: #2d6cdf;
  border-color: #2d6cdf;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: rgba(245,247,251,.96);
  padding: 15px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 20px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  padding: 20px 22px;
  height: 100%;
}

.stat-card .stat-label {
  color: #667085;
  font-size: 14px;
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #172033;
}

.stat-card .stat-icon {
  font-size: 26px;
  color: #2d6cdf;
}

.table thead th {
  color: #667085;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  background: #f9fafb;
}

.table a {
  text-decoration: none;
}

.val:empty::after {
  content: "\2014";   /* em dash */
  color: #98a2b3;
}

/* Top right of every page: the logged-in user, Admin, Log out */
.user-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: -12px 0 14px;
}
.user-menu .user-name { font-weight: 600; color: #172033; margin-right: 4px; }

/* Copyright line at the bottom of every page */
/* The whole width of the page at the very bottom, drawn over the foot of
   the menu too (z-index above the fixed sidebar), so the band and its line
   run edge to edge. The content above fills the screen so the footer sits
   at the bottom on short pages too. The mobile slide-in menu (z-index 1045)
   still opens over it. */
.main-content {
  min-height: calc(100vh - 92px);
}
.site-foot {
  position: relative;
  z-index: 1035;
  background: #172033;
  color: #ffffff;
  text-align: center;
  font-size: .85rem;
}
.site-foot-links {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  color: #cbd5e1;
}
.site-foot-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 4px;
}
.site-foot-links a:hover { text-decoration: underline; }
.site-foot-copy { padding: 10px 12px; }

/* Lists: smaller type so more fits, smaller again on a phone */
.table {
  font-size: .85rem;
}
.table .btn-sm {
  font-size: .78rem;
}
@media (max-width: 991px) {
  body {
    font-size: .9rem;
  }
  .table {
    font-size: .78rem;
  }
}

/* Login pages: a centred card on a soft background, no menu */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2f7 0%, #dbe4f0 100%);
}
.login-wrap { width: 100%; max-width: 440px; padding: 1rem; }
.login-brand { text-align: center; margin-bottom: 1.25rem; }
.login-logo {
  width: 64px; height: 64px; margin: 0 auto .6rem;
  border-radius: 16px; background: #172033; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.login-name { font-size: 1.75rem; font-weight: 700; color: #172033; }
.login-tag { color: #64748b; font-size: .9rem; }
.login-card { border: 0; border-radius: 14px; box-shadow: 0 10px 30px rgba(30, 41, 59, .12); }
.login-foot { text-align: center; color: #94a3b8; font-size: .8rem; margin-top: 1rem; }

/* (i) help icon after a form label */
.field-help {
  color: #6c757d;
  cursor: help;
  font-size: .85em;
}

/* Example text inside empty boxes (placeholder): light grey, so it is
   not mistaken for something already typed */
.form-control::placeholder {
  color: #b5bcc6;
  opacity: 1;
}

/* List tables: click a column header to sort */
th.sort-head {
  cursor: pointer;
  white-space: nowrap;
}
th.sort-head[data-dir="asc"]::after  { content: " \25B2"; font-size: .7em; }
th.sort-head[data-dir="desc"]::after { content: " \25BC"; font-size: .7em; }

/* List tables: drag the right edge of a column header to resize it,
   double-click the edge to reset (script in frontBot / adminBot) */
.table thead th {
  position: relative;
}
.col-grip {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 1;
  touch-action: none;
}
/* The last column's bar stays inside the table: sticking out past its
   right edge made every list scroll sideways by a few pixels */
.table thead th:last-child .col-grip {
  right: 0;
}

/* Lists wider than the screen: a thin light grey scrollbar */
.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: #d3d8df transparent;
}
.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #d3d8df;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-track {
  background: transparent;
}

/* Long lists: the rows scroll inside the list, which is at most the
   height of the window, so once the page is scrolled down to it the list
   fills the window and only the rows move, under column headers that stay
   fixed. A sticky header still holds the column-resize bar (sticky is
   positioned too). */
.table-responsive {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
.table-responsive .table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* The bar shows a faint grey line at each header's edge, on the computer
   and on the phone alike; a soft grey shade while it is hovered or dragged */
.col-grip::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: calc(50% - 1px);
  width: 2px;
  background: #c9ced6;
}
.col-grip:hover,
.col-grip.dragging {
  background: rgba(0, 0, 0, .06);
}

/* Phones and tablets: a wider bar for a finger */
@media (pointer: coarse) {
  .col-grip {
    right: -10px;
    width: 20px;
  }
  .table thead th:last-child .col-grip {
    right: 0;
  }
}
table.cols-sized td > div {
  max-width: none !important;
}

/* Tile icon: a small calendar with the current month */
.stat-cal {
  display: inline-block;
  min-width: 2.2rem;
  padding: 1px 4px;
  border: 2px solid currentColor;
  border-top-width: 6px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* Dashboard tiles that open their list */
a.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.stat-link:hover .stat-card {
  box-shadow: 0 0 0 2px #0d6efd33;
}
a.stat-link:focus:not(:focus-visible) {
  outline: none;
}

/* Detail pages: "Label: value" on one line, label in bold */
.view-label {
  font-weight: 700;
}
.view-value, .val {
  word-break: break-word;
}

/* ---------------------------------------------------------------------- */
/* Menu (burger) button, always at the top left before the site name:    */
/*  - sidebar open: in the sidebar header row                             */
/*  - sidebar collapsed (desktop) or mobile: in the top bar               */
/* Desktop: the button collapses / expands the sidebar.                   */
/* Below 992px: the sidebar is hidden and slides in over the page.        */
/* ---------------------------------------------------------------------- */
.menu-btn {
  color: white;
  background: none;
  border: 0;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.menu-btn:focus {
  outline: none;
  box-shadow: none;
}

.menu-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .5);
  outline-offset: 3px;
  border-radius: 4px;
}

.sidebar .brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
}

.sidebar .brand-row .brand {
  padding: 0;
}

.topbar {
  display: none;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #172033;
  padding: 20px 22px;
}

.brand-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #2d6cdf;
  color: white;
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
}

.sidebar .nav-sep {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 10px 22px;
}

.topbar .brand-sm {
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar,
.main-content {
  transition: transform .25s ease, margin-left .25s ease;
}

.sidebar-backdrop {
  display: none;
}

@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
  }

  body.sidebar-collapsed .main-content {
    margin-left: 0;
  }

  body.sidebar-collapsed .topbar {
    display: flex;
  }
}

@media (max-width: 991px) {
  .topbar {
    display: flex;
    padding: 12px 16px;
  }

  .topbar .brand-sm {
    font-size: 20px;
  }

  .sidebar {
    z-index: 1045;
    transform: translateX(-100%);
  }

  body.sidebar-open .sidebar {
    transform: none;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .45);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .main-content {
    margin-left: 0;
    padding: 20px 16px;
  }

  .page-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-card .stat-value {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  .page-header h2 {
    font-size: 1.5rem;
  }

  .page-header > .d-flex {
    width: 100%;
  }

  .page-header > .d-flex .btn,
  .page-header > a.btn {
    flex: 1 1 auto;
  }

  .form-card .card-body {
    padding: 16px;
  }

  .sticky-actions .btn {
    flex: 1 1 auto;
  }
}
