/* @import only works before any other rule, so the app's own styles live in
   separate files. Theme files come last: their rules override the base
   styles at equal specificity. */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

@import "../tailwind/rescheduled.css";

@import "../../../config/tailwind/themes/40c3.css";
@import "../../../config/tailwind/themes/39c3.css";
@import "../../../config/tailwind/themes/38c3.css";
@import "../../../config/tailwind/themes/37c3.css";
@import "../../../config/tailwind/themes/36c3.css";
@import "../../../config/tailwind/themes/35c3.css";
/* Hack (MIT + Bitstream Vera, see Hack-License.txt) for body text. */
@font-face {
  font-family: "Hack";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/Hack-Regular-32c8890c01afc5da40fd004ee89e0209e5532599c7183d3a228e9a45e00409ab.woff2) format("woff2");
}
@font-face {
  font-family: "Hack";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/Hack-Bold-165c5974ff19bf2cec3f9d1e07ef9aa3eb3b6563e88debc64858f8a587b3ca36.woff2) format("woff2");
}
@font-face {
  font-family: "Hack";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/Hack-Italic-2834825f19c7088dba81a5c13f3545cc4cbcf1fb8d9f6bf0c647c87697502231.woff2) format("woff2");
}
@font-face {
  font-family: "Hack";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/Hack-BoldItalic-f82ecc2d389f43e61008dd8d86c068c8dded87c565c6c4e030923eb198ae1fd6.woff2) format("woff2");
}

/* Jersey 10 (SIL OFL 1.1, see jersey-10_License.txt) for headings.
   size-adjust matches its small glyphs to Hack at the same font-size. */
@font-face {
  font-family: "Jersey 10";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 130%;
  src: url(/assets/jersey-10-latin-400-normal-c7d32ef3000897036b8bd20f72b22194cab5104c35e72b7b9a68b612761c8880.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jersey 10";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 130%;
  src: url(/assets/jersey-10-latin-ext-400-normal-df1cc19aa0b7d756e355606f355332ea610b1d63d010d10ccab1a95eff8638a5.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DejaVu Sans (Bitstream Vera license, see dejavu-sans/DejaVu-Sans-License.txt),
   subset to Latin and Latin Extended. Hack is derived from DejaVu Sans Mono, so
   this is its proportional counterpart. */
@font-face {
  font-family: "DejaVu Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/dejavu-sans/dejavu-sans-latin-400-normal-3637c6668a4662105e6d9d426fbe48c3a0cba77abbf23670ecf28fdc14c143aa.woff2) format("woff2");
}
@font-face {
  font-family: "DejaVu Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/dejavu-sans/dejavu-sans-latin-700-normal-56b44027d4f0d931d21eecce367a62e6af637c498975089d59081edc286f7571.woff2) format("woff2");
}

/* DejaVu Sans Condensed, same license and subset as DejaVu Sans. About 10% narrower;
   40C3's proportional option uses it to save width over Hack. */
@font-face {
  font-family: "DejaVu Sans Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/dejavu-sans/dejavu-sans-condensed-latin-400-normal-4e89fa6105973dc5276670b3ce2206d84558acfa6136eb4020ead3594247ffc0.woff2) format("woff2");
}
@font-face {
  font-family: "DejaVu Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/dejavu-sans/dejavu-sans-condensed-latin-700-normal-9155590ee7f0afc407881a4213827893809227954f5af69b93655ab78424df19.woff2) format("woff2");
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
/* Add your styles here to layout the tabs, timeline, and session blocks */

.timeline {
  position: relative;
  margin: 0 auto;
}

.session h4 {
  margin-top: 0;
  margin-bottom: 4px;
}
.session p {
  margin: 6px 0;
}
.session .session-desc {
  text-overflow: ellipsis;
}
.conference-day {
  position: relative;
}
.stage-sessions {
  position: relative;
}
.time {
  border-top: 1px dotted rgb(var(--color-slate-300));
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgb(var(--color-slate-500));
  padding-left: 6px;
}
:where(.dark) .time {
  border-top-color: rgb(var(--color-slate-700));
  color: rgb(var(--color-slate-400));
}
.time.hour-start {
  border-top: 1px solid rgb(var(--color-slate-400));
  color: rgb(var(--color-slate-900));
  font-weight: 600;
}
:where(.dark) .time.hour-start {
  border-top-color: rgb(var(--color-slate-500));
  color: rgb(var(--color-slate-100));
}
.current-time {
  position: absolute;
  width: 100%;
  height: 2px;
  z-index: 30;
  background: rgb(var(--color-red-500));
  box-shadow: 0 0 4px rgb(var(--color-red-500) / 0.4);
  pointer-events: none;
}
/* Timeline header row (sticky) */
.timeline-headers {
  z-index: 35 !important;
}
.time-header,
.stage-header {
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}
.time-header {
  width: 50px;
  min-width: 50px;
  flex-shrink: 0;
}
.stage-header {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 460px;
  padding: 0.25rem 6px;
  border-left: 1px dashed rgb(var(--color-slate-300));
}
:where(.dark) .stage-header { border-left-color: rgb(var(--color-slate-700)); }

/* Container for stage-header cells - flex so children share space */
.stage-headers {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

/* Timeline content */
.times {
  width: 50px;
  min-width: 50px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  background: rgb(var(--color-white) / 0.9);
  z-index: 25;
}
:where(.dark) .times { background: rgb(var(--color-slate-900) / 0.92); }
.stages {
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  min-width: 0;
}
.stages .stage {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 460px;
  padding: 0 6px;
  border-right: 1px dashed rgb(var(--color-slate-300));
}
:where(.dark) .stages .stage { border-right-color: rgb(var(--color-slate-700)); }
.stages .stage:last-child { border-right: 0; }

/* Snap to next stage on horizontal swipe (tablet + mobile) */
@media (max-width: 1024px) {
  .day-wrapper {
    scroll-snap-type: x mandatory;
    /* keep the sticky time column from clipping the snap target */
    scroll-padding-left: 50px;
    -webkit-overflow-scrolling: touch;
  }
  .stages .stage,
  .stage-header {
    scroll-snap-align: start;
  }
}

/* Mobile: time column compact + flush, stage size lets ~one fit with a peek of the next */
@media (max-width: 640px) {
  /* tighter time gutter - 32px is wide enough for "10:00", not pretty but functional */
  .times,
  .time-header {
    width: 32px;
    min-width: 32px;
    padding-left: 2px;
  }
  .day-wrapper { scroll-padding-left: 32px; }
  .time {
    padding-left: 2px;
    font-size: 10px;
  }
  /* Stage = viewport minus gutter minus peek of next column. Peek is ~52px,
     enough to see the next stage's title bar but not enough to read content. */
  .stages .stage,
  .stage-header {
    min-width: calc(100vw - 32px - 52px);
    max-width: calc(100vw - 32px - 52px);
    padding: 0 4px;
  }

  /* Session card on mobile: looser padding, tighter type */
  .session {
    padding: 0.5rem !important;
    font-size: 0.8125rem;
  }
  .session h4 { font-size: 0.875rem; line-height: 1.25; margin-bottom: 0.25rem; }
  .session .session-time,
  .session .session-location { font-size: 0.6875rem; }
  /* Keep the action menu floating in the top-right on mobile too -
     overlapping content reads as a sticker on top of the card, rather
     than a row that pushes everything down. */
}

/* Improve mobile scrolling for tables */
.table-responsive,
table.w-full,
.overflow-x-auto:not(.day-wrapper),
.admin-table-container,
div:has(> table) {
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100vw;
  display: block;
}

/* Mobile responsive headers with buttons */
@media (max-width: 640px) {
  .header-with-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-with-actions h1,
  .header-with-actions h2,
  .header-with-actions h3 {
    margin-bottom: 0.75rem;
  }

  .header-with-actions .actions {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
}

/* Make day headers sticky at top */
.conference-day h3.sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(4px);
}

/* Override table-responsive display for day-wrapper to maintain flex layout */
.day-wrapper.table-responsive {
  display: flex !important;
}

/* Responsive admin dashboard tiles */
@media (max-width: 768px) {
  .admin-dashboard-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-dashboard-tiles .tile {
    padding: 0.75rem;
    min-height: auto;
  }
  .admin-dashboard-tiles .tile h3 {
    font-size: 1rem;
  }
  .admin-dashboard-tiles .tile p {
    font-size: 0.875rem;
  }
  .admin-dashboard-tiles .tile .stat {
    font-size: 1.25rem;
  }
}

/* Role-based visibility classes */
[class*="-only"] {
  display: none;
}

/* Permission-based visibility classes */
.can-manage-assignments-only {
  display: none;
}
body[data-can-manage-assignments] .can-manage-assignments-only {
  display: block;
}

/* Role-based visibility classes */
.has-role-shift_coordinator-only {
  display: none;
}
body[data-has-role-shift_coordinator] .has-role-shift_coordinator-only {
  display: block;
}

.has-role-admin-only {
  display: none;
}
body[data-has-role-admin] .has-role-admin-only {
  display: block;
}

.has-role-events_admin-only {
  display: none;
}
body[data-has-role-events_admin] .has-role-events_admin-only {
  display: block;
}

/* Exception classes */
.except-has-role-admin {
  display: block;
}
body[data-has-role-admin] .except-has-role-admin {
  display: none;
}

.except-has-role-shift_coordinator {
  display: block;
}
body[data-has-role-shift_coordinator] .except-has-role-shift_coordinator {
  display: none;
}

.except-has-role-events_admin {
  display: block;
}
body[data-has-role-events_admin] .except-has-role-events_admin {
  display: none;
}

.except-can-manage-assignments {
  display: block;
}
body[data-can-manage-assignments] .except-can-manage-assignments {
  display: none;
}

/* Legacy class for backward compatibility */
.hide-unless-shiftcoordinator {
  display: none;
}
body[data-has-role-shift_coordinator] .hide-unless-shiftcoordinator,
body[data-can-manage-assignments] .hide-unless-shiftcoordinator {
  display: block;
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
