/* fonts */
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v19-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v19-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* variables */
:root {
    --main: #319290;
    --sec: #98c9c8;
    --tri: #f9f4ed;
    --quad: #c6ab7f;
    --quin: #f7f7f7;

    --alert: #d85f5f;
    --alert-dark: #cd0404;
    
    --contrast: #1b1b1b;
    --base: #fff;

    --main-font: "Inter", sans-serif;
    --icon: "Font Awesome 7 Pro";

    --fs-xxsm: 0.875rem;
    --fs-xsm: calc(clamp(0.7rem, 0.174vw + 0.792rem, .9rem));
    --fs-sm: calc(clamp(.7rem, 0.26vw + 0.938rem, .95rem));
    --fs-smd: calc(clamp(.9rem, 0.347vw + 1.083rem, 1rem));
    --fs-md: calc(clamp(1rem, 0.347vw + 1.083rem, 1.1rem));
    --fs-mdlg: calc(clamp(1.2rem, 0.608vw + 1.271rem, 1.5rem));
    --fs-lg: calc(clamp(1.563rem, 0.608vw + 1.271rem, 2rem));

    --pad-md: calc(clamp(.7rem, 1.91vw + 0.208rem, 1rem));

    --gap-lg: calc(clamp(.7rem, 1.91vw + 0.208rem, 1rem));

    --radius: 5px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.4);

    --sidebar: 220px;

    accent-color: var(--main);
}

* {
    box-sizing: border-box;
}

a, p, li, h1, h2, h3, h4, h5, h6, span, div, label {
    font-family: var(--main-font);
}

p, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--contrast);
}

p {
    line-height: 1.3;
    color: var(--contrast);
    font-size: var(--fs-sm);
}

a, button {
    cursor: pointer;
}

button {
    border: 0;
}

.primary-btn {
    background: var(--main);
    color: white;
    font-weight: 600;
    font-size: var(--fs-xsm);
    border-radius: var(--radius);
    padding: 7px 20px;
    transition: .4s;
    width: fit-content;
}

.primary-btn:hover {
    color: white;
    background: var(--quad);
}

a {
    color: var(--main);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

h1 {
    font-size: var(--fs-lg);
}

h2, h3, h4, h5, h6 {
    font-size: var(--fs-md);
    line-height: 1.1;
    color: var(--contrast);
}

html, body {
    /* overflow-x: hidden; */
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--base);
}

input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
}

select, input[type="text"], input[type="password"], input[type="email"], input[type="tel"] {
    padding: 6px 12px;
    display: inline-block;
    border: 2px solid #B5B5B5;
    border-radius: 5px;
    flex-grow: 1;
    font-family: var(--main-font);
}

select {
    appearance: none; 
    -webkit-appearance: none; 
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

input[type="number"] {
    padding: 6px 6px;
    display: block;
    border: 2px solid #B5B5B5;
    border-radius: 5px;
    width: fit-content;
    width: 60px;
    font-family: var(--main-font);
    margin-inline: auto;
    text-align: right;
}

.bulk-flex {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    max-width: 500px;
    width: 100%;
    flex-wrap: wrap;
}

.bulk-flex .search-inputs {
    margin: 0px;
}

/* tables */
table {
    border-radius: var(--radius);
    width: 100%;
    border-color: #B5B5B5;
    table-layout: auto;
    border-radius: inherit;
    overflow: clip;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
    border: 2px solid #B5B5B5;
    border-radius: var(--radius);
}

thead {
    background: var(--sec);
}

th button {
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

th {
    color: var(--contrast);
    font-family: var(--main-font);
    font-weight: 400;
    font-size: var(--fs-xsm);
}

tbody td {
    font-size: var(--fs-xxsm);
    font-family: var(--main-font);
    color: var(--contrast);
    min-width: max-content;
    width: max-content;
    white-space: nowrap;
}

tbody tr:nth-of-type(odd) {
    background: var(--quin);
}

table, tr, td {
    border: 1px inset #B5B5B5;
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 7px 11px;
    text-align: left;
}

td:has(input[type="number"]) {
    width: 60px;
}

.files-table {
    border: 2px solid var(--main);
}

td:has(input[type="checkbox"]), th:has(input[type="checkbox"]) {
    text-align: center;
    width: 30px;
}

.sortable {
    word-break:keep-all;
    white-space:nowrap;
    cursor: pointer;
}

.sortable::after {
    content: "\f0dc";
    font-family: var(--icon);
    display: inline-block;
    margin-left: 10px;
    font-size: .7em;
}

.view-all {
    margin-top: 15px;
    display: block;
    width: fit-content;
}

/* file info */

.file-info-container, .order-actions-cell {
    min-width: 200px;
}

.file-actions {
    color: var(--main);
    background: none;
    opacity: 0;
    transition: .3s;
}

td:has(.file-actions):hover .file-actions {
    opacity: 1;
}

@media(max-width: 768px) {
    .file-actions {
        opacity: 1;
    }
}

.file-options-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.file-options-item {
    background: none;
    color: var(--main);
}

.file-options-trash {
    color: #FF0B0B;
}

.file-options-add-cart {
    margin-left: auto;
    display: inline-block;
    padding: 7px 20px;
    background: var(--main);
    color: white;
    border-radius: var(--radius);
    transition: .4s;
}

.file-options-add-cart:hover {
    background: var(--quad);
}

/* file actions */
.trash-file {
  opacity: 0;
  transition: opacity 0.4s;
}

#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
  align-items: flex-end;
  max-height: 30vh;
  overflow-y: auto;
}

.download-progress-box {
  background: var(--base);
  border: 2px solid var(--main);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 220px;
  margin: 0;
  width: 100%;
}

.download-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--quin);
  border-radius: 4px;
  margin: 8px 0 8px 0;
  overflow: hidden;
}
.download-progress-fill {
  height: 100%;
  background: var(--main);
  width: 0%;
  transition: width 0.13s linear;
}
.download-file-name {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}
.download-status {
  font-size: 0.95em;
  color: var(--main);
}

/* main containers */

html, body, main {
    height: 100%;
}

.dash-wrap {
    display: flex;
    height: 100%;
}

.sidebar {
    background: var(--tri);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
}

.sidebar,
.spacer {
    width: var(--sidebar);
    min-width: var(--sidebar);
    max-width: var(--sidebar);
    flex: 0 0 var(--sidebar);
    transition: .5s;
}

.sidebar.collapsed, .spacer.collapsed {
    width: 55px;
    min-width: 0;
    flex: 0 0 50px;
}

.sidebar.collapsed.no-transition,
.spacer.collapsed.no-transition {
  transition: none !important;
}

#collapse-sidebar {
    position: absolute;
    bottom: 50px;
    background: var(--main);
    color: white;
    border: 2px solid white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    right: -10px;
    z-index: 9999;
}

#collapse-sidebar .fa-chevron-right {
    display: none;
}

.collapsed #collapse-sidebar .fa-chevron-right {
    display: block;
}

.collapsed #collapse-sidebar .fa-chevron-left {
    display: none;
}

.collapsed .menu-item-has-children>a::after {
    display: none;
}


.main-content {
    width: calc(100% - 343px);
    padding: calc(clamp(1.5rem, 1.897vw - 0.277rem, 1.7rem)) calc(clamp(.75rem, 2.232vw - 0.179rem, 1rem));
    height: fit-content;
    flex-grow: 1;
}

/* sidebar */
.sidebar-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;    
}

.site-logo {
    padding: 20px 20px 0;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.collapsed .site-logo {
    padding: 8px;
    margin: 0px;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

.small-logo {
    width: 100%;
    height: auto;
    display: none;
}

.collapsed .logo {
    display: none;
}

.collapsed .small-logo {
    display: block;
}

/* menu */
nav {
    flex-grow: 1;
    display: flex;
}

.menu-toggle {
    display: none;
}

.side-menu {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0px;
}

.collapsed .menu-item-text {
    display: none;
}

.side-menu li {
    list-style-type: none;
}

.side-menu li .sub-menu {
    padding-left: 35px;
}

.sub-menu {
    display: none;
}

.sub-menu-active .sub-menu, .sub-menu:has(.active-menu-item) {
    display: block;
}

.collapsed .sub-menu-active .sub-menu, .collapsed .sub-menu:has(.active-menu-item) {
    display: none;
}

.menu-item a {
    padding: 10px 17px;
    font-size: var(--fs-smd);
    display: flex;
    align-items: center;
    gap: 15px;

    text-decoration: none;
    color: var(--contrast);
    position: relative;
    font-weight: 500;
}

.active-menu-item a, .menu-item.active-menu-item a:hover {
    background: var(--main);
    color: white;
}

.menu-item a:hover {
    background: var(--sec);
}

.sidebar-icon, .bento-icon {
    width: 1.5em;
    height: 1.5em;
}

.upload-icon {
    width: 4em;
    height: 4em;
}

.active-menu-item .sidebar-icon, .action-icon {
    filter: brightness(0%) contrast(200%) grayscale(100%) invert(1);
}

.active-menu-item a::before {
    content: "";
    display: block;
    width: 6px;
    height: 100%;
    background: var(--quad);
    position: absolute;
    inset: 0;
}

.menu-item-has-children>a::after {
    content: "\f0d7";
    font-family: var(--icon);
    font-size: .8em;
}

.sub-menu .menu-item.active-menu-item a::before {
    content: "";
}


.logout-link {
    margin-top: auto;
}

@media(max-width: 1024px) {
    #collapse-sidebar {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        justify-content: right;
        width: 100%;
        font-size: var(--fs-lg);
        padding: 15px;
        background: var(--main);
        color: white;
    }
    
    .dash-wrap {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        width: 100%!important;
        max-width: 350px;
        height: 100%;
        transition: .6s;
        transition-timing-function: cubic-bezier(0.66, 0, 0.34, 1);
        transform: translateX(-100%);
        z-index: 99;
        top: 0;
    }

    .collapsed .menu-item-text {
        display: block;
    }

    .active-sidebar {
        transform: none;
        box-shadow: 0px 10px 15px rgba(0,0,0,.4);
    }

    .main-content {
        width: 100%;
    }

    .sidebar-wrap {
        height: calc(100% - 55px);
    }
}

@media(max-width: 660px) {
    .sidebar {
        position: fixed;
        width: 100%!important;
        max-width: 100%;
    }
}

/* section sizes */
.lg-section {
    flex-grow: 1;
    width: calc(100% - 445px - var(--gap-lg));
}

.sm-section {
    width: 345px;
    flex-grow: 1;
    height: fit-content;
}

.section {
    display: flex;
    gap: var(--gap-lg);
}

.col-section {
    flex-direction: column;
}

@media(max-width: 1500px) {
    .lg-section, .sm-section {
        width: 100%;
    }
}

/* dash announcement */

.dash-announce {
    background: var(--alert);
    border: 2px solid var(--alert-dark);
    border-radius: var(--radius);
    margin-bottom: 25px;
    padding: 7px 12px;

    color: white;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: var(--fs-xsm);
}

.dash-announce i {
    font-size: 1.5em;
}

.dash-announce p {
    margin-bottom: 5px;
    font-size: inherit;
    color: inherit;
}

.dash-announce p:last-of-type {
    margin: 0;
}

/* topbar */

.topbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-lg);
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}

.page-title {
    margin: 0;
    font-size: var(--fs-md);
}

.topbar-info {
    display: flex;
    gap: 40px;
    align-items: center;
}

.topbar-lg-flex {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    aspect-ratio: 1 / 1;
    width: 50px;
    height: auto;
    border-radius: 50%;
    border: 2px solid var(--main);
    object-fit: cover;
} 

.user-name {
    color: var(--main);
    text-transform: capitalize;
    font-size: var(--fs-smd);
    font-weight: 700;
    margin-bottom: 0;
}

.company-name {
    text-transform: capitalize;
    margin: 0;
}

@media(max-width: 1500px) {
    .topbar-lg-flex {
        width: fit-content;
    }
}

/* quick actions */
.quick-actions {
    width: 345px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.top-btn {
    background: var(--main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    padding: 10px;
    transition: .4s;
    position: relative;
    text-align: center;
}

.top-btn svg {
    width: 20px;
}

.top-btn:hover {
    background: var(--quad);
}

/* notifications */
.notifications {
    position: relative;
}

.notif-list {
    position: absolute;
    z-index: 50;
    right: 0;
    top: calc(100% + 10px);
    background: var(--base);
    width: 200px;
    border: 2px solid var(--main);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: fit-content;
    overflow: clip;
    box-shadow: var(--shadow);
    transition: .4s;
    transition-timing-function: cubic-bezier(0.66, 0, 0.34, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    max-height: 400px;
    overflow-y: auto;
}

.active-notif .notif-list {
    opacity: 1;
    pointer-events: all;
    transform: none;
}

.notif-item {
    cursor: pointer;
    padding: 10px 15px;
}

.notif-item.view-all-notif {
    background: var(--main)!important;
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: var(--fs-xsm);
}

.notif-item.view-all-notif:hover {
    background: var(--quad)!important;
}

.notif-item:nth-of-type(odd) {
    background: var(--quin);
}

.notif-message {
    font-size: var(--fs-xxsm);
    color: var(--contrast);
    margin-bottom: 5px;
    font-weight: 600;
}

.notif-time {
    font-size: var(--fs-xxsm);
    opacity: .6;
    margin: 0;
}

.notif-link {
    font-size: var(--fs-xxsm);
    margin-top: 10px;
    display: block;
    text-align: center;
}

.main-notifications .notif-link {
    text-align: left;
    font-weight:bold;
    width: fit-content;
}

[data-notif-count]:not([data-notif-count="0"])::after {
    content: attr(data-notif-count);
    color: white;
    font-weight: 900;
    width: fit-content;
    height: fit-content;
    padding: 7px 10px;
    background: var(--alert-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    border-radius: 20px;
    border: 2px solid var(--base);
    line-height: 1;

    position: absolute;
    top: -20px;
    right: 60%;
}

/* tooltips */
*:has(>.tooltip) {
    position: relative;
}

.tooltip {
    position: absolute;
    background: var(--contrast);
    color: var(--base);
    padding: 5px;
    font-size: var(--fs-xxsm);
    border-radius: var(--radius);
    bottom: -40px;
    width: max-content;
    margin: 0;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    transition: .4s;
    opacity: 0;
    pointer-events: none;
}

*:has(>.tooltip):hover .tooltip {
    opacity: 1;
}

.active-notif .tooltip {
    opacity: 0!important;
}

/* progress bar */
.circular-progress {
  --progress-bar-width: 50px;
  --progress-bar-height: 50px;
  width: var(--progress-bar-width);
  height: var(--progress-bar-height);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.inner-circle {
  position: absolute;
  width: calc(var(--progress-bar-width) - 10px);
  height: calc(var(--progress-bar-height) - 10px);
  border-radius: 50%;
  background: var(--base)!important;
}

.percentage {
  position: relative;
  font-size: var(--fs-xsm);
  font-weight: bold;
  color: var(--contrast);
  margin: 0;
}


/* upload */
.bento-box.upload-files {
    padding: var(--pad-md);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background: var(--tri);
    border-style: dashed;
    max-width: 100%;
    outline: 2px solid white;
    outline-offset: -4px;
}

.draggable-lg .bento-box.upload-files {
    cursor: grab;
}

.upload-files.dragover {
    background: var(--sec);
}

/* bento boxes */

.bento-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-lg);
}

.bento-box {
    border-radius: var(--radius);
    overflow: clip;
    max-width: 100%;
    position: relative;
}

.toggle-boxes {
    background: var(--main);
    font-size: var(--fs-md);
    width: 50px;
    height: 50px;
    padding: 15px!important;
    align-self: flex-start;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: 0 0 5px rgba(0,0,0,.2);
}

.toggle-boxes i:first-of-type {
    display: block;
}

.toggle-boxes i:last-of-type {
    display: none;
}

.edit-mode .toggle-boxes i:first-of-type {
    display: none;
}

.edit-mode .toggle-boxes i:last-of-type {
    display: block;
}

.section:hover .toggle-boxes {
    opacity: 1;
}

.toggle-boxes:hover, .toggle-boxes:active, .toggle-boxes:focus {
    background: var(--quad);
    color: white;
}

/* toggle visibility */
.toggle-visible {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: var(--fs-sm);
    padding: 15px;
    background: white;
    color: var(--contrast);
    border: 2px solid var(--main);
    border-radius: 50%;
    aspect-ratio: 1 / 1;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: .4s;
    opacity: 0;
    pointer-events: none;
}

.edit-mode .toggle-visible {
    opacity: 1;
    pointer-events: all;
}

.toggle-visible i:first-of-type {
    display: block;
}

.toggle-visible i:last-of-type {
    display: none;
}

.hidden .toggle-visible i:first-of-type {
    display: none;
}

.hidden .toggle-visible i:last-of-type {
    display: block;
}

.edit-mode .bento-box.hidden {
    display: block;
    opacity: .5;
}

.bento-box.hidden {
    display: none;
}

@media(max-width: 1024px) {
    .toggle-boxes {
        opacity: 1;
    }
}

/* large bento box */

.lg-bento-box {
    border: 2px solid var(--main);
    max-width: 100%;
}

.lg-bento-box .bento-padding {
    padding: 16px;
}

.bento-header {
    padding: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border: 2px solid white;
    align-items: center;
}

.lg-bento-box .bento-header {
    background: var(--tri);
}

.draggable-lg .bento-header, .draggable-sm .bento-header {
    cursor: grab;
}

.draggable-sm .alert .bento-header {
    cursor: initial;
}

.dashboard-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* small bento box */

.sm-bento-box {
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.25);
    border-radius: var(--radius);
}

.alert .bento-btn {
    background: var(--alert);
}

.alert .bento-btn:hover {
    background: var(--alert-dark);
}

.sm-bento-box .bento-padding {
    padding: 16px;
}

.bento-btn {
    background: var(--main);
    color: white;
    padding: 16px 24px;
    width: 100%;
    font-size: var(--fs-xsm);
    font-weight: 600;
    transition: .4s;
    display: block;
    text-align: center;
    border: 2px solid white;
    border-radius: var(--radius);
}

.bento-btn:hover, .bento-btn:active, .bento-btn:focus, .bento-btn:focus-visible {
    background: var(--quad);
}

/* cart */
.bento-side-header {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bento-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-smd);
}

.cart-price {
    margin: 0;
    margin-left: auto;
    font-size: var(--fs-sm);
    color: var(--main);
    font-weight: 600;
}

.cart-table, .cart-table td {
    border: 0;
}

.cart-table-container {
    max-height: 200px;
    overflow-Y: auto;
}

.cart-table tr {
    border: 0;
    border-bottom: 1px solid #D9D9D9;
}

.remove-btn {
    background: none;
    font-size: var(--fs-sm);
    color: #d85f5f;
    margin-left: auto;
    display: block;
}

/* storage */

.storage-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.storage-flex>* {
    width: 50%;
}

.storage-flex .circular-progress {
  --progress-bar-width: 120px;
  --progress-bar-height: 120px;
}

.storage-flex .inner-circle {
  width: calc(var(--progress-bar-width) - 35px);
  height: calc(var(--progress-bar-height) - 35px);
}

.storage-flex .percentage {
    font-size: var(--fs-mdlg);
}

.storage-info-text {
    margin: 0;
}

.storage-info-value {
    font-weight: bold;
}

@media(max-width: 390px) {
    .storage-flex {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
    }

    .storage-flex>* {
        width: 100%;
    }

    .storage-chart {
        display: flex;
        justify-content: center;
    }
}

/* refer */
.refer p {
    text-align: center;
    font-size: var(--fs-xxsm);
}

#refer-signup {
    width: 100%;
    border: 1px solid #B5B5B5;
    border-radius: 5px;
    padding: 7px 14px;
    margin-bottom: 10px;
}

.registered {
    margin: 0;
    font-weight: bold;
}


/* totals / pagination */

.totals-pagination {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.total-files {
    margin: 0;
    font-size: var(--fs-xxsm);
}

.pagination {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination-nav {
    background: var(--sec);
    color: var(--contrast);
    font-weight: 600;
    border-radius: var(--radius);
    padding: 3px 15px;
}

.pagination-btn {
    border-radius: var(--radius);
    font-weight: 600;
}

.pagination-current-page {
    background: none;
}


/* modals */
.modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px 24px 24px;
  width: 100%;
  max-width: min(550px, 95vw);
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
}

/* order details */
.order-files-list {
    margin-bottom: 15px;
}

.order-details iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    /*max-width: 700px;*/
    height: auto;
    border-radius: var(--radius);
    border: 0;
}

.bad-status {
    color: var(--alert-dark);
}

.order-issue-box {
    background: var(--alert);
    color: white;
    padding: 7px 14px;
    border-radius: var(--radius);
    border: 2px solid var(--alert-dark);
    margin-bottom: 20px;
}

.order-issue-box p {
    color: inherit;
    margin: 0;
}

.order-issue-box a {
    color: inherit;
    text-decoration: underline;
}

/* payment methods */
.card-icon {
    background: white;
    border: 2px solid var(--sec);
    border-radius: var(--radius);
    width: 40px;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: contain;
}

/* search */
.search-inputs {
    margin-bottom: 15px;
}








.mng-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--gap-lg);
}

@media(max-width: 1300px) {
    .mng-boxes {
        grid-template-columns: repeat(1, 1fr);
    }

    .mng-box {
        grid-area: auto!important;
    }
}

.mng-box:nth-of-type(1) { grid-area: 1 / 1 / 2 / 2; }
.mng-box:nth-of-type(2) { grid-area: 1 / 2 / 2 / 3; }
.mng-box:nth-of-type(3) { grid-area: 1 / 3 / 2 / 4; }
.mng-box:nth-of-type(4) { grid-area: 2 / 1 / 3 / 3; }
.mng-box:nth-of-type(5) { grid-area: 2 / 3 / 3 / 4; }

.mng-box {
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.25);
    border-radius: var(--radius);
    container-type: inline-size;
}

.bento-content {
    padding: 16px;
    padding-top: 0;
}

.bento-subtitle {
    margin-left: auto;
    margin-bottom: 0;
}

.large-num {
    font-size: clamp(1.5rem, 12cqi, 4rem);
    font-weight: 700;
    line-height: 1;
}

.bad-num {
    color: #d85f5f;
}

.good-num {
    color: var(--main);
}

.mng-stats {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.mng-stats p {
    margin: 0;
}

.mng-stats>a:last-of-type {
    margin-left: auto;
}

@container(max-width: 350px) {
    .mng-stats {
        gap: 10px 5px;
    }
    
    .mng-stats>a:last-of-type {
        margin-inline: initial;
        width: 100%;
    }
}

.mng-box .table-wrap {
    border: 0;
}

.mng-box td {
    border: 0;
    min-width: max-content;
    width: max-content;
    white-space: nowrap;
}

.mng-box tr {
    background: none!important;
}

.mng-box .storage-flex p {
    margin: 0
}

.mng-box .storage-flex {
    margin-bottom: 20px;
}
