:root {
  --qcos-navy: #0b1220;
  --qcos-navy-light: #121c2e;
  --qcos-blue: #2563eb;
  --qcos-blue-dark: #1d4ed8;
  --qcos-white: #ffffff;
  --qcos-surface: #f6f8fb;
  --qcos-border: #e2e8f0;
  --qcos-text: #172033;
  --qcos-muted: #64748b;
  --qcos-danger: #dc2626;
  --qcos-success: #15803d;
  --qcos-warning: #b45309;
  --qcos-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--qcos-surface);
  color: var(--qcos-text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.qcos-app {
  min-height: 100vh;
}

/* ================================
   LOGIN PAGE
================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.16),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #f8fafc 0%,
      #eef2f7 100%
    );
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--qcos-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 42px;
  box-shadow: var(--qcos-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--qcos-navy);
  color: var(--qcos-white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand h1 {
  color: var(--qcos-navy);
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand p {
  margin-top: 4px;
  color: var(--qcos-muted);
  font-size: 12px;
}

.login-heading {
  margin-bottom: 30px;
}

.login-heading h2 {
  color: var(--qcos-text);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.login-heading p {
  margin-top: 10px;
  color: var(--qcos-muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--qcos-text);
  font-size: 13px;
  font-weight: 650;
}

.form-group input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--qcos-border);
  border-radius: 9px;
  outline: none;
  background: #fbfcfe;
  color: var(--qcos-text);
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus {
  background: var(--qcos-white);
  border-color: var(--qcos-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-message {
  min-height: 20px;
  margin-bottom: 10px;
  color: var(--qcos-danger);
  font-size: 13px;
  line-height: 1.5;
}

.login-button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 9px;
  background: var(--qcos-navy);
  color: var(--qcos-white);
  font-size: 14px;
  font-weight: 650;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-button:hover {
  background: var(--qcos-navy-light);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.18);
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--qcos-border);
  color: var(--qcos-muted);
  font-size: 11px;
  line-height: 1.6;
}

.security-icon {
  flex-shrink: 0;
  font-size: 13px;
}


/* ============================================================
   QC OS DASHBOARD
============================================================ */

.qcos-dashboard {
  min-height: 100vh;
  display: flex;
  background: var(--qcos-surface);
}


/* ============================================================
   SIDEBAR
============================================================ */

.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: 270px;
  display: flex;
  flex-direction: column;
  background: var(--qcos-navy);
  color: var(--qcos-white);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-brand {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--qcos-white);
  color: var(--qcos-navy);
  font-size: 14px;
}

.sidebar-brand-text h1 {
  color: var(--qcos-white);
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sidebar-brand-text span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  line-height: 1.3;
}

.dashboard-navigation {
  flex: 1;
  padding: 20px 12px;
}

.navigation-section {
  margin-bottom: 25px;
}

.navigation-label {
  display: block;
  margin: 0 11px 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navigation-item {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
  padding: 0 11px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.navigation-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--qcos-white);
}

.navigation-item.active {
  background: rgba(37, 99, 235, 0.2);
  color: var(--qcos-white);
}

.navigation-item.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--qcos-blue);
  content: "";
}

.navigation-icon {
  width: 20px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-align: center;
}

.navigation-item.active .navigation-icon {
  color: #93b4ff;
}

.navigation-badge {
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--qcos-blue);
  color: var(--qcos-white);
  font-size: 9px;
  font-weight: 700;
}


/* ============================================================
   SIDEBAR FOOTER
============================================================ */

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #243149;
  color: #dbeafe;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-user-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-user-info strong {
  overflow: hidden;
  color: var(--qcos-white);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-info span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  text-transform: capitalize;
}

.sidebar-logout {
  width: 100%;
  height: 34px;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.sidebar-logout:hover {
  background: rgba(220, 38, 38, 0.14);
  color: #fca5a5;
}


/* ============================================================
   MAIN DASHBOARD AREA
============================================================ */

.dashboard-main {
  min-width: 0;
  width: calc(100% - 270px);
  margin-left: 270px;
}


/* ============================================================
   TOP BAR
============================================================ */

.dashboard-topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--qcos-border);
  background: rgba(255, 255, 255, 0.94);
}

.topbar-heading {
  min-width: 0;
}

.topbar-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--qcos-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-heading h2 {
  color: var(--qcos-text);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-action {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qcos-border);
  border-radius: 8px;
  background: var(--qcos-white);
  color: var(--qcos-text);
  font-size: 13px;
}

.topbar-action:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--qcos-white);
  border-radius: 9px;
  background: var(--qcos-danger);
  color: var(--qcos-white);
  font-size: 8px;
  font-weight: 700;
}

.topbar-date {
  padding-left: 18px;
  border-left: 1px solid var(--qcos-border);
  color: var(--qcos-muted);
  font-size: 10px;
}

.mobile-menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--qcos-border);
  border-radius: 7px;
  background: var(--qcos-white);
  color: var(--qcos-text);
}


/* ============================================================
   DASHBOARD CONTENT
============================================================ */

.dashboard-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 34px 60px;
}


/* ============================================================
   WELCOME
============================================================ */

.dashboard-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--qcos-blue);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-welcome h1 {
  color: var(--qcos-text);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.dashboard-welcome h1 span {
  color: var(--qcos-navy);
}

.dashboard-welcome p {
  max-width: 650px;
  margin-top: 8px;
  color: var(--qcos-muted);
  font-size: 12px;
  line-height: 1.6;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.dashboard-button {
  height: 38px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-button.primary {
  border: 1px solid var(--qcos-navy);
  background: var(--qcos-navy);
  color: var(--qcos-white);
}

.dashboard-button.primary:hover {
  background: var(--qcos-navy-light);
  box-shadow: 0 5px 14px rgba(11, 18, 32, 0.16);
}

.dashboard-button.secondary {
  border: 1px solid var(--qcos-border);
  background: var(--qcos-white);
  color: var(--qcos-text);
}

.dashboard-button.secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}


/* ============================================================
   KPI GRID
============================================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.kpi-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--qcos-border);
  border-radius: 10px;
  background: var(--qcos-white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-label {
  color: var(--qcos-muted);
  font-size: 10px;
  font-weight: 600;
}

.kpi-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eff6ff;
  color: var(--qcos-blue);
  font-size: 11px;
  font-weight: 700;
}

.kpi-value {
  display: block;
  margin-top: 12px;
  color: var(--qcos-text);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.kpi-description {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ============================================================
   DASHBOARD SECTIONS
============================================================ */

.dashboard-section {
  margin-bottom: 34px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.section-header h2 {
  color: var(--qcos-text);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.section-select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--qcos-border);
  border-radius: 6px;
  outline: none;
  background: var(--qcos-white);
  color: var(--qcos-text);
  font-size: 10px;
}

.section-select:focus {
  border-color: var(--qcos-blue);
}

.section-link {
  color: var(--qcos-blue);
  font-size: 10px;
  font-weight: 600;
}

.section-link:hover,
.panel-link:hover {
  color: var(--qcos-blue-dark);
}


/* ============================================================
   PANELS
============================================================ */

.dashboard-panel {
  min-width: 0;
  border: 1px solid var(--qcos-border);
  border-radius: 10px;
  background: var(--qcos-white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.panel-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--qcos-border);
}

.panel-header h3 {
  color: var(--qcos-text);
  font-size: 12px;
  font-weight: 650;
}

.panel-header span {
  display: block;
  margin-top: 4px;
  color: var(--qcos-muted);
  font-size: 9px;
  line-height: 1.4;
}

.panel-link {
  flex-shrink: 0;
  color: var(--qcos-blue);
  font-size: 9px;
  font-weight: 650;
}


/* ============================================================
   PERFORMANCE
============================================================ */

.performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 14px;
}

.performance-grid .dashboard-panel {
  height: 340px;
  min-height: 340px;
}

.chart-container {
  height: 278px;
  min-height: 278px;
  padding: 16px 20px;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
}

.chart-container > .simple-chart {
  min-width: 100%;
  height: 220px;
}

.chart-placeholder {
  width: 100%;
  padding: 30px 20px;
  border: 1px dashed var(--qcos-border);
  border-radius: 7px;
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
}
/* ============================================================
   OPERATIONS
============================================================ */

.operations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operation-card {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
}

.operation-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: #f8fafc;
  color: var(--qcos-blue);
  font-size: 14px;
  font-weight: 700;
}

.operation-content {
  min-width: 0;
  flex: 1;
}

.operation-content span {
  display: block;
  color: var(--qcos-muted);
  font-size: 9px;
}

.operation-content strong {
  display: block;
  margin-top: 5px;
  color: var(--qcos-text);
  font-size: 21px;
  font-weight: 700;
}

.operation-card .panel-link {
  align-self: flex-end;
  margin-bottom: 1px;
}


/* ============================================================
   TEAM
============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
  gap: 14px;
}

.team-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 17px;
}

.team-stat {
  padding: 0 15px;
  border-right: 1px solid var(--qcos-border);
}

.team-stat:first-child {
  padding-left: 0;
}

.team-stat:last-child {
  padding-right: 0;
  border-right: none;
}

.team-stat span {
  display: block;
  color: var(--qcos-muted);
  font-size: 9px;
  line-height: 1.4;
}

.team-stat strong {
  display: block;
  margin-top: 7px;
  color: var(--qcos-text);
  font-size: 23px;
  font-weight: 700;
}


/* ============================================================
   ACTIVITY LIST
============================================================ */

.activity-list {
  min-height: 160px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 17px;
  border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--qcos-blue);
  font-size: 8px;
  font-weight: 700;
}

.activity-content {
  min-width: 0;
  flex: 1;
}

.activity-content strong {
  display: block;
  color: var(--qcos-text);
  font-size: 9px;
  font-weight: 600;
}

.activity-content p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--qcos-muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 8px;
}

.empty-state {
  padding: 38px 20px;
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
}


/* ============================================================
   TASK LIST
============================================================ */

.task-list {
  min-height: 100px;
}

.task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 17px;
  border-bottom: 1px solid #f1f5f9;
}

.task-item:last-child {
  border-bottom: none;
}

.task-main {
  min-width: 0;
}

.task-main strong {
  display: block;
  overflow: hidden;
  color: var(--qcos-text);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-main span {
  display: block;
  margin-top: 4px;
  color: var(--qcos-muted);
  font-size: 8px;
}

.task-status {
  padding: 5px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: var(--qcos-muted);
  font-size: 8px;
  font-weight: 650;
  text-transform: capitalize;
}

.task-priority {
  padding: 5px 8px;
  border-radius: 5px;
  background: #fff7ed;
  color: var(--qcos-warning);
  font-size: 8px;
  font-weight: 650;
  text-transform: capitalize;
}


/* ============================================================
   QUICK ACTIONS
============================================================ */

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-action {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--qcos-border);
  border-radius: 9px;
  background: var(--qcos-white);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.quick-action-icon {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--qcos-blue);
  font-size: 14px;
  font-weight: 700;
}

.quick-action strong {
  display: block;
  color: var(--qcos-text);
  font-size: 10px;
  font-weight: 650;
}

.quick-action span:not(.quick-action-icon) {
  display: block;
  margin-top: 4px;
  color: var(--qcos-muted);
  font-size: 8px;
  line-height: 1.4;
}


/* ============================================================
   DASHBOARD MESSAGE
============================================================ */

.dashboard-message {
  min-height: 20px;
  margin-top: -12px;
  color: var(--qcos-danger);
  font-size: 10px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1250px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 1050px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    width: 100%;
    margin-left: 0;
  }

  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dashboard-topbar {
    gap: 14px;
    padding: 0 22px;
  }

  .dashboard-topbar {
    justify-content: flex-start;
  }

  .topbar-heading {
    flex: 1;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .performance-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .performance-grid .dashboard-panel {
    height: 340px;
    min-height: 340px;
  }
}


@media (max-width: 760px) {
  .dashboard-content {
    padding: 24px 18px 45px;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .welcome-actions {
    width: 100%;
  }

  .dashboard-button {
    flex: 1;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .topbar-date {
    display: none;
  }

  .dashboard-topbar {
    height: 70px;
    padding: 0 18px;
  }

  .topbar-heading h2 {
    font-size: 16px;
  }

  .topbar-eyebrow {
    font-size: 8px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-select {
    width: 100%;
  }

  .performance-grid .dashboard-panel {
    height: 320px;
    min-height: 320px;
  }

  .chart-container {
    height: 258px;
    min-height: 258px;
  }
}


@media (max-width: 480px) {
  .dashboard-content {
    padding: 20px 13px 35px;
  }

  .kpi-grid {
    gap: 8px;
  }

  .kpi-card {
    padding: 13px;
  }

  .kpi-value {
    font-size: 19px;
  }

  .dashboard-welcome h1 {
    font-size: 23px;
  }

  .team-summary {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .team-stat,
  .team-stat:first-child,
  .team-stat:last-child {
    padding: 0 0 14px;
    border-right: none;
    border-bottom: 1px solid var(--qcos-border);
  }

  .team-stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .task-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .task-priority {
    display: none;
  }

  .performance-grid .dashboard-panel {
    height: 300px;
    min-height: 300px;
  }

  .chart-container {
    height: 238px;
    min-height: 238px;
    padding: 14px;
  }
}


/* ============================================================
   LOGIN RESPONSIVE
================================ */

@media (max-width: 560px) {
  .login-page {
    padding: 24px 14px;
  }

  .login-card {
    padding: 30px 24px;
    border-radius: 14px;
  }

  .brand {
    margin-bottom: 34px;
  }

  .login-heading h2 {
    font-size: 26px;
  }
}

@media (max-width: 380px) {
  .login-card {
    padding: 26px 20px;
  }
}
/* ============================================================
   CUSTOMERS PAGE
   ============================================================ */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-eyebrow {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-header h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
}

.page-header p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}


/* ============================================================
   CUSTOMER PANEL
   ============================================================ */

.customers-panel {
  margin-top: 18px;
}

.customer-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 18px;
}

.customer-search input,
.customer-filter select {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--qcos-border);
  border-radius: 7px;
  background: #fff;
  color: #1e293b;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.customer-search input:focus,
.customer-filter select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.15);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.secondary-button,
.table-action-button,
.pagination-button {
  border: 1px solid var(--qcos-border);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.secondary-button {
  min-height: 36px;
  padding: 0 14px;
}

.secondary-button:hover,
.table-action-button:hover,
.pagination-button:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.table-action-button {
  padding: 6px 10px;
}

.pagination-button {
  min-height: 32px;
  padding: 0 11px;
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* ============================================================
   CUSTOMER TABLE
   ============================================================ */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table thead th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--qcos-border);
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #fafbfc;
}

.table-empty {
  padding: 35px 15px !important;
  color: #94a3b8 !important;
  text-align: center !important;
}


/* ============================================================
   CUSTOMER PERSON
   ============================================================ */

.table-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.table-person-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}

.table-person-name {
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
}


/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.status-active {
  background: #ecfdf5;
  color: #047857;
}

.status-inactive {
  background: #f1f5f9;
  color: #64748b;
}


/* ============================================================
   TABLE FOOTER / PAGINATION
   ============================================================ */

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px solid #eef2f7;
}

.table-results {
  color: #64748b;
  font-size: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-page {
  min-width: 80px;
  color: #64748b;
  font-size: 10px;
  text-align: center;
}


/* ============================================================
   CUSTOMER DETAILS
   ============================================================ */

.customer-details-panel {
  margin-top: 18px;
}

.customer-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 20px;
}

.customer-detail-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.customer-detail-header h2 {
  margin: 0 0 7px;
  color: #1e293b;
  font-size: 17px;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-detail-item {
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 7px;
  background: #fafbfc;
}

.customer-detail-label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customer-detail-value {
  display: block;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  word-break: break-word;
}


/* ============================================================
   PAGE MESSAGE
   ============================================================ */

.dashboard-message {
  min-height: 18px;
  margin-top: 12px;
  color: #64748b;
  font-size: 11px;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   CUSTOMER RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

  .customer-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 760px) {

  .page-header {
    margin-bottom: 18px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .customer-controls {
    grid-template-columns: 1fr;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination {
    width: 100%;
    justify-content: space-between;
  }

}


@media (max-width: 480px) {

  .page-header h1 {
    font-size: 20px;
  }

  .page-header p {
    font-size: 12px;
  }

  .customer-detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-detail-header {
    align-items: flex-start;
  }

  .secondary-button {
    padding: 0 11px;
  }

}
/* ============================================================
   TEAM TASKS - ASSIGN TASK MODAL
============================================================ */

#assignTaskModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#assignTaskModal[hidden] {
  display: none !important;
}

#assignTaskModal [data-assign-task-overlay] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background: rgba(15, 23, 42, 0.58) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#assignTaskModal [data-assign-task-overlay] > .dashboard-panel {
  width: 100% !important;
  max-width: 680px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 0 !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 12px !important;
  background: var(--qcos-white) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24) !important;
  animation: assignTaskModalOpen 0.18s ease-out;
}

@keyframes assignTaskModalOpen {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ============================================================
   ASSIGN TASK MODAL HEADER
============================================================ */

#assignTaskModal .panel-header {
  min-height: 70px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--qcos-border);
  background: #fbfcfe;
}

#assignTaskModal .panel-header strong {
  display: block;
  color: var(--qcos-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

#assignTaskModal .panel-header span {
  margin-top: 5px;
  color: var(--qcos-muted);
  font-size: 10px;
  line-height: 1.5;
}

#assignTaskModal #closeAssignTaskButton {
  height: 34px;
  padding: 0 12px;
  font-size: 10px;
}


/* ============================================================
   ASSIGN TASK FORM
============================================================ */

#assignTaskForm {
  display: grid !important;
  gap: 18px !important;
  padding: 22px 20px 20px !important;
}

#assignTaskForm > div {
  min-width: 0;
}

#assignTaskForm label {
  display: block;
  margin-bottom: 7px;
  color: var(--qcos-text);
  font-size: 11px;
  font-weight: 650;
}

#assignTaskForm label::after {
  color: var(--qcos-danger);
}


/* ============================================================
   TEXT INPUT
============================================================ */

#assignTaskForm #assignTaskTitle,
#assignTaskForm #assignTaskDueDate {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--qcos-border);
  border-radius: 7px;
  outline: none;
  background: #fbfcfe;
  color: var(--qcos-text);
  font-size: 12px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#assignTaskForm #assignTaskTitle::placeholder,
#assignTaskForm #assignTaskDescription::placeholder {
  color: #94a3b8;
}

#assignTaskForm #assignTaskTitle:hover,
#assignTaskForm #assignTaskDueDate:hover,
#assignTaskForm #assignTaskDescription:hover,
#assignTaskForm select:hover {
  border-color: #cbd5e1;
}

#assignTaskForm #assignTaskTitle:focus,
#assignTaskForm #assignTaskDueDate:focus,
#assignTaskForm #assignTaskDescription:focus,
#assignTaskForm select:focus {
  background: var(--qcos-white);
  border-color: var(--qcos-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}


/* ============================================================
   DESCRIPTION
============================================================ */

#assignTaskForm #assignTaskDescription {
  width: 100%;
  min-height: 120px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid var(--qcos-border);
  border-radius: 7px;
  outline: none;
  background: #fbfcfe;
  color: var(--qcos-text);
  font-size: 12px;
  line-height: 1.55;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}


/* ============================================================
   SELECT FIELDS
============================================================ */

#assignTaskForm #assignTaskDepartment,
#assignTaskForm #assignTaskAssignee,
#assignTaskForm #assignTaskPriority {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--qcos-border);
  border-radius: 7px;
  outline: none;
  background-color: #fbfcfe;
  color: var(--qcos-text);
  font-size: 12px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#assignTaskForm #assignTaskDepartment:focus,
#assignTaskForm #assignTaskAssignee:focus,
#assignTaskForm #assignTaskPriority:focus {
  background-color: var(--qcos-white);
}


/* ============================================================
   DEPARTMENT / ASSIGNEE ROW
============================================================ */

#assignTaskForm > div[style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}


/* ============================================================
   FORM MESSAGE
============================================================ */

#assignTaskForm #assignTaskFormMessage {
  min-height: 18px;
  margin: -3px 0 0;
  padding: 0;
  color: var(--qcos-danger);
  font-size: 10px;
  line-height: 1.5;
}

#assignTaskForm #assignTaskFormMessage:empty {
  min-height: 0;
}


/* ============================================================
   FORM ACTIONS
============================================================ */

#assignTaskForm > div:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  flex-wrap: wrap !important;
  padding-top: 4px !important;
  border-top: 1px solid #eef2f7;
}

#assignTaskForm #cancelAssignTaskButton,
#assignTaskForm #submitAssignTaskButton {
  min-width: 110px;
  height: 38px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
}

#assignTaskForm #cancelAssignTaskButton {
  border: 1px solid var(--qcos-border);
  background: var(--qcos-white);
  color: #475569;
}

#assignTaskForm #cancelAssignTaskButton:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

#assignTaskForm #submitAssignTaskButton {
  border: 1px solid var(--qcos-navy);
  background: var(--qcos-navy);
  color: var(--qcos-white);
}

#assignTaskForm #submitAssignTaskButton:hover {
  background: var(--qcos-navy-light);
  box-shadow: 0 5px 14px rgba(11, 18, 32, 0.16);
}

#assignTaskForm #submitAssignTaskButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}


/* ============================================================
   ASSIGN TASK MODAL SCROLLBAR
============================================================ */

#assignTaskModal [data-assign-task-overlay] > .dashboard-panel::-webkit-scrollbar {
  width: 7px;
}

#assignTaskModal [data-assign-task-overlay] > .dashboard-panel::-webkit-scrollbar-track {
  background: #f8fafc;
}

#assignTaskModal [data-assign-task-overlay] > .dashboard-panel::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #cbd5e1;
}

#assignTaskModal [data-assign-task-overlay] > .dashboard-panel::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}


/* ============================================================
   ASSIGN TASK MODAL RESPONSIVE
============================================================ */

@media (max-width: 760px) {
  #assignTaskModal [data-assign-task-overlay] {
    align-items: flex-start !important;
    padding: 18px !important;
    overflow-y: auto;
  }

  #assignTaskModal [data-assign-task-overlay] > .dashboard-panel {
    max-height: calc(100vh - 36px) !important;
  }

  #assignTaskForm > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  #assignTaskModal [data-assign-task-overlay] {
    padding: 10px !important;
  }

  #assignTaskModal [data-assign-task-overlay] > .dashboard-panel {
    max-height: calc(100vh - 20px) !important;
    border-radius: 10px !important;
  }

  #assignTaskModal .panel-header {
    min-height: 62px;
    padding: 14px 15px;
  }

  #assignTaskForm {
    gap: 15px !important;
    padding: 18px 15px 15px !important;
  }

  #assignTaskForm #assignTaskTitle,
  #assignTaskForm #assignTaskDueDate,
  #assignTaskForm #assignTaskDepartment,
  #assignTaskForm #assignTaskAssignee,
  #assignTaskForm #assignTaskPriority {
    height: 40px;
  }

  #assignTaskForm #assignTaskDescription {
    min-height: 105px;
  }

  #assignTaskForm > div:last-child {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
  }

  #assignTaskForm #cancelAssignTaskButton,
  #assignTaskForm #submitAssignTaskButton {
    width: 100%;
  }
}
/* ============================================================
   QC OS GENERAL MODAL SYSTEM
   Used by Departments and other management forms
============================================================ */

.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 270px !important;
  right: 0 !important;
  bottom: 0 !important;

  z-index: 1000 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 24px !important;

  background: rgba(15, 23, 42, 0.58) !important;

  overflow-y: auto !important;

  box-sizing: border-box;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.open {
  display: flex !important;
}


/* ============================================================
   GENERAL MODAL CONTAINER
============================================================ */

.modal-overlay .modal {
  position: relative;

  width: 100% !important;
  max-width: 560px !important;

  max-height: calc(100vh - 48px) !important;

  margin: auto !important;

  display: flex !important;
  flex-direction: column !important;

  background: var(--qcos-white) !important;

  border: 1px solid var(--qcos-border);

  border-radius: 12px;

  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.25);

  overflow: hidden !important;
}


/* ============================================================
   MODAL HEADER
============================================================ */

.modal-overlay .modal .modal-header {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 62px;

  padding: 15px 20px;

  border-bottom: 1px solid var(--qcos-border);

  background: #fbfcfe;
}

.modal-overlay .modal .modal-header h2 {
  margin: 0;

  color: var(--qcos-text);

  font-size: 16px;
  font-weight: 700;

  letter-spacing: -0.015em;
}


/* ============================================================
   MODAL CLOSE BUTTON
============================================================ */

.modal-overlay .modal .modal-close {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding: 0;

  border: 1px solid var(--qcos-border);
  border-radius: 7px;

  background: var(--qcos-white);
  color: var(--qcos-muted);

  font-size: 17px;

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.modal-overlay .modal .modal-close:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--qcos-text);
}


/* ============================================================
   MODAL BODY
============================================================ */

.modal-overlay .modal .modal-body {
  flex: 1 1 auto;

  min-height: 0;

  padding: 20px;

  overflow-y: auto !important;
  overflow-x: hidden;

  box-sizing: border-box;
}


/* ============================================================
   MODAL FORM
============================================================ */

.modal-overlay .modal .modal-form {
  display: flex;
  flex-direction: column;

  gap: 15px;

  width: 100%;
}


/* ============================================================
   MODAL FORM GROUP
============================================================ */

.modal-overlay .modal .form-group {
  width: 100%;

  margin: 0;
}

.modal-overlay .modal .form-group label {
  display: block;

  margin-bottom: 6px;

  color: var(--qcos-text);

  font-size: 11px;
  font-weight: 650;
}

.modal-overlay .modal .form-group input,
.modal-overlay .modal .form-group select,
.modal-overlay .modal .form-group textarea {
  width: 100%;

  box-sizing: border-box;

  border: 1px solid var(--qcos-border);
  border-radius: 7px;

  outline: none;

  background: #fbfcfe;
  color: var(--qcos-text);

  font-size: 12px;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.modal-overlay .modal .form-group input,
.modal-overlay .modal .form-group select {
  height: 40px;

  padding: 0 11px;
}

.modal-overlay .modal .form-group textarea {
  min-height: 90px;

  padding: 10px 11px;

  line-height: 1.5;

  resize: vertical;
}

.modal-overlay .modal .form-group input:focus,
.modal-overlay .modal .form-group select:focus,
.modal-overlay .modal .form-group textarea:focus {
  background: var(--qcos-white);

  border-color: var(--qcos-blue);

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.09);
}


/* ============================================================
   MODAL FOOTER
============================================================ */

.modal-overlay .modal .modal-footer {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 9px;

  min-height: 60px;

  padding: 12px 20px;

  border-top: 1px solid var(--qcos-border);

  background: #fbfcfe;
}


/* ============================================================
   MODAL FOOTER BUTTONS
============================================================ */

.modal-overlay .modal .modal-footer .dashboard-button {
  min-width: 100px;

  height: 36px;

  padding: 0 14px;

  border-radius: 7px;

  font-size: 10px;
  font-weight: 650;
}


/* ============================================================
   MODAL SCROLLBAR
============================================================ */

.modal-overlay .modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-overlay .modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-overlay .modal .modal-body::-webkit-scrollbar-thumb {
  border-radius: 10px;

  background: #cbd5e1;
}

.modal-overlay .modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}


/* ============================================================
   MODAL OPEN ANIMATION
============================================================ */

.modal-overlay.open .modal {
  animation: qcosModalOpen 0.18s ease-out;
}

@keyframes qcosModalOpen {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ============================================================
   MODAL MOBILE
============================================================ */

@media (max-width: 1050px) {
  .modal-overlay {
    left: 0 !important;
  }
}

@media (max-width: 760px) {
  .modal-overlay {
    align-items: center !important;

    padding: 15px !important;
  }

  .modal-overlay .modal {
    max-width: 100% !important;

    max-height: calc(100vh - 30px) !important;
  }

  .modal-overlay .modal .modal-header {
    padding: 14px 16px;
  }

  .modal-overlay .modal .modal-body {
    padding: 17px 16px;
  }

  .modal-overlay .modal .modal-footer {
    padding: 11px 16px;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px !important;
  }

  .modal-overlay .modal {
    max-height: calc(100vh - 20px) !important;

    border-radius: 10px;
  }

  .modal-overlay .modal .modal-body {
    padding: 15px;
  }

  .modal-overlay .modal .modal-footer {
    flex-direction: column-reverse;

    align-items: stretch;

    padding: 12px 15px;
  }

  .modal-overlay .modal .modal-footer .dashboard-button {
    width: 100%;
  }
}