.nav {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
}

.nav__logo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav__logo img {
    width: 40px;
    height: 24px;
}

.nav__logo span {
    color: var(--grey);
    margin-left: var(--space-15);
    font-size: var(--fs-base);
    letter-spacing: 2px;
}

.nav__center {
    display: flex;
    align-items: center;
    gap: var(--space-30);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav__center-link {
    font-size: var(--fs-base);
    color: var(--grey);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    white-space: nowrap;
}

.nav__center-link svg {
    margin-top: -2px;
    width: 16px;
    height: 16px;
}

.nav__center-link:hover,
.nav__center-link.active {
    color: var(--gold-dark);
    opacity: 1;
}

.nav__logout {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    font-size: var(--fs-base);
    color: var(--grey);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition);
}

.nav__logout:hover,
.nav__logout.active {
    color: var(--gold-dark);
    opacity: 1;
}

.nav__logout svg {
    width: 18px;
    height: 18px;
}

.portal-header {
    text-align: center;
    padding: 0 var(--space-25) 0;
    background: var(--white);
    box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.05);
    z-index: 5;
    position: relative;
}

.portal-header__name {
    font-family: var(--font-display);
    font-size: clamp(35px, 6vw, 61px);
    color: var(--grey);
    -webkit-text-stroke: 0.3px var(--grey);
    line-height: 1.1;
    margin-bottom: var(--space-20);
}

.portal-header--tabbed {
    padding-bottom: 28px;
}

.portal-header--tabbed .pill-nav {
    padding-bottom: 40px;
    padding-top: var(--space-30);
}

.pill-btn--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    width: 38px;
    height: 38px;
}

.pill-btn--icon svg {
    width: 20px;
    height: 20px;
}

.marble-section {
    background-image: url("images/background_marble.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: calc(100vh - 200px);
    padding: 0;
}

.page-header + .marble-section {
    padding-bottom: var(--space-50);
}

.page-header + div .app-main {
    padding: 40px 60px;
}

.sub-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0 var(--space-25);
    margin-bottom: -28px;
    background: white;
}

.sub-tab {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: -1px;
    padding: 0 3px var(--space-10);
    text-decoration: none;
    display: inline-block;
}

.sub-tab:hover {
    color: var(--gold-light);
}

.sub-tab.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-dark);
    font-weight: 500;
}

.bk-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-20);
    margin-top: 0px;
    justify-content: center;
    --card-cols: 5;
}

.bk-card-grid .bk-card {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: calc((100% - (var(--card-cols) - 1) * 20px) / var(--card-cols));
}

div.tab-content .bk-card {
    max-width: 25%;
}

div.tab-content[data-name="farbe"] .bk-card,
div.tab-content[data-name="schrift"] .bk-card {
    max-width: 20%;
}

.bk-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.bk-card__header {
    background: var(--rose-light);
    padding: var(--space-10) var(--space-15);
    text-align: center;
}

.bk-card__label {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
}

.bk-card__variants {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    padding: var(--space-30) var(--space-30) 0;
}

.bk-card__formats {
    display: flex;
    gap: var(--space-10);
    padding: var(--space-30) var(--space-30) 1px;
    justify-content: center;
}

.bk-card__footer {
    padding: var(--space-10) var(--space-30) var(--space-30);
}

.bk-card__order {
    padding: var(--space-10) var(--space-30) 0;
}

.variant-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    flex-shrink: 0;
    border: 1px solid var(--taupe-dark);
}

.variant-dot.active {
    border-color: var(--gold-dark);
    transform: scale(1.15);
}

.variant-dot:hover {
    transform: scale(1.1);
}

.bk-card__preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    border-bottom: 1px solid var(--taupe-light) !important;
}

.bk-card__preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.bk-card__preview-text {
    font-size: 60px;
    color: var(--grey);
    line-height: 1;
}

.variant-preview--dark {
    background: var(--grey);
}

.bk-card__preview--cover {
    min-height: 0;
    padding: 0;
    border-bottom: none;
    width: 100%;
    aspect-ratio: 1;
    background: var(--creme);
    color: var(--grey);
    font-size: var(--fs-base);
    font-style: italic;
}

.bk-card__preview--cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.bk-card__preview--cover.variant-preview--dark {
    background: var(--grey);
}

.bk-card__preview--fit {
    min-height: 0;
    padding: 0;
    border-bottom: none;
    width: 100%;
    aspect-ratio: 1;
}

.bk-card__preview--fit img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.bk-card__body {
    padding: var(--space-30);
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bk-card__name {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--grey);
    margin-bottom: 2px;
}

.bk-card__meta {
    font-size: var(--fs-base);
    color: var(--grey);
    margin-bottom: var(--space-25);
    line-height: 1.6;
}

.btn-collection-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: var(--space-15);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--gold-dark);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: var(--space-15);
}

.btn-collection-info svg {
    width: 16px;
    height: 16px;
}

.btn-collection-info:hover {
    color: var(--gold-dark);
    opacity: 1;
}

#collection-info-meta {
    white-space: pre-line;
    line-height: 1.6;
}

.bk-card__btns {
    display: flex;
    gap: var(--space-10);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
    padding-top: 6px;
}

.bk-card__btns a {
    width: 100%;
}

.bg-swatch-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.bg-swatch {
    border: 1px solid var(--taupe-dark);
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin: 0 1px 1px 0;
}

.bg-swatch.active {
    border-color: var(--gold-dark);
    outline: 2px solid var(--gold-dark);
    outline-offset: -1px;
}

.bg-mode-toggle {
    display: flex;
    gap: 0;
}

.edit-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-20);
}

#solid-colors-body.edit-card-grid {
    grid-template-columns: repeat(4, 1fr);
}

.mini-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow var(--transition);
}

.mini-card:hover {
    box-shadow: var(--shadow-md);
}

.mini-card[data-lt-idx],
.mini-card[data-s-idx] {
    cursor: grab;
}

.mini-card.drag-over {
    outline: 2px dashed var(--rose-dark);
    outline-offset: -2px;
}

.settings-section__header.drag-over {
    outline: 2px dashed var(--rose-dark);
    outline-offset: -2px;
}

.mini-card__swatch {
    width: 100%;
    height: 120px;
}

.mini-card__preview {
    height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--creme);
    padding: 40px;
}

.mini-card__preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mini-card__preview--empty {
    background: repeating-linear-gradient(45deg, var(--creme), var(--creme) 6px, var(--white) 6px, var(--white) 12px);
}

.mini-card__preview.variant-preview--dark {
    background: var(--grey);
}

.mini-card__preview--cover {
    padding: 0;
}

.mini-card__preview--cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.mini-card__preview--fit {
    padding: 0;
}

.mini-card__preview--fit img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.mini-card__body {
    padding: var(--space-30);
    text-align: center;
}

.mini-card__name {
    font-weight: 500;
    font-size: var(--fs-base);
    color: var(--grey);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.mini-card__dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--taupe-dark);
    margin-right: 6px;
    vertical-align: middle;
    margin-top: -5px;
}

.mini-card__meta {
    font-size: var(--fs-xs);
    color: var(--grey);
    opacity: 0.7;
    overflow: hidden;
    text-align: center;
    text-wrap: balance;
    line-height: 1.5;
	height:auto;
	margin-bottom:15px;
}

.edit-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-md);
    padding: var(--space-30);
    box-shadow: var(--shadow-sm);
}

.color-edit-card--bleed {
    padding: 0;
    overflow: hidden;
}

.edit-card .btn--danger {
    left: inherit;
    right: 10px;
    position: absolute;
    top: 10px;
}

.edit-card .btn--danger::after {
    display: none;
}

.edit-card .form-group:not(:last-child) {
    margin-bottom: var(--space-20);
}

.format-tag {
    font-size: var(--fs-xs);
    font-weight: 500;
    padding: 4px var(--space-10) 2px;
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    color: var(--grey);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    background: var(--white);
    width: 100%;
    max-width: 70px;
    text-align: center;
}

.format-tags {
    gap: 5px;
    display: flex;
}

.format-tag:hover,
.format-tag.active {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    opacity: 1;
}

.btn-download-all {
    width: 100%;
    padding: 9px;
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-download-all svg,
.btn-format svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-download-all:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    opacity: 1;
}

.color-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 35px;
    margin-top: -65px;
}

.mode-btn {
    padding: 6px 18px;
    font-size: var(--fs-base);
    font-family: var(--font-body);
    border: 1px solid var(--taupe-dark);
    background: var(--white);
    color: var(--grey);
    cursor: pointer;
    transition: all var(--transition);
}

.mode-btn--nowrap {
    white-space: nowrap;
}

.mode-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.mode-btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mode-btn.active,
#btn-toggle-multipage:hover,
#btn-toggle-multipage.mode-btn.active {
    background: var(--gold-dark);
    color: var(--white);
    border-color: var(--gold-dark);
    z-index: 1;
    position: relative;
}

.mode-btn:hover {
    color: var(--gold-light);
}

.bk-card-grid--colors.gradients {
    margin-top: 60px;
}

.bk-card-grid--colors .bk-card__preview--cover {
    aspect-ratio: auto;
    height: 100px;
}

.bk-card-grid--colors.gradients .bk-card__meta {
    height: auto;
}

.bk-card__meta + .bk-card__meta {
    margin-top: -5px;
}

.gradient-stop-row,
#gradient-stops-body {
    display: flex;
    gap: 5px;
}

#gradient-stops-body {
    gap: var(--space-20);
}

#gradient-stops-body input.gradient-stop-input {
    padding: 0px 2px;
    width: 42px;
    height: 42px;
}

div#color-fields-gradient .form-group:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

div#color-fields-gradient label {
    width: 100%;
}

.bk-card--color:not(.cursor-default) {
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.bk-card--color:not(.cursor-default):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bk-card-grid--colors .bk-card__meta {
    font-family: "SF Mono", "Fira Code", monospace;
    line-height: 1.5;
    text-transform: uppercase;
    height: 23px;
}

.bk-card__note {
    font-size: var(--fs-xs);
    color: var(--grey);
    opacity: 0.7;
    text-align: center;
    padding-top: 0px;
    margin-top: -15px;
}

.cmyk-dot,
.rgb-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 3px;
    margin-left: 13px;
    vertical-align: middle;
}

.cmyk-dot:first-child,
.rgb-dot:first-child {
    margin-left: 0;
}

.cmyk-dot--c {
    background: #0093d0;
}

.cmyk-dot--m {
    background: #e4007c;
}

.cmyk-dot--y {
    background: #ffd700;
}

.cmyk-dot--k {
    background: #1a1a1a;
}

.rgb-dot--r {
    background: #e8413a;
}

.rgb-dot--g {
    background: #4caf50;
}

.rgb-dot--b {
    background: #2979ff;
}

.color-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-font-link {
    display: block;
    width: 100%;
    padding: var(--space-10) var(--space-15);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    line-height: normal;
}

.btn-font-link:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    opacity: 1;
}

.pdf-carousel {
    position: relative;
}

.pdf-carousel__viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: var(--space-25);
    padding: 0px 0 var(--space-20);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pdf-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.pdf-carousel__page {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 300px;
	max-height:600px;
}

.pdf-carousel__page canvas {
    max-width: 100%;
    height: auto;
	    max-height: 100%;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.pdf-carousel__page--loading {
    align-items: center;
    color: var(--grey);
    opacity: 0.5;
    font-size: var(--fs-base);
}

.pdf-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    border: none;
    color: white;
    background: var(--rose-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-carousel__nav:hover {
    background: var(--gold-dark);
}

.pdf-carousel__nav:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
}

.pdf-carousel__nav--prev {
    left: -10px;
}

.pdf-carousel__nav--next {
    right: -10px;
}

.pdf-carousel__indicator {
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--grey);
    opacity: 0.7;
}

.pdf-carousel__actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-15);
}

.pdf-carousel__actions svg {
    width: 18px;
    height: 18px;
}

#collection-files-body .col-file-path-display {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 90px;
    padding-top: 5px;
}

#collection-files-body td:first-child {
    width: 150px !important;
    padding-right: 5px;
}

#collection-files-body td {
    padding: 0 0 5px 0;
    height: 44px;
    align-items: center;
}

#collection-files-body .table-upload-btn {
    margin-top: 5px;
}

.table-upload-btn + .text-sm {
    margin-bottom: 0px !important;
	font-style:italic;
}

.collection-upload-wrap .text-sm {
    font-size: var(--fs-xs);
    line-height: 1.5 !important;
    display: block;
    text-wrap: balance;
    opacity: 0.7;
}

.collection-upload-wrap + .form-group {
    align-items: flex-end;
}

div#collection-upload-area {
    display: flex;
}

.btn-format {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px var(--space-15);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.btn-format:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    opacity: 1;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-25);
    position: relative;
    overflow: hidden;
    background-image: url("images/background_marble.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--taupe-light);
    position: relative;
    z-index: 1;
}

.login-box__logo {
    margin-bottom: var(--space-15);
    display: flex;
    justify-content: center;
}

.login-box__logo img {
    height: 100px;
    width: auto;
    display: block;
}

.login-box__sub {
    font-size: var(--fs-base);
    color: white;
    margin: var(--space-25) auto 40px;
    border: none;
    border-radius: 20px;
    padding: 7px var(--space-20);
    font-weight: 500;
    text-align: center;
    display: block;
    width: fit-content;
    background: var(--gold-dark);
}

.login-box .checkbox-label {
    margin-top: var(--space-10);
}

.login-box .form-group {
    margin-bottom: 3px;
}

.login-box .form-group + .form-group {
    margin-bottom: var(--space-20);
    margin-top: var(--space-20);
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.login-box__alt-toggle {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding: var(--space-15) 0 0;
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    color: var(--grey);
    cursor: pointer;
    transition: var(--transition);
}

.login-box__alt-toggle:hover {
    color: var(--gold-dark);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    font-size: var(--fs-base);
    text-transform: none;
    font-weight: normal;
    color: var(--grey);
    margin-bottom: var(--space-15);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.btn--danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid transparent;
}

#btn-generate-collection-thumb,
#btn-generate-font-preview {
    width: 100%;
    text-transform: none;
    letter-spacing: 0;
}

.btn--danger:hover {
    background: var(--danger-text);
    color: white;
	border-color: var(--danger-text);
}

.btn--icon {
    padding: var(--space-10);
    width: 42px;
    height: 42px;
    justify-content: center;
}

.app-toolbar .btn {
    padding: calc(var(--space-10) + 1px) var(--space-15);
}

.app-toolbar__filters input, .app-toolbar__filters .custom-select button {
    padding: 12px;
}

.btn--icon svg {
    width: 22px;
    height: 22px;
}

.w-full {
    width: 100%;
    justify-content: center;
}

button#btn-add-custom-section-styleguide,
button#btn-add-custom-section-collections {
    width: 20px;
    height: 20px;
    margin-top: -2px;
}

button#btn-add-custom-section-styleguide svg,
button#btn-add-custom-section-collections svg {
    width: 16px;
    height: 16px;
}

.card__body {
    background: var(--white);
    margin-top: 0px;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-25);
}

.card__header {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
}

.card--danger {
    border-color: var(--danger-border);
}

textarea.is-default-text {
    color: rgba(58, 60, 61, 0.5);
}

input.col-file-label {
    min-width: 130px;
}

#custom-item-files-body .col-file-path-display {
    width: 110px !important;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select + textarea {
    margin-top: 4px;
}

.custom-select__native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.custom-select__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-10);
    padding: 12px var(--space-15);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
    background: var(--white);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition);
    min-width: 150px;
}

.custom-select__trigger:hover {
    border-color: var(--gold-light);
}

.custom-select__trigger:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: var(--taupe-light);
}

.custom-select__trigger:disabled:hover {
    border-color: var(--taupe-dark);
}

.custom-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-right: 2px solid var(--grey);
    border-bottom: 2px solid var(--grey);
    transform: rotate(45deg);
    margin-top: -4px;
    opacity: 0.6;
    transition: transform var(--transition);
}

.custom-select.open .custom-select__trigger {
    border-color: var(--gold-dark);
}

.custom-select.open .custom-select__trigger::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.custom-select__panel {
    position: fixed;
    z-index: 2000;
    background: var(--white);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.custom-select__panel.hidden {
    display: none;
}

.custom-select__search {
    margin: 0 0 6px !important;
    padding: var(--space-10) var(--space-15);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
}

.custom-select__list {
    overflow-y: auto;
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: var(--taupe-dark) transparent;
}

.custom-select__list::-webkit-scrollbar {
    width: 6px;
}

.custom-select__list::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select__list::-webkit-scrollbar-thumb {
    background: var(--taupe-dark);
    border-radius: var(--radius-pill);
}

.custom-select__list::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.custom-select__option {
    padding: var(--space-10) var(--space-15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--fs-base);
    color: var(--grey);
}

.custom-select__option:hover {
    background: var(--creme);
}

.custom-select__option.is-selected {
    background: var(--gold-dark);
    color: var(--white);
}

.custom-select__empty {
    padding: var(--space-10) var(--space-15);
    color: var(--grey);
    opacity: 0.6;
    font-style: italic;
    font-size: var(--fs-base);
}

.form-hint {
    font-size: var(--fs-xs);
    color: var(--grey);
    margin-top: 4px;
}

.modal-box__body .form-hint {
    font-size: var(--fs-base);
}

.form-row {
    display: grid;
    gap: var(--space-10);
}

.form-row > .form-group {
    min-width: 0;
}

.contact-detail-grid .form-row.columns-2 {
	gap: 0;
    display: flex;
    flex-direction: column;
}

.form-row.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-row:last-child .form-group {
    margin-bottom: 0;
}

.form-row--upload {
    display: flex;
    align-items: flex-end;
    gap: var(--space-15);
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
    padding: 3px 0;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item__label {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    cursor: pointer;
    min-width: 0;
    font-size: var(--fs-base);
    font-weight: 300;
}

.checklist-item__label input[type="checkbox"] {
    flex-shrink: 0;
}

.checklist-item__text--done {
    text-decoration: line-through;
    color: var(--grey);
    opacity: 0.5;
}

.checklist-group-heading {
    font-weight: 500;
    color: var(--gold-dark);
    margin-top: 14px;
    margin-bottom: 4px;
}

.checklist-group-heading:first-child {
    margin-top: 0;
}

div#checklist-items {
    margin-bottom: var(--space-20);
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--taupe-dark) transparent;
}

div#checklist-items::-webkit-scrollbar {
    width: 5px;
}

div#checklist-items::-webkit-scrollbar-track {
    background: transparent;
}

div#checklist-items::-webkit-scrollbar-thumb {
    background: var(--taupe-dark);
    border-radius: var(--radius-pill);
}

div#checklist-items::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

details.collapsible-section.collapsible-section--checklist .collapsible-section__body {
    padding-bottom: 0;
}

.checklist-item:hover {
    background: var(--creme);
}

.p-table-wrap.academy-modules-box,
#material-variants-box {
    background: var(--taupe-light);
}

.academy-module {
    background: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-20);
    margin-bottom: 5px;
}

.academy-module__header {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    margin-bottom: 0px;
}

.academy-module__number {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--gold-dark);
    -webkit-text-stroke: 0.3px var(--gold-dark);
    white-space: nowrap;
    cursor: pointer;
}

.academy-module__delete {
    margin-left: auto;
}

.academy-module .cat-pill {
	padding: 12px var(--space-15);
	border-radius: var(--radius-sm);
}

.academy-module__title-input {
    flex: 1;
    min-width: 0;
    margin-left: var(--space-10);
}

.academy-module__title-input:focus {
    outline: none;
    border-bottom-color: var(--gold-dark);
}

.academy-module__toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--grey);
    transition: background var(--transition), color var(--transition);
}

.academy-module__toggle:hover {
    background: var(--creme);
    color: var(--gold-dark);
}

.academy-module__chevron {
    transition: transform var(--transition);
}

.academy-module.is-open .academy-module__chevron {
    transform: rotate(180deg);
}

.academy-module__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms ease;
    padding-top: 0;
    transition: var(--transition);
}

.academy-module.is-open .academy-module__body {
    grid-template-rows: 1fr;
    padding-top: var(--space-15);
}

.academy-module__body-inner {
    overflow: hidden;
}

.academy-lesson-row {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    padding: 5px 0;
}

.academy-lesson-row:last-child {
    border-bottom: none;
}

.academy-lesson-row__number {
    color: var(--green-light);
    font-weight: 500;
    font-size: var(--fs-body);
    width: 25px;
    flex-shrink: 0;
}

.academy-block-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-10);
    margin-bottom: 0px;
	justify-content: center;
}

.academy-block__body:has(.academy-block__image-upload) {
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

.academy-block__body input {
    margin-top: 0;
}

.academy-block .table-upload-btn {
    background: var(--taupe-dark);
}

.academy-block .table-upload-btn:hover {
    opacity:0.7;
}

.academy-block__image-upload .text-sm {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 220px;
    white-space: nowrap;
}

.academy-block-toolbar__btn {
    background: var(--taupe-light);
    border: none;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: var(--fs-xs);
    font-family: var(--font-body);
    color: var(--grey);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.academy-block-toolbar__btn:hover {
    background: var(--gold-dark);
    color: white;
}

.academy-block {
    border-radius: var(--radius-sm);
    padding: var(--space-15);
    margin-bottom: var(--space-10);
    background: white;
    cursor: grab;
    background: var(--taupe-light);
}

.academy-block .btn--danger {
    width: 32px;
    height: 32px;
    margin-left:auto;
}

.academy-block.is-dragging {
    opacity: 0.4;
}

.academy-block__header {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.academy-block__handle {
    color: var(--taupe-dark);
    font-size: 16px;
    line-height: 1;
}

.academy-block__type {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.academy-block__header-spacer {
    flex: 1;
}

.academy-block__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-10);
    cursor: default;
}

.academy-block__body textarea {
    width: 100%;
}

.academy-block__divider-preview {
    width: 100%;
    border-top: 1px dashed var(--taupe-dark);
    padding-top: var(--space-10);
}

.academy-block__image-upload {
    display: flex;
    align-items: center;
	width:100%;
    gap: var(--space-10);
}

#module-thumb-upload .academy-block__image-upload {
    justify-content: center;
}

.academy-block__thumb-preview {
    width: 78px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
	border: 1px solid var(--taupe-dark);
}

.academy-image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}

.academy-image-lightbox.is-visible {
    display: flex;
}

.academy-image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.academy-block__columns {
    display: grid;
    gap: var(--space-15);
    width: 100%;
}

.academy-block__columns--2 {
    grid-template-columns: 1fr 1fr;
}

.academy-block__columns--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.academy-block-col {
    border: 1px dashed var(--taupe-dark);
    border-radius: var(--radius-sm);
    padding: var(--space-10);
}

.academy-block-col-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-10);
}

.academy-block-col-toolbar .academy-block-toolbar__btn {
    padding: 4px var(--space-10);
}

.academy-block__mini-toolbar {
    display: flex;
    flex-shrink: 0;
    gap: 4px;
}

.academy-block__format-btn {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--grey);
    transition: background var(--transition), color var(--transition);
    margin-top: -3px;
}

.academy-block__format-btn svg {
    width: 15px;
    height: 15px;
}

.academy-block__format-btn:hover {
    color: var(--gold-dark);
}

.academy-block-col-list .academy-block {
    padding: 6px var(--space-10);
}

.form-row--upload .form-group {
    flex: 1;
}

.form-row--upload > .btn {
    flex-shrink: 0;
}

.form-group:has(#color-usage-note) {
    margin-top: var(--space-20);
}

.invoice-wrapper .form-row.columns-3 {
    margin-bottom: var(--space-10);
}

#invoice-form-view .invoice-wrapper,
#quote-form-view .invoice-wrapper {
    padding: 0px;
    background: white;
    border-radius: 3px;
}

.invoice-detail-grid {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: var(--space-20);
    align-items: start;
}

.invoice-detail-sidebar,
.invoice-detail-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
    min-width: 0;
}

.cd-access-row--off td:not(.p-table__row-actions) {
    opacity: 0.5;
}

.cd-access-row--off td.p-table__row-actions {
	background: rgba(255,255,255,0.5);
}

.cd-access-row--off:hover td.p-table__row-actions {
	background:#f4f1ee;
	opacity:1;
}
.mini-card[draggable="true"] {
    cursor: grab;
}

.mini-card.dragging {
    opacity: 0.4;
}

.academy-files__options {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
    margin-bottom: var(--space-20);
}

.academy-files__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-15);
}

.academy-files__grid .btn--icon {
	margin-left:auto;
}

.academy-files__cell {
    padding: var(--space-15);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
}

.academy-files__label {
    margin-bottom: var(--space-10);
    font-weight: 500;
}

.academy-files__cell .academy-block__image-upload .text-sm {
    flex: 1;
    min-width: 0;
    max-width: none;
}

.cd-thumb-cell {
    width: 78px;
    padding-right: 0;
}

.cd-thumb {
    display: block;
    width: 78px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cd-thumb--empty {
    background: var(--taupe-dark);
}

.cd-progress {
    width: 100%;
    max-width: 160px;
    height: 6px;
    margin-bottom: 4px;
    overflow: hidden;
    background: var(--taupe-dark);
    border-radius: var(--radius-pill);
}

.cd-progress__fill {
    height: 100%;
    background: var(--gold-dark);
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: var(--space-20);
    align-items: start;
}

.invoice-wrapper .custom-select__trigger {
    min-width: 1px;
}

#form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

#form-actions .ml-10 {
    margin-left: 0;
}

.invoice-wrapper h3,
.contact-detail-grid h3,
.invoice-detail-grid h3,
.brandkits h3 {
    border-bottom: 1px solid var(--taupe-dark);
    margin-bottom: var(--space-30);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
}

.brandkits h3 {
    margin-top: var(--space-10);
}

.invoice-wrapper h3:not(:first-child),
.contact-detail-grid h3:not(:first-child) {
    margin-top: 40px;
}

#items-table.p-table th {
    font-size: var(--fs-base);
    padding: 0 2px;
}

#items-table.p-table td {
    padding: 3px 2px;
    border: none;
    vertical-align: top;
}

#items-table.p-table td:nth-child(7),
#items-table.p-table th:nth-child(7) {
    padding-left: var(--space-15);
}

#items-table.p-table td input,
#items-table.p-table td select,
#items-table.p-table td textarea {
    margin-bottom: 0;
    width: 100%;
}

.p-table td,
.p-table th {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.portal-page td .status-pill {
    background: var(--green-light);
	color:white;
}

td .status-pill {
    width: 100%;
    padding: 0px var(--space-10);
    display: block;
}

.items-footer {
    display: flex !important;
    gap: 3px;
    padding: var(--space-10) 2px 0;
}

.items-footer.hidden {
    display: none !important;
}

.items-footer select {
    margin-bottom: 0;
}

.items-sum {
    font-size: var(--fs-base);
    text-align: right;
    margin-top: var(--space-15);
}

.items-sum strong {
    width: 90px;
    display: inline-block;
}

.items-sum .big {
    font-size: var(--fs-base);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

.sidebar .btn--icon {
    width: 32px;
    height: 32px;
}

.sidebar .btn--icon svg {
    width: 18px;
    height: 18px;
}

.sidebar .p-table td:last-child,
.sidebar .p-table th:last-child {
    padding: 6px 0;
    width: 32px;
}

.sidebar .p-table tr:hover td {
    cursor: pointer !important;
}

.sidebar tbody {
    border-top: 2px solid var(--taupe-light);
    border-bottom: 2px solid var(--taupe-light);
}

.sidebar .p-table th {
    padding-bottom: 2px;
}

.sidebar .p-table {
    margin: var(--space-30) 0;
}

.sidebar .p-table-wrap div:has(h3) {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sidebar #email-history-body tr:hover td {
    cursor: pointer;
}

.sidebar h3 {
    border: none;
    padding-bottom: 0;
    margin-bottom: var(--space-15);
}

.sidebar #payments-section h3 {
    margin-bottom: 3px;
}

.alert {
    padding: var(--space-15) var(--space-15);
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    margin-bottom: 18px;
}

.alert--error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.alert--success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--taupe-dark);
    margin-bottom: var(--space-25);
}

.tab {
    padding: var(--space-10) var(--space-20);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--grey);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-body);
}

.tab:hover {
    color: var(--gold-light);
}

.tab.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-dark);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.upload-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 8px));
    background: var(--grey);
    color: var(--white);
    padding: 14px var(--space-20);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    width: 260px;
    opacity: 0;
    transition: all 300ms ease;
    pointer-events: none;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}

.upload-progress.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.upload-progress__label {
    display: block;
    margin-bottom: var(--space-10);
    font-size: var(--fs-xs);
}

.upload-progress__bar {
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.upload-progress__fill {
    height: 100%;
    width: 0%;
    background: var(--gold-light);
    transition: width 120ms linear;
}

.portal-footer {
    background: var(--white);
    padding: 28px 0;
    text-align: center;
}

.portal-footer__logo {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    color: var(--gold-dark);
    margin-bottom: 4px;
    -webkit-text-stroke: 0.3px var(--gold-dark);
}

.portal-footer__sub {
    font-size: var(--fs-base);
    color: var(--grey);
}

.admin-empty {
    text-align: center;
    padding: 48px;
}

.cmyk-row,
.rgb-row {
    display: flex;
    gap: 0px;
}

.collection-group-heading {
    grid-column: 1 / -1;
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: var(--space-20) 0 var(--space-10);
}

.collection-group-heading:first-child {
    margin-top: 0;
}

.settings-section {
    margin-bottom: var(--space-10);
}

.settings-section:not(:first-child) {
    padding-top: var(--space-20);
}

.settings-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    cursor: pointer;
    user-select: none;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-dark);
    margin-bottom: var(--space-15);
}

.settings-section .toggle-icon {
    font-size: var(--fs-xs);
    transition: transform var(--transition);
}

.settings-section.expanded .toggle-icon {
    transform: rotate(90deg);
}

.settings-section .col-body {
    display: none;
}

.settings-section.expanded .col-body {
    display: block;
}

.placeholder-tag {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: var(--fs-xs);
    background: var(--taupe-light);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    padding: 1px 6px;
    margin: 1px 0;
    cursor: pointer;
    color: var(--grey);
    transition: all var(--transition);
}

.placeholder-tag:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.angle-input {
    width: 60px;
}

.gradient-preview {
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--taupe-dark);
}

.gradient-stop-row {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.gradient-stop-swatches {
    flex: 1;
}

.text-danger {
    color: var(--danger-text);
}

.text-success {
    color: var(--success-text);
}

.open-amount-value {
    font-size: 18px;
}

.col-body {
    display: none;
}

.col-body.open {
    display: block;
}

.hidden-file-input {
    display: none;
}

.lt-name-remove {
    display: inline-flex;
    cursor: pointer;
    color: var(--danger-text);
    transition: color var(--transition);
}

.lt-name-remove svg {
    width: 16px;
    height: 16px;
}

.lt-name-remove:hover {
    color: var(--gold-dark);
}

.lt-name-edit {
    display: inline-flex;
    cursor: pointer;
    color: var(--grey);
    opacity: 0.6;
    transition: color var(--transition), opacity var(--transition);
}

.lt-name-edit svg {
    width: 16px;
    height: 16px;
}

.lt-name-edit:hover {
    color: var(--gold-dark);
    opacity: 1;
}

.mt-8 {
    margin-top: var(--space-10);
}

.mt-12 {
    margin-top: var(--space-15);
}

.mt-16 {
    margin-top: var(--space-15);
}

.mt-24 {
    margin-top: var(--space-25);
}

.ml-10 {
    margin-left: var(--space-10);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-8 {
    margin-bottom: var(--space-10);
}

.mb-16 {
    margin-bottom: var(--space-15);
}

.mb-24 {
    margin-bottom: var(--space-25);
}

.mb-32 {
    margin-bottom: var(--space-30);
}

.mb-50 {
    margin-bottom: var(--space-50);
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    align-items: center;
}

.gap-8 {
    gap: var(--space-10);
}

.flex-1 {
    flex: 1;
}

.text-md {
    font-size: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-20);
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--space-20);
}

.grid-4 + .grid-4 {
    margin-top: -5px !important;
}

.badge {
    display: inline-block;
    padding: 2px var(--space-10);
    border-radius: var(--radius-pill);
    font-size: var(--fs-base);
    font-weight: 500;
}

.divider {
    height: 1px;
    background: var(--taupe-dark);
    margin: 28px 0;
}

.p-table tr:hover td {
    background: var(--creme);
    cursor: pointer;
}

.invoice-detail-grid .p-table tr:hover td {
    cursor: default;
}

.p-table td.line-total,
.p-table th.col-w-100 {
    text-align: right;
}

#items-table td,
#items-table th {
    width: 15%;
}

#items-table td:nth-child(2),
#items-table th:nth-child(2) {
    width: 8%;
}

#items-table td:nth-child(3),
#items-table th:nth-child(3) {
    width: 10%;
}

#items-table td:first-child,
#items-table th:first-child {
    width: 40%;
}

#items-table td.line-total,
#items-table th:last-child {
    width: 14%;
    vertical-align: middle !important;
    white-space: nowrap;
    padding-right: 0;
}

.input-w-120 {
    max-width: 120px;
}

.input-w-140 {
    max-width: 140px;
}

.input-w-160 {
    max-width: 160px;
}

.input-w-260 {
    max-width: 260px;
}

.checkbox-inline {
    width: auto;
    margin-bottom: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.white-space-pre-wrap {
    white-space: pre-wrap;
}

.white-space-nowrap {
    white-space: nowrap;
}

.cursor-default {
    cursor: default;
}

.format-tag--disabled {
    opacity: 0.3;
    cursor: default;
}

.btn-download-all--disabled {
    opacity: 0.4;
    cursor: default;
}

tbody#custom-item-files-body td {
    padding: 5px 5px 5px 0;
}

.col-file-path-display {
    width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

div#custom-item-thumb-area {
    display: flex;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: var(--space-20);
}

.app-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 60px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: var(--space-30);
}

.pill-row + .tile-grid {
    margin-top: var(--space-20);
}

#flag-pills {
    justify-content: flex-start;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px var(--space-15);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    cursor: pointer;
    border: 1.5px solid var(--taupe-dark);
    background: var(--white);
    color: var(--grey);
    transition: all var(--transition);
}

.cat-pill svg {
    width: 14px;
    height: 14px;
}

.cat-pill.selected {
    background: var(--creme);
    border: 1px solid var(--gold-dark);
    color: var(--grey);
}

.product-access-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
    max-height: 220px;
    overflow-y: auto;
    padding: var(--space-15);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
}

.product-access-list label {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    margin: 0;
    font-size: var(--fs-base);
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.cat-pill:hover {
    opacity: 0.7;
}

.cat-pill--studio {
    color: var(--rose-dark);
    border-color: var(--rose-dark);
}

.cat-pill--studio.selected {
    background: var(--rose-dark);
    color: white;
}

.cat-pill--eba {
    color: var(--green-dark);
    border-color: var(--green-dark);
}

.cat-pill--eba.selected {
    background: var(--green-dark);
    color: white;
}

.cat-pill--content {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.cat-pill--content.selected {
    background: var(--gold-dark);
    color: white;
}

.cat-pill--keine_antwort {
    border-color: #c99a2e;
    color: #c99a2e;
}

.cat-pill--keine_antwort.selected {
    background: #c99a2e;
}

.cat-pill--bestaetigt {
    border-color: var(--success-text);
    color: var(--success-text);
}

.cat-pill--bestaetigt.selected {
    background: var(--success-text);
}

.cat-pill--abgelehnt {
    border-color: var(--danger-text);
    color: var(--danger-text);
}

.cat-pill--abgelehnt.selected {
    background: var(--danger-text);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 5px;
    margin-bottom: var(--space-20);
}

.tile-btn {
    padding: var(--space-20) var(--space-10);
    border: 1px solid var(--creme);
    border-radius: var(--radius-sm);
    background: var(--creme);
    cursor: pointer;
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
    transition: all var(--transition);
}

.tile-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto 6px;
    stroke: currentColor;
}

.tile-btn.selected {
    outline: 1px solid var(--gold-dark);
    outline-offset: -1px;
    color: var(--gold-dark);
}

.tile-btn:hover {
    border-color: var(--gold-dark);
}

.flag-pill.selected--paused {
    background: var(--flag-paused-bg);
    border-color: var(--flag-paused-border);
    color: var(--flag-paused-text);
}

.flag-pill.selected--complaint {
    background: var(--flag-complaint-bg);
    border-color: var(--flag-complaint-border);
    color: var(--flag-complaint-text);
}

.inline-add {
    display: flex;
    gap: var(--space-10);
    margin-top: var(--space-10);
}

.inline-add.hidden {
    display: none;
}

.inline-add input {
    flex: 1;
}

.page-header {
    text-align: center;
    background: var(--white);
    padding: 36px var(--space-25) 28px;
    box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.page-header h1,
.portal-header__name {
    font-size: clamp(29px, 4vw, 42px);
    margin-bottom: 0;
}

.page-header__meta {
    font-size: var(--fs-base);
    color: var(--grey);
}

.page-header.hidden {
    display: none;
}

.page-header__link {
    padding-bottom: 0px;
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.page-header__url {
    display: inline-block;
    align-items: center;
    margin: 0 auto;
    border: 1px solid var(--taupe-dark);
    padding: 12px var(--space-15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--grey);
    transition: all var(--transition);
    line-height: normal;
    width: 100%;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.page-header__url:hover {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.entity-switch {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: var(--space-15);
    border: 1px solid var(--taupe-dark);
    padding: var(--space-10) var(--space-20);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-30);
}

.entity-switch__label {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--taupe-dark);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color var(--transition), font-weight var(--transition);
}

.entity-switch[data-entity="mb"] .entity-switch__label--mb,
.entity-switch[data-entity="eba"] .entity-switch__label--eba {
    color: var(--grey);
    font-weight: 500;
}

.entity-switch__track {
    position: relative;
    display: block;
    width: 64px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: var(--taupe-light);
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.entity-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rose-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left var(--transition), background var(--transition);
    box-shadow: var(--shadow-sm);
}

.entity-switch__thumb img {
    width: 16px;
    height: 16px;
    filter: invert(1) brightness(3);
}

.entity-switch[data-entity="eba"] .entity-switch__thumb {
    left: calc(100% - 30px);
    background: var(--green-dark);
}

body[data-entity="eba"] .btn:not(.btn--danger) {
    background: var(--green-light);
    border-color: var(--green-light);
}

body[data-entity="eba"] .btn:not(.btn--danger):hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

body[data-entity="eba"] .nav__center-link--mb-only,
body:not([data-entity="eba"]) .nav__center-link--eba-only {
    display: none;
}

.page-header__toggle-placeholder {
    display: block;
    visibility: hidden;
    height: 32px;
    margin-top: var(--space-15);
    margin-bottom: var(--space-30);
    padding: var(--space-10) var(--space-20);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    box-sizing: content-box;
}

.app-toolbar__sentinel {
    height: 1px;
}

body:has(.portal-header) .app-toolbar {
    margin-top: -70px;
}

.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-15);
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: sticky;
    top: 64px;
    z-index: 2;
    padding: 0;
    transition: var(--transition);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.app-toolbar #invoice-search {
    padding: 12px;
}

.app-toolbar.stuck {
    background: white;
    margin: 0px -10px;
    padding: 0 var(--space-10) var(--space-10);
    box-shadow: var(--shadow-sm);
}

.app-toolbar__left,
.app-toolbar__right {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.app-toolbar__filters {
    display: flex;
    gap: var(--space-10);
    align-items: center;
}

.app-toolbar__filters.hidden {
    display: none;
}

.cd-toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.cd-toolbar-actions.hidden {
    display: none;
}

.app-toolbar__filters select,
.app-toolbar__filters input[type="text"] {
    width: auto;
    min-width: 250px;
}

.board-group {
    margin-bottom: var(--space-30);
    padding-top: var(--space-20);
    padding-bottom: 60px;
    margin-bottom: 0px;
}

.board-group:first-child {
    padding-top: var(--space-15);
}

.board-group.board-group--collapsible:not(.expanded) {
    padding-bottom: 0px;
}

.board-group__title {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-dark);
    margin-bottom: var(--space-15);
}

.board-group--collapsible .board-group__title {
    cursor: pointer;
    opacity: 1;
}

.board-group__title .toggle-icon {
    font-size: var(--fs-xs);
    transition: transform var(--transition);
}

.board-group--collapsible.expanded .toggle-icon {
    transform: rotate(90deg);
}

.board-group__count {
    background: #f0e2cd;
    color: var(--grey);
    font-size: var(--fs-base);
    padding: 1px var(--space-10);
    border-radius: var(--radius-pill);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.board-group__body {
    display: none;
}

.board-group--collapsible.expanded .board-group__body {
    display: block;
}

.board-group:not(.board-group--collapsible) .board-group__body {
    display: block;
}

.board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 5px;
    align-items: stretch;
}

.board-col {
    background: var(--taupe-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.board-col__header {
    padding: var(--space-25) var(--space-30) var(--space-15);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.board-col__title {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-col__count {
    background: var(--taupe-dark);
    color: var(--grey);
    font-size: var(--fs-base);
    padding: 1px var(--space-10);
    border-radius: var(--radius-pill);
}

.board-col__body {
    padding: 0px var(--space-20) var(--space-20) var(--space-30);
    flex: 1;
    min-height: 60px;
    max-height: 350px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--taupe-dark) transparent;
}

.board-col__body.drag-over {
    background: rgba(var(--gold-dark-rgb), 0.08);
    border-radius: var(--radius-sm);
}

.board-col__body::-webkit-scrollbar {
    width: 5px;
}

.board-col__body::-webkit-scrollbar-track {
    background: transparent;
}

.board-col__body::-webkit-scrollbar-thumb {
    background: var(--taupe-dark);
    border-radius: var(--radius-pill);
}

.board-col__body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.board-col__add {
    display: block;
    text-align: center;
    padding: var(--space-10) var(--space-30) var(--space-20);
    font-size: var(--fs-base);
    color: var(--grey);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity var(--transition), color var(--transition);
}

.board-col__add:hover {
    opacity: 1;
    color: var(--gold-dark);
}

.p-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: var(--space-20);
    margin-bottom: var(--space-10);
    cursor: grab;
    border-left: 5px solid var(--taupe-dark);
    transition: box-shadow var(--transition), transform var(--transition);
}

.p-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.p-card--paused {
    opacity: 0.6;
}

.p-card.dragging {
    opacity: 0.4;
}

.p-card--studio {
    border-left-color: var(--rose-dark);
}

.p-card--eba {
    border-left-color: var(--green-dark);
}

.p-card--content {
    border-left-color: var(--gold-dark);
}

.p-table__cat-flag {
    width: 4px;
    padding: 0 !important;
}

.p-table__cat-flag--studio {
    background: var(--rose-dark) !important;
}

.p-table__cat-flag--eba {
    background: var(--green-dark) !important;
}

.p-table__cat-flag--content {
    background: var(--gold-dark) !important;
}

#project-list-table,
#customers-list-table,
#invoice-list-table,
#quote-list-table,
#product-list-table {
    table-layout: fixed;
}

#project-list-table .col-title {
    width: 20%;
}

#project-list-table .col-customer {
    width: 20%;
}

#project-list-table .col-project_type {
    width: 20%;
}

#project-list-table .col-status {
    width: 20%;
}

#project-list-table .col-deadline {
    width: 15%;
}

#project-list-table .col-billed {
    width: 9%;
}

#customers-list-table .col-customer_number {
    width: 10%;
}

#customers-list-table .col-name {
    width: 22%;
}

#customers-list-table .col-fullname {
    width: 22%;
}

#customers-list-table .col-email {
    width: 35%;
}

#customers-list-table .col-project_count {
    width: 11%;
}

#customers-list-table .col-brandkit {
    width: 190px;
}

#invoice-list-table .col-number {
    width: 13%;
}

#invoice-list-table .col-company_name {
    width: 23%;
}

#invoice-list-table .col-name {
    width: 20%;
}

#invoice-list-table .col-issue_date {
    width: 10%;
}

#invoice-list-table .col-due_date {
    width: 10%;
}

#invoice-list-table .col-amount {
    width: 10%;
}

#invoice-list-table .col-status {
    width: 10%;
}

#invoice-list-table .p-table__row-actions {
    width: 170px;
}

#quote-list-table .col-number {
    width: 13%;
}

#quote-list-table .col-company_name {
    width: 23%;
}

#quote-list-table .col-name {
    width: 20%;
}

#quote-list-table .col-issue_date {
    width: 10%;
}

#quote-list-table .col-valid_until {
    width: 10%;
}

#quote-list-table .col-amount {
    width: 10%;
}

#quote-list-table .col-status {
    width: 10%;
}

#quote-list-table .p-table__row-actions {
    width: 170px;
}

#product-list-table .col-article_number {
    width: 10%;
}

#product-list-table .col-name {
    width: 20%;
}

body[data-entity=eba] #product-list-table .col-name {
    width: 35%;
}

#product-list-table .col-product_group {
    width: 24%;
}

body[data-entity=eba] #product-list-table .col-product_group {
    width: 13%;
}

#product-list-table .col-unit {
    width: 10%;
}

#product-list-table .col-price {
    width: 10%;
}

#product-list-table .col-tax_rate {
    width: 10%;
}

#product-list-table .col-usage_count {
    width: 10%;
}

#product-list-table .col-active {
    width: 10%;
}

#product-list-table .p-table__row-actions {
    width: 110px;
}

.col-title,
.col-name,
.col-company_name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.p-card__deadline-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--danger-text);
    border-radius: var(--radius-pill);
    padding: 0;
}

.p-card__deadline-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    color: white;
}

.p-card__title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-base);
    color: var(--grey);
    margin-bottom: 4px;
}

.p-card__meta {
    font-size: var(--fs-base);
    color: var(--grey);
    opacity: 0.75;
    margin-bottom: 6px;
}

.p-card__flags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: auto;
}

.p-card__flag {
    font-size: var(--fs-xs);
    padding: 1px 9px 0px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    margin-bottom: 6px;
    display: inline-block;
}

.p-card__title-row {
    display: flex;
    justify-content: space-between;
}

.p-card__flag--paused {
    background: var(--taupe-light);
    color: #6b6d6e;
}

.p-card__flag--complaint {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.p-card__flag--billed {
    background: var(--success-bg);
    color: var(--success-text);
}

.p-card__flag--round {
    background: rgba(var(--gold-dark-rgb), 0.12);
    color: var(--gold-tint-text);
}

.p-card__flag--offer-confirmed {
    background: var(--success-bg);
    color: var(--success-text);
}

.p-card__flag--offer-rejected {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.p-card__flag--offer-pending {
    background: var(--taupe-light);
    color: var(--grey);
}

.p-card__conversation {
    font-size: var(--fs-xs);
    color: var(--grey);
    margin-top: 6px;
}

.p-card__deadline {
    font-size: var(--fs-xs);
    margin-top: 6px;
    color: var(--grey);
}

.p-card__deadline--soon {
    color: var(--danger-text);
    font-weight: 500;
}

.p-card__footer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-10);
    margin-top: 6px;
}

.p-card__footer-row .p-card__deadline {
    margin-top: 0;
}

.items-heading {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.item-row-actions {
    display: flex;
    gap: 2px;
    align-items: center;
}

.item-row-actions .btn--icon {
    width: 28px;
    height: 28px;
    padding: 4px;
}

.item-row-actions .btn--icon:disabled {
    opacity: 0.3;
    cursor: default;
}

#items-table.p-table td:has(.item-row-actions) {
    vertical-align: middle;
    padding-left: var(--space-10);
}

.item-desc-toolbar,
.format-toolbar {
    margin-bottom: 4px;
    display: flex;
    gap: 4px;
}

.field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-head > .btn--icon {
    width: 24px;
    height: 24px;
    padding: 3px;
    margin-top: -6px;
}

.field-head > .btn--icon svg {
    width: 16px;
    height: 16px;
}

.field-head .format-toolbar {
    margin-bottom: 0;
	margin-top: -7px;
}

.item-desc-toolbar .btn--icon,
.format-toolbar .btn--icon {
    width: 26px;
    height: 26px;
    padding: 4px;
}

.item-desc-preview {
    cursor: pointer;
    padding: 8px var(--space-15) 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: var(--radius-sm);
    border: 1px solid var(--taupe-dark);
    max-width: 305px;
    background: white;
}

.item-desc-preview:hover {
    background: vwhite;
}

.item-desc-preview--readonly {
    cursor: not-allowed;
    background: var(--taupe-light);
    opacity: 0.6;
}

.item-desc-preview--readonly:hover {
    background: var(--taupe-light);
}

.preview-only .p-table tr:hover td {
    background: white;
    cursor: default;
}

.preview-only #tax-treatment-hint {
    display: none;
}

textarea#inv-intro,
textarea#inv-footer {
    margin-top: 4px;
}

.p-table-wrap {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.p-table-wrap--list {
    background: var(--taupe-light);
    padding: var(--space-30);
}

.sidebar .p-table-wrap {
    padding: var(--space-30);
}

.p-table {
    width: 100%;
    border-collapse: collapse;
}

.p-table th {
    text-align: left;
    font-size: var(--fs-base);
    color: var(--grey);
    padding: 0 0 var(--space-10) var(--space-15);
    font-weight: 500;
}

.p-table th.sortable-th {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: var(--space-30);
}

.p-table th.sortable-th:hover {
    color: var(--gold-dark);
}

.p-table th.sortable-th::before {
    content: "\2195";
    position: absolute;
    left: 16px;
    opacity: 0.35;
    font-size: var(--fs-xs);
}

.p-table th.sortable-th.sort-asc::before {
    content: "\2191";
    opacity: 1;
    color: var(--gold-dark);
}

.p-table th.sortable-th.sort-desc::before {
    content: "\2193";
    opacity: 1;
    color: var(--gold-dark);
}

.p-table td {
    background: white;
    padding: var(--space-15) var(--space-15);
    border-bottom: 2px solid var(--taupe-light);
    font-size: var(--fs-base);
    color: var(--grey);
}

.cell-truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.p-table td:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.p-table td:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.p-table tr:last-child td {
    border-bottom: none;
}

.p-table td.p-table__row-actions {
    padding: 6px var(--space-15);
    white-space: nowrap;
    overflow: visible;
}

.p-table .row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.p-table .row-actions .btn--icon {
    width: 32px;
    height: 32px;
    padding: 6px;
}

.p-table .row-actions .btn--icon svg {
    width: 18px;
    height: 18px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-15);
    margin-top: var(--space-15);
}

.pagination .btn--icon {
    width: 32px;
    height: 32px;
}

.pagination__sizes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination__size {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--grey);
    font-size: var(--fs-base);
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition);
}

.pagination__size:hover:not(.active) {
    background: var(--creme);
}

.pagination__size.active {
    background: var(--gold-dark);
    color: var(--white);
    cursor: default;
}

.pagination__right {
    display: flex;
    align-items: center;
    gap: var(--space-15);
}

.pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination__page {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--grey);
    font-size: var(--fs-base);
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition);
}

.pagination__page:hover:not(:disabled) {
    background: var(--creme);
}

.pagination__page.active {
    background: var(--gold-dark);
    color: var(--white);
    cursor: default;
}

.pagination__ellipsis {
    color: var(--grey);
    padding: 0 2px;
}

.p-row--warning td,
.p-row--warning td .status-pill {
    color: var(--danger-text);
    font-weight: 500;
}

.p-row--warning td .status-pill {
    background: var(--danger-bg);
}

.status-pill {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    padding: 3px var(--space-10);
    border-radius: var(--radius-pill);
    background: var(--taupe-light);
    color: var(--grey);
    white-space: nowrap;
    font-weight: 500;
    -webkit-text-stroke: 0;
    text-align: center;
}

.status-pill--storniert,
.status-pill--danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.status-pill--success {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-pill--warning {
    background: rgba(var(--gold-dark-rgb), 0.2);
    color: var(--gold-tint-text);
}

.status-pill--info {
    background: var(--info-bg);
    color: var(--info-text);
}

.lock-badge {
    margin-top: -2px;
    font-family: var(--font-body);
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.6;
}

#quote-status-actions .status-pill {
    width: calc(50% - 3px);
    border-radius: 2px;
    padding: var(--space-10) var(--space-20);
}

#quote-status-actions {
    margin-top: var(--space-20);
    gap: 5px;
    display: flex;
    flex-wrap: wrap;
}

.quote-card {
    position: relative;
    background-image: linear-gradient(135deg, rgba(58, 60, 61, 0.62), rgba(58, 60, 61, 0.42)), url("images/background_marble.jpg");
    background-size: cover;
    background-position: center;
    justify-content: center;
    min-height: 390px;
}

.quote-card h3 {
    color: var(--white);
    font-size: 60px;
    -webkit-text-stroke: 0.2px white;
    text-align: center;
}

.daily-quote {
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 30px;
    line-height: 1.5;
    color: var(--white);
    max-width: 100%;
    padding: 0 var(--space-30);
    text-wrap: balance;
    -webkit-text-stroke: 0.2px white;
}

.quote-card h3,
.daily-quote {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.doc-number-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-10);
    font-size: var(--fs-base);
    color: var(--grey);
}

.doc-number-row input {
    margin-bottom: 0;
    padding: 4px var(--space-10);
    width: 140px;
}

.status-pill--clickable {
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    opacity: 0.55;
    transition: opacity var(--transition);
}

.status-pill--clickable:hover {
    opacity: 0.85;
}

.status-pill--clickable.active {
    opacity: 1;
}

.data-table.p-table th {
    font-size: var(--fs-base);
    padding: 0 var(--space-10) var(--space-10);
}

.data-table.p-table td {
    padding: var(--space-10) var(--space-10);
    border: none;
    vertical-align: middle;
}

.data-table.p-table td > input:not([type="color"]):not([type="hidden"]),
.data-table.p-table td > select {
    width: 100%;
    margin-bottom: 0;
}

.data-table.p-table td input[type="color"] {
    margin-bottom: 0;
}

.data-table.p-table tr:hover td {
    background: white;
    cursor: default;
}

.table-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: var(--space-10) 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    color: var(--grey);
    cursor: pointer;
    white-space: nowrap;
    background: var(--taupe-light);
    transition: all var(--transition);
    text-transform: none;
    margin-bottom: 0;
}

.table-upload-btn svg {
    width: 16px;
    height: 16px;
}

.table-upload-btn:hover {
    background: var(--taupe-dark);
}

.table-thumb-wrap {
    width: 44px;
    height: 44px;
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--space-10);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.table-thumb {
    height: 100%;
    width: 100%;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 2px;
}

.attachment-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--taupe-dark);
    display: block;
}

.attachment-thumb--file {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--taupe-light);
    color: var(--grey);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.form-group--upload {
    display: flex;
    gap: var(--space-15);
    align-items: stretch;
}

.form-placeholder-image {
    flex-shrink: 0;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--creme);
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
}

#tab-guideline .form-placeholder-image {
    width: 200px !important;
}

#tab-guideline .form-placeholder-image img {
    width: 100%;
    height: 100%;
    max-height: inherit;
}

#tab-guideline h3 {
    border-bottom: 0;
    padding: 0;
    margin-bottom: 0;
    margin-top: 0;
}

#tab-guideline .text-sm {
    margin-bottom: var(--space-20);
}

.form-placeholder-image img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.form-placeholder-image .font-preview-sample {
    font-size: 18px;
    line-height: 1;
    color: var(--grey);
}

.form-placeholder-image--empty {
    background: repeating-linear-gradient(45deg, var(--creme), var(--creme) 6px, var(--white) 6px, var(--white) 12px);
}

.form-group-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.form-group-content label {
    margin-bottom: 0;
}

.form-upload-row {
    display: flex;
    align-items: center;
    gap: var(--space-15);
}

.form-upload-row .form-hint {
    margin: 0;
}

#font-upload-area {
    display: flex;
}

#font-upload-area .table-upload-btn {
    width: calc(100% - 54px);
    justify-content: center;
}

.unmatched-actions {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.unmatched-actions .custom-select {
    flex: 1;
    min-width: 0;
}

#matches-table .col-desc,
#unmatched-table .col-desc {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.groups-list-name-input {
    flex: 1;
    min-width: 0;
    width: auto;
    border: 1px solid transparent;
    background: transparent;
    padding: 6px var(--space-10);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
}

.groups-list-name-input:hover,
.groups-list-name-input:focus {
    border-color: var(--taupe-dark);
    background: var(--white);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58, 60, 61, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-25);
}

.app-confirm-message,
.app-alert-message {
    white-space: pre-line;
    line-height: 1.6;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--shadow-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--taupe-dark) transparent;
}

.modal-box::-webkit-scrollbar {
    width: 5px;
}

.modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.modal-box::-webkit-scrollbar-thumb {
    background: var(--taupe-dark);
    border-radius: var(--radius-pill);
}

.modal-box::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.modal-box:has(> .modal-box__body) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-box:has(> .modal-box__body) .modal-box__body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--taupe-dark) transparent;
	padding: 30px 0 0 0;
}

.modal-box:has(> .modal-box__body) .modal-box__body.has-scroll {
    padding-right: var(--space-30);
    margin-right: -40px;
    padding-bottom: var(--space-30);
    padding-top: var(--space-30);
}

.modal-box:has(> .modal-box__body) .modal-box__body::-webkit-scrollbar {
    width: 5px;
}

.modal-box:has(> .modal-box__body) .modal-box__body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-box:has(> .modal-box__body) .modal-box__body::-webkit-scrollbar-thumb {
    background: var(--taupe-dark);
    border-radius: var(--radius-pill);
}

.modal-box:has(> .modal-box__body) .modal-box__body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.modal-box--420 {
    max-width: 420px;
}

.modal-box--440 {
    max-width: 440px;
}

.modal-box--480 {
    max-width: 480px;
}

.modal-box--900 {
    max-width: 900px;
}

.mail-preview-frame {
    display: block;
    width: 100%;
    height: 65vh;
    margin: 0 auto;
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.mail-preview-frame--mobile {
    max-width: 390px;
}

.update-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.settings-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
    margin-bottom: 16px;
}

.settings-box-head h3 {
    margin: 0;
}

.modal-box__actions--end {
    justify-content: flex-end;
}

.modal-box__actions--stack {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-10);
}

.modal-box__close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    cursor: pointer;
    transition: all var(--transition);
    background: white;
}

.modal-box__close:hover {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.modal-box__close svg {
    width: 20px;
    height: 20px;
}

#csv-mapping-modal {
    z-index: 1100;
}

#app-confirm-modal,
#app-alert-modal,
#app-prompt-modal {
    z-index: 1200;
}

.modal-box h3 {
    margin-bottom: var(--space-25);
}

.modal-box__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-15);
    position: sticky;
    bottom: 0;
    margin: 40px -40px -40px;
    padding: var(--space-20) 40px 0;
    background: var(--white);
}

/*.modal-box__actions {
    border-top: 1px solid var(--taupe-light);
}*/

.modal-box__actions-right {
    display: flex;
    gap: var(--space-10);
    margin-left: auto;
}

.modal-box__actions button[type="submit"] {
    margin-left: auto;
}

.modal-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-15);
    text-align: center;
    flex-direction: column;
    padding-bottom: var(--space-20);
    border-bottom: 1px solid var(--taupe-light);
}

.modal-box__header h3 {
    margin-bottom: 0;
}

.lesson-content-modal__breadcrumb {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    color: var(--grey);
    opacity: 0.6;
    margin-bottom: 2px;
}

.round-stepper {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.round-stepper button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--taupe-dark);
    background: var(--white);
    cursor: pointer;
    font-size: var(--fs-base);
    color: var(--grey);
}

.round-stepper button:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.round-stepper__value {
    font-family: var(--font-display);
    font-size: var(--fs-headline-sm);
    min-width: 24px;
    text-align: center;
}

.empty-hint {
    text-align: center;
    padding: var(--space-30) var(--space-10);
    color: var(--grey);
    opacity: 0.6;
    font-size: var(--fs-base);
    font-style: italic;
}

.collapsible-section {
    margin-bottom: 3px;
    overflow: hidden;
}

.collapsible-section summary {
    background: var(--taupe-light);
    border-radius: var(--radius-sm);
    padding: 5px var(--space-15);
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-body);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapsible-section summary::-webkit-details-marker {
    display: none;
}

.collapsible-section summary::after {
    content: "+";
    font-size: var(--fs-headline-sm);
    color: var(--gold-dark);
    transition: transform var(--transition);
}

.collapsible-section[open] summary::after {
    transform: rotate(45deg);
}

.collapsible-section summary:hover {
    background: var(--creme);
}

.collapsible-section__body {
    padding: var(--space-25) 0 var(--space-15);
}

.collapsible-section .form-group:last-child,
.collapsible-section .form-row:last-child,
.collapsible-section__body .pill-row {
    margin-bottom: 0;
}

.collapsible-section__body .pill-row + div {
    margin-top: 325x;
}

.collapsible-section__body .form-row.columns-2:last-child {
    margin-bottom: var(--space-10);
}

.collapsible-section[open] summary {
    background: var(--taupe-dark);
}

.checklist-item .btn {
    width: 16px;
    height: 16px;
}

.checklist-item .btn .btn--icon svg {
    width: 16px;
    height: 16px;
}

#list-completed-section > summary {
    background: none;
    padding: 5px 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-dark);
}

#list-completed-section > summary:hover {
    background: none;
}

#list-completed-section[open] > summary {
    background: none;
}

.dash-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-15);
    flex-wrap: wrap;
    margin-bottom: var(--space-25);
}

.dash-filters__group {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.dash-filters select {
    width: auto;
    margin-bottom: 0;
}

.dash-filters .custom-select {
    width: auto;
}

body.privacy-blur-active .stat-tile__value,
body.privacy-blur-active .stat-tile__sub,
body.privacy-blur-active .reminders-list__amount,
body.privacy-blur-active canvas {
    filter: blur(6px);
    user-select: none;
    transition: filter var(--transition);
}

.stat-tile {
    margin-bottom: 0;
    text-align: center;
}

.stat-tile h3 {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--grey);
    opacity: 0.7;
    -webkit-text-stroke: 0;
}

.stat-tile__value {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--grey);
    line-height: 1.1;
    -webkit-text-stroke: 0.3px var(--grey);
}

.stat-tile__value .text-danger {
    -webkit-text-stroke: 0.3px var(--danger-text);
}

.stat-tile__sub {
    font-size: var(--fs-base);
    color: var(--grey);
    opacity: 0.6;
    margin-top: 13px;
}

.chart-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    margin-bottom: var(--space-20);
}

.chart-card__canvas-wrap {
    position: relative;
    flex: 1;
}

.chart-card__canvas-wrap--small {
    max-height: 180px;
}

.card__body.chart-card h3,
.card__body.chart-card .form-hint {
    text-align: center;
}

.reminders-list {
    list-style: none;
}

.reminders-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-15);
    padding: var(--space-15) 0;
    border-bottom: 1px solid var(--taupe-light);
    cursor: pointer;
}

.reminders-list li:last-child {
    border-bottom: none;
}

.reminders-list li:hover {
    opacity: 0.7;
}

.product-rank-wrap {
    max-height: 310px;
    overflow-y: auto;
    padding-right: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--taupe-dark) transparent;
}

.product-rank-wrap::-webkit-scrollbar {
    width: 5px;
}

.product-rank-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.product-rank-wrap::-webkit-scrollbar-thumb {
    background: var(--taupe-dark);
    border-radius: var(--radius-pill);
}

.product-rank-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.product-rank-list li {
    cursor: default;
}

.product-rank-list li:hover {
    opacity: 1;
}

.product-rank-row__main {
    flex: 1;
    min-width: 0;
}

.product-rank-row__name {
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-rank-row__bar-track {
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--taupe-light);
    overflow: hidden;
}

.product-rank-row__bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-10) var(--space-15);
    margin-top: var(--space-30);
}

.chart-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: var(--fs-base);
    color: var(--grey);
}

.chart-legend__item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-legend__swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.attachment-check-label {
    display: block;
    font-weight: 400;
    margin-bottom: 4px;
    font-size: var(--fs-base);
}

.attachment-check-label input {
    width: auto;
    margin-right: 6px;
    width: 20px;
    border-radius: 2px;
    top: -1px;
}

.reminders-list__name {
    font-weight: 500;
    height: 29px;
    display: flex;
    align-items: center;
}

.reminders-list__amount {
    font-family: var(--font-display);
    font-size: 18px;
    white-space: nowrap;
    -webkit-text-stroke: 0.3px var(--grey);
}

.agenda-legend {
    display: flex;
    gap: var(--space-15);
    flex-wrap: wrap;
}

.legend {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.agenda-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-xs);
    color: var(--grey);
    opacity: 0.8;
}

.agenda-list {
    list-style: none;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--taupe-light);
    cursor: pointer;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-item:hover {
    opacity: 0.7;
}

.agenda-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: -2px;
}

.agenda-dot--queue {
    background: var(--taupe-dark);
}

.agenda-dot--progress {
    background: var(--gold-dark);
}

.agenda-dot--feedback {
    background: var(--rose-dark);
}

.agenda-item__title {
    font-weight: 500;
}

.agenda-item__customer {
    font-size: var(--fs-base);
    color: var(--grey);
    opacity: 0.7;
}

.qr-box {
    margin: var(--space-15) 0;
}

.qr-box img {
    display: block;
}

.nav__hamburger {
    display: none;
}

.nav__overlay {
    display: none;
}

.nav__menu {
    display: contents;
}

.nav__menu-header {
    display: none;
}

.nav__settings-label {
    display: none;
}

.tabnav-brandkit-trigger {
    display: none;
}

body.nav-open-lock {
    overflow: hidden;
}

.tabnav-hamburger {
    display: none;
}

.tabnav-overlay {
    display: none;
}

.tabnav-panel {
    display: contents;
}

.tabnav-list {
    display: none;
    flex-direction: column;
}

.tabnav-list__group:last-child {
    margin-top: 40px !important;
}

.tabnav-list__group:last-child button {
    border: 1px solid var(--taupe-dark);
    border-radius: var(--radius-pill);
    text-align: center;
    padding: var(--space-10);
    transition: var(--transition);
    justify-content: center;
}

.tabnav-list__group:last-child button:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
    -webkit-text-stroke: 0.3px var(--gold-light);
}

.tabnav-panel__header {
    display: none;
}

.tabnav-panel__logo {
    display: none;
}

.nav__category {
    display: none;
}

.tabnav-list__group-btn {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--taupe-dark);
    padding: 5px 0px;
    margin-bottom: var(--space-15);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--grey);
    cursor: pointer;
    -webkit-text-stroke: 0.3px var(--grey);
}

.tabnav-list__group-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tabnav-list__group-btn.active {
    color: var(--gold-dark);
    -webkit-text-stroke: 0.3px var(--gold-dark);
}

.tabnav-list__group:not(:first-child) {
    margin-top: var(--space-30);
}

.tabnav-list__subitems {
    display: flex;
    flex-direction: column;
    padding-left: 0px;
}

.tabnav-list__sub-btn {
    width: 100%;
    text-align: left;
    background: none;
    padding: var(--space-10) 0px;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--grey);
    border: none;
    opacity: 0.8;
    cursor: pointer;
    transition: var(--transition);
}

.tabnav-list__sub-btn.active {
    color: var(--gold-dark);
    font-weight: 500;
    opacity: 1;
}

.tabnav-list__sub-btn:hover {
    color: var(--gold-light);
}

.tabnav-toggle {
    display: none;
}

.designer-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.designer-toolbar__actions {
    display: flex;
    gap: var(--space-10);
    align-items: center;
    flex-wrap: wrap;
}

#btn-toggle-multipage {
    border: none;
    background: var(--grey);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    width: 43px;
    height: 43px;
}

#btn-toggle-multipage svg {
    width: 18px;
    height: 18px;
    color: white;
}

.designer-layout {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: var(--space-20);
    align-items: flex-start;
    margin-top: var(--space-20);
}

.designer-sidebar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

.designer-palette {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-30);
}

.designer-palette .tile-grid {
    margin-bottom: 0;
}

.designer-palette__btn {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 6px;
}

.designer-canvas-wrap {
    flex: 1;
    overflow: auto;
    background: var(--taupe-light);
    border-radius: var(--radius-md);
    padding: var(--space-30);
    display: flex;
    justify-content: center;
}

.designer-canvas {
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    --accent: #D19F4F;
    background-image: linear-gradient(to right, rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,.05) 1px, transparent 1px);
}

#designer-el-layer {
    position: absolute;
    inset: 0;
}

.designer-margin-guide {
    position: absolute;
    border: 1px dashed rgba(209,159,79,.6);
    pointer-events: none;
}

#designer-footer-preview {
    position: absolute;
    text-align: center;
    font-size: 9px;
    color: var(--grey);
    line-height: 1.5;
    cursor: pointer;
    padding: 4px 0;
    border: 1px dashed transparent;
}

#designer-footer-preview:hover {
    border-color: var(--taupe-dark);
}

#designer-footer-preview.selected {
    border: 1px solid var(--gold-dark);
    box-shadow: 0 0 0 2px rgba(209,159,79,.2);
}

#designer-footer-preview__pageno {
    position: absolute;
    right: 10px;
    bottom: 4px;
    color: var(--rose-dark);
    font-weight: bold;
    font-size: 10px;
}

.designer-el {
    position: absolute;
    box-sizing: border-box;
    border: 1px dashed transparent;
    cursor: move;
    overflow: hidden;
}

.designer-el:hover {
    border-color: var(--taupe-dark);
}

.designer-el.selected {
    border: 1px solid var(--gold-dark);
    box-shadow: 0 0 0 2px rgba(209,159,79,.2);
}

.designer-el--flow {
    height: auto;
    cursor: default;
    pointer-events: none;
}

.designer-el--flow-selectable {
    height: auto;
    cursor: pointer;
}

.designer-el--flow-selectable:hover {
    border-color: var(--taupe-dark);
}

.designer-el--flow-selectable.selected {
    border: 1px solid var(--gold-dark);
    box-shadow: 0 0 0 2px rgba(209,159,79,.2);
}

.designer-el__text {
    padding: 2px;
    font-family: var(--font-body);
    line-height: 1.3;
    overflow: hidden;
}

.designer-el__text strong {
    font-weight: bold;
}

.designer-el__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    color: var(--grey);
    opacity: .6;
    background: repeating-linear-gradient(45deg, var(--creme), var(--creme) 6px, var(--white) 6px, var(--white) 12px);
    padding: 4px;
}

.designer-resize-handle {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 10px;
    height: 10px;
    background: var(--gold-dark);
    border-radius: 2px;
    cursor: nwse-resize;
}

.designer-resize-handle--width-only {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.designer-sample {
    width: 100%;
    height: 100%;
    padding: 2px;
    color: var(--grey);
    overflow: hidden;
    font-family: 'dsg-ubuntusans', sans-serif;
    font-size: 11px;
    line-height: 1.7;
}

.designer-sample--sender {
    font-size: 8px;
}

.designer-sample--recipient {
    font-size: 11px;
    line-height: 1.7;
}

.designer-sample--meta {
    border-collapse: collapse;
}

.designer-sample--meta td {
    padding: 1px 0;
    font-size: 11px;
    text-align: left;
}

.designer-sample--meta td:first-child {
    padding-right: var(--space-10);
}

.designer-sample--meta td:last-child {
    font-weight: 500;
    padding-left: var(--space-10);
    border-left: 1px solid #ddd;
}

.designer-sample--title {
    font-family: 'dsg-amandine', cursive;
    font-style: normal;
    color: var(--accent);
    font-size: 26.7px;
}

.designer-sample--body {
    font-size: 11px;
    line-height: 1.7;
}

.designer-sample__items {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-15);
    margin-bottom: 6px;
    table-layout: fixed;
}

.designer-sample__items th {
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    font-size: 8px;
    text-align: left;
    padding: 3px 4px;
}

.designer-sample__items td {
    padding: 3px 4px;
    border-bottom: none;
    font-size: 11px;
}

.designer-sample__items th.num,
.designer-sample__items td.num {
    text-align: right;
    white-space: nowrap;
}

.designer-sample__items th.col-pos,
.designer-sample__items td.col-pos {
    width: 7%;
}

.designer-sample__items th.col-qty,
.designer-sample__items td.col-qty {
    width: 12%;
    text-align: right;
}

.designer-sample__items th.col-price,
.designer-sample__items td.col-price {
    width: 15%;
}

.designer-sample__items th.col-discount,
.designer-sample__items td.col-discount {
    width: 9%;
}

.designer-sample__items th.col-total,
.designer-sample__items td.col-total {
    width: 15%;
}

.designer-sample__items tbody tr:last-child td {
    border-bottom: 1px solid #ddd;
}

.designer-sample__totals {
    width: 55%;
    margin-left: auto;
    margin-top: 6px;
    border-collapse: collapse;
}

.designer-sample__totals td {
    padding: 1px 4px;
    font-size: 11px;
    text-align: right;
}

.designer-sample__row--grand td {
    font-weight: bold;
}

.designer-sample__paybox {
    border: 1px solid var(--accent);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    color: var(--grey);
    box-sizing: border-box;
}

.designer-sample__paybox-title {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 6px var(--space-10);
}

.designer-sample__paybox-body {
    display: flex;
    gap: var(--space-10);
    padding: var(--space-10) var(--space-10);
    align-items: flex-start;
}

.designer-sample__paybox-qr {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px dashed var(--taupe-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--grey);
    opacity: .6;
}

.designer-sample__paybox-details {
    font-size: 10px;
    border-collapse: collapse;
}

.designer-sample__paybox-details td {
    padding: 1px 0;
}

.designer-sample__paybox-details td:first-child {
    color: var(--accent);
    font-weight: 500;
    width: 45px;
    padding-right: 6px;
}

.designer-props {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

.designer-props__section {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-30);
}

.designer-props .form-group {
    margin-bottom: var(--space-15);
}

.designer-props .form-row {
    display: flex;
    gap: var(--space-10);
    align-items: center;
}

.designer-props .form-row .form-group {
    flex: 1;
}

.designer-color-field {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.designer-color-reset {
    background: none;
    border: none;
    padding: 0;
    color: #C0392B;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.designer-color-reset:hover {
    opacity: .65;
}

@media (min-width: 641px) {
    .p-table #shares-body td {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 200px;
    }
}

@media (max-width: 1280px) {
    .p-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #project-list-table,
    #customers-list-table,
    #invoice-list-table,
    #quote-list-table,
    #product-list-table,
    #brandkit-list-table {
        min-width: 900px;
    }

    div.tab-content .bk-card {
        max-width: 33% !important;
    }

    .bk-card {
        min-width: 300px;
    }
}

@media (max-width: 1180px) {
    .nav--admin {
        padding: 0 var(--space-20);
        position: sticky;
    }

    .nav--admin .nav__logo {
        display: none;
    }

    .nav__hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        color: var(--grey);
        cursor: pointer;
        position: relative;
        z-index: 210;
    }

    .nav__hamburger-icon {
        width: 24px;
        height: 24px;
    }

    .nav__hamburger-icon--close {
        display: none;
    }

    .nav--admin.nav--open .nav__hamburger-icon--open {
        display: none;
    }

    .nav--admin.nav--open .nav__hamburger-icon--close {
        display: block;
    }

    .tabnav-brandkit-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        color: var(--grey);
        cursor: pointer;
        position: relative;
        z-index: 210;
    }

    .tabnav-brandkit-trigger svg {
        width: 22px;
        height: 22px;
    }

    .tabnav-brandkit-trigger.tabnav-open {
        color: var(--gold-dark);
    }

    .nav__overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(58, 60, 61, 0.5);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .nav--admin.nav--open .nav__overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .nav__menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--space-25);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: 300;
    }

    .nav--admin.nav--open .nav__menu {
        transform: translateX(0);
    }

    .nav__menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: var(--space-25);
    }

    .nav__menu-logo {
        display: flex;
        align-items: center;
    }

    .nav__menu-logo img {
        width: 32px;
        height: auto;
    }

    .nav__menu-logo span {
        color: var(--grey);
        margin-left: var(--space-15);
        font-size: var(--fs-base);
        letter-spacing: 2px;
    }

    .nav__menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: none;
        color: var(--grey);
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav__menu-close svg {
        width: 20px;
        height: 20px;
    }

    .nav__center {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav__center-link {
        padding: var(--space-15) 4px;
        border-bottom: 1px solid var(--taupe-light);
        justify-content: flex-start;
    }

    .nav__right {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-top: 40px;
    }

    .nav--admin .nav__logout {
        padding: var(--space-15) 4px;
        justify-content: flex-start;
    }

    .nav--admin .nav__settings-label {
        display: inline;
    }

    .nav--admin + .page-header h1 {
        position: fixed;
        top: 32px;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        line-height: 1.2;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55%;
        z-index: 999;
    }

    .nav--admin + .page-header .nav__category {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: var(--space-10) var(--space-15);
        font-family: var(--font-body);
        font-size: var(--fs-base);
        color: var(--grey);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 998;
    }

    .page-header {
        position: relative;
        padding-top: 0;
        margin-top: -50px;
        padding-bottom: var(--space-20);
    }

    .entity-switch__label {
        font-size: var(--fs-xs);
    }

    .entity-switch {
        margin-top: var(--space-10);
        margin-bottom: 0;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .quote-card h3 {
        font-size: 30px;
    }

    .daily-quote,
    .stat-tile__value {
        font-size: 25px;
    }

    .stat-tile h3,
    .stat-tile__sub {
        font-size: var(--fs-xs);
    }

    .stat-tile__value {
        margin-top: var(--space-20);
    }

    .reminders-list__name {
        display: inline-flex;
        align-items: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    #top-customers-list .reminders-list__name {
        width: 60%;
        display: inline;
        padding-top: 3px;
    }

    .sub-tabs {
        margin-top: var(--space-20);
    }

    .reminders-list li {
        flex-wrap: wrap;
        gap: 5px;
    }

    .reminders-list__amount {
        order: 2;
    }

    .tabnav-overlay.tabnav-wide {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(58, 60, 61, 0.5);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .tabnav-overlay.tabnav-wide.tabnav-open {
        opacity: 1;
        pointer-events: auto;
    }

    .tabnav-panel.tabnav-wide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 80px var(--space-25) var(--space-25);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 200;
    }

    .tabnav-panel.tabnav-wide.tabnav-open {
        transform: translateX(0);
    }

    .tabnav-panel.tabnav-wide .tabnav-source {
        display: none;
    }

    .tabnav-panel.tabnav-wide .tabnav-list {
        display: flex;
    }

    .card__body {
        padding: var(--space-30);
    }

    .app-main {
        padding: 60px;
    }

    body:has(.portal-header) .app-toolbar {
        margin-top: -35px;
    }

    .color-mode-toggle {
        margin-top: -25px;
    }

    .bk-card-grid {
        --card-cols: 3 !important;
    }

    div.tab-content .bk-card,
    div.tab-content[data-name="farbe"] .bk-card,
    div.tab-content[data-name="schrift"] .bk-card {
        max-width: 33.33% !important;
    }

    .nav {
        background: none;
    }
}

@media (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .invoice-detail-grid,
    .contact-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: var(--space-25) var(--space-15) var(--space-20);
    }

    .page-header__link {
        padding-bottom: var(--space-30);
    }

    .color-tile {
        width: 140px;
    }

    .app-main {
        padding: 40px;
    }

    .bk-card__meta {
        margin-bottom: var(--space-20);
    }

    .page-header,
    .portal-header--tabbed {
        position: relative;
    }

    .nav__logout svg {
        width: 24px;
        height: 24px;
    }

    .tabnav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 40px;
        margin: 0 auto var(--space-15);
        border: none;
        background: none;
        color: var(--grey);
        cursor: pointer;
        position: relative;
        z-index: 210;
    }

    .nav--has-tabnav-hamburger .tabnav-hamburger {
        margin: 0;
    }

    .tabnav-hamburger-icon {
        width: 24px;
        height: 24px;
    }

    .tabnav-hamburger-icon--close {
        display: none;
    }

    .tabnav-hamburger.tabnav-open .tabnav-hamburger-icon--open {
        display: none;
    }

    .tabnav-hamburger.tabnav-open .tabnav-hamburger-icon--close {
        display: block;
    }

    .tabnav-overlay:not(.tabnav-wide) {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(58, 60, 61, 0.5);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .tabnav-overlay:not(.tabnav-wide).tabnav-open {
        opacity: 1;
        pointer-events: auto;
    }

    .tabnav-panel:not(.tabnav-wide) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--space-30) 40px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: 9999;
    }

    .tabnav-panel:not(.tabnav-wide).tabnav-open {
        transform: translateX(0);
    }

    .tabnav-panel:not(.tabnav-wide) .tabnav-source {
        display: none;
    }

    .tabnav-panel:not(.tabnav-wide) .tabnav-list {
        display: flex;
        margin-top: var(--space-10);
    }

    .tabnav-panel:not(.tabnav-wide) .tabnav-panel__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: var(--space-25);
    }

    .tabnav-panel__logo {
        display: flex;
        align-items: center;
    }

    .tabnav-panel__logo img {
        width: 32px;
        height: auto;
    }

    .tabnav-panel__logo span {
        color: var(--grey);
        margin-left: var(--space-15);
        font-size: var(--fs-base);
        letter-spacing: 2px;
    }

    .tabnav-panel__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: none;
        color: var(--grey);
        cursor: pointer;
        flex-shrink: 0;
        margin-right: -10px;
    }

    .tabnav-panel__close svg {
        width: 20px;
        height: 20px;
    }

    .nav--has-tabnav-hamburger {
        position: sticky;
        top: 0;
        z-index: 5;
        flex-wrap: wrap;
        height: auto;
        row-gap: 0px;
        padding-bottom: var(--space-20);
        padding-top: 14px;
        box-shadow: var(--shadow-sm);
        background: white;
    }

    .nav--has-tabnav-hamburger .nav__logo {
        display: none;
    }

    .nav--has-tabnav-hamburger + .portal-header--tabbed .portal-header__name {
        position: fixed;
        top: 34px;
        left: 50%;
        transform: translate(-50%, -50%);
        line-height: 1.2;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55%;
        z-index: 999;
        font-size: 24px;
    }

    .nav--has-tabnav-hamburger .nav__logout-text {
        display: none;
    }

    .nav--has-tabnav-hamburger .nav__category {
        display: block;
        flex-basis: 100%;
        order: 5;
        text-align: center;
        font-family: var(--font-body);
        font-size: var(--fs-base);
        color: var(--grey);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pdf-carousel__viewport {
        padding: 0;
    }

    .sub-tabs:not([data-tabnav-claimed]) {
        position: relative;
        flex-wrap: wrap;
        row-gap: 0;
    }

    .portal-footer {
        padding: var(--space-20) 0;
    }

    .portal-footer__sub {
        font-size: var(--fs-xs);
    }

    .tabnav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-10);
        width: 100%;
        order: -1;
        padding: var(--space-10) var(--space-15);
        border: 1.5px solid var(--grey);
        border-radius: var(--radius-pill);
        background: var(--white);
        color: var(--grey);
        font-family: var(--font-body);
        font-size: var(--fs-base);
        font-weight: 500;
        cursor: pointer;
    }

    .tabnav-toggle svg {
        flex-shrink: 0;
        transition: transform var(--transition);
    }

    .sub-tabs.tabnav-open .tabnav-toggle svg {
        transform: rotate(180deg);
    }

    .sub-tabs:not([data-tabnav-claimed]) > .sub-tab {
        display: none;
        width: 100%;
        text-align: left;
    }

    .sub-tabs:not([data-tabnav-claimed]).tabnav-open > .sub-tab {
        display: block;
    }

    .entity-switch {
        gap: 0;
        padding: 4px;
    }

    .entity-switch__label {
        display: none;
    }

    .app-toolbar__left,
    .app-toolbar__right,
    .cd-toolbar-actions {
        flex-wrap: wrap;
    }

    .app-toolbar__filters {
        flex-wrap: wrap;
        width: 100%;
    }

    .app-toolbar__filters input[type="text"] {
        flex: 1;
        min-width: 0;
    }

    body:has(.portal-header) .app-toolbar {
        margin-top: -15px;
    }

    .p-table-wrap {
        padding: var(--space-20);
    }

    .p-table-wrap--list {
        padding: var(--space-15);
    }

    #project-list-table,
    #customers-list-table,
    #invoice-list-table,
    #quote-list-table,
    #product-list-table,
    #brandkit-list-table {
        min-width: 720px;
    }

    .bk-card-grid {
        --card-cols: 1 !important;
        --card-cols: 2 !important;
    }

    .bk-card-grid .bk-card,
    div.tab-content .bk-card,
    div.tab-content[data-name="farbe"] .bk-card,
    div.tab-content[data-name="schrift"] .bk-card {
        width: 100%;
        flex-basis: 100%;
    }

    .color-mode-toggle {
        margin-top: 0;
        margin-bottom: 40px;
    }

    .board {
        grid-template-columns: 1fr;
    }

    .board-col {
        width: auto;
    }

    .portal-header--tabbed .pill-nav {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }

    .portal-header--tabbed {
        padding-bottom: 0px;
    }

    div.tab-content .bk-card,
    div.tab-content[data-name="farbe"] .bk-card,
    div.tab-content[data-name="schrift"] .bk-card {
        max-width: 300px !important;
        width: 50% !important;
    }
}

@media (max-width: 640px) {
    .pdf-carousel__nav--prev {
        left: 4px;
    }

    .pdf-carousel__nav--next {
        right: 4px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-4 + .grid-4 {
        margin-top: 0 !important;
    }

    .form-row.columns-2,
    .form-row.columns-3,
    .form-row.columns-4 {
        grid-template-columns: 1fr;
    }

    .list-table {
        min-width: 0 !important;
    }

    .list-table thead {
        display: none;
    }

    .list-table,
    .list-table tbody,
    .list-table tr {
        display: block;
        width: 100%;
    }

    .list-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px var(--space-15);
        background: var(--white);
        border: 1px solid var(--taupe-light);
        border-radius: var(--radius-sm);
        padding: 14px var(--space-15);
    }

    .list-table tr:not(:last-child) {
        margin-bottom: 5px;
    }

    .list-table td {
        display: inline-flex;
        align-items: center;
        width: auto !important;
        min-width: 0;
        border: none;
        background: none;
        padding: 0;
        border-radius: 0 !important;
        font-size: var(--fs-base);
    }

    .list-table td:first-child {
        flex-basis: 100%;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .list-table td.p-table__cat-flag {
        display: none;
    }

    .list-table td:not(:first-child):not(.p-table__row-actions) {
        flex-basis: 100%;
        width: 100%;
    }

    .list-table td:not(:first-child)[class*="col-"]::before {
        display: inline-block;
        flex-shrink: 0;
        width: 85px;
        color: var(--grey);
        opacity: 0.6;
    }

    .list-table td.col-company_name::before {
        content: "Firma:";
    }

    .list-table td.col-name::before {
        content: "Name:";
    }

    .list-table td.col-issue_date::before {
        content: "Datum:";
    }

    .list-table td.col-due_date::before {
        content: "Fällig:";
    }

    .list-table td.col-valid_until::before {
        content: "Gültig bis:";
    }

    .list-table td.col-amount::before {
        content: "Betrag:";
    }

    .list-table td.col-status::before {
        content: "Status:";
    }

    .list-table td.col-product_group::before {
        content: "Gruppe:";
    }

    .list-table td.col-unit::before {
        content: "Einheit:";
    }

    .list-table td.col-price::before {
        content: "Preis:";
    }

    .list-table td.col-tax_rate::before {
        content: "Steuersatz:";
    }

    .list-table td.col-usage_count::before {
        content: "Zugeordnet:";
    }

    .list-table td.col-active::before {
        content: "Status:";
    }

    .list-table td.col-link::before {
        content: "Link:";
    }

    .list-table td.col-expires::before {
        content: "Gültig bis:";
    }

    #project-list-table.list-table td:nth-child(2) {
        flex-basis: 100%;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .list-table td.p-table__row-actions {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-top: 5px;
        padding: 0;
    }

    .list-table td.p-table__row-actions .row-actions {
        justify-content: flex-end;
    }

    .list-table .empty-hint {
        padding: var(--space-20) var(--space-10);
    }

    .modal-overlay {
        padding: var(--space-20);
    }

    .modal-box {
        padding: 40px var(--space-30) var(--space-30);
        max-height: 92vh;
    }

    .modal-box__actions {
        flex-wrap: wrap;
    }

    .chart-legend {
        grid-template-columns: 1fr;
    }

    .legend {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-10);
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: var(--space-30) var(--space-25);
    }

    .login-box__logo img {
        height: 72px;
    }
}

@media (max-width: 400px) {
    .app-toolbar h3 {
        display: none;
    }

    .app-toolbar .btn {
        width: 100%;
    }

    .app-toolbar {
        gap: 0;
    }
}

