/**
 * Steam Factory Portal — Global Layout Styles
 * Generated: 2025-10-07 02:05 CDT
 * Batch #2 — “The most dangerous phrase in the language is, 'We’ve always done it this way.’” — Grace Hopper
 * © Steam Factory — Built with ❤️ by the awesome crew at Steam Factory
 */


@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;600&display=swap');



/* ----------------------------------------------------------
   Top Navigation
---------------------------------------------------------- */
.sf-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  color: white;
  padding: 0 1.2rem;
  border-bottom: 3px solid #ffcc00;
  z-index: 1000;
}

.sf-logo {
  color: #ffcc00;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.sf-user {
  margin-right: 1rem;
  color: #ccc;
}

.sf-logout {
  background: #ffcc00;
  color: #000;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
}

.sf-logout:hover {
  background: #fff000;
}

/* ----------------------------------------------------------
   Left Application Navigator
---------------------------------------------------------- */
.sf-appnav {
  position: fixed;
  top: 60px;
  left: 0;
  width: 220px;
  height: calc(100vh - 60px);
  background: #2c2c2c;
  color: #ddd;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 900;
}

.sf-appnav nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #ddd;
  text-decoration: none;
  border-left: 4px solid transparent;
}

.sf-appnav nav a.active {
  background: #1a1a1a;
  border-left: 4px solid #ffcc00;
  color: #fff;
}

.sf-appnav nav a:hover {
  background: #333;
  color: #fff;
}

.sf-toggle {
  display: none;
  background: none;
  color: #ffcc00;
  border: none;
  font-size: 1.3rem;
  margin: 0.5rem 1rem;
  cursor: pointer;
}

/* ----------------------------------------------------------
   Main Layout Wrapper
---------------------------------------------------------- */
.sf-layout {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* prevents background peeking through */
}

/*
.sf-main {
  margin-top: 0px;
  margin-left: 220px;
  padding: 0;
  flex-grow: 1;
  background: #f8f9fa;
  min-height: calc(100vh - 60px);
}

*/

/* ----------------------------------------------------------
   Portal Tight Fit — remove all spacing around tab workspace
---------------------------------------------------------- */

.sf-main {
  margin: 0 !important;             /* remove the 60px/220px offsets */
  padding: 0 !important;            /* remove any inner breathing room */
  position: relative;
  top: 60px;                        /* manually offset below top bar */
  left: 220px;                      /* manually offset right of side bar */
  width: calc(100vw - 220px);       /* fill remaining width */
  height: calc(100vh - 60px);       /* fill remaining height */
  overflow: hidden;                 /* prevent scrollbars from phantom spacing */
  background: #f8f9fa;
}


/* ----------------------------------------------------------
   Responsive Adjustments
---------------------------------------------------------- */
@media (max-width: 768px) {
  .sf-appnav {
    transform: translateX(-100%);
  }
  .sf-appnav.open {
    transform: translateX(0);
  }
  .sf-toggle {
    display: block;
  }
  .sf-main {
    margin-left: 0;
  }
}


/* ----------------------------------------------------------
   Portal Tabs (Excel-style bottom tabs)
---------------------------------------------------------- */

.sf-tabs {
  margin-top:0;
  border-top: none;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  border-left: none;
}

/* Tab content — adaptive height and spacing */
.sf-tab-content {
  flex-grow: 1;
  padding: 1.5rem;
  background: #fff;
  color: #000;
  border-bottom: 1px solid #ccc;

  /* 🧮 Dynamic sizing */
  min-height: calc(100vh - 180px); /* adjust 180px as needed for header+tabs */
  max-height: calc(100vh - 80px);  /* keeps ~40px gap from bottom */
  overflow-y: auto;
  box-sizing: border-box;
}

/* Tab bar is anchored to the bottom */
.sf-tab-bar {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  border-top: 1px solid #ccc;
  background: #f3f3f3;
}

/* Tabs look like Excel sheets */
.sf-tab {
  border: 1px solid transparent;
  border-top: none;
  border-right: 1px solid #ccc;
  border-left: 1px solid #ccc;
  background: #e6e6e6;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sf-tab:hover {
  background: #ddd;
}

.sf-tab.active {
  background: #fff;
  border-top: 1px solid #fff;
  border-bottom: none;
  color: #000;
  font-weight: 600;
  position: relative;
  top: -1px;
}

/* Optional: close buttons inside tabs */
.sf-tab .close {
  margin-left: 0.5rem;
  color: #777;
  font-weight: 600;
  cursor: pointer;
}

.sf-tab .close:hover {
  color: #000;
}

/* ----------------------------------------------------------
   Portal Tabs (Top Tabs)
---------------------------------------------------------- */

.sf-tabs {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-height: 500px;
}

.sf-tab-bar {
  display: flex;
  background: #2d2d2d;
  border-bottom: 3px solid #ffcc00;
  border-radius: 6px 6px 0 0;
}

.sf-tab {
  background: #3a3a3a;
  color: #ccc;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-right: 1px solid #444;
  transition: background 0.2s ease, color 0.2s ease;
}

.sf-tab:hover {
  background: #444;
  color: #fff;
}

.sf-tab.active {
  background: #ffcc00;
  color: #111;
  font-weight: 600;
}

.sf-tab-content {
  flex-grow: 1;
  display: none;
  padding: 1.5rem;
  background: #fff;
  color: #000;
}

.sf-tab-content:first-of-type {
  display: block;
}

/* ----------------------------------------------------------
   Global Typography
---------------------------------------------------------- */

/* html, body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background-color: #f8f9fa;
}
*/

html, body {
  font-family: "Zilla Slab", "Segoe UI", sans-serif;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #1a1a1a; /* matches top bar color to blend */
  height: 100%;
  width: 100%;
}


/* ----------------------------------------------------------
   Quotes View Tight Layout
---------------------------------------------------------- */
.sf-main .sf-tab-content {
  padding: 0 !important;          /* remove inner padding */
}

.sf-main .sf-quotes {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  background: #fff;
}

.sf-main .sf-quotes table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}


/* ----------------------------------------------------------
   Force full-width layout for view tables
---------------------------------------------------------- */

.sf-main .sf-tab-content {
  padding: 0 !important;          /* remove the inner whitespace */
}

.sf-main .sf-quotes {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}

.sf-main .sf-quotes table.sf-table-quotes {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #bfbfbf;      /* outer border visible */
}

/* ==========================================================
   STEAM FACTORY MODAL — Consistent center positioning
========================================================== */

.sf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-in-out;
}

.sf-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  position: relative;
  font-family: "Zilla Slab", serif;
  animation: slideUp 0.25s ease-out;
}

.sf-modal-header {
  background: linear-gradient(90deg, #111 0%, #222 50%, #111 100%);
  color: #ffcc00;
  padding: 0.75rem 1rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf-modal-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.sf-modal-close {
  background: transparent;
  color: #ffcc00;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.sf-modal-body {
  padding: 1.25rem;
  max-height: 70vh;
  overflow-y: auto;
}

.sf-modal-footer {
  padding: 1rem;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
  text-align: right;
}

.sf-modal-footer .sf-btn {
  margin-left: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

