/* ========================================================================== */
/* USIC Portal                                                                */
/* File : /staticfiles/css/usic.css                                           */
/* Part : 1 of 2                                                              */
/* ========================================================================== */

/* ==========================================================================
   ROOT
   ========================================================================== */

:root {
  --usic-primary: #2563eb;
  --usic-success: #15803d;
  --usic-danger: #b91c1c;
  --usic-warning: #d97706;
  --usic-info: #0284c7;

  --usic-bg: #f6f8fa;
  --usic-white: #ffffff;

  --usic-border: #d0d7de;
  --usic-border-light: #eaeef2;

  --usic-text: #24292f;
  --usic-text-light: #57606a;

  --usic-surface: #ffffff;
  --usic-hover: #f6f8fa;
  --usic-primary-light: #eff6ff;

  --usic-shadow-sm: 0 1px 2px rgba(27, 31, 36, 0.08);

  --usic-radius: 6px;

  --usic-font: 16px;

  --usic-row-height: 34px;
}

/* =============================================================================
   USIC BRANDING
   ============================================================================= */

.usic-brand {
  color: #ffffff;

  text-decoration: none;

  display: inline-flex;

  align-items: center;
}

.usic-brand:hover {
  color: #ffffff;

  text-decoration: none;
}

.usic-brand-main {
  font-weight: 700;

  font-size: 1.35rem;

  letter-spacing: 0.02em;

  line-height: 1;

  margin-right: 0.25rem;
}

.usic-brand-sub {
  font-weight: 700;

  font-size: 1.35rem;

  opacity: 0.7;

  letter-spacing: 0.02em;

  line-height: 1;
}

/* =============================================================================
   ACCOUNT AVATAR
   ============================================================================= */

.usic-avatar {
  width: 38px;

  height: 38px;

  min-width: 38px;

  min-height: 38px;

  padding: 0;

  border-radius: 50%;

  display: inline-flex !important;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  font-size: 15px;

  font-weight: 700;

  letter-spacing: -1.5px;

  line-height: 1;
}

/* =============================================================================
   NAVBAR TOGGLE
   ============================================================================= */

.usic-navbar-toggle {
  width: 40px;

  height: 40px;

  margin-left: -0.5rem;

  padding: 0;

  border: none;

  background: transparent;

  color: #ffffff;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;
}

.usic-navbar-toggle i {
  font-size: 1.5rem;
}

.usic-navbar-toggle:hover {
  color: var(--usic-primary-light);
}

/* ==========================================================================
   PAGE
   ========================================================================== */

body {
  background: var(--usic-bg);

  font-size: var(--usic-font);

  color: var(--usic-text);

  font-family:
    "Segoe UI Variable", "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

.container-fluid {
  padding-left: 20px;

  padding-right: 20px;
}

/* ==========================================================================
   HEADINGS
   ========================================================================== */

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--usic-text);
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--usic-text);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--usic-text);
}

h4 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--usic-text);
}

h5 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--usic-text);
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--usic-text);
}

/* ==========================================================================
   UPLOAD OVERLAY
   ========================================================================== */

.upload-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 99999;
}

.upload-box {
  background: white;

  width: 420px;

  max-width: 90%;

  padding: 30px;

  border-radius: 8px;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--usic-surface);

  border: 1px solid var(--usic-border);

  padding: 0rem 0rem 0.1rem 0rem;

  border-radius: 8px;

  box-shadow: var(--usic-shadow-sm);
}

.card-header {
  background: var(--usic-hover);

  border-bottom: 1px solid var(--usic-border);

  font-weight: 600;

  color: var(--usic-text);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  border-radius: 5px;

  font-size: 15px;

  padding: 8px 16px;
}

.btn i {
  margin-right: 4px;
}

.usic-icon-btn {
  width: 44px;

  height: 44px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  flex-shrink: 0;
}

.usic-icon-btn i {
  margin: 0;

  font-size: 1.5rem;
}

/* =============================================================================
   QUICK ACTIONS
   ============================================================================= */

.usic-launcher {
  display: grid;

  justify-content: space-evenly;

  grid-template-columns: repeat(4, 90px);

  gap: 1.5rem;

  margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
  .usic-launcher {
    grid-template-columns: repeat(4, 1fr);

    gap: 0.75rem;

    justify-content: unset;
  }
}

.usic-launcher-item {
  display: flex;

  flex-direction: column;

  align-items: center;

  text-decoration: none;

  color: var(--usic-text);
}

.usic-launcher-btn {
  width: 64px;

  height: 64px;

  border: 1px solid #d9dee5;

  border-radius: 50%;

  background: #ffffff;

  display: flex;

  align-items: center;

  justify-content: space-evenly;

  margin-bottom: 0.5rem;

  transition: background 0.2s ease;
}

.usic-launcher-btn i {
  margin: 0;

  font-size: 1.4rem;

  color: var(--usic-primary);
}

.launcher-blue {
  --sidebar-accent: #2563eb;
}

.launcher-blue .usic-launcher-btn {
  background: #e8f1ff;
}

.launcher-blue i {
  color: #2563eb;
}
.launcher-green {
  --sidebar-accent: #16a34a;
}
.launcher-green .usic-launcher-btn {
  background: #eaf8ee;
}
.launcher-green i {
  color: #16a34a;
}
.launcher-purple {
  --sidebar-accent: #9333ea;
}
.launcher-purple .usic-launcher-btn {
  background: #f4ebff;
}
.launcher-purple i {
  color: #9333ea;
}
.launcher-orange {
  --sidebar-accent: #ea580c;
}
.launcher-orange .usic-launcher-btn {
  background: #fff2e8;
}
.launcher-orange i {
  color: #ea580c;
}
.launcher-red {
  --sidebar-accent: #dc2626;
}
.launcher-red .usic-launcher-btn {
  background: #fdecec;
}
.launcher-red i {
  color: #dc2626;
}
.launcher-pink {
  --sidebar-accent: #db2777;
}
.launcher-pink .usic-launcher-btn {
  background: #fce7f3;
}
.launcher-pink i {
  color: #db2777;
}
.launcher-cyan {
  --sidebar-accent: #0891b2;
}
.launcher-cyan .usic-launcher-btn {
  background: #ecfeff;
}
.launcher-cyan i {
  color: #0891b2;
}
.launcher-teal {
  --sidebar-accent: #0d9488;
}
.launcher-teal .usic-launcher-btn {
  background: #e6fffa;
}
.launcher-teal i {
  color: #0d9488;
}
.launcher-indigo {
  --sidebar-accent: #4f46e5;
}
.launcher-indigo .usic-launcher-btn {
  background: #ede9fe;
}
.launcher-indigo i {
  color: #4f46e5;
}
.launcher-yellow {
  --sidebar-accent: #d97706;
}
.launcher-yellow .usic-launcher-btn {
  background: #fef9e7;
}
.launcher-yellow i {
  color: #d97706;
}
.launcher-lime {
  --sidebar-accent: #65a30d;
}
.launcher-lime .usic-launcher-btn {
  background: #f0fdf4;
}
.launcher-lime i {
  color: #65a30d;
}
.launcher-slate {
  --sidebar-accent: #475569;
}
.launcher-slate .usic-launcher-btn {
  background: #f1f5f9;
}
.launcher-slate i {
  color: #475569;
}

.usic-launcher-label {
  font-size: 0.82rem;

  font-weight: 500;

  text-align: center;

  color: var(--usic-text);
}

.usic-launcher-item:hover {
  text-decoration: none;

  color: inherit;
}

.usic-launcher-item:hover .usic-quick-action-btn {
  background: #e7eef7;
}

.usic-launcher-item.disabled {
  opacity: 0.45;

  pointer-events: none;
}

/* ==========================================================================
   INPUTS
   ========================================================================== */

.form-control,
.form-select {
  font-size: 15px;

  min-height: 40px;

  border-radius: 4px;
}

.form-label {
  font-size: 15px;

  font-weight: 600;

  margin-bottom: 6px;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table {
  font-size: 15px;

  margin-bottom: 0;
}

.table thead th {
  position: sticky;

  top: 0;

  z-index: 100;

  background: #f3f5f7;

  border-bottom: 2px solid var(--usic-border);

  white-space: nowrap;

  vertical-align: middle;
}

.table td {
  vertical-align: middle;

  white-space: nowrap;
}

.table-wrap td,
.table-wrap th {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

.wrap-cell {
  max-width: 200px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ==========================================================================
   FONT AWESOME
   ========================================================================== */

.fa-solid,
.fa-regular {
  width: 16px;

  text-align: center;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
  height: 10px;

  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #c9ced6;

  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background: #eef1f4;
}

/* ========================================================================== */
/* USIC Portal                                                                */
/* File : /staticfiles/css/usic.css                                           */
/* Part : 2 of 2                                                              */
/* Paste immediately after Part 1                                             */
/* ========================================================================== */

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.usic-toolbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 10px;

  margin-bottom: 15px;
}

/* ==========================================================================
   EDITOR
   ========================================================================== */

.usic-editor {
  background: #ffffff;

  border: 1px solid var(--usic-border);

  border-radius: var(--usic-radius);

  padding: 15px;

  margin-bottom: 15px;
}

.usic-editor-hidden {
  display: none;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */

.usic-filter {
  background: #ffffff;

  border: 1px solid var(--usic-border);

  border-radius: var(--usic-radius);

  padding: 10px;

  margin-bottom: 15px;
}

/* ==========================================================================
   WORKSHEET
   ========================================================================== */

.usic-worksheet {
  background: #ffffff;

  border: 1px solid var(--usic-border);

  border-radius: var(--usic-radius);

  overflow: auto;
}

.usic-worksheet table {
  margin-bottom: 0;
}

/* ==========================================================================
   STICKY COLUMNS
   ========================================================================== */

.sticky-col-1 {
  position: sticky;

  left: 0;

  background: #ffffff;

  z-index: 90;
}

.sticky-col-2 {
  position: sticky;

  left: 70px;

  background: #ffffff;

  z-index: 89;
}

.sticky-col-3 {
  position: sticky;

  left: 240px;

  background: #ffffff;

  z-index: 88;
}

.table thead .sticky-col-1,
.table thead .sticky-col-2,
.table thead .sticky-col-3 {
  background: #f3f5f7;
}

/* ==========================================================================
   STATUS BADGES
   ========================================================================== */

.usic-badge {
  display: inline-block;

  padding: 3px 8px;

  border-radius: 4px;

  font-size: 11px;

  font-weight: 600;

  white-space: nowrap;
}

.usic-badge-neutral {
  background: #e9ecef;
}

.usic-badge-success {
  background: #d1e7dd;
}

.usic-badge-warning {
  background: #fff3cd;
}

.usic-badge-danger {
  background: #f8d7da;
}

/* ==========================================================================
   ROW HOVER
   ========================================================================== */

.table-hover tbody tr:hover {
  background: #f5f9ff;
}

/* ==========================================================================
   RECENTLY SAVED ROW
   ========================================================================== */

.usic-row-saved {
  animation: usicSavedFlash 2s;
}

@keyframes usicSavedFlash {
  0% {
    background: #d1e7dd;
  }

  100% {
    background: transparent;
  }
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.usic-action-btn {
  padding: 3px 7px;

  margin-right: 2px;
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.usic-toast {
  position: fixed;

  top: 20px;

  right: 20px;

  z-index: 5000;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .container-fluid {
    padding-left: 10px;

    padding-right: 10px;
  }

  .usic-toolbar {
    flex-direction: column;

    align-items: stretch;
  }
}

/* ==========================================================================
   END OF PURCHase section formatiing
   ========================================================================== */

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */

.main-content {
  min-width: 0;
}

/* =============================================================================
   MOBILE SIDEBAR
   ============================================================================= */

@media (max-width: 991.98px) {
  #portalSidebar .sidebar-toggle {
    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;

    min-height: 60px;

    padding: 14px 20px;

    font-size: 1.15rem !important;

    background: #f3f6fa;

    color: #2f3542;

    font-weight: 600;

    border: none;

    border-bottom: 1px solid #d9dee5;
  }

  #portalSidebar .sidebar-toggle:hover {
    background: #e8edf3;

    color: #0d6efd;
  }

  #portalSidebar .sidebar-toggle:not(.collapsed) {
    background: #dde8f7;

    color: #0d6efd;
  }

  #portalSidebar .list-group-item {
    min-height: 54px;

    padding: 14px 20px;

    font-size: 1.05rem !important;
  }
}

/* =============================================================================
   MOBILE OFFCANVAS
   ============================================================================= */

@media (max-width: 991.98px) {
  #portalSidebar {
    --bs-offcanvas-width: 400px;
  }
}
/* =============================================================================
   SIDEBAR
   ============================================================================= */

#portalSidebar {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  flex: 0 0 180px;

  overflow: hidden;

  transition:
    width 0.25s ease,
    min-width 0.25s ease,
    max-width 0.25s ease,
    flex-basis 0.25s ease;
}

body.sidebar-collapsed #portalSidebar {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  flex: 0 0 60px;
}

#portalSidebar .sidebar-toggle i {
  margin-right: 0;
}

.sidebar-indicator {
  font-size: 0.65rem;

  transition: transform 0.2s ease;
}

.sidebar-toggle[aria-expanded="true"] .sidebar-indicator {
  transform: rotate(90deg);
}

/* =============================================================================
   CUSTOM MOBILE SIDEBAR
   ============================================================================= */

@media (max-width: 991.98px) {
  #portalSidebar {
    position: fixed;

    top: 0;

    left: -80vw;

    width: 70vw;

    max-width: 420px;

    min-width: 300px;

    height: 100vh;

    background: #ffffff;

    z-index: 1050;

    transition: left 0.25s ease;

    overflow-y: auto;

    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  }

  #portalSidebar.show {
    left: 0;
  }

  .main-content {
    width: 100%;
  }
}

/* =============================================================================
   SIDEBAR LINKS
   ============================================================================= */

#portalSidebar .list-group-item {
  border: none;

  border-radius: 0;

  padding: 0.65rem 1rem;

  color: var(--usic-text);

  background: var(--usic-surface);

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

#portalSidebar .list-group-item:hover {
  background: var(--usic-hover);

  color: var(--usic-primary);
}

#portalSidebar .list-group-item.active {
  background: var(--usic-primary-light);

  color: var(--usic-primary);

  border-left: 3px solid var(--sidebar-accent, var(--usic-primary));

  font-weight: 600;
}

.sidebar-icon {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 24px;

  min-width: 24px;

  height: 24px;

  font-size: 1rem;

  flex-shrink: 0;
}

body.sidebar-collapsed #portalSidebar .list-group-item {
  padding-left: 0 !important;

  padding-right: 0 !important;

  width: 100%;

  height: 48px;

  display: flex;

  justify-content: center;

  align-items: center;
}

.sidebar-divider {
  border-top: 1px solid #d9dee5;
}

body.sidebar-collapsed .sidebar-text {
  display: none;
}

body.sidebar-collapsed .sidebar-indicator {
  display: none;
}

body.sidebar-collapsed .sidebar-icon {
  margin-right: 0;
}

body.sidebar-collapsed .sidebar-toggle {
  justify-content: center;
}

body.sidebar-collapsed .sidebar-toggle > span {
  width: 100%;

  display: flex;

  justify-content: center;

  align-items: center;
}
/* =============================================================================
   SIDEBAR BACKDROP
   ============================================================================= */

#sidebarBackdrop {
  display: none;
}

.sidebar-group .sidebar-toggle {
  background: transparent;
}

@media (max-width: 991.98px) {
  #sidebarBackdrop {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.18);

    z-index: 1040;

    display: none;
  }

  #sidebarBackdrop.show {
    display: block;
  }
}

/* =============================================================================
   MOBILE NAVBAR
   ============================================================================= */

@media (max-width: 991.98px) {
  #sidebarToggle {
    width: 56px;

    height: 56px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;
  }

  #sidebarToggle i {
    font-size: 1.8rem;
  }
}

/* =====================================================
   PIN TOGGLE ANIMATION
===================================================== */

@keyframes pinShake {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-18deg);
  }

  40% {
    transform: rotate(18deg);
  }

  60% {
    transform: rotate(-10deg);
  }

  80% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.pin-toggle i.shake {
  animation: pinShake 0.22s ease;
}
