/* --------------------------------------
  🌗 Tmavý / světlý režim – proměnné
-------------------------------------- */
:root {
  --bg: #f8f9fa;
  --bg-secondary: #f1f3f5;
  --card-bg: #ffffff;
  --text: #222;
  --border: #ddd;
  --kanban-bg: #f8f9fa;
  --task-bg: #ffffff;
  --task-border: #dee2e6;
  --task-shadow: rgba(0, 0, 0, 0.3);
  --lightbox-bg: rgba(0, 0, 0, 0.9);

  --btn-success: #4caf50;
  --btn-success-hover: #479c4aff;
  --border-success: #4caf50;

  --link: #4caf50;
  --link-hover: #479c4aff;

  --border-primary: #0d6efd;

  --bg-header: #ffffff;
}

body.dark {
  --bg: #121212;
  --bg-secondary: #1b1b1b;
  --card-bg: #1e1e1e;
  --text: #eee;
  --border: #333;
  --kanban-bg: #1b1b1b;
  --task-bg: #242424;
  --task-border: #444;
  --task-shadow: rgba(0, 0, 0, 0.7);
  --lightbox-bg: rgba(0, 0, 0, 0.95);

  --bg-header: #0f0f0f;
}

/* --------------------------------------
  🌗 Základ
-------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.mobile-app-nav { display: none; }

.pricing-plan-card__features {
  display: grid;
  gap: 8px;
  min-height: 156px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #526173;
  font-size: 0.86rem;
  line-height: 1.35;
}

.pricing-plan-card__features i {
  color: #26753a;
  flex: 0 0 auto;
  font-size: 1rem;
}

.pricing-value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-value-strip div {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
  color: #43546a;
  font-weight: 650;
  line-height: 1.35;
}

.pricing-value-strip i {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #eef7f1;
  color: #26753a;
  font-size: 1.1rem;
}

.pricing-activation {
  padding: 4.5rem 0;
  color: #173b28;
  background: #f2f7f3;
}

.pricing-activation__content {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 3rem;
}

.pricing-activation__eyebrow {
  margin: 0 0 .5rem;
  color: #267248;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-activation h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.pricing-activation__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pricing-step;
}

.pricing-activation__steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  color: #496052;
  font-weight: 600;
  line-height: 1.45;
  counter-increment: pricing-step;
}

.pricing-activation__steps li::before {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #ffffff;
  background: #267248;
  border-radius: 50%;
  content: counter(pricing-step);
  font-size: .875rem;
  font-weight: 800;
}

.pricing-operations {
  padding: 4.5rem 0;
  color: #142337;
  background: #ffffff;
}

.pricing-operations__header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.pricing-operations__header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.pricing-operations__header p:last-child {
  margin: 1rem 0 0;
  color: #536174;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pricing-operations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-operations__grid > div {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.pricing-operations__grid i {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #142337;
  color: #ffffff;
  font-size: 1.2rem;
}

.pricing-operations__grid h3 {
  margin: 0;
  color: #142337;
  font-size: 1.08rem;
  font-weight: 800;
}

.pricing-operations__grid p {
  margin: 10px 0 0;
  color: #536174;
  line-height: 1.55;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-cards > div {
  padding: 24px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.about-cards > div > i:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #142337;
  color: #ffffff;
  font-size: 1.2rem;
}

.about-cards h2 {
  margin: 0;
  color: #142337;
  font-size: 1.15rem;
  font-weight: 800;
}

.about-cards p {
  margin: 10px 0 0;
  color: #536174;
  line-height: 1.6;
}

.about-cards__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
}

body.dark .pricing-page { color: #edf3f7; }
body.dark .about-page { color: #edf3f7; }
body.dark .pricing-page .text-body-secondary,
body.dark .system-requirements-page .text-body-secondary,
body.dark .about-page .text-body-secondary { color: #b9c8d1 !important; }
body.dark .about-cards > div { border-color: #304353; background: #1b2732; }
body.dark .about-cards h2 { color: #edf3f7; }
body.dark .about-cards p { color: #b9c8d1; }

.requirements-panel {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.requirements-panel h2 {
  margin: 0 0 14px;
  color: #142337;
  font-size: 1.15rem;
  font-weight: 800;
}

.requirements-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.requirements-cards > div {
  padding: 24px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.requirements-cards > div > i:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #142337;
  color: #ffffff;
  font-size: 1.2rem;
}

.requirements-cards h2 {
  margin: 0;
  color: #142337;
  font-size: 1.08rem;
  font-weight: 800;
}

.requirements-cards ul,
.requirements-cards p {
  margin: 10px 0 0;
  color: #536174;
  line-height: 1.6;
}

.requirements-cards ul {
  padding-left: 1.1rem;
}

.requirements-cards li {
  margin-bottom: 4px;
}

body.dark .requirements-panel { border-color: #304353; background: #1b2732; }
body.dark .requirements-panel h2 { color: #edf3f7; }
body.dark .requirements-cards > div { border-color: #304353; background: #1b2732; }
body.dark .requirements-cards h2 { color: #edf3f7; }
body.dark .requirements-cards ul,
body.dark .requirements-cards p { color: #b9c8d1; }
body.dark .pricing-plan-card.bg-body { background: #1b2732 !important; border-color: #304353 !important; }
body.dark .pricing-plan-card__features li { color: #c2d0d9; }
body.dark .pricing-value-strip div { border-color: #304353; background: #1b2732; color: #d8e5ec; }
body.dark .pricing-value-strip i { background: #18372a; color: #8de2ad; }
body.dark .pricing-activation { background: #14241c; color: #e5f3e8; }
body.dark .pricing-activation__steps li { color: #c0d3c5; }
body.dark .pricing-operations { background: #121a22; color: #edf3f7; }
body.dark .pricing-operations__header p:last-child,
body.dark .pricing-operations__grid p { color: #b9c8d1; }
body.dark .pricing-operations__grid > div { border-color: #304353; background: #1b2732; }
body.dark .pricing-operations__grid h3 { color: #edf3f7; }
body.dark .system-requirements-page { color: #edf3f7; }
body.dark .system-requirements-page .table {
  --bs-table-bg: #1b2732;
  --bs-table-color: #edf3f7;
  --bs-table-border-color: #304353;
}

.network-status {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1045;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #a96800;
  border-radius: 6px;
  background: #fff8e6;
  color: #7a4e00;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.is-offline .network-status { display: inline-flex; }

body,
.card,
.kanban-column,
.task {
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

.card,
.modal-content,
.admin-stat-card {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
}

.btn,
.btn-close {
  color: var(--text);
  background: var(--bg);
}

.btn-close:hover {
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--text);
  text-decoration: none;
}

.text-muted,
.badge {
  color: var(--text) !important;
}

.badge-dark {
  color: #fff !important;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
.card-header,
.card-body,
#taskFile,
input[type="date"],
::placeholder {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.btn-success {
  background-color: var(--btn-success) !important;
  color: #fff;
}

.btn-success:hover {
  background-color: var(--btn-success-hover) !important;
}

.btn-outline-light {
  --bs-btn-border-color: none !important;
}

.layout {
    min-height: 100vh;
}

/* --------------------------------------
  🟦 Kanban sloupce
-------------------------------------- */
/* === Kanban === */
.kanban-wrapper {
  padding: 0 6px;
}

.kanban-toolbar {
  min-width: 0;
}

.work-view-switcher {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}

.work-view-switcher__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.work-view-switcher__item + .work-view-switcher__item {
  border-left: 1px solid var(--border);
}

.work-view-switcher__item:hover,
.work-view-switcher__item.is-active {
  color: var(--bs-primary);
  background: var(--bg-light);
}

.task-list-view {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.task-list-view .task {
  margin: 0;
}

.task-calendar-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.task-calendar-day {
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
}

.task-calendar-day h6 {
  margin: 0 0 10px;
  color: var(--text);
}

.task-calendar-day .task:last-child {
  margin-bottom: 0;
}

.task-calendar-day--undated {
  border-style: dashed;
}

.task-view-empty {
  padding: 24px;
  color: #6c757d;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}

.kanban-header {
  background: var(--card-bg);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  z-index: 5;
}

.kanban-column {
  min-height: 120px;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 8px;
  overflow-y: auto;
}

.kanban-column.drag-hover {
  outline: 2px dashed #0d6efd;
  background: #f8f9fa;
}

/* === Task === */
.task {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 6px 0;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.task:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.task-assigned {
  outline: 2px solid rgba(13, 110, 253, .3);
}

/* === Task content === */
.task-content small {
  color: #6c757d;
}

.task-card-main {
  gap: 8px;
}

.task-card-text {
  min-width: 0;
}

.task-delete-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
}

/* === Footer === */
.task-footer {
  border-top: 1px dashed var(--border);
  font-size: .8rem;
}

.task-footer > * {
  min-width: 0;
}

.task-footer .small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-status-control {
  display: none;
  border-top: 1px dashed var(--border);
}

.task-modal-dialog .modal-content {
  border-radius: 10px;
}

.task-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mobile-workspace-nav-toggle {
  display: none;
}

.mobile-kanban-status-nav {
  display: none;
}

.mobile-add-task-btn {
  display: none;
}

.account-card-table td {
  vertical-align: middle;
}

.work-entries {
  max-width: 1180px;
}

.work-entry-note {
  min-width: 180px;
  max-width: 360px;
  overflow-wrap: anywhere;
}

.notification-list-content {
  min-width: 0;
}

.notification-list-action {
  flex: 0 0 auto;
}

/* === Tracker === */
.tracker-ui i {
  cursor: pointer;
  font-size: 1.1rem;
}

.task-time-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.task-time-panel .tracker-ui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.task-time-panel .tracker-timer {
  min-width: 72px;
  text-align: right;
}

.task-activity {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.task-activity-list {
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
}

.task-activity-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.task-activity-item__marker {
  display: grid;
  place-items: start center;
  color: var(--bs-primary);
}

.task.dragging {
  opacity: 0.5;
}

.task small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  max-height: 1.5em;
}

/* --------------------------------------
  📌 List-group
-------------------------------------- */
.list-group-item {
  cursor: pointer;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* --------------------------------------
  🔍 Lightbox
-------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1055;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--lightbox-bg);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* --------------------------------------
  🎨 Barvy
-------------------------------------- */
mark {
  background-color: transparent;
  font-weight: bold;
  color: #0d6efd;
}

.bg-orange {
  background-color: orange !important;
  color: #fff !important;
}

.text-orange {
  color: orange !important;
}


/* --------------------------------------
  🗂️ Sidebar - Sidebar default (light) 
----------------------------------------*/
#sidebarWrapper {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    align-self: stretch;
}

.sidebar {
  background: var(--card-bg);
  color: var(--text);
}

.sidebar,
.projects-column,
.folders-column {
    width: 260px;              /* nebo 240–300px dle UI */
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}


/* Sidebar border */
.sidebar {
  border-color: var(--border) !important;
}

/* Dark mode sidebar */
body.dark .sidebar {
  background: #181818;
  color: #eaeaea;
}

/* List group items */
.sidebar .list-group-item {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--border);
}

/* List-group-item v dark */
body.dark .sidebar .list-group-item {
  background: #242424 !important;
  color: #eaeaea !important;
  border-color: #333 !important;
}

/* Active položka */
.sidebar .list-group-item.active {
  background: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd !important;
}

body.dark .sidebar .list-group-item.active {
  background: #0d6efd !important;
  color: #fff !important;
}

/* ===============================
   Sidebar wrapper
================================ */
.sidebar-wrapper {
  transition: width 0.25s ease, margin 0.25s ease;
}

/* skrytý sidebar */
.sidebar-wrapper.is-hidden {
  width: 0;
  overflow: hidden;
}

/* aby sidebar neměl vlastní shrink */
.sidebar {
  flex-shrink: 0;
  width: 260px;
  /* nebo col-2 ekvivalent */
}

.layout {
  min-height: calc(100vh - var(--topbar-height, 60px));
}

.sidebar-wrapper,
.kanban-wrapper {
  height: 100%;
}

/* ======================================
   ADMIN TABLE + DARK MODE
====================================== */

.admin-table-container {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

}

.admin-table-container > .table {
  min-width: 720px;
}

/* Hover efekt */
.table-hover tbody tr:hover {
  background-color: var(--bg);
}

/* Role select */
.select-role {
  width: 120px !important;
}

/* Tlačítka */
.admin-action-btn {
  display: flex;
  align-items: center;
}

/* Dark režim header tabulky */
body.dark .dark-table-header {
  background-color: var(--bg) !important;
  color: var(text) !important;
}

body.dark .table {
  --bs-table-bg: var(--bg) !important;
  --bs-table-striped-bg: var(--bg) !important;
  --bs-table-hover-bg: var(--bg) !important;
  --bs-table-border-color: var(--text) !important;
}

/* Dark režim buňky tabulky */
body.dark .table td,
body.dark .table th {
  color: var(--text) !important;
}

/* Dark režim hover řádku */
body.dark .table-hover tbody tr:hover {
  background-color: var(--bg);
}

/* Dark režim admin table container */
body.dark .admin-table-container {
  background: var(--bg) !important;
  border-color: var(--border);
  box-shadow: var(--lightbox-bg);
}

/* =============================
   ADMIN DASHBOARD KARTY
============================= */

.admin-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--lightbox-bg);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--text);
}

/* DARK MODE */
body.dark .admin-stat-card {
  background: var(--bg);
  border-color: var(--text);
}

body.dark select,
body.dark .form-select {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* dropdown šipka */
body.dark .form-select {
  background-image:
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592c.86 0 1.319 1.013.753 1.658l-4.796 5.482a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

/* select při fokusu */
body.dark select:focus,
body.dark .form-select:focus {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: 0 0 0 0.2rem var(--lightbox-bg) !important;
}

body.dark select option {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

/* =============================
   ADMIN LIST (poslední položky)
============================= */

.admin-list-item {
  background: var(--card-bg);
  border-color: var(--border);
  transition: background .2s ease;
}

.admin-list-item:hover {
  background: rgba(13, 110, 253, 0.08);
}

body.dark .admin-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-list {
  border-radius: 8px;
  overflow: hidden;
}


/* ==============================
   KOMENTÁŘE – LAYOUT
============================== */

.comments-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.comments-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* důležité */
}

/* ==============================
   SEZNAM KOMENTÁŘŮ (SCROLL)
============================== */

#commentsList {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 8px;
}

/* hezčí scrollbar (Chrome, Edge) */
#commentsList::-webkit-scrollbar {
  width: 6px;
}

#commentsList::-webkit-scrollbar-thumb {
  background-color: var(--card-bg);
  border-radius: 4px;
}

#commentsList::-webkit-scrollbar-track {
  background: transparent;
}

/* ==============================
   FORMULÁŘ – VŽDY DOLE
============================== */

.comment-form {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  background: var(--bs-body-bg);
}

/* ==============================
   KONVERZAČNÍ KOMENTÁŘE
============================== */

.comment-row {
  display: flex;
  margin-bottom: 10px;
}

.comment-row.me {
  justify-content: flex-end;
}

.comment-row.other {
  justify-content: flex-start;
}

.comment-bubble {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 2px solid var(--border);
  background-color: var(--card-bg);
  box-shadow: 0 1px 3px var(--task-shadow);
}

.comment-row.me .comment-bubble {
  border-bottom-right-radius: 4px;
  text-align: left;
  border-color: var(--border-success);
}

.comment-row.other .comment-bubble {
  border-bottom-left-radius: 4px;
  text-align: left;
  border-color: var(--border-primary);
}

.comment-author {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 4px;
  opacity: 0.8;
}

.comment-meta {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.comment-actions {
  margin-top: 4px;
  text-align: right;
}

/* ==============================
   PROJEKTY – BAREVNÝ PRUH
============================== */

.project-item {
  position: relative;
  padding-left: 12px;
}

.topbar .container-fluid {
  min-height: 56px;
  gap: 12px;
}

.topbar .app-name,
.topbar .app-scope {
  white-space: nowrap;
}

.topbar .dropdown-toggle {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-filter-fields {
  flex-wrap: wrap;
}

.kanban-filter-toggle {
  display: none;
}

.kanban-filter-panel {
  flex: 1 1 auto;
}

.kanban-filter-fields .form-control,
.kanban-filter-fields .form-select {
  width: min(220px, 100%);
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1199.98px) {
  #sidebarWrapper {
    flex: 0 0 260px;
    width: 260px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  #sidebarWrapper .sidebar {
    scroll-snap-align: start;
  }

  main.kanban-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .kanban-board {
    flex-wrap: nowrap;
    min-width: 900px;
  }

  .kanban-board > .kanban-column-shell {
    width: 300px;
    flex: 0 0 300px;
  }
}

@media (max-width: 991.98px) {
  html {
    scroll-behavior: smooth;
  }

  .mobile-kanban-status-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 10px;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-kanban-status-nav .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 40px;
    white-space: nowrap;
  }

  .kanban-column-shell {
    scroll-margin-top: 62px;
  }

  .mobile-add-task-btn {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    max-width: calc(100vw - 28px);
    padding: 0 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  }

  .kanban-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
  }

  .kanban-filter-panel {
    width: 100%;
  }

  .kanban-filters.is-collapsed .kanban-filter-panel {
    display: none !important;
  }

  .topbar .container-fluid {
    align-items: stretch !important;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar .container-fluid > .d-flex:last-child {
    width: 100%;
    justify-content: space-between;
    gap: 8px !important;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .layout {
    flex-direction: column;
    min-height: auto;
  }

  #sidebarWrapper {
    width: 100%;
    height: auto !important;
    min-height: auto;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--border);
  }

  #sidebarWrapper.is-hidden {
    width: 100%;
    height: 0 !important;
  }

  .sidebar,
  .projects-column,
  .folders-column {
    width: min(82vw, 320px);
    min-height: auto;
    height: auto;
    max-height: 42vh;
  }

  main.kanban-wrapper {
    padding: 12px 12px 86px !important;
  }

  .kanban-toolbar {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  #addTaskBtn {
    display: none;
  }

  #deadlineSummary {
    order: 4;
    width: 100%;
    margin-bottom: 0 !important;
  }

  #currentFolderName {
    flex: 1 1 180px;
    font-size: 1rem;
  }

  .kanban-filters {
    align-items: stretch !important;
    margin-bottom: 16px !important;
  }

  .kanban-filter-fields {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .kanban-filter-fields .form-control,
  .kanban-filter-fields .form-select {
    flex: 1 1 220px;
  }
}

@media (max-width: 575.98px) {
  .work-view-switcher {
    display: flex;
    width: 100%;
  }

  .work-view-switcher__item {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 8px;
  }

  .task-calendar-view {
    grid-template-columns: 1fr;
  }

  .topbar .app-name {
    font-size: 1rem;
  }

  .topbar .dropdown-toggle {
    max-width: 150px;
  }

  .kanban-filter-fields .form-control,
  .kanban-filter-fields .form-select,
  .kanban-filters > .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .kanban-board {
    flex-wrap: wrap;
    min-width: 0;
    gap: 12px 0;
  }

  .kanban-board > .kanban-column-shell {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .kanban-column {
    max-height: none;
    overflow-y: visible;
  }

  .task-content .d-flex,
  .task-footer {
    gap: 8px;
  }

  .task-card-main {
    align-items: flex-start !important;
  }

  .task-card-text strong {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .task-delete-btn {
    width: 44px;
    height: 44px;
    margin-top: -6px;
    margin-right: -6px;
  }

  .task-footer {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  .task-footer .small {
    flex: 1 1 160px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tracker-ui {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .tracker-ui i {
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
  }

  .mobile-status-control {
    display: block;
  }

  .modal-dialog {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
  }

  .modal-content {
    width: 100%;
    max-height: 94dvh;
    overflow: hidden;
    border-radius: 16px 16px 0 0 !important;
  }

  .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--card-bg);
    border-bottom-color: var(--border);
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--card-bg);
    border-top-color: var(--border);
  }

  .modal-footer .btn {
    flex: 1 1 auto;
  }

  .task-modal-dialog {
    min-height: 100dvh;
  }

  .task-modal-dialog .modal-content {
    height: 94dvh;
  }

  .task-modal-dialog .modal-body {
    flex: 1 1 auto;
  }

  .task-modal-form {
    flex: 1 1 auto;
    overflow: hidden;
  }

  #editTaskModal .modal-body > .row {
    gap: 16px;
  }

  #editTaskModal .border-start {
    border-left: 0 !important;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }

  .comment-bubble {
    max-width: 92%;
  }

  .comments-box,
  .comments-wrapper {
    min-height: 320px;
  }

  .comments-wrapper {
    max-height: none;
  }

  #commentsList {
    max-height: 42dvh;
  }

  .comment-form textarea {
    min-height: 96px;
  }

  .input-group {
    flex-wrap: wrap;
  }

  .input-group > .btn,
  .input-group > .form-control {
    flex: 1 0 100%;
    width: 100%;
    border-radius: .375rem !important;
  }
}

.project-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
}


/* barevné odlišení projektů */
.project-item {
  position: relative;
  padding-left: 12px;
}

.project-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
}

/* 🟢 moje */
.project--own::before {
  background-color: #28a745;
}

/* 🔵 přiřazeno adminem */
.project--assigned::before {
  background-color: #0d6efd;
}

/* 🟠 cizí (volitelné) */
.project--foreign::before {
  background-color: #fd7e14;
}

/* Header */
.topbar {
  height: 64px;
  background: var(--bg-header);
  display: flex;
  align-items: center;
}

.logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(24, 37, 46, 0.18));
}

.app-name {
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--text);
}

.app-scope {
  font-size: 0.85rem;
  opacity: .6;
}

.topbar-home {
  color: inherit;
  text-decoration: none;
}

.topbar .btn-outline-light {
  border-color: var(--border);
  color: var(--text);
}

.topbar .btn-outline-light:hover,
.topbar .btn-outline-light:focus-visible {
  border-color: var(--link);
  background: var(--bg-secondary);
  color: var(--text);
}

.dropdown-menu {
  --bs-dropdown-bg: var(--card-bg);
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-color: var(--text);
  --bs-dropdown-link-color: var(--text);
  --bs-dropdown-link-hover-color: var(--text);
  --bs-dropdown-link-hover-bg: var(--bg-secondary);
  --bs-dropdown-link-active-bg: var(--link);
  --bs-dropdown-header-color: var(--text);
}

.workspace-switch-form {
  margin: 0;
}

.workspace-switch-form__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.workspace-switch-form__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switch-form__item .bi-check2 {
  margin-left: auto;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.visitor-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visitor-nav .btn {
  min-height: 36px;
  white-space: nowrap;
}

.visitor-nav__cta {
  border-color: #26753a;
  font-weight: 700;
}

.notif-dropdown {
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  padding: 0;
}

.notif-dropdown li {
  padding: 10px 14px;
}

.notif-dropdown li:hover {
  background: var(--bg-hover);
}

.language-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;

  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);

  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;

  transition: background .2s, border-color .2s;
}

.lang-btn .flag {
  font-size: 1.1rem;
}

.lang-btn .code {
  font-weight: 600;
  letter-spacing: .04em;
}

.lang-menu {
  min-width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;

  color: var(--text);
  text-decoration: none;
}

.lang-item:hover {
  background: var(--link-hover);
}

.lang-item.active {
  background: var(--link);
  color: var(--bg);
  font-weight: 600;
}

.lang-item .flag {
  font-size: 1.2rem;
}


.kanban-column {
  background: var(--kanban-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  overflow-y: auto;
}

.kanban-column::-webkit-scrollbar {
  width: 6px;
}

.kanban-column::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}


.kanban-column-title {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}


.task {
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}


.task:hover {
  transform: translateY(-2px);
  cursor: grab;
}



.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.is-valid {
  border-color: #198754;
}

.is-invalid {
  border-color: #dc3545;
}

#taskFilesList > .text-muted{
  display: none !important;
}

.account-transfer-card {
  max-width: 520px;
}

.account-transfer-option {
  cursor: pointer;
  max-width: 420px;
}

.account-transfer-user {
  min-width: 0;
}

.account-transfer-user strong,
.account-transfer-user small {
  overflow-wrap: anywhere;
}

/* Mobilni doladeni musi byt na konci kvuli starsim duplicitnim pravidlum vyse. */
@media (max-width: 991.98px) {
  .mobile-workspace-nav-toggle {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .mobile-workspace-nav-toggle .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
  }

  .topbar {
    height: auto;
    min-height: 64px;
  }

  .topbar .container-fluid {
    min-height: 64px;
  }

  .notif-dropdown {
    width: min(320px, calc(100vw - 24px));
  }

  .sidebar .list-group-item,
  .folder-item > a,
  .project-item {
    min-height: 44px;
  }

  .sidebar h5,
  #currentFolderName {
    overflow-wrap: anywhere;
  }

  .sidebar i[role="button"],
  .project-item i,
  .folder-item i,
  .tracker-ui i,
  .btn-icon {
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 575.98px) {
  #sidebarWrapper {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
  }

  #sidebarWrapper > .sidebar {
    width: 100%;
    max-height: 34vh;
    border-right: 0 !important;
  }

  .topbar .container-fluid {
    flex-wrap: nowrap;
    align-items: center !important;
    gap: 6px;
    min-height: 56px;
    padding: 6px 12px;
  }

  .topbar:has(.visitor-nav) .container-fluid {
    flex-wrap: wrap;
  }

  .topbar .topbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    justify-content: flex-start !important;
  }

  .topbar .topbar-actions {
    width: auto !important;
    flex: 0 0 auto;
    justify-content: flex-end !important;
    gap: 4px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .topbar:has(.visitor-nav) .topbar-actions {
    flex-wrap: wrap;
    width: 100% !important;
  }

  .topbar .dropdown-menu {
    z-index: 1060;
  }

  .logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .topbar .app-scope,
  .topbar .user-menu-toggle__name,
  .topbar .lang-btn .code,
  .topbar .lang-btn .bi-chevron-down {
    display: none;
  }

  .topbar .lang-btn {
    display: grid;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
  }

  .topbar .user-menu-toggle {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
  }

  .topbar .user-menu-toggle > img {
    margin-right: 0 !important;
  }

  .topbar .user-menu-toggle__icon {
    font-size: 1.25rem;
  }

  #global-tracker {
    flex: 1 0 100%;
    margin-right: 0 !important;
  }

  .visitor-nav {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .visitor-nav .btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 42px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: .78rem;
  }

  #deadlineSummary .badge {
    white-space: normal;
    text-align: left;
  }

  .task {
    border-radius: 8px;
  }

  .task-content {
    min-height: 44px;
  }

  .mobile-task-status {
    min-height: 40px;
  }

  .account-inline-filter,
  .account-period-actions {
    flex-wrap: wrap;
  }

  .account-header-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .account-header-actions .btn,
  .account-header-actions form {
    flex: 1 1 100%;
  }

  .account-header-actions form .btn {
    width: 100%;
    min-height: 42px;
  }

  .account-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .account-tabs .nav-item {
    flex: 0 0 auto;
  }

  .account-tabs .nav-link {
    min-height: 42px;
    white-space: nowrap;
  }

  .account-inline-filter .form-control,
  .account-inline-filter .btn,
  .account-period-actions .btn {
    flex: 1 1 100%;
    min-height: 42px;
  }

  .account-form .form-control,
  .account-form .form-select,
  .account-form .btn {
    min-height: 42px;
  }

  .account-file-input {
    display: block;
  }

  .account-file-input .btn,
  .account-file-input .form-control {
    width: 100%;
    border-radius: 0.375rem !important;
  }

  .account-file-input .form-control {
    margin-top: 8px;
  }

  .account-form-actions {
    align-items: stretch;
  }

  .account-form-actions .btn {
    width: 100%;
  }

  .account-notification-grid {
    display: grid !important;
    gap: 18px;
  }

  .account-notification-section {
    width: 100%;
  }

  .account-notification-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 42px;
    padding-left: 0;
  }

  .account-notification-toggle .form-check-input {
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 2px;
  }

  .account-notification-toggle .form-check-label {
    overflow-wrap: anywhere;
  }

  .account-subscription-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .account-subscription-header .btn {
    width: 100%;
    min-height: 42px;
  }

  .account-limits-table tbody,
  .account-limits-table tr,
  .account-limits-table th,
  .account-limits-table td {
    display: block;
    width: 100% !important;
  }

  .account-limits-table tr {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
  }

  .account-limits-table tr:last-child {
    border-bottom: 0;
  }

  .account-limits-table th,
  .account-limits-table td {
    border: 0;
    padding: 2px 0;
  }

  .account-limits-table th {
    color: #6c757d;
    font-size: 0.8rem;
  }

  .account-plan-card .card-body {
    display: flex;
    flex-direction: column;
  }

  .account-plan-action {
    margin-top: auto;
  }

  .account-plan-action .btn,
  .account-subscription-confirm .btn,
  .account-confirm-actions .btn {
    width: 100%;
    min-height: 42px;
  }

  .account-confirm-actions {
    display: grid;
    gap: 8px;
  }

  .account-transfer-card {
    padding: 18px !important;
  }

  .account-transfer-option {
    align-items: flex-start !important;
    max-width: none;
    min-height: 52px;
  }

  .account-transfer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-transfer-actions .btn {
    width: 100%;
    min-height: 42px;
  }

  .account-card-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .account-card-table thead {
    display: none;
  }

  .account-card-table tbody,
  .account-card-table tr,
  .account-card-table td {
    display: block;
    width: 100%;
  }

  .account-card-table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    padding: 8px 10px;
  }

  .account-card-table td {
    border: 0;
    padding: 7px 0;
    text-align: left !important;
  }

  .account-card-table td:not(.account-card-table-empty)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #6c757d;
    font-size: 0.76rem;
    font-weight: 600;
  }

  .notification-list-item {
    gap: 10px;
  }

  .notification-list-content {
    overflow-wrap: anywhere;
  }

  .notification-list-action .btn {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .task:hover,
  .admin-stat-card:hover {
    transform: none;
    cursor: default;
  }
}

.public-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  opacity: .75;
  font-size: .9rem;
}

.public-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.public-footer__links a,
.public-footer__brand a {
  color: inherit;
  text-decoration: none;
}

.public-footer__links a:hover,
.public-footer__brand a:hover {
  text-decoration: underline;
}

.public-footer__brand {
  margin: 0;
}

@media (max-width: 767.98px) {
  body.has-mobile-app-nav {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding-top: env(safe-area-inset-top);
  }

  .topbar .container-fluid > .d-flex:last-child {
    scrollbar-width: none;
  }

  .topbar .container-fluid > .d-flex:last-child::-webkit-scrollbar {
    display: none;
  }

  .mobile-app-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1035;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: 0 -6px 18px rgba(24, 59, 42, 0.08);
  }

  .network-status {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .mobile-app-nav__link {
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #667085;
    font-size: 0.7rem;
    line-height: 1.1;
    text-align: center;
  }

  .mobile-app-nav__link i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .mobile-app-nav__link span {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-nav__link.is-active {
    color: #26753a;
    font-weight: 700;
  }

  .mobile-app-nav__link:focus-visible {
    outline: 2px solid #26753a;
    outline-offset: -2px;
  }

  .modal {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .support-requests-page,
  .support-request-detail,
  .pricing-page {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }

  .support-requests-header {
    align-items: stretch !important;
  }

  .support-requests-header > * {
    width: 100%;
  }

  .support-requests-header .btn {
    min-height: 46px;
  }

  .support-requests-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  .support-requests-filters > div:first-child,
  .support-requests-filters > .btn {
    grid-column: 1 / -1;
  }

  .support-requests-filters .form-control,
  .support-requests-filters .form-select,
  .support-requests-filters .btn {
    min-height: 44px;
    width: 100%;
  }

  .support-requests-table thead {
    display: none;
  }

  .support-requests-table,
  .support-requests-table tbody,
  .support-requests-table tr,
  .support-requests-table td {
    display: block;
    width: 100%;
  }

  .support-requests-table tr {
    margin: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
  }

  .support-requests-table td {
    border: 0;
    padding: 6px 0;
  }

  .support-requests-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 600;
  }

  .support-requests-table .form-select {
    min-height: 42px;
  }

  .support-request-modal {
    min-height: calc(100% - 16px);
    margin: 8px;
  }

  .support-request-modal .modal-content {
    min-height: calc(100vh - 16px - env(safe-area-inset-bottom));
  }

  .support-request-modal .modal-body {
    padding: 18px;
  }

  .support-request-modal .modal-footer .btn {
    min-height: 44px;
  }

  .support-request-detail__toolbar {
    align-items: stretch !important;
    flex-direction: column;
  }

  .support-request-detail__toolbar .btn,
  .support-request-detail__toolbar form,
  .support-request-detail__toolbar .form-select {
    width: 100%;
    min-height: 44px;
  }

  .support-request-detail section {
    padding: 18px !important;
  }

  .support-request-detail textarea {
    min-height: 132px;
  }

  .support-request-detail__sidebar {
    display: grid;
    gap: 16px;
  }

  .support-request-detail__sidebar section {
    margin-bottom: 0 !important;
  }

  .pricing-page > div:first-child {
    margin-bottom: 28px !important;
    text-align: left !important;
  }

  .pricing-page .lead {
    font-size: 1rem;
  }

  .pricing-plan-grid {
    gap: 12px !important;
  }

  .pricing-plan-card {
    min-height: 0 !important;
    padding: 20px !important;
  }

  .pricing-plan-card .btn {
    min-height: 46px;
  }

  .pricing-value-strip,
  .pricing-operations__grid,
  .about-cards,
  .requirements-cards {
    grid-template-columns: 1fr;
  }

  .pricing-value-strip div,
  .pricing-operations__grid > div {
    min-height: 0;
  }

  .pricing-plan-card__features { min-height: 0; }
  .pricing-activation { padding: 3.5rem 0; }
  .pricing-activation__content,
  .pricing-activation__steps { grid-template-columns: 1fr; }
  .pricing-activation__content { gap: 2rem; }
  .pricing-operations { padding: 3.5rem 0; }
  .pricing-operations__header h2 { font-size: 1.75rem; }

  .notes-page {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }

  .notes-create-form .form-control,
  .notes-create-form .btn,
  .notes-editor-form .form-control,
  .notes-editor-form .btn {
    min-height: 44px;
  }

  .notes-create-form textarea {
    min-height: 112px;
  }

  .notes-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .notes-list .list-group-item {
    flex: 0 0 min(72vw, 260px);
    min-height: 68px;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
  }

  .notes-editor-form {
    padding: 18px !important;
  }

  .notes-editor-form textarea {
    min-height: 300px;
  }
}
}
