/*
  =========================================================
  ACROV CONTROL

  FILE:
  dashboards/business/business.css

  SYSTEM:
  BUSINESS DIRECTOR DASHBOARD

  PURPOSE:
  - Styles the Business Director Dashboard
  - Provides business account administration surfaces
  - Provides business approval and review surfaces
  - Provides promotional control surfaces
  - Provides business activity and status visibility
  - Preserves shared Dashboard Host geometry

  ARCHITECTURE:

  ACROV MASTER
       ↓
  BUSINESS DIRECTOR
       ↓
  BUSINESS ACCOUNTS
       ↓
  APPROVALS
  PROFILE CONTROL
  PROMOTIONAL CONTROL
  BUSINESS STATUS

  IMPORTANT:
  - Business Dashboard controls business environments
  - Commerce inventory remains under Commerce Director
  - Creator intake remains under CIP Director
  - Music remains under Music Director
  - Movies remain under Originals Director
  - Authority and permissions remain outside this file
  =========================================================
*/


/* =========================================================
   BUSINESS DASHBOARD
========================================================= */

.acrov-business-dashboard {

  width:
    100%;

  min-width:
    0;

}


/* =========================================================
   BUSINESS HEADER
========================================================= */

.acrov-business-header {

  width:
    100%;

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    24px;

}


/* =========================================================
   HEADER COPY
========================================================= */

.acrov-business-header-copy {

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;

}


/* =========================================================
   EYEBROW
========================================================= */

.acrov-business-eyebrow {

  margin:
    0;

  color:
    var(--acrov-blue);

  font-size:
    8px;

  font-weight:
    850;

  line-height:
    1;

  letter-spacing:
    1.35px;

  text-transform:
    uppercase;

}


/* =========================================================
   TITLE
========================================================= */

.acrov-business-title {

  margin:
    0;

  color:
    var(--acrov-text);

  font-size:
    30px;

  font-weight:
    800;

  line-height:
    1.1;

  letter-spacing:
    -0.8px;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.acrov-business-description {

  max-width:
    760px;

  margin:
    0;

  color:
    var(--acrov-text-muted);

  font-size:
    12px;

  line-height:
    1.55;

}


/* =========================================================
   AUTHORITY BADGE
========================================================= */

.acrov-business-authority {

  height:
    30px;

  flex:
    0 0 auto;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 11px;

  border:
    1px solid
    #bfdbfe;

  border-radius:
    6px;

  background:
    var(--acrov-blue-soft);

  color:
    var(--acrov-blue-hover);

  font-size:
    8px;

  font-weight:
    850;

  line-height:
    1;

  letter-spacing:
    0.55px;

  white-space:
    nowrap;

  text-transform:
    uppercase;

}


/* =========================================================
   SUMMARY GRID
========================================================= */

.acrov-business-summary-grid {

  width:
    100%;

  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  gap:
    14px;

}


/* =========================================================
   SUMMARY CARD
========================================================= */

.acrov-business-summary-card {

  min-width:
    0;

  padding:
    16px;

  border:
    1px solid
    var(--acrov-border);

  border-radius:
    var(--acrov-radius);

  background:
    var(--acrov-white);

  box-shadow:
    var(--acrov-shadow-small);

}


/* =========================================================
   SUMMARY LABEL
========================================================= */

.acrov-business-summary-label {

  margin:
    0;

  color:
    var(--acrov-text-muted);

  font-size:
    8px;

  font-weight:
    800;

  line-height:
    1;

  letter-spacing:
    0.75px;

  text-transform:
    uppercase;

}


/* =========================================================
   SUMMARY VALUE
========================================================= */

.acrov-business-summary-value {

  margin:
    8px 0 0;

  color:
    var(--acrov-text);

  font-size:
    24px;

  font-weight:
    800;

  line-height:
    1;

  letter-spacing:
    -0.6px;

}


/* =========================================================
   SUMMARY SIGNAL
========================================================= */

.acrov-business-summary-signal {

  margin:
    7px 0 0;

  color:
    var(--acrov-text-muted);

  font-size:
    9px;

  line-height:
    1.35;

}


/* =========================================================
   SECTION
========================================================= */

.acrov-business-section {

  width:
    100%;

  min-width:
    0;

}


/* =========================================================
   SECTION HEADER
========================================================= */

.acrov-business-section-header {

  width:
    100%;

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-end;

  justify-content:
    space-between;

  gap:
    16px;

  margin-bottom:
    11px;

}


/* =========================================================
   SECTION COPY
========================================================= */

.acrov-business-section-copy {

  min-width:
    0;

}


/* =========================================================
   SECTION TITLE
========================================================= */

.acrov-business-section-title {

  margin:
    0;

  color:
    var(--acrov-text);

  font-size:
    14px;

  font-weight:
    800;

  line-height:
    1.2;

}


/* =========================================================
   SECTION DESCRIPTION
========================================================= */

.acrov-business-section-description {

  margin:
    4px 0 0;

  color:
    var(--acrov-text-muted);

  font-size:
    10px;

  line-height:
    1.4;

}


/* =========================================================
   ACTION GRID
========================================================= */

.acrov-business-action-grid {

  width:
    100%;

  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap:
    12px;

}


/* =========================================================
   ACTION CARD
========================================================= */

.acrov-business-action-card {

  min-width:
    0;

  min-height:
    142px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    16px;

  border:
    1px solid
    var(--acrov-border);

  border-radius:
    var(--acrov-radius);

  background:
    var(--acrov-white);

  box-shadow:
    var(--acrov-shadow-small);

}


/* =========================================================
   ACTION ICON
========================================================= */

.acrov-business-action-icon {

  width:
    31px;

  height:
    31px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    7px;

  background:
    var(--acrov-blue-soft);

  color:
    var(--acrov-blue);

  font-size:
    9px;

  font-weight:
    850;

}


/* =========================================================
   ACTION TITLE
========================================================= */

.acrov-business-action-title {

  margin:
    0;

  color:
    var(--acrov-text);

  font-size:
    12px;

  font-weight:
    800;

  line-height:
    1.2;

}


/* =========================================================
   ACTION DESCRIPTION
========================================================= */

.acrov-business-action-description {

  margin:
    5px 0 0;

  color:
    var(--acrov-text-muted);

  font-size:
    9px;

  line-height:
    1.45;

}


/* =========================================================
   ACTION BUTTON
========================================================= */

.acrov-business-action-button {

  min-height:
    29px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 10px;

  border:
    1px solid
    var(--acrov-border-strong);

  border-radius:
    5px;

  background:
    var(--acrov-white);

  color:
    var(--acrov-text-secondary);

  font-family:
    inherit;

  font-size:
    8px;

  font-weight:
    750;

  cursor:
    pointer;

  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease;

}


/* =========================================================
   ACTION BUTTON HOVER
========================================================= */

.acrov-business-action-button:hover {

  border-color:
    #bfdbfe;

  background:
    var(--acrov-blue-soft);

  color:
    var(--acrov-blue-hover);

}


/* =========================================================
   ACTION BUTTON FOCUS
========================================================= */

.acrov-business-action-button:focus-visible {

  outline:
    2px solid
    var(--acrov-blue);

  outline-offset:
    2px;

}


/* =========================================================
   QUEUE GRID
========================================================= */

.acrov-business-queue-grid {

  width:
    100%;

  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    minmax(
      0,
      2fr
    )
    minmax(
      280px,
      1fr
    );

  gap:
    12px;

}


/* =========================================================
   PANEL
========================================================= */

.acrov-business-panel {

  min-width:
    0;

  padding:
    17px;

  border:
    1px solid
    var(--acrov-border);

  border-radius:
    var(--acrov-radius);

  background:
    var(--acrov-white);

  box-shadow:
    var(--acrov-shadow-small);

}


/* =========================================================
   PANEL HEADER
========================================================= */

.acrov-business-panel-header {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  margin-bottom:
    13px;

}


/* =========================================================
   PANEL TITLE
========================================================= */

.acrov-business-panel-title {

  margin:
    0;

  color:
    var(--acrov-text);

  font-size:
    12px;

  font-weight:
    800;

}


/* =========================================================
   PANEL COUNT
========================================================= */

.acrov-business-panel-count {

  min-width:
    24px;

  height:
    22px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 7px;

  border-radius:
    var(--acrov-radius-pill);

  background:
    var(--acrov-surface-soft);

  color:
    var(--acrov-text-secondary);

  font-size:
    8px;

  font-weight:
    800;

}


/* =========================================================
   BUSINESS TABLE WRAPPER
========================================================= */

.acrov-business-table-wrap {

  width:
    100%;

  min-width:
    0;

  overflow-x:
    auto;

}


/* =========================================================
   BUSINESS TABLE
========================================================= */

.acrov-business-table {

  width:
    100%;

  min-width:
    620px;

  border-collapse:
    collapse;

}


/* =========================================================
   TABLE HEADER
========================================================= */

.acrov-business-table th {

  padding:
    9px 8px;

  border-bottom:
    1px solid
    var(--acrov-border);

  color:
    var(--acrov-text-muted);

  font-size:
    7px;

  font-weight:
    800;

  line-height:
    1;

  letter-spacing:
    0.6px;

  text-align:
    left;

  text-transform:
    uppercase;

}


/* =========================================================
   TABLE CELL
========================================================= */

.acrov-business-table td {

  padding:
    11px 8px;

  border-bottom:
    1px solid
    var(--acrov-border);

  color:
    var(--acrov-text-secondary);

  font-size:
    9px;

  line-height:
    1.35;

  vertical-align:
    middle;

}


/* =========================================================
   LAST TABLE ROW
========================================================= */

.acrov-business-table tbody
tr:last-child td {

  border-bottom:
    0;

}


/* =========================================================
   BUSINESS NAME
========================================================= */

.acrov-business-account-name {

  color:
    var(--acrov-text);

  font-weight:
    750;

}


/* =========================================================
   STATUS
========================================================= */

.acrov-business-status {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-height:
    22px;

  padding:
    0 8px;

  border-radius:
    var(--acrov-radius-pill);

  font-size:
    7px;

  font-weight:
    800;

  line-height:
    1;

  text-transform:
    uppercase;

}


/* =========================================================
   STATUS - ACTIVE
========================================================= */

.acrov-business-status[
  data-status="active"
] {

  background:
    #f0fdf4;

  color:
    #15803d;

}


/* =========================================================
   STATUS - PENDING
========================================================= */

.acrov-business-status[
  data-status="pending"
] {

  background:
    #fffbeb;

  color:
    #a16207;

}


/* =========================================================
   STATUS - REVIEW
========================================================= */

.acrov-business-status[
  data-status="review"
] {

  background:
    #eff6ff;

  color:
    #1d4ed8;

}


/* =========================================================
   STATUS - SUSPENDED
========================================================= */

.acrov-business-status[
  data-status="suspended"
] {

  background:
    #fef2f2;

  color:
    #b91c1c;

}


/* =========================================================
   ACTIVITY LIST
========================================================= */

.acrov-business-activity-list {

  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    0;

  margin:
    0;

  padding:
    0;

  list-style:
    none;

}


/* =========================================================
   ACTIVITY ITEM
========================================================= */

.acrov-business-activity-item {

  display:
    flex;

  align-items:
    flex-start;

  gap:
    9px;

  padding:
    10px 0;

  border-bottom:
    1px solid
    var(--acrov-border);

}


/* =========================================================
   LAST ACTIVITY
========================================================= */

.acrov-business-activity-item:last-child {

  border-bottom:
    0;

}


/* =========================================================
   ACTIVITY DOT
========================================================= */

.acrov-business-activity-dot {

  width:
    7px;

  height:
    7px;

  flex:
    0 0 7px;

  margin-top:
    3px;

  border-radius:
    50%;

  background:
    var(--acrov-blue);

}


/* =========================================================
   ACTIVITY COPY
========================================================= */

.acrov-business-activity-copy {

  min-width:
    0;

  color:
    var(--acrov-text-secondary);

  font-size:
    9px;

  line-height:
    1.4;

}


/* =========================================================
   EMPTY STATE
========================================================= */

.acrov-business-empty {

  min-height:
    130px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    20px;

  border:
    1px dashed
    var(--acrov-border-strong);

  border-radius:
    7px;

  background:
    var(--acrov-surface-soft);

  color:
    var(--acrov-text-muted);

  font-size:
    9px;

  line-height:
    1.4;

  text-align:
    center;

}


/* =========================================================
   MASTER OVERRIDE SIGNAL

   SHOWN WHEN MASTER ENTERS THIS DIRECTOR
   ENVIRONMENT.
========================================================= */

.acrov-business-master-override {

  display:
    inline-flex;

  align-items:
    center;

  gap:
    6px;

  min-height:
    26px;

  padding:
    0 9px;

  border:
    1px solid
    #fde68a;

  border-radius:
    5px;

  background:
    #fffbeb;

  color:
    #92400e;

  font-size:
    7px;

  font-weight:
    800;

  letter-spacing:
    0.4px;

  text-transform:
    uppercase;

}


/* =========================================================
   TABLET
========================================================= */

@media (
  max-width: 1100px
) {

  .acrov-business-summary-grid {

    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

  }


  .acrov-business-action-grid {

    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

  }


  .acrov-business-queue-grid {

    grid-template-columns:
      minmax(
        0,
        1fr
      );

  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (
  max-width: 600px
) {

  .acrov-business-header {

    flex-direction:
      column;

    gap:
      12px;

  }


  .acrov-business-title {

    font-size:
      24px;

  }


  .acrov-business-summary-grid,
  .acrov-business-action-grid {

    grid-template-columns:
      minmax(
        0,
        1fr
      );

  }


  .acrov-business-action-card {

    min-height:
      128px;

  }


  .acrov-business-panel {

    padding:
      14px;

  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion: reduce
) {

  .acrov-business-action-button {

    transition:
      none;

  }

}