@font-face {
    font-family: "Comic Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/comic-neue-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "Comic Neue";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/comic-neue-latin-700.woff2") format("woff2");
}

.emna-quotes-page {
    color: #223047;
    padding-top: 14px;
}

.emna-quote-editable-fields {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.emna-quote-editable-fields:disabled {
    opacity: .62;
}

.emna-quotes-page .emna-quotes-list-wide .table-responsive {
    border: 1px solid #d9e8ef;
    border-radius: 8px;
    overflow: visible;
}

.emna-quotes-page .emna-quotes-table {
    margin-bottom: 0;
}

.emna-quotes-page .emna-quotes-table th,
.emna-quotes-page .emna-quotes-table td {
    vertical-align: middle;
}

.emna-quotes-page .emna-quotes-document,
.emna-quotes-page .emna-quotes-client,
.emna-quotes-page .emna-quotes-vehicle,
.emna-quotes-page .emna-quotes-total-cell {
    min-width: 0;
}

.emna-quotes-page .emna-quotes-order-link {
    align-items: center;
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 999px;
    color: #0f7185 !important;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 5px;
    line-height: 1;
    margin-top: 7px;
    max-width: 100%;
    padding: 5px 8px;
    text-decoration: none;
    white-space: nowrap;
}

.emna-quotes-page .emna-quotes-order-link.muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #667085 !important;
}

.emna-quotes-page .emna-quotes-total-cell b {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    white-space: nowrap;
}

.emna-quotes-page .emna-quotes-total-cell small {
    display: grid;
    gap: 2px;
    margin-top: 5px;
}

.emna-quotes-command {
    align-items: stretch;
    background: linear-gradient(135deg, #d7edf7 0%, #c6e5ee 55%, #a9d6dc 100%);
    border: 1px solid #aacddd;
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 360px;
    margin-bottom: 16px;
    padding: 24px;
}

.emna-quotes-command span,
.emna-quotes-panel-head span,
.emna-quote-form-head span,
.emna-quote-section-title span,
.emna-quote-form-grid label span,
.emna-quote-line-grid label span,
.emna-quote-totals span {
    color: #5f6f86;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.emna-quotes-command > div > span {
    color: #1f6f78;
}

.emna-quotes-command h2 {
    color: #14213d;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.14;
    margin: 8px 0;
    max-width: 830px;
}

.emna-quotes-command p {
    color: #344054;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    max-width: 820px;
}

.emna-quotes-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.emna-quotes-command-actions .btn,
.emna-odoo-bar .btn,
.emna-quote-save .btn,
.emna-quote-line-form .btn {
    border-radius: 6px;
    box-shadow: none !important;
    font-weight: 900;
}

.emna-quotes-command aside {
    display: grid;
    gap: 10px;
}

.emna-quotes-command aside div {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(135, 185, 205, .7);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
    padding: 15px;
}

.emna-quotes-command aside strong {
    color: #14213d;
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

.emna-quotes-command-form {
    margin-bottom: 16px;
}

.emna-quotes-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 16px;
}

.emna-quotes-stat {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    border-top: 4px solid #2d7aa6;
    box-shadow: none;
    color: inherit;
    display: grid;
    gap: 6px;
    min-height: 128px;
    padding: 14px;
    text-align: left;
}

.emna-quotes-stat:hover,
.emna-quotes-stat.active {
    background: #eef8fa;
    border-color: #9fcbd7;
}

.emna-quotes-stat i {
    align-items: center;
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 8px;
    color: #1f6f78;
    display: flex;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.emna-quotes-stat span {
    color: #5f6f86;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.emna-quotes-stat strong {
    color: #14213d;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.emna-quotes-stat small {
    color: #667085;
    font-weight: 800;
}

.emna-quotes-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.emna-quotes-list,
.emna-quotes-editor,
.emna-quote-form,
.emna-quote-line-form,
.emna-quote-lines-card {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    box-shadow: none;
}

.emna-quotes-list,
.emna-quotes-editor {
    padding: 16px;
}

.emna-quotes-list-wide {
    padding: 18px;
}

.emna-quotes-editor-full {
    padding: 16px;
}

.emna-quotes-panel-head,
.emna-quote-form-head {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.emna-quotes-panel-head h3,
.emna-quote-form-head h3 {
    color: #14213d;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 3px 0 0;
}

.emna-quotes-panel-head strong,
.emna-quote-form-head strong {
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 8px;
    color: #1f6f78;
    font-weight: 900;
    padding: 9px 12px;
    white-space: nowrap;
}

.emna-quotes-search {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d8e3ef;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 20px 1fr;
    margin-bottom: 12px;
    padding: 8px 10px;
}

.emna-quotes-search i {
    color: #1f6f78;
}

.emna-quotes-search .form-control {
    background: transparent;
    border: 0;
    box-shadow: none !important;
    font-weight: 800;
    min-height: 38px;
    padding-left: 0;
}

.emna-quotes-documents {
    display: grid;
    gap: 10px;
}

.emna-quote-row {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    box-shadow: none;
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 12px;
    text-align: left;
    width: 100%;
}

.emna-quote-row:hover,
.emna-quote-row.active {
    background: #eef8fa;
    border-color: #9fcbd7;
}

.emna-quote-row-icon {
    align-items: center;
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 8px;
    color: #1f6f78;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.emna-quote-row strong {
    color: #14213d;
    display: block;
    font-weight: 900;
}

.emna-quote-row small {
    color: #667085;
    display: block;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 3px;
}

.emna-quote-row em {
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 999px;
    color: #1f6f78;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    grid-column: 2 / 3;
    justify-self: start;
    padding: 5px 8px;
    text-transform: uppercase;
}

.emna-quote-row b {
    color: #14213d;
    font-size: 15px;
    font-weight: 900;
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    white-space: nowrap;
}

.emna-odoo-bar {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dfe8f2;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.emna-status-ribbon {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.emna-status-ribbon button {
    background: #f8fafc;
    border: 1px solid #cfd9e6;
    color: #5f6f86;
    font-weight: 900;
    min-height: 38px;
    padding: 8px 18px;
    position: relative;
}

.emna-status-ribbon button + button {
    margin-left: -1px;
}

.emna-status-ribbon button.active {
    background: #e9f6fb;
    border-color: #7ab7cc;
    color: #14213d;
}

.emna-status-ribbon .emna-status-ribbon-action {
    align-items: center;
    background: #fff;
    border: 1px solid #cfd9e6;
    border-radius: 999px;
    color: #475467;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    margin-left: auto;
    min-height: 38px;
    padding: 8px 16px;
    text-decoration: none;
}

.emna-status-ribbon .emna-status-ribbon-action + .emna-status-ribbon-action {
    margin-left: 0;
}

.emna-status-ribbon .emna-status-ribbon-action.whatsapp {
    background: #eaf8ef;
    border-color: #a5d6b3;
    color: #168444;
}

.emna-status-ribbon .emna-status-ribbon-action.whatsapp:hover:not(:disabled) {
    background: #d8f2e1;
    border-color: #73bd8a;
    color: #106b35;
}

.emna-whatsapp-logo {
    height: 16px;
    width: 16px;
}

.emna-status-ribbon .emna-status-ribbon-action.danger {
    background: #fff4f2;
    border-color: #efc0bb;
    color: #a6332c;
}

.emna-status-ribbon .emna-status-ribbon-action:hover:not(:disabled) {
    background: #f4f8fc;
    border-color: #aabbd0;
    color: #344054;
}

.emna-status-ribbon .emna-status-ribbon-action:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.emna-quote-form,
.emna-quote-line-form,
.emna-quote-lines-card {
    margin-bottom: 14px;
    overflow: hidden;
    padding: 16px;
}

.emna-quote-line-form {
    overflow: visible;
}

.emna-quote-form {
    background: #f9fcff;
}

.emna-quote-form-grid,
.emna-quote-line-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.emna-quote-document-row {
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr));
}

.emna-quote-line-grid {
    grid-template-columns: 180px minmax(220px, 1fr) 82px 120px 150px 110px;
}

.emna-quote-form-grid .wide,
.emna-quote-line-grid .wide {
    grid-column: 1 / -1;
}

.emna-quote-line-grid .product {
    grid-column: span 2;
}

.emna-quote-form-grid .form-control,
.emna-quote-form-grid .form-select,
.emna-quote-line-grid .form-control,
.emna-quote-line-grid .form-select {
    border-color: #d8e3ef;
    border-radius: 6px;
    box-shadow: none !important;
    color: #14213d;
    font-weight: 700;
    min-height: 42px;
}

.emna-quote-form-grid .form-control:focus,
.emna-quote-form-grid .form-select:focus,
.emna-quote-line-grid .form-control:focus,
.emna-quote-line-grid .form-select:focus {
    border-color: #7ab7cc;
    box-shadow: none !important;
}

.emna-quote-form-grid small,
.emna-quote-line-grid small {
    color: #b42318;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
}

.emna-quote-save {
    border-top: 1px solid #e6edf5;
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 14px;
}

.emna-quote-section-title {
    align-items: center;
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 12px;
}

.emna-quote-section-title i {
    align-items: center;
    background: #fff;
    border: 1px solid #cde8eb;
    border-radius: 8px;
    color: #1f6f78;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.emna-quote-section-title strong {
    color: #14213d;
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.emna-quote-save-button {
    align-items: center;
    background: #155eef;
    border: 1px solid #155eef;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
}

.emna-quote-save-button:hover,
.emna-quote-save-button:focus {
    background: #0f4bd8;
    border-color: #0f4bd8;
    color: #fff;
}

.emna-quote-section-title .emna-quote-save-button i {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    display: inline-flex;
    font-size: 15px;
    height: auto;
    width: auto;
}

.emna-quote-section-picker {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 14px;
}

.emna-quote-section-picker button {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e3ef;
    border-radius: 8px;
    box-shadow: none;
    color: #344054;
    display: flex;
    gap: 9px;
    min-height: 48px;
    padding: 10px 12px;
    text-align: left;
}

.emna-quote-section-picker button:hover,
.emna-quote-section-picker button.active {
    background: #eef8fa;
    border-color: #7ab7cc;
}

.emna-quote-section-picker i {
    color: #1f6f78;
    font-size: 17px;
}

.emna-quote-section-picker span {
    color: #14213d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.emna-quote-product-lookup {
    position: relative;
}

.emna-quote-product-suggestions {
    background: #fff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    box-shadow: none;
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    position: relative;
    z-index: 4;
}

.emna-quote-product-suggestions-head {
    align-items: center;
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.emna-quote-product-suggestions-head strong {
    color: #14213d;
    font-size: 13px;
    font-weight: 900;
}

.emna-quote-product-suggestions-head span {
    color: #5f6f86;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.emna-quote-product-option,
.emna-quote-product-create {
    align-items: center;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.emna-quote-product-option {
    background: #f8fafc;
    border: 1px solid #e5eaf3;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 58px;
}

.emna-quote-product-option:hover {
    border-color: #17a2b8;
}

.emna-quote-product-option i {
    color: #17a2b8;
    font-size: 17px;
}

.emna-quote-product-option strong {
    color: #14213d;
    display: block;
    font-weight: 900;
}

.emna-quote-product-option small {
    color: #667085;
    display: block;
    font-weight: 800;
}

.emna-quote-product-option em {
    background: #fff;
    border: 1px solid #cde8eb;
    border-radius: 999px;
    color: #1f6f78;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    padding: 7px 10px;
}

.emna-quote-product-empty {
    align-items: center;
    background: #fff8e6;
    border: 1px solid #ffe1a6;
    border-radius: 8px;
    color: #9a6700;
    display: flex;
    gap: 8px;
    padding: 10px;
}

.emna-quote-product-create {
    background: #ecfdf3;
    border: 1px solid #b7ebc9;
    color: #087f5b;
    font-weight: 900;
}

.emna-quote-line-form .btn-success {
    margin-top: 12px;
}

.emna-quote-lines {
    min-width: 980px;
}

.emna-quote-lines thead th {
    background: #f8fafc !important;
    border-bottom: 1px solid #dfe8f2 !important;
    color: #14213d !important;
    font-size: 13px;
    font-weight: 900;
    padding: 12px !important;
}

.emna-quote-lines tbody td {
    border-color: #edf1f6 !important;
    color: #344054;
    font-weight: 700;
    padding: 12px !important;
    vertical-align: middle;
}

.emna-quote-lines tbody td strong {
    color: #111827;
    display: block;
    font-weight: 900;
}

.emna-quote-lines tbody td small {
    color: #667085;
    display: block;
    font-weight: 700;
    margin-top: 4px;
}

.emna-line-edit-input {
    border-color: #d8e3ef;
    border-radius: 6px;
    box-shadow: none !important;
    color: #14213d;
    font-weight: 900;
    min-height: 34px;
    padding: 6px 8px;
}

.emna-line-quantity-input {
    max-width: 78px;
    min-width: 68px;
    width: 78px;
}

.emna-quote-lines .emna-quote-quantity-stock {
    align-items: flex-start;
}

.line-quantity > span {
    color: #5f6f86;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.emna-quote-new-page .emna-quote-line-grid .line-quantity > span {
    margin-bottom: 0;
}

.emna-quote-quantity-stock {
    align-items: center;
    display: flex;
    gap: 7px;
    position: relative;
}

.emna-quote-stock-availability {
    position: relative;
}

.emna-quote-stock-availability.is-stock-popover-open {
    z-index: 1105;
}

.emna-quote-stock-availability > summary {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e3ef;
    border-radius: 5px;
    color: #4c7c98;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    list-style: none;
    gap: 3px;
    min-width: 30px;
    padding: 0 3px;
}

.line-quantity .emna-quote-stock-availability > summary {
    min-width: 46px;
}

.line-quantity .emna-quote-stock-availability > summary {
    height: 42px;
}

.emna-quote-stock-availability > summary::-webkit-details-marker {
    display: none;
}

.emna-quote-stock-availability > summary:hover,
.emna-quote-stock-availability[open] > summary {
    background: #eff8fb;
    border-color: #8bbbc9;
    color: #155e75;
}

.emna-quote-stock-availability.is-insufficient > summary {
    border-color: #fda29b;
    color: #d92d20;
}

.emna-quote-stock-count {
    align-items: center;
    background: #e8f5ee;
    border: 1px solid #b8e2c9;
    border-radius: 999px;
    color: #087f5b;
    display: inline-flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    line-height: 1.05;
    min-width: 38px;
    padding: 2px 5px;
}

.emna-quote-stock-count small {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.emna-quote-stock-availability.is-insufficient .emna-quote-stock-count {
    background: #fff1f0;
    border-color: #fda29b;
    color: #d92d20;
}

.emna-quote-stock-availability > summary .fe {
    font-size: 15px;
}

.emna-quote-stock-popover {
    background: #fff;
    border: 1px solid #d8e3ef;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(20, 33, 61, .16);
    color: #344054;
    left: 50%;
    min-width: 270px;
    padding: 14px 16px;
    position: absolute;
    top: calc(100% + 7px);
    transform: translateX(-50%);
    z-index: 1100;
    pointer-events: none;
}

.emna-quote-stock-popover > strong {
    color: #14213d;
    display: block;
    font-size: 15px;
    margin-bottom: 11px;
}

.emna-quote-stock-popover > div {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.emna-quote-stock-popover > div span {
    color: #5f6f86;
    font-size: 13px;
}

.emna-quote-stock-popover > div b {
    color: #14213d;
    font-size: 14px;
}

.emna-quote-stock-popover > div.available {
    border-top: 1px solid #e6edf5;
    margin-top: 10px;
    padding-top: 10px;
}

.emna-quote-stock-popover > div.available b,
.emna-quote-stock-popover > div.available.is-insufficient b {
    color: #087f5b;
}

.emna-quote-stock-popover > div.shortage b {
    color: #d92d20;
}

.emna-quote-stock-popover .emna-quote-stock-updated {
    display: block;
    font-size: 12px;
    margin-top: 9px;
}

.emna-quote-stock-popover .emna-quote-stock-updated {
    color: #667085;
}

.emna-line-price-input {
    min-width: 110px;
}

.emna-quote-price-context {
    align-items: flex-start;
    background: #eff8ff;
    border: 1px solid #b2ddff;
    border-radius: 6px;
    color: #175cd3;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    line-height: 1.4;
    margin-top: 7px;
    padding: 7px 9px;
}

.emna-quote-price-context .fe {
    flex: 0 0 auto;
    height: 14px;
    margin-top: 1px;
    width: 14px;
}

.emna-line-edit-input:focus {
    border-color: #7ab7cc;
    box-shadow: none !important;
}

.emna-quote-product-title {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding-left: 18px;
    position: relative;
}

.emna-quote-product-title::before {
    background: #a7dce7;
    border-radius: 999px;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
}

.emna-quote-product-title strong {
    font-family: "Comic Sans MS", "Comic Neue", cursive;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
    min-width: 0;
    text-transform: uppercase;
}

.emna-quote-product-name {
    display: block;
    min-width: 0;
}

.emna-quote-lines .emna-quote-product-name small {
    font-size: 10px;
    margin-top: 1px !important;
}

.emna-quote-product-title + small {
    margin-left: 58px;
}

.emna-line-product td {
    background: #f8fcfd !important;
}

.emna-line-product:hover td {
    background: #f2f9fb !important;
}

.emna-line-product-badge,
.emna-line-section-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0;
    min-height: 22px;
    padding: 0 8px;
    text-transform: uppercase;
}

.emna-line-section td {
    background: linear-gradient(90deg, #98dce6 0%, #bdeef4 62%, #d7f7fb 100%) !important;
    border-bottom: 2px solid #55bac7 !important;
    border-top: 2px solid #55bac7 !important;
    color: #06223d !important;
    font-size: 16px;
    font-weight: 950 !important;
    text-transform: uppercase;
}

.emna-line-section td:first-child {
    border-left: 8px solid #0f7f8d !important;
}

.emna-line-section td:first-child > strong {
    color: #06223d;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: 0;
    margin-left: 8px;
    vertical-align: middle;
}

.emna-line-section-badge {
    background: #0f7f8d;
    color: #ffffff;
    margin-left: 2px;
}

.emna-line-product-badge {
    background: #e9f8fc;
    border: 1px solid #b8dbe7;
    color: #127f8d;
}

.emna-line-section-total {
    align-items: center;
    background: #ffffff;
    border: 1px solid #8ed4dd;
    border-radius: 999px;
    color: #071a36;
    display: inline-flex;
    font-size: 15px;
    font-weight: 950;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    white-space: nowrap;
}

.emna-line-section i {
    color: #0f7f8d;
    margin-right: 10px;
}

.emna-quote-order-actions,
.emna-quote-line-actions {
    display: inline-flex;
    gap: 5px;
}

.emna-quote-order-actions {
    margin-left: 12px;
    vertical-align: middle;
}

.emna-quote-order-actions button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b7edf3;
    border-radius: 6px;
    color: #0f7f8d;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 30px;
}

.emna-quote-order-actions button i {
    color: inherit;
    font-size: 13px;
    margin: 0;
}

.emna-quote-line-actions .btn {
    align-items: center;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.emna-quote-lines tr[draggable="true"] {
    cursor: grab;
}

.emna-quote-lines tr[draggable="true"]:active {
    cursor: grabbing;
}

.emna-quote-drag-handle {
    align-items: center;
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 6px;
    color: #1f6f78;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    margin-right: 0;
    min-width: 28px;
    vertical-align: middle;
    width: 28px;
}

.emna-quote-drag-handle i {
    color: inherit;
    font-size: 14px;
    margin: 0;
}

.emna-quote-dragging td {
    opacity: .5;
}

.emna-quote-drop-target td {
    background: #e6f7fb !important;
    outline: 2px dashed #17a2b8;
    outline-offset: -4px;
}

.emna-quote-totals {
    display: grid;
    gap: 8px;
    justify-content: end;
    margin-top: 14px;
    margin-left: auto;
    margin-right: 18px;
    max-width: 410px;
    width: min(410px, 100%);
}

.emna-quote-totals div {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 11px 14px;
}

.emna-quote-discount-row {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 44px;
    padding: 10px 12px;
}

.emna-quote-discount-row label {
    margin: 0;
}

.emna-quote-discount-row span {
    display: block;
    margin-bottom: 4px;
}

.emna-quote-discount-row input {
    font-weight: 800;
    height: 38px;
}

.emna-quote-discount-row .btn {
    align-self: end;
    height: 38px;
    padding: 0;
    width: 44px;
}

.emna-quote-discount-row small {
    color: #dc3545;
    grid-column: 1 / -1;
}

.emna-quote-totals strong {
    color: #14213d;
    font-size: 18px;
    font-weight: 900;
}

.emna-quote-totals .total {
    background: #eef8fa;
    border-color: #cde8eb;
}

.emna-quote-totals .total strong {
    color: #087f5b;
    font-size: 22px;
}

.emna-quotes-table {
    min-width: 1180px;
}

.emna-quotes-table thead th {
    background: #f8fafc !important;
    border-bottom: 1px solid #dfe8f2 !important;
    color: #5f6f86 !important;
    font-size: 12px;
    font-weight: 900;
    padding: 13px 14px !important;
    text-transform: uppercase;
}

.emna-quotes-table tbody td {
    border-color: #edf1f6 !important;
    color: #344054;
    font-weight: 700;
    padding: 11px 12px !important;
    vertical-align: middle;
}

.emna-quotes-table tbody tr:hover td {
    background: #fbfdff;
}

.emna-quotes-table strong {
    color: #14213d;
    display: block;
    font-weight: 900;
}

.emna-quotes-document strong,
.emna-quotes-order-ref a {
    font-size: 13px;
    line-height: 1.15;
}

.emna-quotes-document small {
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
}

.emna-quotes-client strong,
.emna-quotes-vehicle strong {
    font-size: 13px;
    line-height: 1.2;
}

.emna-quotes-client strong {
    font-size: 12px;
    line-height: 1.18;
}

.emna-quotes-vehicle strong {
    white-space: nowrap;
}

.emna-quotes-client small,
.emna-quotes-vehicle small,
.emna-quotes-payment-cell small,
.emna-quotes-total-cell small {
    font-size: 11px;
    line-height: 1.22;
}

.emna-quotes-vehicle small {
    display: grid;
    gap: 2px;
}

.emna-quotes-vehicle small span {
    display: block;
    white-space: nowrap;
}

.emna-quotes-client small {
    font-size: 10px;
}

.emna-quotes-client small span {
    display: block;
    line-height: 1.18;
    white-space: nowrap;
}

.emna-quotes-payment-cell,
.emna-quotes-total-cell {
    min-width: 134px;
}

.emna-quotes-payment-cell small,
.emna-quotes-total-cell small {
    display: grid;
    font-size: 10px;
    gap: 2px;
    line-height: 1.18;
    margin-top: 5px;
}

.emna-quotes-payment-cell small span,
.emna-quotes-total-cell small span {
    display: block;
    white-space: nowrap;
}

.emna-quotes-order-ref a {
    background: #eaf7fa;
    display: inline-block;
    padding: 2px 4px;
    text-decoration: none;
    white-space: nowrap;
}

.emna-quotes-table small {
    color: #667085;
    display: block;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 4px;
}

.emna-quotes-table b {
    color: #087f5b;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.emna-quotes-row-actions {
    background: #ffffff;
    border: 1px solid #d9e8ef;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(10, 51, 84, .14);
    display: none;
    gap: 5px;
    margin: 0 0 6px auto;
    min-width: 148px;
    padding: 6px;
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    top: auto;
    transform: translateZ(0);
    z-index: 30;
}

.emna-quotes-actions-menu {
    display: grid;
    min-width: 0;
    justify-items: end;
    position: relative;
}

.emna-quotes-action-cell {
    overflow: visible !important;
    position: relative;
}

.emna-quotes-actions-menu[open] > .emna-quotes-row-actions {
    display: grid;
}

.emna-quotes-actions-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b8d5e0;
    border-radius: 7px;
    color: #14213d;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 5px;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.emna-quotes-actions-toggle.is-disabled,
.emna-quotes-actions-toggle.is-disabled:disabled {
    background: #edf1f4;
    border-color: #cbd5dc;
    color: #74808a;
    cursor: not-allowed;
    opacity: .8;
    box-shadow: none;
}

.emna-quotes-actions-toggle::-webkit-details-marker {
    display: none;
}

.emna-quotes-actions-toggle:hover,
.emna-quotes-actions-toggle:focus-visible,
.emna-quotes-actions-menu[open] > .emna-quotes-actions-toggle {
    background: #e9f8fc;
    border-color: #0f6b7a;
    color: #0f6b7a;
    outline: none;
}

.emna-quotes-actions-toggle svg {
    height: 16px;
    width: 16px;
}

.emna-quotes-row-actions a,
.emna-quotes-row-actions button {
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #7bb8ca !important;
    border-radius: 6px;
    color: #14213d !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 5px;
    justify-content: flex-start;
    line-height: 1;
    min-height: 28px;
    padding: 6px 9px;
    box-shadow: 0 1px 0 rgba(10, 51, 84, .06);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
    white-space: nowrap;
    width: 100%;
}

.emna-quotes-row-actions a *,
.emna-quotes-row-actions a i,
.emna-quotes-row-actions button *,
.emna-quotes-row-actions button i {
    color: inherit !important;
}

.emna-quotes-row-actions a i,
.emna-quotes-row-actions button i {
    font-size: 12px;
    margin: 0;
}

.emna-quotes-row-actions a.primary {
    background: #1264ff !important;
    border-color: #1264ff !important;
    color: #fff !important;
}

.emna-quotes-row-actions a:hover,
.emna-quotes-row-actions button:hover {
    background: #e9f8fc !important;
    border-color: #0f6b7a !important;
    color: #0f6b7a !important;
    box-shadow: 0 6px 16px rgba(10, 51, 84, .11);
    transform: translateY(-1px);
}

.emna-quotes-row-actions a.primary:hover {
    background: #0f49d8 !important;
    border-color: #0f49d8 !important;
    color: #fff !important;
}

.emna-quote-status {
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 999px;
    color: #1f6f78;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    min-height: 24px;
    padding: 5px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.emna-quote-payment {
    font-size: 9px;
    line-height: 1;
    min-height: 22px;
    padding: 4px 8px;
}

.emna-quote-preview {
    background: #f9fcff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    margin-top: 16px;
    padding: 16px;
}

.emna-quote-preview-head {
    align-items: center;
    border-bottom: 1px solid #e6edf5;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.emna-quote-preview-head span,
.emna-quote-preview-meta span {
    color: #5f6f86;
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.emna-quote-preview-head h4 {
    color: #14213d;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 3px 0 0;
}

.emna-quote-preview-head > strong {
    background: #eef8fa;
    border: 1px solid #cde8eb;
    border-radius: 999px;
    color: #1f6f78;
    font-weight: 900;
    padding: 8px 12px;
}

.emna-quote-preview-meta {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.emna-quote-preview-meta div {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    padding: 12px;
}

.emna-quote-preview-meta strong {
    color: #14213d;
    display: block;
    font-size: 17px;
    font-weight: 900;
    margin-top: 5px;
}

.emna-quote-preview-meta small {
    color: #667085;
    display: block;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 5px;
}

.emna-quotes-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cdd8e5;
    border-radius: 8px;
    color: #667085;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px;
    text-align: center;
}

.emna-quotes-empty.compact {
    margin: 10px;
    padding: 18px;
}

.emna-quotes-empty i,
.emna-quotes-empty strong {
    color: #1f6f78;
}

.emna-quotes-empty strong {
    font-size: 16px;
    font-weight: 900;
}

.dark-theme .emna-quotes-page {
    color: #dbe4f0;
}

.dark-theme .emna-quotes-command {
    background: linear-gradient(135deg, #111827 0%, #1f2940 58%, #12343b 100%);
    border-color: rgba(255, 255, 255, .1);
}

.dark-theme .emna-quotes-command h2,
.dark-theme .emna-quotes-command aside strong,
.dark-theme .emna-quotes-panel-head h3,
.dark-theme .emna-quote-form-head h3,
.dark-theme .emna-quote-preview-head h4,
.dark-theme .emna-quote-section-title strong,
.dark-theme .emna-quote-row strong,
.dark-theme .emna-quote-row b,
.dark-theme .emna-quote-lines tbody td strong,
.dark-theme .emna-quote-preview-meta strong,
.dark-theme .emna-quote-totals strong {
    color: #fff;
}

.dark-theme .emna-quotes-command p,
.dark-theme .emna-quote-row small,
.dark-theme .emna-quote-lines tbody td small {
    color: #b6c2d6;
}

.dark-theme .emna-quotes-list,
.dark-theme .emna-quotes-editor,
.dark-theme .emna-quotes-stat,
.dark-theme .emna-quote-form,
.dark-theme .emna-quote-line-form,
.dark-theme .emna-quote-lines-card,
.dark-theme .emna-quote-preview,
.dark-theme .emna-quote-preview-meta div,
.dark-theme .emna-quote-section-picker button,
.dark-theme .emna-quote-product-suggestions,
.dark-theme .emna-quote-product-option,
.dark-theme .emna-quotes-command aside div,
.dark-theme .emna-quote-row {
    background: var(--dark-theme);
    border-color: rgba(255, 255, 255, .1);
}

.dark-theme .emna-odoo-bar,
.dark-theme .emna-status-ribbon,
.dark-theme .emna-quotes-search,
.dark-theme .emna-quotes-empty,
.dark-theme .emna-quote-section-title,
.dark-theme .emna-quote-section-title i,
.dark-theme .emna-quotes-panel-head strong,
.dark-theme .emna-quote-form-head strong,
.dark-theme .emna-quote-preview-head > strong,
.dark-theme .emna-quote-row-icon,
.dark-theme .emna-quote-drag-handle,
.dark-theme .emna-quote-order-actions button,
.dark-theme .emna-quote-product-suggestions-head,
.dark-theme .emna-quote-totals div,
.dark-theme .emna-quote-lines thead th,
.dark-theme .emna-quotes-table thead th,
.dark-theme .emna-line-section td {
    background: var(--dark-body) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

.dark-theme .emna-quote-form-grid .form-control,
.dark-theme .emna-quote-form-grid .form-select,
.dark-theme .emna-quote-line-grid .form-control,
.dark-theme .emna-quote-line-grid .form-select,
.dark-theme .emna-line-edit-input {
    background: var(--dark-body);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.dark-theme .emna-quote-lines tbody td {
    border-color: rgba(255, 255, 255, .08) !important;
    color: #dbe4f0;
}

.dark-theme .emna-quote-stock-availability > summary,
.dark-theme .emna-quote-stock-popover {
    background: var(--dark-body);
    border-color: rgba(255, 255, 255, .14);
    color: #dbe4f0;
}

.dark-theme .emna-quote-stock-popover > strong,
.dark-theme .emna-quote-stock-popover > div b {
    color: #fff;
}

.dark-theme .emna-quote-stock-availability.is-insufficient > summary {
    color: #fda29b;
}

.dark-theme .emna-quote-stock-availability.is-insufficient .emna-quote-stock-count {
    background: rgba(217, 45, 32, .18);
    border-color: rgba(253, 162, 155, .5);
    color: #fda29b;
}

.dark-theme .emna-quote-stock-popover > div.shortage b {
    color: #fda29b;
}

.dark-theme .emna-quote-stock-popover > div span,
.dark-theme .emna-quote-stock-popover .emna-quote-stock-updated {
    color: #b6c2d6;
}

.dark-theme .emna-quotes-table tbody td {
    border-color: rgba(255, 255, 255, .08) !important;
    color: #dbe4f0;
}

.dark-theme .emna-quotes-table tbody tr:hover td {
    background: var(--dark-body);
}

.dark-theme .emna-quotes-stat strong,
.dark-theme .emna-quote-section-picker span,
.dark-theme .emna-quote-product-suggestions-head strong,
.dark-theme .emna-quote-product-option strong,
.dark-theme .emna-quotes-table strong {
    color: #fff;
}

.dark-theme .emna-quotes-stat span,
.dark-theme .emna-quotes-stat small,
.dark-theme .emna-quote-product-suggestions-head span,
.dark-theme .emna-quote-product-option small,
.dark-theme .emna-quotes-table small {
    color: #b6c2d6;
}

.dark-theme .emna-quotes-row-actions a,
.dark-theme .emna-quotes-row-actions button {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    color: #dbe4f0;
}

.dark-theme .emna-quotes-row-actions {
    background: #172334;
    border-color: rgba(255, 255, 255, .16);
}

.dark-theme .emna-quotes-actions-toggle {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    color: #dbe4f0;
}

.dark-theme .emna-quotes-row-actions a.primary {
    background: #127f8d;
    border-color: #127f8d;
    color: #fff;
}

.dark-theme .emna-quotes-row-actions a:hover,
.dark-theme .emna-quotes-row-actions button:hover {
    background: rgba(18, 127, 141, .22);
    border-color: rgba(125, 211, 252, .35);
    color: #7dd3fc;
}

.dark-theme .emna-quotes-row-actions a.primary:hover {
    background: #0f6b7a;
    border-color: #0f6b7a;
    color: #fff;
}

.dark-theme .emna-quote-product-empty {
    background: rgba(240, 173, 78, .16);
    border-color: rgba(240, 173, 78, .28);
}

.dark-theme .emna-quote-product-create {
    background: rgba(25, 179, 107, .16);
    border-color: rgba(25, 179, 107, .28);
}

.dark-theme .emna-quote-drop-target td {
    background: rgba(23, 162, 184, .18) !important;
    outline-color: rgba(23, 162, 184, .65);
}

.emna-followups-page {
    display: grid;
    gap: 18px;
}

.emna-followups-hero,
.emna-followups-toolbar,
.emna-followups-settings,
.emna-followups-board {
    background: #fff;
    border: 1px solid #d8e7f3;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.emna-followups-hero {
    align-items: center;
    background: linear-gradient(135deg, #15314a 0%, #167b80 55%, #233f56 100%);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
    overflow: hidden;
    padding: 18px 20px;
    position: relative;
}

.emna-followups-hero::before {
    background: rgba(255, 255, 255, .72);
    bottom: 16px;
    content: "";
    left: 0;
    position: absolute;
    top: 16px;
    width: 5px;
}

.emna-followups-hero-copy {
    padding-left: 10px;
}

.emna-followups-hero span,
.emna-followups-board header span,
.emna-followup-form label span,
.emna-followup-dates span {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.emna-followups-hero > .emna-followups-hero-copy > span {
    color: rgba(255, 255, 255, .72);
}

.emna-followups-hero h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.12;
    margin: 3px 0 7px;
    max-width: 740px;
}

.emna-followups-hero p {
    color: #fff;
    font-size: 13px;
    margin: 0;
    max-width: 700px;
}

.emna-followups-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.emna-followups-hero-actions .btn {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 14px;
}

.emna-followups-hero aside {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emna-followups-hero article {
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    box-shadow: 0 14px 26px rgba(9, 32, 52, .12);
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 78px;
    overflow: hidden;
    padding: 12px 14px;
    position: relative;
}

.emna-followups-hero article::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
    content: "";
    inset: 0 0 auto;
    height: 1px;
    position: absolute;
}

.emna-followups-hero article.danger {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .28);
}

.emna-followups-hero article > i,
.emna-followups-hero article > svg.fe {
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 18px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.emna-followups-hero article.danger > i,
.emna-followups-hero article.danger > svg.fe {
    background: rgba(255, 228, 232, .22);
    border-color: rgba(254, 205, 211, .55);
    color: #ffffff;
}

.emna-followups-hero article strong {
    color: #ffffff;
    display: block;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    margin-top: 3px;
}

.emna-followups-hero article span {
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}

.emna-followups-toolbar {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.emna-followups-search {
    align-items: center;
    background: #fff;
    border: 1px solid #bfe3ef;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 52px;
    padding: 6px 12px;
}

.emna-followups-search i,
.emna-followups-search svg.fe {
    align-items: center;
    background: #e6f8fb;
    border: 1px solid #c7eef4;
    border-radius: 8px;
    color: #0e7490;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    position: static;
    transform: none;
    width: 32px;
}

.emna-followups-search input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #0f172a;
    font-weight: 800;
    min-height: 38px;
    min-width: 0;
    padding: 0 6px 0 0 !important;
    width: 100%;
}

.emna-followups-search input:focus {
    background: transparent;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, .12);
}

.emna-followups-filters,
.emna-followups-reminders,
.emna-followups-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emna-followups-filters button,
.emna-followups-reminders button {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 7px;
    min-height: 34px;
    padding: 8px 12px;
}

.emna-followups-filters button.active,
.emna-followups-reminders button.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.emna-followups-reminders button.danger {
    border-color: #fb7185;
    color: #be123c;
}

.emna-followups-reminders button.danger.active {
    background: #be123c;
    border-color: #be123c;
    color: #fff;
}

.emna-followups-settings {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px;
}

.emna-followups-legend span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 7px;
    padding: 8px 10px;
}

.emna-followups-legend i {
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 999px;
    display: inline-block;
    height: 13px;
    width: 13px;
}

.emna-followups-settings form {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emna-followups-settings > small {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.emna-followups-settings label span {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.emna-followups-settings input {
    max-width: 130px;
}

.emna-followups-alert-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.emna-followups-alert-strip article {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 74px;
    padding: 12px;
}

.emna-followups-alert-strip article.late {
    background: #fff1f2;
    border-color: #fecdd3;
}

.emna-followups-alert-strip article.today {
    background: #fffbeb;
    border-color: #fde68a;
}

.emna-followups-alert-strip i {
    color: #0f172a;
    font-size: 18px;
}

.emna-followups-alert-strip strong,
.emna-followups-alert-strip span {
    display: block;
    overflow-wrap: anywhere;
}

.emna-followups-alert-strip strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.emna-followups-alert-strip span {
    color: #475569;
    font-size: 12px;
}

.emna-followups-board {
    overflow: hidden;
}

.emna-followups-board > header {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.emna-followups-board h3 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    margin: 2px 0 0;
}

.emna-followups-board header small {
    color: #64748b;
    font-weight: 800;
}

.emna-followups-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
    padding: 10px;
}

.emna-followup-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--followup-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 8px;
}

.emna-followup-card:has(.emna-followup-details[open]) {
    grid-column: 1 / -1;
}

.emna-followup-card-main {
    align-items: start;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(118px, .78fr);
    padding: 12px 14px 4px;
}

.emna-followup-doc,
.emna-followup-person,
.emna-followup-vehicle,
.emna-followup-statuses,
.emna-followup-dates {
    min-width: 0;
}

.emna-followup-doc {
    align-items: center;
    display: flex;
    gap: 8px;
}

.emna-followup-color {
    background: var(--followup-color, #e2e8f0);
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 999px;
    flex: 0 0 14px;
    height: 14px;
    width: 14px;
}

.emna-followup-card strong,
.emna-followup-card small {
    display: block;
    overflow-wrap: anywhere;
}

.emna-followup-card strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.emna-followup-card small {
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}

.emna-followup-person small {
    align-items: center;
    display: flex;
    gap: 5px;
}

.emna-followup-statuses span {
    background: var(--followup-color, #f8fafc);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 8px;
}

.emna-followup-statuses b {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    margin-top: 6px;
    padding: 5px 8px;
}

.emna-followup-statuses .reminder-late {
    background: #ffe4e6;
    color: #be123c;
}

.emna-followup-statuses .reminder-today {
    background: #fef3c7;
    color: #92400e;
}

.emna-followup-statuses .reminder-soon {
    background: #dbeafe;
    color: #1d4ed8;
}

.emna-followup-details {
    border-top: 1px solid #e2e8f0;
    margin-top: 6px;
    padding-top: 8px;
}

.emna-followup-card-notice {
    align-items: center;
    border-radius: 8px;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    gap: 8px;
    margin: 8px 12px 0;
    padding: 9px 11px;
}

.emna-followup-card-notice.success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.emna-followup-card-notice.danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.emna-followup-form-notice {
    grid-column: span 2;
    margin: 0;
}

.emna-followup-details summary {
    align-items: center;
    background: linear-gradient(135deg, #eef7ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    gap: 9px;
    justify-content: space-between;
    margin: 0 12px 6px;
    padding: 9px 11px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.emna-followup-details summary::marker,
.emna-followup-details summary::-webkit-details-marker {
    display: none;
}

.emna-followup-details summary:hover {
    border-color: #60a5fa;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.emna-followup-details[open] summary {
    background: #eff6ff;
    border-color: #3b82f6;
    margin-bottom: 0;
}

.emna-followup-summary-icon {
    align-items: center;
    background: #2563eb;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.emna-followup-summary-text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.emna-followup-summary-text strong,
.emna-followup-summary-text small {
    display: block;
    overflow-wrap: anywhere;
}

.emna-followup-summary-text strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.emna-followup-summary-text small {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.emna-followup-details summary > b {
    align-items: center;
    background: #e0f7fb;
    border: 1px solid #9bdbe7;
    border-radius: 999px;
    color: #075f70;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
}

.emna-followup-details summary:hover > b {
    background: #cff4fb;
    border-color: #74cde0;
    color: #064f5d;
}

.emna-followup-details[open] summary > b {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.emna-followup-details summary > b .when-open,
.emna-followup-details[open] summary > b .when-closed {
    display: none;
}

.emna-followup-details[open] summary > b .when-open {
    display: inline;
}

.emna-followup-details[open] summary > b i {
    transform: rotate(180deg);
}

.emna-followup-form {
    background: #f8fbfd;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr);
    padding: 12px;
}

.emna-followup-panel {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 11px;
}

.emna-followup-panel.notes {
    grid-column: span 2;
}

.emna-followup-panel header {
    align-items: center;
    display: flex;
    gap: 10px;
}

.emna-followup-panel header i,
.emna-followup-panel header svg.fe {
    align-items: center;
    background: #eff6ff;
    border-radius: 8px;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.emna-followup-panel header strong,
.emna-followup-panel header span {
    display: block;
}

.emna-followup-panel header strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.emna-followup-panel header span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.emna-followup-fields {
    display: grid;
    gap: 10px;
}

.emna-followup-fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emna-followup-fields.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.emna-followup-fields.four {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(92px, .55fr) minmax(170px, 1fr);
}

.emna-followup-form label,
.emna-followup-responsible-field {
    display: grid;
    gap: 5px;
}

.emna-followup-form label em,
.emna-followup-responsible-field em {
    color: #be123c;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.emna-followup-responsible-display {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 9px 11px;
}

.emna-followup-responsible-display i {
    color: #2563eb;
}

.emna-followup-responsible-display strong {
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 900;
}

.emna-followup-form .form-control,
.emna-followup-form .form-select {
    background: #fff;
    border-color: #cbdff0;
    color: #0f172a;
    font-weight: 800;
    min-height: 42px;
}

.emna-followup-form textarea.form-control {
    min-height: 96px;
}

.emna-followup-form .form-control:focus,
.emna-followup-form .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.emna-followup-form-actions {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    grid-column: span 2;
    padding: 10px;
}

.emna-followup-open,
.emna-followup-save {
    align-items: center;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 11px 16px;
    text-decoration: none;
    transition: box-shadow .16s ease, transform .16s ease, background .16s ease;
    white-space: nowrap;
}

.emna-followup-open {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    min-width: 135px;
}

.emna-followup-save {
    background: #0b5ed7;
    box-shadow: 0 10px 22px rgba(11, 94, 215, .25);
    color: #fff !important;
    min-width: 185px;
}

.emna-followup-open:hover,
.emna-followup-save:hover {
    transform: translateY(-1px);
}

.emna-followup-open:hover {
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .09);
    color: #0f172a;
}

.emna-followup-save:hover {
    background: #064bb1;
    box-shadow: 0 12px 26px rgba(11, 94, 215, .34);
    color: #fff !important;
}

.emna-followup-save[disabled] {
    cursor: wait;
    opacity: .82;
    transform: none;
}

.emna-followup-loading-icon {
    animation: emna-followup-spin .8s linear infinite;
}

@keyframes emna-followup-spin {
    to {
        transform: rotate(360deg);
    }
}

.emna-followup-save *,
.emna-followup-save i,
.emna-followup-save span {
    color: #fff !important;
}

.emna-followups-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 34px;
    text-align: center;
}

.emna-followups-empty i,
.emna-followups-empty svg.fe {
    color: #0f172a;
    font-size: 28px;
}

.emna-followups-empty strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

body.dark-theme .emna-followups-hero,
body.dark-theme .emna-followups-toolbar,
body.dark-theme .emna-followups-settings,
body.dark-theme .emna-followups-board,
body.dark-theme .emna-followup-card {
    background: #101827;
    border-color: rgba(255, 255, 255, .12);
}

body.dark-theme .emna-followups-hero h2,
body.dark-theme .emna-followups-board h3,
body.dark-theme .emna-followup-card strong,
body.dark-theme .emna-followup-details summary {
    color: #e5edf7;
}

body.dark-theme .emna-followups-hero p,
body.dark-theme .emna-followup-card small,
body.dark-theme .emna-followups-board header small {
    color: #a8b3c7;
}

body.dark-theme .emna-followups-search {
    background: #0f172a;
    border-color: rgba(125, 211, 252, .25);
}

body.dark-theme .emna-followups-search i {
    background: rgba(125, 211, 252, .12);
    border-color: rgba(125, 211, 252, .22);
    color: #7dd3fc;
}

body.dark-theme .emna-followups-search input {
    color: #e5edf7;
}

body.dark-theme .emna-followups-hero article,
body.dark-theme .emna-followups-legend span,
body.dark-theme .emna-followup-details summary,
body.dark-theme .emna-followups-empty {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}

body.dark-theme .emna-followup-details summary {
    background: rgba(37, 99, 235, .18);
}

body.dark-theme .emna-followup-summary-text strong {
    color: #e5edf7;
}

body.dark-theme .emna-followup-summary-text small {
    color: #b8c3d6;
}

body.dark-theme .emna-followup-open {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    color: #e5edf7;
}

body.dark-theme .emna-followup-details summary > b {
    background: rgba(125, 211, 252, .18);
    border-color: rgba(125, 211, 252, .34);
    color: #7dd3fc;
}

body.dark-theme .emna-followup-form {
    background: rgba(255, 255, 255, .04);
}

body.dark-theme .emna-followup-panel,
body.dark-theme .emna-followup-form-actions {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}

body.dark-theme .emna-followup-panel header strong {
    color: #e5edf7;
}

body.dark-theme .emna-followup-panel header span {
    color: #b8c3d6;
}

@media (max-width: 1400px) {
    .emna-quotes-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .emna-quotes-grid,
    .emna-quotes-command {
        grid-template-columns: 1fr;
    }

    .emna-quotes-command aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emna-followups-hero,
    .emna-followup-card-main {
        grid-template-columns: 1fr;
    }

    .emna-followups-alert-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emna-followup-form {
        grid-template-columns: 1fr;
    }

    .emna-followup-panel.notes,
    .emna-followup-form-actions {
        grid-column: auto;
    }

    .emna-followup-fields.three,
    .emna-followup-fields.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emna-quote-line-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .emna-quote-section-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .emna-quote-line-grid .product {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .emna-quotes-command,
    .emna-quotes-list,
    .emna-quotes-editor,
    .emna-quote-form,
    .emna-quote-line-form,
    .emna-quote-lines-card {
        padding: 16px;
    }

    .emna-quotes-command h2 {
        font-size: 24px;
    }

    .emna-quotes-command aside,
    .emna-quotes-stats,
    .emna-followups-hero aside,
    .emna-followups-alert-strip,
    .emna-followup-form,
    .emna-quote-section-picker,
    .emna-quote-preview-meta,
    .emna-quote-form-grid,
    .emna-quote-document-row,
    .emna-quote-line-grid {
        grid-template-columns: 1fr;
    }

    .emna-followups-settings,
    .emna-followups-board > header {
        align-items: stretch;
        flex-direction: column;
    }

    .emna-followup-form label.wide {
        grid-column: auto;
    }

    .emna-followup-fields.two,
    .emna-followup-fields.three,
    .emna-followup-fields.four {
        grid-template-columns: 1fr;
    }

    .emna-followup-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .emna-followup-details summary {
        align-items: stretch;
        flex-direction: column;
    }

    .emna-followup-details summary > b {
        justify-content: center;
        width: 100%;
    }

    .emna-quote-line-grid .product,
    .emna-quote-line-grid .wide {
        grid-column: auto;
    }

    .emna-quote-section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .emna-quote-section-title .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .emna-status-ribbon {
        justify-content: flex-start;
    }

    .emna-quote-row {
        grid-template-columns: 42px 1fr;
    }

    .emna-quote-row b {
        grid-column: 2;
        grid-row: auto;
    }
}

.emna-followups-workshop {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    margin-bottom: 16px;
    min-width: 0;
}

.emna-followups-workshop-form,
.emna-followups-workshop-list {
    background: #fff;
    border: 1px solid #d9e9ef;
    border-radius: 8px;
    min-width: 0;
    padding: 14px;
}

.emna-followups-workshop header,
.emna-followups-workshop-list article {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.emna-followups-workshop header {
    border-bottom: 1px solid #e6f0f4;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.emna-followups-workshop header span {
    color: #667085;
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.emna-followups-workshop header h3 {
    color: #0f1f35;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 2px 0 0;
}

.emna-followups-workshop header > i,
.emna-followups-workshop header > svg.fe {
    align-items: center;
    background: #123f5c;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.emna-followups-workshop form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emna-followups-workshop form label {
    color: #667085;
    display: grid;
    font-size: 12px;
    font-weight: 900;
    gap: 5px;
    margin: 0;
    text-transform: uppercase;
}

.emna-followups-workshop form label:first-child,
.emna-followups-workshop form textarea,
.emna-followups-workshop form button {
    grid-column: 1 / -1;
}

.emna-followups-workshop form .form-control {
    border-color: #c8e3eb;
    border-radius: 6px;
    font-weight: 800;
    min-height: 40px;
}

.emna-followups-workshop-list > div {
    display: grid;
    gap: 8px;
}

.emna-followups-workshop-list article {
    background: #f8fbfd;
    border: 1px solid #e0eef3;
    border-radius: 8px;
    box-sizing: border-box;
    min-height: 70px;
    padding: 9px 10px;
    width: 100%;
}

.emna-followups-workshop-list article > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.emna-followups-workshop-list article strong,
.emna-followups-workshop-list article span,
.emna-followups-workshop-list article small {
    display: block;
}

.emna-followups-workshop-list article strong {
    color: #0f1f35;
    font-weight: 900;
}

.emna-followups-workshop-list article span {
    color: #4b5563;
    font-weight: 800;
}

.emna-followups-workshop-list article small {
    color: #667085;
}

.emna-workshop-date {
    align-items: center;
    background: #123f5c !important;
    border-radius: 8px;
    color: #fff !important;
    display: flex;
    flex: 0 0 58px;
    flex-direction: column;
    height: 54px;
    justify-content: center;
    text-align: center;
}

.emna-followups-workshop-list .emna-workshop-date strong,
.emna-followups-workshop-list .emna-workshop-date span {
    color: #fff !important;
    line-height: 1.1;
}

.main-content .emna-followups-workshop-list .emna-workshop-date {
    background: #123f5c !important;
}

.emna-followups-workshop-list article > a {
    align-items: center;
    background: #0f5eff;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.emna-followups-workshop-list > div > p {
    background: #f8fbfd;
    border: 1px dashed #c8e3eb;
    border-radius: 8px;
    color: #667085;
    margin: 0;
    padding: 18px;
    text-align: center;
}

.dark-theme .emna-followups-workshop-form,
.dark-theme .emna-followups-workshop-list {
    background: var(--dark-theme);
    border-color: rgba(255, 255, 255, .1);
}

.dark-theme .emna-followups-workshop header,
.dark-theme .emna-followups-workshop-list article {
    border-color: rgba(255, 255, 255, .1);
}

.dark-theme .emna-followups-workshop-list article,
.dark-theme .emna-followups-workshop-list > div > p {
    background: var(--dark-body);
}

.dark-theme .emna-followups-workshop header h3,
.dark-theme .emna-followups-workshop-list article strong {
    color: #fff;
}

@media (max-width: 1200px) {
    .emna-followups-workshop {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .emna-followups-workshop form {
        grid-template-columns: 1fr;
    }
}
.emna-quote-delete-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, .58);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1080;
}

.emna-quote-delete-modal {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .22);
    display: flex;
    gap: 16px;
    max-width: 560px;
    padding: 24px;
    width: 100%;
}

.emna-followups-assignee-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #52657d;
    font-size: 11px;
    font-weight: 800;
}

.emna-followups-assignee-filter .form-select {
    max-width: 280px;
    min-width: 210px;
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.emna-followup-form-actions .emna-followup-open {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.dark-theme .emna-followups-assignee-filter {
    color: #cbd5e1;
}

.dark-theme .emna-followups-assignee-filter .form-select {
    border-color: #365062;
    background-color: #203646;
    color: #e2edf4;
}

@media (max-width: 600px) {
    .emna-followups-assignee-filter,
    .emna-followups-assignee-filter .form-select {
        width: 100%;
        max-width: none;
    }
}

.emna-quote-delete-icon {
    align-items: center;
    background: #fff1f2;
    border-radius: 50%;
    color: #dc2626;
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
}

.emna-quote-delete-content { flex: 1; }
.emna-quote-delete-content > span { color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.emna-quote-delete-content h3 { color: #0f172a; font-size: 20px; margin: 3px 0 6px; }
.emna-quote-delete-content p { color: #64748b; margin: 0; }
.emna-quote-delete-actions { display: flex; gap: 8px; margin-left: auto; }

.emna-quote-text-edit-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, .62);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    position: fixed;
    z-index: 1090;
}

.emna-quote-text-edit-modal {
    background: #fff;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .28);
    max-width: 600px;
    overflow: hidden;
    width: 100%;
}

.emna-quote-text-edit-header {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 13px;
    padding: 20px 22px;
}

.emna-quote-text-edit-icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 12px;
    color: #2563eb;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
}

.emna-quote-text-edit-header > div { flex: 1; }
.emna-quote-text-edit-header > div > span { color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.emna-quote-text-edit-header h2 { color: #0f172a; font-size: 19px; margin: 2px 0 0; }
.emna-quote-text-edit-body { display: grid; gap: 16px; padding: 22px; }
.emna-quote-text-edit-body label { display: grid; gap: 6px; }
.emna-quote-text-edit-body label > span { color: #334155; font-size: 12px; font-weight: 800; }
.emna-quote-text-edit-body textarea { resize: vertical; }
.emna-quote-text-edit-hint,
.emna-quote-text-impact { align-items: flex-start; border-radius: 10px; display: flex; gap: 10px; margin: 0; padding: 12px 14px; }
.emna-quote-text-edit-hint { background: #eff6ff; color: #1d4ed8; font-size: 12px; line-height: 1.5; }
.emna-quote-text-locked-note { align-items: flex-start; background: #fff7ed; border-radius: 10px; color: #9a3412; display: flex; font-size: 12px; gap: 10px; line-height: 1.5; margin: 0; padding: 12px 14px; }
.emna-quote-text-impact { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.emna-quote-text-impact > .fe,
.emna-quote-text-edit-hint > .fe { flex: 0 0 18px; margin-top: 1px; }
.emna-quote-text-impact strong { display: block; font-size: 13px; }
.emna-quote-text-impact p { font-size: 12px; line-height: 1.55; margin: 4px 0 0; }
.emna-quote-text-edit-actions { border-top: 1px solid #e2e8f0; display: flex; gap: 9px; justify-content: flex-end; padding: 15px 22px; }

.dark-theme .emna-quote-text-edit-modal { background: #172b3a; border-color: #365062; }
.dark-theme .emna-quote-text-edit-header,
.dark-theme .emna-quote-text-edit-actions { border-color: #365062; }
.dark-theme .emna-quote-text-edit-header h2 { color: #e2edf4; }
.dark-theme .emna-quote-text-edit-header > div > span,
.dark-theme .emna-quote-text-edit-body label > span { color: #cbd5e1; }
.dark-theme .emna-quote-text-edit-icon { background: #203f57; color: #93c5fd; }
.dark-theme .emna-quote-text-edit-hint { background: #19364b; color: #bfdbfe; }
.dark-theme .emna-quote-text-locked-note { background: #422d20; color: #fed7aa; }
.dark-theme .emna-quote-text-impact { background: #42351e; border-color: #765c27; color: #fde68a; }

.emna-invoice-confirm-backdrop {
    align-items: center;
    background: rgba(8, 25, 40, .66);
    backdrop-filter: blur(4px);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    position: fixed;
    z-index: 1100;
}
.emna-invoice-confirm-modal {
    background: #fff;
    border: 1px solid #d4e4ec;
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(8, 25, 40, .34);
    max-width: 540px;
    overflow: hidden;
    width: 100%;
}
.emna-payment-reversal-modal {
    max-width: 860px;
}
.emna-payment-reversal-modal .emna-invoice-confirm-header {
    padding: 25px 30px;
}
.emna-payment-reversal-modal .emna-invoice-confirm-header h2 {
    font-size: 23px;
}
.emna-payment-reversal-modal .emna-invoice-confirm-body {
    padding: 26px 30px;
}
.emna-payment-reversal-modal .emna-invoice-confirm-body > p {
    font-size: 15px;
    margin-bottom: 20px;
}
.emna-payment-reversal-modal .emna-invoice-confirm-body label > span {
    color: #52697b;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}
.emna-payment-reversal-modal .emna-invoice-confirm-body .form-control,
.emna-payment-reversal-modal .emna-invoice-confirm-body .form-select {
    min-height: 46px;
    font-size: 15px;
}
.emna-payment-reversal-modal .emna-invoice-confirm-actions {
    padding: 18px 30px;
}
.emna-invoice-confirm-header { align-items: center; background: linear-gradient(120deg, #e8f7f5, #f3fbfd); border-bottom: 1px solid #d8e8ee; display: flex; gap: 14px; padding: 22px 24px; }
.emna-invoice-confirm-header.is-danger { background: linear-gradient(120deg, #fff1ee, #fff8f5); border-color: #f4d8d2; }
.emna-invoice-confirm-icon { align-items: center; background: #d8f2ed; border-radius: 14px; color: #087f75; display: inline-flex; flex: 0 0 46px; height: 46px; justify-content: center; }
.emna-invoice-confirm-header.is-danger .emna-invoice-confirm-icon { background: #ffe0d8; color: #c24132; }
.emna-invoice-confirm-header > div { flex: 1; }
.emna-invoice-confirm-header > div > span { color: #647b8d; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.emna-invoice-confirm-header h2 { color: #102b40; font-size: 19px; font-weight: 800; line-height: 1.3; margin: 3px 0 0; }
.emna-invoice-confirm-body { color: #3e5668; font-size: 14px; line-height: 1.6; padding: 22px 24px; }
.emna-invoice-confirm-body p { margin: 0 0 10px; }
.emna-invoice-confirm-body ul { margin: 0 0 16px; padding-left: 22px; }
.emna-invoice-confirm-note { align-items: flex-start; background: #f0f8fb; border: 1px solid #d9ebf1; border-radius: 11px; color: #31576c; display: flex; gap: 9px; padding: 11px 13px; }
.emna-invoice-confirm-note .fe { color: #117c91; flex: 0 0 17px; margin-top: 2px; }
.emna-payment-correction-calc { background: linear-gradient(135deg, #f1f8ff, #f5fbf8); border: 1px solid #cfe2ed; border-radius: 14px; padding: 17px; }
.emna-payment-correction-calc__heading { align-items: center; color: #163c55; display: flex; gap: 11px; margin-bottom: 15px; }
.emna-payment-correction-calc__heading > .fe { align-items: center; background: #d9edf5; border-radius: 11px; color: #117c91; display: inline-flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.emna-payment-correction-calc__heading strong,
.emna-payment-correction-calc__heading small { display: block; }
.emna-payment-correction-calc__heading small { color: #5a7384; margin-top: 2px; }
.emna-payment-correction-calc__grid { display: grid; gap: 11px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emna-payment-correction-calc__metric { align-content: center; background: rgba(255,255,255,.78); border: 1px solid #dce8ee; border-radius: 11px; display: grid; gap: 8px; min-height: 76px; padding: 12px; }
.emna-payment-correction-calc__metric > span,
.emna-payment-correction-calc__input > span { color: #52697b; display: block; font-size: 12px; font-weight: 800; }
.emna-payment-correction-calc__metric > strong { color: #173d55; font-size: 18px; line-height: 1.2; }
.emna-payment-correction-calc__metric.is-result { background: #e8f6ef; border-color: #bde2ce; }
.emna-payment-correction-calc__metric.is-result > strong { color: #147047; }
.emna-payment-correction-calc__input { display: grid; gap: 7px; }
.emna-payment-correction-calc__input .form-control { min-height: 46px; }
.emna-payment-correction-calc__formula { background: #fff; border: 1px dashed #b6d0dc; border-radius: 9px; color: #36586b; font-size: 15px; margin-top: 12px; padding: 10px 12px; text-align: center; }
.emna-payment-correction-calc__formula strong { color: #147047; }
.emna-payment-correction-calc__warning,
.emna-payment-correction-calc__hint,
.emna-payment-correction-calc__example { font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
.emna-payment-correction-calc__warning { color: #a33b2d; font-weight: 700; }
.emna-payment-correction-calc__hint { color: #536e7e; }
.emna-payment-correction-calc__example { color: #52697b; }
.emna-invoice-confirm-actions { border-top: 1px solid #e5edf1; display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; }
.dark-theme .emna-invoice-confirm-modal { background: #172b3a; border-color: #365062; }
.dark-theme .emna-invoice-confirm-header { background: linear-gradient(120deg, #193b46, #203a50); border-color: #365062; }
.dark-theme .emna-invoice-confirm-header.is-danger { background: linear-gradient(120deg, #452c31, #3c303a); }
.dark-theme .emna-invoice-confirm-header h2 { color: #e2edf4; }
.dark-theme .emna-invoice-confirm-header > div > span,
.dark-theme .emna-invoice-confirm-body { color: #cbd5e1; }
.dark-theme .emna-invoice-confirm-note { background: #203849; border-color: #365062; color: #d3e6f0; }
.dark-theme .emna-payment-correction-calc { background: linear-gradient(135deg, #1d3446, #203b3d); border-color: #365062; }
.dark-theme .emna-payment-correction-calc__heading { color: #e1edf4; }
.dark-theme .emna-payment-correction-calc__heading > .fe { background: #294b5c; color: #8dd4dc; }
.dark-theme .emna-payment-correction-calc__heading small,
.dark-theme .emna-payment-correction-calc__metric > span,
.dark-theme .emna-payment-correction-calc__input > span,
.dark-theme .emna-payment-correction-calc__example,
.dark-theme .emna-payment-correction-calc__hint { color: #bdcfda; }
.dark-theme .emna-payment-correction-calc__metric { background: #1b3040; border-color: #365062; }
.dark-theme .emna-payment-correction-calc__metric > strong { color: #e1edf4; }
.dark-theme .emna-payment-correction-calc__metric.is-result { background: #1d403a; border-color: #316052; }
.dark-theme .emna-payment-correction-calc__metric.is-result > strong,
.dark-theme .emna-payment-correction-calc__formula strong { color: #8ee0af; }
.dark-theme .emna-payment-correction-calc__formula { background: #1b3040; border-color: #456477; color: #d3e6f0; }
.dark-theme .emna-payment-correction-calc__warning { color: #ffaaa0; }
.dark-theme .emna-invoice-confirm-actions { border-color: #365062; }

@media (max-width: 640px) {
    .emna-payment-correction-calc__grid { grid-template-columns: 1fr; }
}

.emna-quotes-page .emna-quotes-pagination-pages {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 768px) {
    .main-content .emna-quotes-page .emna-quotes-command aside {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .emna-quotes-page .emna-quotes-command aside {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .emna-quotes-page .emna-quotes-command aside > div {
        align-items: center;
        box-sizing: border-box;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        min-width: 0;
        width: 100%;
    }

    .emna-quotes-page .emna-quotes-command aside > div > span {
        line-height: 1.35;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .emna-quotes-page .emna-quotes-command aside > div > strong {
        font-size: clamp(14px, 4vw, 20px);
        min-width: 0;
        overflow-wrap: anywhere;
        text-align: right;
    }

    .emna-quotes-page .emna-quotes-pagination {
        align-items: stretch;
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .emna-quotes-page .emna-quotes-pagination .emna-pagination-summary {
        justify-content: center;
    }

    .emna-quotes-page .emna-quotes-pagination .emna-pagination-controls {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .emna-quotes-page .emna-quotes-pagination .emna-pagination-controls > :first-child {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .emna-quotes-page .emna-quotes-pagination-pages {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .emna-quotes-page .emna-quotes-pagination .emna-pagination-controls > :last-child {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
    }

    .emna-quotes-page .emna-quotes-pagination-pages > * {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .emna-quotes-page,
    .emna-quotes-page > section {
        min-width: 0;
    }

    .emna-quotes-page .emna-quotes-command,
    .emna-quotes-page .emna-quotes-editor,
    .emna-quotes-page .emna-quote-form,
    .emna-quotes-page .emna-quote-line-form,
    .emna-quotes-page .emna-quote-lines-card {
        padding: 12px;
    }

    .emna-quotes-page .emna-quote-command-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emna-quotes-page .emna-quote-command-summary > .wide {
        grid-column: 1 / -1;
    }

    .main-content .emna-quote-edit-page .emna-quotes-command-form .emna-quote-command-summary > div.mobile-wide {
        align-content: start !important;
        grid-column: 1 / -1 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        min-height: 58px !important;
    }

    .emna-quotes-page .emna-quotes-command-actions {
        align-items: stretch;
        display: flex;
        flex-wrap: wrap;
    }

    .emna-quotes-page .emna-quotes-command-actions .btn {
        flex: 1 1 150px;
        justify-content: center;
    }

    .emna-quote-lines-card .table-responsive {
        overflow-x: visible;
    }

    .emna-quote-lines {
        min-width: 0;
        width: 100%;
    }

    .emna-quote-lines thead {
        display: none;
    }

    .emna-quote-lines tbody {
        display: block;
    }

    .emna-quote-lines tbody tr.emna-line-product {
        background: #fff;
        border: 1px solid #dfe8f2;
        border-radius: 9px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 0 10px;
        overflow: visible;
    }

    .emna-quote-lines tbody tr.emna-line-product > td {
        align-items: center;
        border: 0 !important;
        border-top: 1px solid #edf1f6 !important;
        display: flex;
        gap: 8px;
        justify-content: space-between;
        min-width: 0;
        padding: 8px !important;
    }

    .emna-quote-lines tbody tr.emna-line-product > td:first-child,
    .emna-quote-lines tbody tr.emna-line-product > td:last-child {
        grid-column: 1 / -1;
    }

    .emna-quote-lines tbody tr.emna-line-product > td:first-child {
        border-top: 0 !important;
        display: block;
    }

    .emna-quote-lines tbody tr.emna-line-product > td:last-child {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .emna-quote-line-mobile-label {
        color: #667085;
        flex: 0 0 auto;
        font-size: 10px;
        font-weight: 800;
    }

    .emna-quote-lines .emna-quote-product-title {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        padding-left: 15px;
    }

    .emna-quote-lines .emna-quote-product-title strong {
        font-family: "Comic Sans MS", "Comic Neue", cursive !important;
        font-weight: 900;
    }

    .emna-quote-lines tbody tr.emna-line-product > td > .emna-quote-line-mobile-label {
        display: inline-block !important;
    }

    .emna-quote-lines tbody tr.emna-line-product > td:first-child > small {
        padding-left: 15px;
    }

    .emna-quote-lines .emna-line-edit-input {
        max-width: 105px;
        min-width: 0;
        width: 100%;
    }

    .emna-quote-lines .emna-line-quantity-input {
        max-width: 68px;
        min-width: 58px;
    }

    .emna-quote-lines .emna-quote-quantity-stock {
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-end;
    }

    .emna-quote-lines .emna-quote-line-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .emna-quote-lines tbody tr.emna-line-section {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .emna-quote-lines tbody tr.emna-line-section > td {
        border: 0 !important;
        padding: 8px 4px !important;
    }

    .emna-quote-lines tbody tr.emna-line-section > td:first-child {
        grid-column: 1;
    }

    .emna-quote-lines tbody tr.emna-line-section > td:nth-child(2) {
        grid-column: 2;
    }

    .emna-quote-lines tbody tr.emna-line-section > td:last-child {
        display: none;
    }

    .emna-quote-lines tbody tr:not(.emna-line-product):not(.emna-line-section) > td {
        display: block;
    }

    .emna-quote-totals {
        grid-template-columns: 1fr;
    }

    .emna-quote-line-form > .btn-success {
        width: 100%;
    }
}

.emna-quote-line-mobile-label {
    display: none;
}

@media (max-width: 640px) {
    .emna-quote-delete-modal { align-items: stretch; flex-direction: column; }
    .emna-quote-delete-actions { justify-content: flex-end; margin-left: 0; }
    .emna-quote-text-edit-header,
    .emna-quote-text-edit-body { padding: 16px; }
    .emna-quote-text-edit-actions { padding: 13px 16px; }
    .emna-invoice-confirm-header { padding: 17px; }
    .emna-invoice-confirm-body { padding: 18px 17px; }
    .emna-invoice-confirm-actions { flex-direction: column-reverse; padding: 14px 17px; }
    .emna-invoice-confirm-actions .btn { width: 100%; }
    .emna-payment-reversal-modal .emna-invoice-confirm-header,
    .emna-payment-reversal-modal .emna-invoice-confirm-body { padding: 18px; }
    .emna-payment-reversal-modal .emna-invoice-confirm-header h2 { font-size: 20px; }
    .emna-payment-reversal-modal .emna-invoice-confirm-actions { padding: 14px 18px; }
}

body .main-content .emna-followups-page .emna-followups-workshop-form,
body .main-content .emna-followups-page .emna-followups-workshop-list,
body .main-content .emna-followups-page .emna-followups-toolbar,
body .main-content .emna-followups-page .emna-followups-settings,
body .main-content .emna-followups-page .emna-followups-board {
    background:
        linear-gradient(145deg, #fbfeff 0%, #eef7f8 100%) padding-box,
        linear-gradient(120deg, #15314a 0%, #167b80 55%, #233f56 100%) border-box !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(21, 49, 74, .12) !important;
}

.emna-followups-page .emna-followups-workshop-form > header,
.emna-followups-page .emna-followups-workshop-list > header,
.emna-followups-page .emna-followups-board > header {
    border-color: rgba(22, 123, 128, .2);
}

body .main-content .emna-followups-page .emna-followup-card {
    background:
        linear-gradient(145deg, #ffffff 0%, #f1f8f9 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(21, 49, 74, .08) !important;
    transition: box-shadow .18s ease, transform .18s ease;
}

body .main-content .emna-followups-page .emna-followup-card:hover {
    box-shadow: 0 10px 22px rgba(21, 49, 74, .14);
    transform: translateY(-1px);
}

body .main-content .emna-followups-page .emna-followup-details[open] > summary {
    background: linear-gradient(120deg, rgba(21, 49, 74, .08), rgba(22, 123, 128, .1));
}
.emna-quote-comments-backdrop {
    align-items: flex-start;
    overflow-y: auto;
    padding: clamp(12px, 2vw, 28px);
    z-index: 1250;
}

.emna-quote-comments-modal {
    background: #fff;
    border: 1px solid #cfe1eb;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(7, 25, 51, .25);
    color: #10233f;
    max-width: 1440px;
    margin: auto;
    overflow: visible;
    padding: clamp(20px, 2vw, 32px);
    width: min(96vw, 1440px);
}

.emna-quote-comments-head {
    align-items: flex-start;
    border-bottom: 1px solid #e3edf2;
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
}

.emna-quote-comments-head > div:nth-child(2) { flex: 1; }
.emna-quote-comments-head > div > span { color: #53718a; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.emna-quote-comments-head h3 { color: #10233f; font-size: 20px; font-weight: 850; margin: 3px 0 4px; }
.emna-quote-comments-head p { color: #60748a; font-size: 13px; margin: 0; }

.emna-quote-comments-icon {
    align-items: center;
    background: #e8f5fa;
    border: 1px solid #c3e4ef;
    border-radius: 13px;
    color: #12617b;
    display: flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
}

.emna-quote-comments-icon svg { height: 21px; width: 21px; }
.emna-quote-comments-body { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); padding-top: 20px; }
.emna-quote-comment-form { display: grid; gap: 8px; }
.emna-quote-comment-form > label { color: #334d67; font-size: 12px; font-weight: 800; }
.emna-quote-comment-lines { border: 1px solid #d8e6ed; border-radius: 12px; margin: 5px 0; padding: 14px; }
.emna-quote-comment-lines legend { color: #334d67; float: none; font-size: 12px; font-weight: 850; margin: 0; padding: 0 5px; width: auto; }
.emna-quote-comment-section { margin-top: 10px; }
.emna-quote-comment-section:first-of-type { margin-top: 0; }
.emna-quote-comment-section h5 { background: #eaf5f8; border-left: 3px solid #167b80; border-radius: 6px; color: #174960; font-size: 11px; font-weight: 850; margin: 0 0 7px; padding: 7px 9px; text-transform: uppercase; }
.emna-quote-comment-section-lines { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emna-quote-comment-lines label { align-items: flex-start; background: #f7fbfd; border: 1px solid #e6eef3; border-radius: 9px; cursor: pointer; display: flex; gap: 9px; margin: 0; padding: 9px; }
.emna-quote-comment-lines input { margin-top: 3px; }
.emna-quote-comment-lines span, .emna-quote-comment-lines strong, .emna-quote-comment-lines small { display: block; }
.emna-quote-comment-lines strong { color: #10233f; font-size: 12px; }
.emna-quote-comment-lines small { color: #657b8f; font-size: 10px; margin-top: 2px; }
.emna-quote-comment-submit { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 4px; }
.emna-quote-comment-submit small { color: #64788b; font-size: 11px; }
.emna-quote-comment-history { border-left: 1px solid #e3edf2; padding-left: 18px; }
.emna-quote-comment-history h4 { color: #10233f; font-size: 14px; font-weight: 850; margin: 0 0 10px; }
.emna-quote-comment-card { background: #f8fbfd; border: 1px solid #dce8ee; border-left: 4px solid #4783a0; border-radius: 11px; margin-bottom: 9px; padding: 11px; }
.emna-quote-comment-card.priority-critique { border-left-color: #dc3545; }
.emna-quote-comment-card.priority-urgente { border-left-color: #f59e0b; }
.emna-quote-comment-card-head { align-items: center; display: flex; justify-content: space-between; }
.emna-quote-comment-card-head strong { color: #9a4b00; font-size: 11px; text-transform: uppercase; }
.emna-quote-comment-card-head span { background: #e7f0f5; border-radius: 999px; color: #34546b; font-size: 10px; font-weight: 800; padding: 4px 8px; }
.emna-quote-comment-card p { color: #233b53; font-size: 12px; margin: 8px 0; white-space: pre-wrap; }
.emna-quote-comment-selected-lines { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.emna-quote-comment-selected-lines span { background: #e8f5fa; border-radius: 6px; color: #255770; font-size: 10px; padding: 4px 6px; }
.emna-quote-comment-card > small { color: #74889a; display: block; font-size: 10px; margin-bottom: 8px; }
.emna-quote-comment-empty { align-items: center; background: #f7fbfd; border: 1px dashed #c8dce6; border-radius: 12px; color: #60748a; display: flex; flex-direction: column; gap: 6px; padding: 24px 15px; text-align: center; }
.emna-quote-comment-empty svg { color: #54819a; height: 25px; width: 25px; }
.emna-quote-comment-empty strong { color: #29445d; font-size: 13px; }
.emna-quote-comment-empty span { font-size: 11px; }

@media (max-width: 900px) {
    .emna-quote-comments-body { grid-template-columns: 1fr; }
    .emna-quote-comment-history { border-left: 0; border-top: 1px solid #e3edf2; padding: 16px 0 0; }
    .emna-quote-comment-submit { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
    .emna-quote-comments-modal { border-radius: 14px; padding: 18px; width: 100%; }
    .emna-quote-comment-section-lines { grid-template-columns: 1fr; }
}
.emna-fne-template-inline {
    max-width: 125px;
    min-height: 34px;
    font-size: 12px;
}

/* Le menu des actions flotte au-dessus du tableau sans agrandir la ligne. */
.main-content .emna-quotes-table .emna-quotes-actions-menu {
    position: relative;
}

.main-content .emna-quotes-table .emna-quotes-row-actions {
    bottom: calc(100% + 6px) !important;
    display: none !important;
    margin: 0 0 6px auto !important;
    position: absolute !important;
    right: 0;
    top: auto !important;
    width: max-content !important;
    z-index: 40;
}

.main-content .emna-quotes-table .emna-quotes-actions-menu[open] > .emna-quotes-row-actions {
    display: grid !important;
}

