/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Global Styles */
:root {
    --color-text: #000000;
    --color-text-light: #344054;
    --color-text-blue: #475467;
    --color-yellow: #F6D14C;
    --color-yellow-dark: #E3B719;
    --color-grey: #F2F4F7;
    --color-grey-light: #F9FAFB;

    --sv-border: 1px solid #D0D5DD;
    --sv-border-radius: 8px;
    --sv-general-padding: 8px;
    --sv-min-height: 40px;
    --sv-item-selected-bg: #F2F4F7;
    --sv-item-btn-bg: #F2F4F7;
    --sv-item-btn-bg-hover: #F2F4F7;
    --sv-icon-color: #475467;
    --sv-item-btn-color-hover: #475467;
    --sv-placeholder-color: transparent;
}

html * {
    box-sizing: border-box;
}

body {
    overflow: hidden;
    overflow-y: scroll;
    font-weight: 400;
    line-height: 1.4;
    font-size: 14px;
    font-family: 'Inter Variable', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--color-text);
}

.container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
}

strong {
    font-weight: 500;
}

h1 {
    font-size: 30px;
    font-weight: 600;
}

.button {
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    border: 0;
    background-color: var(--color-yellow);
    font-weight: 600;
    transition: background-color 0.2s ease;
    color: #101828;
    box-shadow: 0px 0px 0px 1px rgba(16, 24, 40, 0.18) inset, 0px -2px 0px 0px rgba(16, 24, 40, 0.05) inset, 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.button:hover {
    background-color: var(--color-yellow-dark);
}

.button.button__danger {
    background-color: #c00f0c;
    color: #fff;
}

.button.button__danger:hover {
    background-color: #a00c0a;
}

.button.button__action,
.button.button__secondary {
    background-color: #fff;
    color: var(--color-text-light);
}

.button.button__action:hover,
.button.button__secondary:hover {
    background-color: var(--color-grey-light);
}

.button.button__action {
    padding: 0;
    height: 40px;
    width: 40px;
}

.button:disabled {
    background-color: rgba(228, 231, 236, 1);
    color: rgba(152, 162, 179, 1);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    cursor: not-allowed;
}

.button:disabled img,
.button:disabled:after {
    opacity: .3;
}

.button.button__forward:after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-image: url('/assets/images/arrow-right.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.button.button__text {
    background-color: transparent;
    color: var(--color-yellow-dark);
    box-shadow: none;
    font-size: 14px;
    padding: 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.button.button__text:hover {
    background-color: transparent;
    color: var(--color-yellow);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.header__title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.header__title p {
    font-size: 16px;
    color: var(--color-text-blue);
}

.header__actions {
    display: flex;
    gap: 10px;
}

.table {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

.thead .row {
    background-color: var(--color-grey);
    color: var(--color-text-light);
    font-weight: 500;
    border-radius: 8px;
}

.tbody {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.row {
    display: flex;
    width: 100%;
    transition: background-color 0.2s ease;
}

.tbody .row:nth-child(even) {
    background-color: var(--color-grey-light);
}

.tbody .row:nth-child(odd) {
    background-color: #fff;
}

.tbody a.row:hover {
    background-color: var(--color-grey-light);
}

.table .row .width-icon {
    flex: 0 0 60px;
}

.table .row .width-narrow {
    flex: 0 0 100px;
}

.table .row .width-medium {
    flex: 0 0 150px;
}

.table .row .width-wide {
    flex: 0 0 200px;
}

.row>div {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0 8px;
    display: flex;
    min-height: 52px;
}

.tbody .row>div {
    font-size: 14px;
    color: var(--color-text);
    display: flex;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-items: center;
}

.thead .row>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 8px;
}

.table .align-right {
    justify-content: flex-end;
}

.table__actions {
    display: flex;
    align-items: center;
    border-top: 1px solid #e4e7ec;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 20px;
}

.table__actions__buttons {
    display: flex;
    gap: 10px;
}

.form {
    display: flex;
    flex-direction: column;
}

.form .input {
    position: relative;
}

.form .input .tooltip {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

.form__narrow {
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
}

.form__actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.form__narrow .header__title {
    margin-bottom: 0;
}

.form .required {
    color: var(--color-yellow);
    margin-left: 3px;
}

.form .note {
    font-weight: 400;
    color: var(--color-text-blue);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"] {
    width: 100%;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

textarea {
    width: 100%;
    padding: 9px 8px;
    border-radius: 8px;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    min-height: 110px;
    resize: vertical;
}

select {
    width: 100%;
    padding: 0 8px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #D0D5DD;
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%234B5563" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: calc(100% - 8px);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 2px;
}

.notice {
    background-color: #e7f3fe;
    border: 1px solid #bcdaec;
    color: #31708f;
    padding: 1rem;
    border-radius: 8px;
}

.notice__success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.notice__error {
    background-color: #f8d7da;
    border-color: #e499a0;
    color: #721c24;
}

.notice__warning {
    background-color: #fff3cd;
    border-color: #f1e1b4;
    color: #856404;
}

input[type="text"].sv-input--text {
    box-shadow: none;

}

.sv-control {
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.sv-control input {
    height: auto;
}

.status {
    border-radius: 5px;
    background-color: #e4e4e7;
    color: rgba(102, 112, 133, 1);
    font-weight: 600;
    font-size: 12px;
    padding: 7px 10px;
}

.status__missing-artwork,
.status__reserved {
    color: #d7ac11;
    background-color: #fff3c8;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
    filter: invert(0.3);
}

.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 3px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }

    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}