

@font-face {
    font-family: 'Fjalla One';
    src: url('fonts/fjallaone.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


:root {
    --white:       #FFFFFF;
    --black:       #111316;
    --creme:       #FAF5F2;
    --taupe-light: #F7F7F7;
    --taupe-dark:  #DDDDDD;
    --gold-light:  #D8BA80;
    --gold-dark:   #B8944F;
    --rose-dark:   #111316;
    --grey:        #3A3C3D;
    --gradient-gold: linear-gradient(135deg, var(--gold-light), var(--gold-dark), var(--gold-light));

    --flag-paused-bg: #FBF0E4; --flag-paused-text: #9B6B2F; --flag-paused-border: #E8CDA3;

    --flag-complaint-bg: var(--danger-bg); --flag-complaint-text: var(--danger-text); --flag-complaint-border: var(--danger-border);

    --font-display: 'Fjalla One', Georgia, serif;
    --font-body:    'Montserrat', system-ui, sans-serif;

    --radius-sm:  3px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-pill: 100px;

    --shadow-sm: 0 1px 4px rgba(58,60,61,.07);
    --shadow-md: 0 4px 20px rgba(58,60,61,.10);
    --shadow-lg: 0 8px 40px rgba(58,60,61,.13);

    --transition: 180ms ease;

    
    --danger-text:      #9B3A3A;
    --danger-bg:        #f6d6d6;
    --danger-border:    #F0CCCC;
    --success-text:     #3A6B4A;
    --success-bg:       #e0ece5;
    --success-border:   #C3DDD0;
    --info-text:        #2E5F8A;
    --info-bg:          #EDF3F9;
    --info-border:      #C4D9E9;
    
    --gold-dark-rgb:  184, 148, 79;
    --gold-tint-text: #8A6D3A;

    
    --space-8:  8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-50: 50px;

    
    --fs-xs:          12px;
    --fs-base:        15px;
    --fs-headline-sm: 24px;
    --fs-headline-lg: 32px;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--grey);
    background: var(--white);
    min-height: 100vh;
}


h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: normal;
    line-height: 1.2;
    color: var(--grey);
}
h1 { font-size: clamp(35px, 5vw, 56px); letter-spacing: -0.01em; }
.page-header h1::after { content: '!'; color: var(--gold-dark); }
h2 { font-size: var(--fs-headline-sm); }
h3 { font-size: var(--fs-headline-sm); }

a { color: var(--gold-dark); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .7; }

strong { font-weight: 500; }


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

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

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


.nav__center {
    display: flex;
    align-items: center;
    gap: 32px;
    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;
}

.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: 8px;
    font-size: var(--fs-base);
    color: var(--grey);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition);
}
.nav__logout:hover { color: var(--gold-dark); opacity: 1; }
.nav__logout svg { width: 18px; height: 18px; }


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

.portal-header__eyebrow {
    font-size: var(--fs-base);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 400;
}

.pill-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-bottom: 60px;
}
.portal-header--tabbed { padding-bottom: 28px; }
.portal-header--tabbed .pill-nav { padding-bottom: 40px; padding-top:30px; }

.pill-btn {
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    cursor: pointer;
    border: 1.5px solid var(--grey);
    background: transparent;
    color: var(--grey);
    transition: all var(--transition);
    letter-spacing: 0.01em;
}
.pill-btn.active { border-color: var(--gold-dark); color: var(--gold-dark); }
.pill-btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.pill-btn--icon { display: flex; align-items: center; justify-content: center; padding: 8px; width: 38px; height: 38px; }
.pill-btn--icon svg { width: 20px; height: 20px; }


.marble-section {
    background: #f8f7f6 url('images/raster_10.png') repeat top center;
    background-size: 4px 4px;
    min-height: calc(100vh - 200px);
    padding: 0;
}

.page-header + .marble-section {padding-bottom:50px;}


.sub-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0 24px;
    margin-bottom: -28px;
    background: white;
	margin-top:50px;
}

.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 8px;
    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; }


.content-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}


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

.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); margin-left: -1px; }
.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); }


.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; background: var(--creme); }
.login-wrap::before { content: ''; position: absolute; inset: 0; background: #f8f7f6 url('images/raster_10.png') repeat top center; background-size: 4px 4px; }

.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__icon { width: 40px; height: 40px; margin-bottom: 16px; }
.login-box__logo { font-family: var(--font-display); font-size: var(--fs-headline-sm); color: var(--grey); margin-bottom: 4px; -webkit-text-stroke: 0.3px var(--grey); }
.login-box__logo span { color: var(--gold-dark); -webkit-text-stroke: 0.3px var(--gold-dark); }
.login-box__sub { font-size: var(--fs-base); color: var(--grey); margin-bottom: 32px; }


.btn { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: var(--fs-base); font-weight: 500; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; background: var(--rose-dark); color: white; box-shadow: var(--shadow-sm);justify-content:center;border:none; }
.btn:hover { background: var(--gold-dark); }
.btn--danger { background: var(--danger-bg); color: var(--danger-text); border: 1px solid transparent; }
.btn--danger:hover { background: var(--danger-text); color: white; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--icon { padding: 10px; width: 42px; height: 42px; justify-content: center; }
.btn--icon svg { width: 22px; height: 22px; }
.w-full { width: 100%; justify-content: center; }


[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--grey);
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 400;
    line-height: 1.3;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 60;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
}


.card__body { background: var(--white); margin-top:0px;padding:40px;border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom:25px;}
.card__header {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.card--danger { border-color: var(--danger-border); }


.form-group { margin-bottom: 20px; }
label { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--grey); margin-bottom: 2px; text-transform: uppercase;
    letter-spacing: 1px;}
input[type="text"], input[type="file"], input[type="password"], input[type="email"],input[type="date"], input[type="color"], [type="number"], textarea {
    width: 100%; padding: 12px 16px; 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);
    transition: border-color var(--transition), box-shadow var(--transition); outline: none;margin-bottom:0px;
}

input[type="file"]::file-selector-button {padding: 8px 16px; border:0; border-radius: var(--radius-sm); font-weight:500;color:white;
    font-family: var(--font-body); background: var(--gold-dark); cursor: pointer; margin-right:10px;transition:var(--transition);}
input[type="file"]::file-selector-button:hover {opacity:0.8;}
input[type="file"] {padding:16px;}

input[type="date"] {padding-top:11px;padding-bottom:11px;}

input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; flex-shrink: 0;
    border: 1px solid var(--taupe-dark); border-radius: var(--radius-pill);
    background: var(--white); cursor: pointer; position: relative;
    vertical-align: middle; margin: 0; transition: var(--transition);
}
input[type="checkbox"]:hover { border-color: var(--gold-dark); }
input[type="checkbox"]:checked { background: var(--gold-dark); border-color: var(--gold-dark); }
input[type="checkbox"]:checked::after {
    content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* Ein Label, das eine Checkbox umschließt (z.B. Anhänge-Auswahl im
   Versand-Modal), zeigt normalen Text statt der sonst für Formular-Labels
   üblichen Großbuchstaben/Sperrschrift — für Fließtext neben einer Checkbox
   (z.B. ein Dateiname) ist das nicht passend. */
label:has(input[type="checkbox"]) { text-transform: none; letter-spacing: normal; }

select {
    width: 100%; padding: 10px 40px 10px 20px; 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-color: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition); outline: none; margin-bottom: 0;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A3C3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    cursor: pointer;
}
select:hover { border-color: var(--gold-light); }
select option { padding: 8px 12px; }


.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: 8px;
    padding: 12px 16px; 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: .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: .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: 8px 12px; 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: 8px 12px; 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); }
.product-option-meta { font-size: 11px; color: var(--grey); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; margin-top: 2px; }
.custom-select__option.is-selected .product-option-meta { color: var(--white); opacity: .85; }
.custom-select__empty { padding: 8px 12px; color: var(--grey); opacity: .6; font-style: italic; font-size: var(--fs-base); }


.password-reveal { display: flex; align-items: center; gap: 8px; width:200px;}
.password-reveal__value { flex: 1; padding:0; font-size: var(--fs-base); letter-spacing: .5px; }
.password-reveal__toggle { flex-shrink: 0; background: none; border: none; padding: 0px; color: var(--grey); cursor: pointer; }
.password-reveal__toggle:hover { color: var(--gold-dark); }
.password-reveal__toggle:disabled { opacity: .4; cursor: default; }
.password-reveal__toggle svg { width: 18px; height: 18px;}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

input:focus, textarea:focus, select:focus { outline: 1px solid var(--gold-dark); outline-offset: -1px; }
input:disabled, textarea:disabled, select:disabled:not(.custom-select__native) { background: var(--taupe-light); cursor: not-allowed; opacity: .7; }
input[type="color"] { padding: 4px 6px; height: 50px; width:50px;cursor: pointer; }
textarea { resize: vertical; min-height: 150px; line-height:1.5;}
.form-hint { font-size: var(--fs-xs); color: var(--grey); margin-top: 4px; }

.form-row { display: grid; gap: 15px; }
.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: 15px; }
.form-row--upload .form-group { flex: 1; }
.form-row--upload > .btn { flex-shrink: 0; }

.invoice-wrapper .form-row.columns-3 { margin-bottom: 10px;}
#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: 20px; align-items: start; }
.invoice-detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-grid { display: grid; grid-template-columns: 5fr 2fr; gap: 20px; align-items: start; }
.contact-detail-grid--3col { grid-template-columns: repeat(3, 1fr); }
.invoice-wrapper .custom-select__trigger {min-width:1px;}

#invoice-form-actions, #quote-form-actions { display: flex; align-items: center; }
.invoice-wrapper h3, .contact-detail-grid h3, .invoice-detail-grid h3 { border-bottom: 1px solid var(--taupe-dark); margin-bottom:30px;display: flex; justify-content: space-between;   align-items: center; padding-bottom:4px;}
.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;}
#items-table.p-table td:nth-child(7), #items-table.p-table th:nth-child(7) { padding-left: 15px;}
#items-table.p-table td input, #items-table.p-table td select, #items-table.p-table td textarea { margin-bottom: 0; width: 100%; }
.items-footer { display:flex!important;gap:3px;padding:20px 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:15px;}
.items-sum strong { width: 90px;display: inline-block;}
.items-sum .big { font-size: var(--fs-base);}

.sidebar {display:flex; flex-direction: column; gap: 20px;}
.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: 30px 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-16);}


.alert { padding: 12px 16px; 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-24); }
.tab { padding: 10px 20px; 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; }




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



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


.cmyk-row, .rgb-row { display: flex; gap: 0px; }
.cmyk-input, .rgb-input { flex: 1; width: auto; text-align: center; padding: 10px 1px; border-radius:0;border-left:none;border-right:none; margin-bottom: 0;}
.cmyk-input, .rgb-input {width:20px;}
.cmyk-input:first-child, .rgb-input:first-child {
    border-left: 1px solid var(--taupe-dark);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
	padding-left:6px;
}

.cmyk-input:last-child, .rgb-input:last-child {
    border-right: 1px solid var(--taupe-dark);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
	padding-right:6px;
}

.settings-section { margin-bottom: 8px; }
.settings-section:not(:first-child) {padding-top:20px;}
.settings-section__header {
    display: flex; align-items: center; gap: 10px; 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: 12px;
}
.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; }

.text-danger { color: var(--danger-text); }
.text-success { color: var(--success-text); }
.open-amount-value { font-size: 18px; }
.text-muted { color: var(--grey); font-style: italic!important; }
.col-toggle-icon { font-size: var(--fs-base); color: var(--grey); transition: transform 0.2s; display: inline-block; }
.col-toggle-icon.open { transform: rotate(90deg); }
.col-body { display: none; }
.col-body.open { display: block; }


.hidden-file-input { display: none; }
.col-name-input { flex: 0 1 320px; border: 1px solid var(--taupe-dark); background: var(--white); border-radius: var(--radius-sm); padding: 10px 14px; font-size: var(--fs-base); outline: none; font-family: var(--font-body); }
.col-name-input:focus { border-color: var(--gold-dark); }
.lt-name-remove { display: inline-flex; cursor: pointer; color: var(--grey); transition: color var(--transition); }
.lt-name-remove svg { width: 16px; height: 16px; }
.lt-name-remove:hover { color: var(--gold-dark); }
.card__header--clickable { cursor: pointer; }


.mt-8  { margin-top: var(--space-8); } .mt-12 { margin-top: var(--space-12); } .mt-16 { margin-top: var(--space-16); }  .mt-24 { margin-top: var(--space-24); }
.ml-10 { margin-left: var(--space-10); }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: var(--space-8); } .mb-10 { margin-bottom: var(--space-10); } .mb-12 { margin-bottom: var(--space-12); } .mb-16 { margin-bottom: var(--space-16); } .mb-24 { margin-bottom: var(--space-50); } .mb-32 { margin-bottom: var(--space-32);} .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: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.text-sm { font-size: var(--fs-base); }
td .text-sm {
    font-size: var(--fs-xs);
    opacity: 0.7;
    font-weight: 300;
    margin-top: -2px;
    display: block;
}

.text-md {font-size: 18px;}
.hidden { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.grid-4 + .grid-4 { margin-top: -34px!important;}
.badge { display: inline-block; padding: 2px 10px; 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; }
.text-align-center { text-align: center; }
.cursor-default { cursor: default; }

@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .sub-tabs { gap: 20px; }
    .pill-nav { flex-direction: column; align-items: center; }
    .nav__center { display: none; }
}