:root {
  --bg: #f5f5f5;
  --bg-strong: #e7e7e7;
  --surface: #ffffff;
  --surface-soft: #f0f0f0;
  --ink: #111111;
  --muted: #5a5a5a;
  --brand: #1f8f62;
  --brand-strong: #156a48;
  --brand-soft: #ddf4ea;
  --ok: #1f8f62;
  --ok-soft: #def4eb;
  --border: #cdcdcd;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.09);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, #f3f3f3 0%, transparent 30%),
    radial-gradient(circle at -10% 20%, #f0f0f0 0%, transparent 24%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-strong) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(56px);
  opacity: 0.44;
}

.bg-orb-a {
  width: 360px;
  height: 360px;
  top: -130px;
  right: -80px;
  background: #d8d8d8;
}

.bg-orb-b {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: -120px;
  background: #c8e7da;
}

.app {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px 52px;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hidden {
  display: none;
}

.hero {
  background:
    linear-gradient(120deg, rgba(16, 16, 16, 0.98), rgba(28, 28, 28, 0.95)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07) 0px,
      rgba(255, 255, 255, 0.07) 14px,
      rgba(255, 255, 255, 0.03) 14px,
      rgba(255, 255, 255, 0.03) 28px
    );
  color: #fafafa;
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  animation: rise-in 0.45s ease;
  text-align: center;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin: 0 auto 12px;
}

.brand-logo {
  width: min(340px, 80vw);
  max-height: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
  image-rendering: -webkit-optimize-contrast;
}

.brand-line {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #9fe1c6;
}

.hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1;
}

.hero-sub {
  margin: 12px 0 0;
  color: #d7d7d7;
  font-size: 1.05rem;
  max-width: 64ch;
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
  min-width: 0;
}

.panel h2 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.4rem;
}

.panel-dropdown-toggle {
  list-style: none;
  width: 100%;
  border: 1px solid #d5dbe4;
  border-radius: 12px;
  background: #f4f7fb;
  color: #1f2530;
  padding: 10px 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.panel-dropdown-toggle::-webkit-details-marker {
  display: none;
}

.panel-dropdown-toggle::after {
  content: "▾";
  font-size: 0.95rem;
  color: #4f637d;
  transition: transform 0.18s ease;
  margin-left: 8px;
}

.panel-dropdown-toggle-sub {
  font-size: 1.02rem;
  background: #ffffff;
}

.panel-dropdown[open] > .panel-dropdown-toggle-sub {
  margin-bottom: 10px;
}

.panel-dropdown:not([open]) .panel-dropdown-toggle::after {
  transform: rotate(-90deg);
}

.panel-dropdown-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.panel-dropdown:not([open]) .panel-dropdown-body {
  display: none;
}

.panel-dropdown-fixed-open > .panel-dropdown-toggle {
  cursor: default;
  pointer-events: none;
}

.panel-dropdown-fixed-open > .panel-dropdown-toggle::after {
  transform: none;
}

.auth-panel {
  animation: rise-in 0.4s ease;
}

.auth-form {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.login-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.auth-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-left: 5px solid var(--brand);
}

.session-role {
  margin-left: 8px;
  color: var(--muted);
}

.session-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.link-btn {
  margin-left: 10px;
  border: none;
  background: transparent;
  color: #2f5f9a;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.link-btn-subtle {
  margin-left: 0;
  font-size: 0.8rem;
  color: #6b7380;
  font-weight: 600;
  text-decoration: none;
}

.link-btn-subtle:hover {
  text-decoration: underline;
}

.session-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #d1d8e2;
  background: #fff;
  margin-right: 10px;
  vertical-align: middle;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.permission-matrix {
  margin-top: 16px;
  border: 1px solid #d7dce2;
  border-radius: 14px;
  background: #f9fafb;
  padding: 12px;
}

.user-admin-form {
  margin-bottom: 12px;
}

.user-admin-list {
  display: grid;
  gap: 10px;
}

.user-card {
  border: 1px solid #d7dde6;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  min-width: 0;
}

.user-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.user-card-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.user-card-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f5867;
}

.user-card-sub {
  color: #566072;
  margin-top: 2px;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.user-card-logo-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.user-card-password-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.user-card-password-row input {
  min-height: 42px;
}

.user-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid #d2d9e2;
  background: #fff;
  object-fit: contain;
}

.user-card-logo-empty {
  display: grid;
  place-items: center;
  color: #667181;
  font-size: 0.76rem;
  font-weight: 700;
}

.permission-matrix h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
}

.matrix-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.matrix-table th,
.matrix-table td {
  border: 1px solid #d7dde6;
  padding: 8px 10px;
  text-align: left;
}

.matrix-table th {
  background: #eef1f5;
  color: #27303d;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.booking-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d4dae2;
  border-radius: 16px;
  background: #f8f9fb;
}

.range-head {
  margin: 10px 2px 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7380;
  font-weight: 700;
}

.booking-note {
  margin: -2px 0 10px;
  color: #4f5966;
  font-size: 0.92rem;
}

label {
  display: grid;
  gap: 6px;
  color: #303742;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid #cfd5de;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 143, 98, 0.2);
}

.btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 143, 98, 0.22);
}

.btn-accent {
  background: #111111;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 17, 27, 0.2);
}

.booking-form label {
  gap: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #47505d;
  align-items: stretch;
  grid-template-rows: 34px 56px;
}

.booking-form input,
.booking-form select,
.booking-form .btn {
  min-height: 56px;
}

.booking-form input,
.booking-form select {
  padding: 0 14px;
  font-size: 1.05rem;
  border-color: #bcc4cf;
  background: #ffffff;
}

.booking-form .btn {
  align-self: end;
  border-radius: 14px;
  font-size: 1rem;
  height: 56px;
  margin-top: 0;
}

.filter-shift {
  grid-column: 1;
  grid-row: 1;
}

.filter-day {
  grid-column: 2;
  grid-row: 1;
}

.filter-from {
  grid-column: 3;
  grid-row: 1;
}

.filter-to {
  grid-column: 4;
  grid-row: 1;
}

.filter-employee {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: end;
  min-height: 90px;
}

.filter-actions-wide {
  grid-column: 3 / 5;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
}

.range-booking-form {
  margin-top: 0;
  grid-template-columns: minmax(180px, 0.9fr) minmax(180px, 0.9fr) minmax(260px, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #cdd4de;
  border-radius: 14px;
  background: #f9fafb;
}

.range-booking-form label {
  gap: 5px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #47505d;
  grid-template-rows: 32px 56px;
  align-items: stretch;
}

.range-booking-form input,
.range-booking-form select,
.range-booking-form .btn {
  min-height: 56px;
}

.range-booking-form input,
.range-booking-form select {
  padding: 0 14px;
  font-size: 1.05rem;
  border-color: #bcc4cf;
  background: #ffffff;
}

.range-booking-form .btn {
  display: none;
}

.order-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d7dce2;
  border-radius: 16px;
  background: #f9fafb;
}

.order-section h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
}

.history-section {
  margin-top: 12px;
}

.history-toggle {
  width: 100%;
  border: 1px solid #d2d9e2;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2530;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.history-toggle::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #3f4856;
  font-size: 1rem;
}

.history-toggle[aria-expanded="true"]::after {
  content: "▴";
}

.history-dropdown {
  margin-top: 10px;
}

.history-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.history-item {
  border: 1px solid #d3dae4;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  min-width: 0;
}

.history-main {
  font-weight: 800;
  color: #1f2530;
}

.history-sub {
  margin-top: 4px;
  color: #58606e;
  font-weight: 600;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.history-empty {
  margin: 0;
  color: #58606e;
}

.order-form {
  grid-template-columns: 1fr 1.7fr 1fr;
  align-items: start;
  gap: 14px;
}

.order-form label {
  gap: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #47505d;
  grid-template-rows: 34px auto;
}

.order-name-field {
  grid-column: 1;
  grid-row: 1;
}

.order-per-employee-field {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 8px;
}

.order-per-employee-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #47505d;
  font-weight: 700;
  min-height: 34px;
  display: flex;
  align-items: end;
}

.order-actions-field {
  grid-column: 3;
  grid-row: 1;
}

.employee-requirements-list {
  display: grid;
  gap: 8px;
}

.employee-requirements-empty {
  margin: 0;
  border: 1px dashed #c7ced8;
  border-radius: 10px;
  padding: 10px 12px;
  color: #66707e;
  background: #fff;
  font-weight: 600;
}

.employee-requirement-card {
  border: 1px solid #d2d9e2;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.employee-requirement-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.employee-requirement-name {
  font-weight: 800;
  color: #1f2530;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
}

.employee-requirement-head .employee-remove-btn {
  justify-self: end;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #c62828 !important;
  background: #ffe3e3 !important;
  color: #c62828 !important;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  user-select: none;
}

.employee-requirement-head .employee-remove-btn:hover {
  border-color: #8e1b1b !important;
  background: #ffd3d3 !important;
  color: #8e1b1b !important;
}

.employee-requirement-fields {
  display: grid;
  gap: 8px;
}

.employee-service-row {
  display: grid;
  gap: 6px;
  border: 1px solid #d8dee7;
  border-radius: 10px;
  background: #f9fbfd;
  padding: 8px;
}

.employee-service-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4a5566;
}

.employee-service-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.employee-service-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #c62828;
  background: #ffe3e3;
  color: #c62828;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.employee-service-remove-btn:hover {
  border-color: #8e1b1b;
  background: #ffd3d3;
  color: #8e1b1b;
}

.employee-service-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.order-actions {
  display: grid;
  gap: 8px;
  align-items: start;
  grid-template-rows: 34px auto auto;
}

.order-actions .btn {
  min-height: 60px;
}

.selected-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  background: #e8f4ee;
  color: #14583c;
  font-weight: 700;
  padding: 0 10px;
}

.btn-ghost {
  background: #e5f3ec;
  color: #155c40;
}

.slot-select-btn {
  align-self: center;
  min-width: 112px;
}

.slot-select-btn.is-selected {
  outline: 2px solid #b9dccc;
}

.slot-shifts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.date-group {
  border: 1px solid #d5dbe4;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.date-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  color: #1f2732;
  background: #f3f6f9;
}

.date-summary::-webkit-details-marker {
  display: none;
}

.date-summary::after {
  content: "▾";
  font-size: 0.9rem;
  color: #4c5665;
}

.date-group[open] .date-summary::after {
  content: "▴";
}

.date-summary-meta {
  font-size: 0.86rem;
  font-weight: 700;
  color: #5a6473;
  text-align: right;
  line-height: 1.25;
}

.date-group-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.schedule-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f9f9f9 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  animation: rise-in 0.32s ease;
}

.schedule-item.is-booked-admin {
  background: linear-gradient(145deg, #ffe9ed 0%, #ffdfe6 100%);
  border-color: #f1aebb;
}

.slot-meta {
  display: grid;
  gap: 2px;
}

.slot-main {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.icare-diamond {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 6px;
  background: linear-gradient(140deg, #4ad0a0 0%, #1f8f62 100%);
  border: 1px solid #0f5a3d;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 2px rgba(15, 90, 61, 0.18);
  vertical-align: middle;
}

.slot-sub {
  color: var(--muted);
  font-size: 0.93rem;
}

.availability-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-weight: 700;
  vertical-align: middle;
}

.availability-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbb;
}

.availability-indicator.status-high::before {
  background: #1f8f62;
}

.availability-indicator.status-medium::before {
  background: #d8a120;
}

.availability-indicator.status-low::before {
  background: #cf4f4f;
}

.range-day-count {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  vertical-align: middle;
}

.range-separator {
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
  vertical-align: middle;
}

.badge {
  align-self: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge-open {
  background: var(--ok-soft);
  color: #0a7a57;
}

.badge-booked {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.badge-cancelled {
  background: #fdecef;
  color: #a63d52;
}

.btn-danger {
  background: #c73e57;
  color: #fff;
}

.mail-list {
  display: grid;
  gap: 8px;
}

.mail-item {
  border: 1px solid #d7dde5;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.mail-item strong {
  display: inline-block;
  margin-right: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 30;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  padding: 20px;
}

.modal-card h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.35rem;
}

.modal-text {
  margin: 10px 0 0;
  color: #2e3642;
  font-weight: 600;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app {
    padding: 16px 12px 32px;
    gap: 12px;
  }

  .hero {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .session-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .schedule-item .btn {
    width: auto;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .panel {
    padding: 16px 12px;
  }

  .booking-form .btn {
    width: 100%;
  }

  .filter-shift,
  .filter-day,
  .filter-from,
  .filter-to,
  .filter-employee,
  .filter-actions-wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

  .range-booking-form {
    grid-template-columns: 1fr;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  .order-name-field,
  .order-per-employee-field,
  .order-actions-field {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .employee-service-inputs {
    grid-template-columns: 1fr;
  }

  .user-card-logo-row,
  .user-card-password-row {
    grid-template-columns: 1fr;
  }

  .user-card-logo {
    justify-self: start;
  }

  .save-user-logo-btn,
  .save-user-password-btn {
    width: 100%;
  }

  .matrix-wrap {
    margin-inline: -2px;
    padding-bottom: 2px;
  }

  .matrix-table {
    min-width: 540px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions {
    width: 100%;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-shift,
  .filter-day,
  .filter-from,
  .filter-to,
  .filter-employee,
  .filter-actions-wide {
    grid-column: span 1;
    grid-row: auto;
  }

  .order-form {
    grid-template-columns: 1fr 1fr;
  }

  .order-name-field,
  .order-per-employee-field,
  .order-actions-field {
    grid-column: span 1;
    grid-row: auto;
  }

  .employee-service-inputs {
    grid-template-columns: 1fr;
  }
}
