/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[6].rules[1].use[0]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[6].rules[1].use[1]!./src/styles.scss?ngGlobalStyle ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* Базові змінні (Світла тема) */
:root {
  --font-family-base: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Трохи тепліший/свіжіший фон для "весняного" відчуття (без перевантаження) */
  --bg-color: #f0f7f3;
  --card: #ffffff;
  --text: #000000;
  --muted: #5f6b7a;
  --border: #d7e3db;
  --primary: #2787f5;
  --primary-contrast: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #d97706;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  --table-row: #fcfffd;
  --table-row-hover: #f2fbf6;
  --link: #2563eb;
  --spinner-track: #e2e8f0;
  --progress-track: #e5e7eb;
  --surface-tint: rgba(39, 135, 245, 0.05);
  --surface-tint-strong: rgba(39, 135, 245, 0.08);
  --secondary-bg: #ffffff;
  --secondary-border: rgba(39, 135, 245, 0.45);
  --secondary-text: #0f172a;
  --secondary-hover-bg: rgba(39, 135, 245, 0.08);
  --status-info-border: rgba(39, 135, 245, 0.18);
  --status-info-bg: rgba(39, 135, 245, 0.05);
  --status-info-text: #0f172a;
  --status-ok-border: rgba(22, 163, 74, 0.25);
  --status-ok-bg: rgba(22, 163, 74, 0.08);
  --status-ok-text: #15803d;
  --status-err-border: rgba(220, 38, 38, 0.25);
  --status-err-bg: rgba(220, 38, 38, 0.08);
  --status-err-text: #b91c1c;
  --radius: 15px;
  /* Весняний фон (легкий, ненав'язливий) */
  --bg-spring: radial-gradient(900px 520px at 15% 10%, rgba(46, 204, 113, 0.10), transparent 60%),
               radial-gradient(900px 520px at 85% 15%, rgba(52, 152, 219, 0.10), transparent 60%),
               linear-gradient(180deg, #f3fbff 0%, #f7fff9 55%, #ffffff 100%);
}

/* Базові змінні (Темна тема) */
:root[data-theme=dark] {
  --bg-color: #0b1220;
  --card: #111827;
  --text: #eeeeee;
  --muted: #94a3b8;
  --border: #1f2937;
  --primary: #2787f5;
  --primary-contrast: #ffffff;
  --green: #4ade80;
  --red: #f87171;
  --orange: #fbbf24;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --table-row: #0e1625;
  --table-row-hover: #13243c;
  --link: #60a5fa;
  --spinner-track: #1f2937;
  --progress-track: #243247;
  --surface-tint: rgba(96, 165, 250, 0.12);
  --surface-tint-strong: rgba(96, 165, 250, 0.18);
  --secondary-bg: #162033;
  --secondary-border: rgba(96, 165, 250, 0.42);
  --secondary-text: #dbeafe;
  --secondary-hover-bg: rgba(96, 165, 250, 0.16);
  --status-info-border: rgba(96, 165, 250, 0.28);
  --status-info-bg: rgba(96, 165, 250, 0.12);
  --status-info-text: #dbeafe;
  --status-ok-border: rgba(74, 222, 128, 0.28);
  --status-ok-bg: rgba(74, 222, 128, 0.14);
  --status-ok-text: #bbf7d0;
  --status-err-border: rgba(248, 113, 113, 0.3);
  --status-err-bg: rgba(248, 113, 113, 0.14);
  --status-err-text: #fecaca;
  --radius: 15px;
  /* Весняний фон у темній темі */
  --bg-spring: radial-gradient(900px 520px at 15% 10%, rgba(46, 204, 113, 0.12), transparent 60%),
               radial-gradient(900px 520px at 85% 15%, rgba(52, 152, 219, 0.12), transparent 60%),
               linear-gradient(180deg, #0b1220 0%, #081525 60%, #070f1c 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "calt" 1;
}

html {
  background: transparent;
}

body {
  position: relative;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-spring);
}

/* Layout: outer container holding all sections in index.html */
.container {
  max-width: 1100px;
  margin: 45px auto 30px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Header: logo, title, and action buttons */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.header-link {
  position: relative;
  display: flex;
}

.header-logo {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 15px;
}

.header-text {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-actions .header-spinner-wrapper,
.header-actions button {
  min-width: 50px;
}

.header-spinner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 7px 10px;
  cursor: pointer;
}

.header-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid var(--spinner-track);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Form controls: inputs, selects, textareas */
.controls-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.control {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}

.control label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.control input,
.control select {
  font-family: var(--font-family-base);
  height: 40px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

select option {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.form label {
  display: block;
  margin: 10px 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-family: var(--font-family-base);
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  color: var(--text);
}

/* Actions row: tab strip and other button grids */
.actions {
  display: grid;
  /* На десктопі кнопки розтягуються рівномірно, а на мобілці не стають "мікро".
     auto-fit підбирає кількість колонок сам. */
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 15px 0 10px 0;
}

/* Router navigation tabs (used in LayoutComponent) */
.tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0 10px 0;
  font-weight: 700;
}

.tabs .button {
  font-weight: 700;
  padding: 10px 20px;
  min-height: 44px;
  line-height: 1.3;
}

.actions.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  font-weight: 700;
}

.actions.tabs button {
  font-weight: 700;
}

/* Buttons (native buttons and anchor buttons) */
button,
.button {
  font-family: var(--font-family-base);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

/* Anchor reset for .button */
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-user-select: none;
          user-select: none;
  text-align: center;
}

button.primary,
.button.primary {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}

button.primary:hover,
.button.primary:hover {
  box-shadow: var(--shadow);
}

button.secondary,
.button.secondary {
  background: var(--secondary-bg);
  border: 1px solid var(--secondary-border);
  color: var(--secondary-text);
}

button.secondary:hover,
.button.secondary:hover {
  background: var(--secondary-hover-bg);
  box-shadow: var(--shadow);
}

button:disabled,
.button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.theme-button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  height: 40px;
}

.progress-wrap {
  width: 100%;
  margin-top: 10px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress {
  position: relative;
  height: 10px;
  background: var(--progress-track);
  border-radius: var(--radius);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 200ms ease;
}

.progress-percent {
  font-weight: 700;
}

.progress-counters {
  display: flex;
  gap: 10px;
}

/* Common attachments UI (shared між секціями розсилок) */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 120px;
  padding: 11px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-top: 5px;
}

.chip-delete {
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  border: none;
  background: transparent;
}

.file-input-wrapper {
  margin: 0;
  position: relative;
  display: inline-block;
  cursor: pointer;
  overflow: hidden;
}

.file-input-text {
  display: inline-flex;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.file-input-text--full {
  width: 100%;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 15px;
  opacity: 0;
  height: 40px;
  width: 100%;
  cursor: pointer;
}

.file-list-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

@media (max-width: 640px) {
  .file-list-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Status messages (inline under actions/forms) */
.status {
  display: block;
  margin: 15px 0;
  padding: 10px 12px;
  border: 1px solid var(--status-info-border);
  border-radius: 12px;
  background: var(--status-info-bg);
  color: var(--status-info-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.status.muted {
  color: var(--status-info-text);
}

.status.ok {
  border-color: var(--status-ok-border);
  background: var(--status-ok-bg);
  color: var(--status-ok-text);
}

.status.err {
  border-color: var(--status-err-border);
  background: var(--status-err-bg);
  color: var(--status-err-text);
}

.status--tight-top {
  margin-top: -6px;
}

/* Inline status pills used inside table cells */
.status-pill {
  font-weight: 600;
}

.status-published {
  color: var(--green);
}

.status-deleted {
  color: var(--red);
}

.status-closed {
  color: var(--orange);
}

/* Table headers that precede data lists */
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}

.table-header--stacked {
  display: block;
}

.table-header-text {
  font-weight: 700;
  margin: 0;
  display: flex;
  gap: 5px;
  line-height: 1.3;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Data tables: wrappers and cells */
.table-wrap {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

table.data thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 10px 15px;
  white-space: normal;
  font-weight: 700;
  line-height: 1.3;
}

table.data tbody td {
  border-top: 1px solid var(--border);
  padding: 10px;
  vertical-align: middle;
  text-align: center;
  font-weight: 500;
  line-height: 1.45;
}

table.data tbody td a {
  display: inline-block;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

table.data tbody tr:hover {
  background: var(--table-row-hover);
  cursor: pointer;
}

/* Sorting indicators on sortable table headers */
th.sortable {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

th.sorted-asc::after {
  content: "^";
  margin-left: 5px;
  color: var(--text);
}

th.sorted-desc::after {
  content: "v";
  margin-left: 5px;
  color: var(--text);
}

/* Table helpers: selection columns and selected rows */
tr.selected {
  background: var(--table-row-hover);
}

th.select-col,
td.select-col {
  width: 32px;
  text-align: center;
}

th.select-col input[type=checkbox] {
  transform: translateY(1px);
}

/* Global loader overlay at the bottom of index.html */
.loader-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 27, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-backdrop[hidden] {
  display: none !important;
}

.loader-card {
  width: 250px;
  padding: 30px 25px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
}

.spinner {
  width: 45px;
  height: 45px;
  border: 5px solid var(--spinner-track);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loader-txt {
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.loader-subtxt {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  min-height: 20px;
}

/* Shared content blocks used across sections */
.block {
  padding: 10px 15px;
  margin: 5px 0 15px;
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.block-heading {
  margin: 10px 0 20px 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.footer-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.sortable {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.sortable:hover {
  text-decoration: underline;
}

.instruction,
.information {
  font-weight: 500;
  padding: 0 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  margin-bottom: 15px;
}

.note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.filters {
  display: flex;
  align-items: start;
  gap: 5px;
  flex-wrap: wrap;
}

/* ===========================================================
   Mobile UX (<= 640px)
   =========================================================== */
@media (max-width: 640px) {
  .container {
    margin: 12px;
    padding: 14px;
  }
  .header-logo {
    width: 46px;
    height: 46px;
    margin-right: 10px;
  }
  .header-text {
    font-size: 20px;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .header-buttons {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  /* Tabs: горизонтальний скрол замість 3-4 рядів кнопок */
  .tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-top: 10px;
    scroll-snap-type: x mandatory;
  }
  .tabs .button {
    flex: 0 0 auto;
    min-width: 128px;
    scroll-snap-align: start;
  }
  /* Формові ряди — в колонку */
  .controls-row {
    flex-direction: column;
    gap: 10px;
  }
  /* Кнопки — більші тап-зони */
  button,
  .button {
    min-height: 44px;
    font-size: 14px;
    padding: 12px;
    touch-action: manipulation;
  }
  /* Дії: 2 колонки, якщо влазить; інакше 1 */
  .actions {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  /* Заголовки таблиць/блоків не ламають верстку */
  .table-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .table-header > * {
    min-width: 0;
  }
  table.data thead th,
  table.data tbody td {
    padding: 10px;
  }
}
@media (max-width: 1100px) {
  .tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .tabs {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=styles.48a18adaf686d359.css.map*/