html
{
background: #fff;
}

body
{
margin: 0;
padding: 0;
color: #fff;
}

body, h1, h2, h3, h4, p, td, ul, li, a, textarea
{ 
font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
color: #5f5f5f; 
line-height: 120%; 
} 

textarea {
	font-weight: normal;
	font-family: monospace;
}

body, p, td, ul, li
{ font-size:small; }

.palette-login-body {
        min-height:100vh;
        display:flex;
        align-items:center;
        justify-content:center;
        background-color:#ddd;
        background-image:url('login-background.jpg');
        background-size:cover;
        background-position:center;
        background-repeat:no-repeat;
        font-family:'Poppins',sans-serif;
        color:#221e1a;
}

.palette-login-page {
        width:100%;
        padding:24px;
        display:flex;
       justify-content:center;
}

.palette-login-wrapper {
        width:100%;
        max-width:380px;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:12px;
}

.palette-login-card {
        width: 100%;
        display:flex;
        flex-direction:column;
        gap:24px;
        background-color:rgba(233,227,218,0.8);
        border:2px solid rgba(233,227,218,0.85);
        backdrop-filter:blur(18px);
        padding:36px 32px;
        border-radius:24px;
        box-shadow:0 12px 24px rgb(33,28,24);
}

.palette-login-header {        
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:12px;
}
 
.palette-login-logo {
  width:100%;
  max-width:260px;
  height:auto;
}

.palette-login-description {
      margin:0;
      font-size:0.95rem;
      line-height:1.6;
      color:#3a332c;
}

.palette-login-fields {
        display:grid;
        gap:18px;
}

.palette-login-field {
        display:grid;
        gap:8px;
}

.palette-login-field label {
        font-weight:600;
        font-size:0.9rem;
        color:#2d2620;
}

.palette-login-input {
        width:100%;
        padding:14px 16px;
       border-radius:10px;
       border:2px solid rgba(45,38,32,0.2);
       background-color:rgba(255,255,255,0.65);
        font-size:0.95rem;
        color:#221e1a;
        transition:border-color 0.3s ease, box-shadow 0.3s ease;
        box-sizing:border-box;
}

.palette-login-input::placeholder {
        color:rgba(45,38,32,0.45);
}

.palette-login-input:focus {
      border-color:#d8d1c9;
        box-shadow:0 0 0 3px rgba(216,209,201,0.45);
        outline:none;
}

.palette-login-hidden-submit {
        width:1px;
        height:1px;
        border:0;
        padding:0;
        margin:-1px;
        clip:rect(0,0,0,0);
        overflow:hidden;
        position:absolute;
}

.palette-login-actions {
        display:flex;
        flex-direction:column;
        gap:16px;
}

.palette-login-button {
        width:100%;
        padding:14px 16px;
        border-radius:12px;
        border:none;
        background:linear-gradient(180deg,#e9e3da,#d8d1c9);
        color:#1c1814;
        font-weight:600;
        font-size:0.95rem;
        cursor:pointer;
        box-shadow:0 12px 24px rgba(40,33,28,0.2);
        transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.palette-login-button:hover,
.palette-login-button:focus {
        transform:translateY(2px);
        box-shadow:0 8px 18px rgba(40,33,28,0.2);
        outline:none;
}

.palette-login-footer {
        width:100%;
        display:flex;
        justify-content:center;
        align-items:center;
        font-size:0.85rem;
        gap:4px;
        margin:0;
        color:#fff;
}

.palette-login-footer a {
        color:#3a332c;
}

.palette-login-footer-logo {
        height:22px;
        width:auto;
        vertical-align:middle;
}

@media (max-width:480px) {
        .palette-login-card {
                padding:28px 20px;
                border-radius:20px;
        }

        .palette-login-wrapper {
                gap:20px;
        }
}

.ckeditor-generated {
        vertical-align: top;
}

.ckeditor-generated p {
	font-size: 10px;
	text-align: left;
}

h1
{ 
font-size:x-large; 
}

h2
{ 
font-size:large;
}

h3
{ 
font-size:medium;
}

a
{
text-decoration:none;
}

table{
    border-collapse: collapse;
}

img { border:0; }

.p-button {
padding:3px;
cursor:pointer;
display:inline-block;
overflow:visible;
position:relative;
text-align:center;
text-decoration:none !important;
border-radius:6px 6px 6px 6px;
background:#f4eee5;
border:1px solid #a5a395;
color:#3f3731;
font-weight:bold;
font-family:Verdana,Arial,sans-serif;
font-size:1.1em;
outline:medium none;
vertical-align: middle; 
}

.p-button:hover,.p-button:focus {
background:#3f3731;
border:1px solid #a5a395;
color:#f4eee5;
}

.p-button-small {
	font-size: 10px;
	font-weight: normal;
	background-color: transparent;
}

.p-button-small:hover {
	background-color: #999;
}


.p-link{
color:#716331;
text-decoration: underline;
cursor:pointer;
}

button.p-link {
  border:0;
  background-color: transparent;
  text-decoration-style: dotted;
}

.p-button img{
vertical-align:-2px;
}

.p-back{
float:left;
margin-right:10px;
}

.p-tree-img{
width:12px;
vertical-align:-2px;
}

.p-tree-trigger{
vertical-align:-2px;
cursor:pointer;
}

.palette-change-color {
	background:#fff;
}
.palette-change-color:hover {
	background:#c9e1ff;
}

.p-input {
background:#eee;
padding:2px;
border:1px solid #ddd;
}

.p-hide{
opacity:0.3;
}

/* DESIGN */

#palette-top{
        width:100%;
        height:32px;
        position:fixed;
        top:0;
        left:0;
        background: linear-gradient(90deg, #2f0b0b 0%, #501010 100%);
        padding: 0 16px;
        color: #fff;
        z-index:99999;
        display:flex;
        align-items:center;
        justify-content:space-between;
        box-shadow:0 2px 6px rgba(0,0,0,0.35);
}

#palette-version {
        font-weight:600;
        letter-spacing:0.3px;
}

#palette-welcome {
        display:flex;
        align-items:center;
        gap:18px;
}

.palette-welcome-text {
        display:flex;
        align-items:center;
        gap:10px;
        font-size:13px;
}

.palette-top-actions {
        display:flex;
        align-items:center;
        gap:8px;
        padding-right: 20px
}

.palette-environment {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        padding:2px 10px;
        border-radius:12px;
        background-color:#ff6666;
        color:#210707;
        font-weight:700;
        font-size:12px;
        text-transform:uppercase;
        letter-spacing:0.5px;
}

.palette-top-button {
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:6px 12px;
        border-radius:4px;
        background-color:rgba(255,255,255,0.12);
        border:1px solid rgba(255,255,255,0.25);
        color:#fff;
        font-size:12px;
        line-height:1;
        text-decoration:none;
        transition:background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        cursor:pointer;
}

.palette-top-button:hover {
        background-color:rgba(255,255,255,0.25);
        box-shadow:0 2px 4px rgba(0,0,0,0.25);
        transform:translateY(-1px);
}

.palette-top-button:focus {
        outline:2px solid rgba(255,255,255,0.6);
        outline-offset:2px;
}

.palette-top-button img {
        width:14px;
        height:14px;
        display:block;
}

.palette-top-icon-button {
        padding-right:16px;
        padding-left:12px;
}

#palette_menu{
        position:fixed;
        top:32px;
        width:230px;
        height:100%;
        overflow:auto;
        direction: rtl;
        background-color: #eee;
}
#palette_menu a { font-size: normal;  }

#palette_menu-content{
	text-align:left;
	direction: ltr;
	padding:15px 15px 60px 3px;
}

#palette_menu-content a:hover{
	background-color: #fff;
}

#palette_content{
        margin-top:32px;
        padding:10px;
        margin-left:230px;
        font-size:12px;
}

.provider-home-search-panel{
        max-width:900px;
        margin:80px auto;
        text-align:center;
}

.provider-home-search-title{
        font-size:24px;
        font-weight:700;
        margin-bottom:18px;
        color:#222;
}

#search_provider_home{
        display:flex;
        justify-content:center;
        align-items:center;
        gap:12px;
}

#search_provider_home input{
        width:420px;
        max-width:70vw;
        padding:14px 16px;
        font-size:28px;
        border:1px solid #bbb;
        border-radius:8px;
}

#search_provider_home button{
        padding:14px 22px;
        font-size:20px;
}

.clearboth {
        clear: both;
        visibility: hidden;
        margin: 0;
	height: 0;
	padding: 0;
}

.tree-title {
    font-size: small;
    line-height: 20px;
    white-space: nowrap;
}

.p-details{
	color:#aaa;
	font-size:0.8em;
}

.table-form {
	border-collapse: separate;
    border-spacing: 2px 6px; 
}

.table-form td {
	vertical-align: top;
}

.table-form input, .table-form select, .table-form textarea {
	width:300px;
}

.table-form textarea {
	height:160px;
}

td.label {
	background-color:#eee;
	color:#333;
	text-align: right;
	padding:4px 6px;
	min-width:160px;
	max-width: 400px;
}

.comment {
	font-size:0.85em;
	font-style: italic;
	color:#888;
}

.icone-fournisseur {
	width:30px;
	height: 30px;
	vertical-align: middle;
	margin-left:10px;
}

.provider-download:visited, .provider-download-visited {
	color:#00a245;
}


.tableaufournisseur {
	margin-top: 0;
}

.tableaufournisseur th {
   background-color:#eee; 
}

.tableaufournisseur td {
   border-left:solid #ccc 1px;
   padding:5px;
}

.tableaufournisseur td:first-child {
   border-left:0px;
}

.tableaufournisseur tr.ligneimpair td {
   background-color:#fcfcf9;
}

.navigation-fournisseur {
	margin-top: 12px;
	display: inline-block;
	text-align: center;
	padding:5px 12px;
	border-top:1px solid #000;
	border-right: 1px solid #000;	
	border-left:1px solid #000;
	margin-right: 5px;
}

.navigation-fournisseur:hover {
	background-color: #ccc;
}

.navigation-fournisseur.encours, .navigation-fournisseur.encours a {
	background-color: #777;
	color:#fff;
	font-weight: bold;
}

[contenteditable="true"] {
	font-style: italic;
}

[contenteditable="true"]:hover {
	cursor:text;
	border:1px dashed #ccc;
	background-color: #fff !important;
	box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.2) inset;
}

[contenteditable="true"]:focus {
	border:1px solid #000;
	background-color: #fff !important;
	box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.3) inset;

}

#tableaucommandes tr:hover input[type="checkbox"] {
	visibility: visible !important;
}

#tableaucommandes tr:hover .ligne-wing-ajouts {
	visibility: visible !important;
}

.alert {
	font-weight: bold;
	color:#f00;
}

button.p-button:disabled {
	background-color: #cdcdcd;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' width='22px' height='22px' viewBox='0 0 128 128' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%23000000' d='M109.25 55.5h-36l12-12a29.54 29.54 0 0 0-49.53 12H18.75A46.04 46.04 0 0 1 96.9 31.84l12.35-12.34v36zm-90.5 17h36l-12 12a29.54 29.54 0 0 0 49.53-12h16.97A46.04 46.04 0 0 1 31.1 96.16L18.74 108.5v-36z'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='720ms' repeatCount='indefinite'%3E%3C/animateTransform%3E%3C/g%3E%3C/svg%3E");
}

button.p-button:disabled:hover {
	color:#3f3731;
}


.texte-agrandi {
	font-size: 1.2em
}

.commande-encours {

}

.commande-terminee, .commande-terminee td {
	background-color: #eaeaea;
	color:#999;
}

.commande-retour {	
	background: url('bg-wait.png');
}

.expected-delivery {
	font-style: italic;
	font-size: 10px;
}

.canvasjs-chart-credit {
	display: none !important;
}

/* Onglets */

.tabs-container {
  --tabs-bg: #fff;
  --tabs-border: #d9dce1;
  --tabs-active: #111;
  position: sticky;
  top: 30px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .5rem .5rem 0 .5rem;
  border-bottom: none;
  background: var(--tabs-bg);
  margin-bottom: 1rem;
}

.tabs-container::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--tabs-border);
  pointer-events: none;
  z-index: 0;
}

.tabs__label {
  font-weight: 600;
  padding: .375rem .625rem;
  border: 1px solid #000;
  border-bottom-color: transparent;
  border-radius: 6px 6px 0 0;
  background: #fff;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border: 1px solid var(--tabs-border);
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  color: #222;
  line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  background: linear-gradient(to bottom, #f5f5f5, #eee);
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 1001;
}

.tab:hover { transform: translateY(-1px); }
.tab:focus-visible { outline: 2px solid #6aa7ff; outline-offset: 2px; }

.tab.is-active {
  border-color: var(--tabs-active);
  border-bottom-color: #fff;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transform: none;
  position: relative;
  z-index: 1002;
  margin-bottom: -1px;
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--tabs-bg); /* même couleur que le fond du container */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.row-invalid {
  background-color: #f0f0f0;
  color: #888;
  opacity: 0.5;
}

.row-invalid:hover {
  opacity: 1
}

.row-archived {
  background-color: #eaeaea;
  color: #999;
}

.lc-orders-row {
  scroll-margin-top: 70px;
}

[id^="article"] {
  scroll-margin-top: 100px;
}

.lc-orders-row.lc-orders-row-prod-pending {
  background-color: #ffeeee;
}

.lc-orders-row.lc-orders-row-feedback {
  background-color: #C9A0DC;
  /* background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, #ffeeee 8px, #ffeeee 9px);*/
}

.lc-orders-feedback-comment {
  margin-top: 6px;
  margin-left: 6px;
  padding: 6px 10px;
  border-left: 3px solid #ff9999;
  background-color: #fff4f4;
  color: #a03a3a;
  font-style: italic;
  border-radius: 4px;
  display: inline-block;
}

.lc-orders-row.lc-orders-row-prod-pending.row-invalid {
  color: #222;
  opacity: 1;
}

.lc-orders-boat-delay-warning {
  font-weight: bold;
  background-color: #fcc;
}

.user-dashboard-grid {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

.item-user-dashboard {
  background:#f0f0f0;
  border:1px solid #ddd;
  border-radius:8px;
  padding:15px;
  padding-bottom: 0;
  flex:1 1 300px;
  transition:box-shadow .2s,transform .2s;
}

.user-dashboard-grid .item-user-dashboard:first-child {
  flex-basis:50%;
  background:#fff;
}

.item-user-dashboard h4 {
  margin:0;
}

.keys-user-dashboard h4 {
  margin-top: 0
}

.keys-grid {
  display: block;
  margin-top: 20px;
}

.key-block {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
}

.key-block h4 {
  margin-top: 0;
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.keys-table th,
.keys-table td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: left;
  font-size: 14px;
}

.keys-table th {
  background-color: #eee;
}

.credits-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.credits-history th, .credits-history td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}
.credits-history th {
    background: #eee;
}
.credits-history .expired {
    color: #999;
    opacity: 0.6;
}

.duplicate-key-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  z-index: 10000;
}

.duplicate-key-modal.is-visible {
  display: flex;
}

.duplicate-key-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.duplicate-key-modal__content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 10px;
  max-width: 960px;
  width: 100%;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.duplicate-key-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.duplicate-key-modal__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.duplicate-key-modal__column {
  flex: 1 1 280px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background: #f9f9f9;
}

.duplicate-key-modal__column--editable {
  background: #fff;
}

.duplicate-key-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.duplicate-key-modal__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.duplicate-key-modal__label {
  font-weight: 600;
  min-width: 100px;
  text-align: right;
}

.duplicate-key-modal__value {
	min-width: 20px
}

.duplicate-key-modal__fields input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.duplicate-key-modal__select {
  width: 100%;
  padding: 6px 36px 6px 12px;
  border: 1px solid #a5a395;
  border-radius: 6px;
  background-color: #f4eee5;
  color: #3f3731;
  font-weight: bold;
  font-family: Verdana, Arial, sans-serif;
  font-size: 1em;
  line-height: 1.4;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #3f3731 50%), linear-gradient(135deg, #3f3731 50%, transparent 50%), linear-gradient(to right, #f4eee5, #f4eee5);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px), 100% 0;
  background-size: 6px 6px, 6px 6px, 28px 100%;
  background-repeat: no-repeat;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.duplicate-key-modal__select:focus,
.duplicate-key-modal__select:hover {
  background-color: #3f3731;
  color: #f4eee5;
}

.duplicate-key-modal__fields input[type=number] {
  -moz-appearance: textfield;
}

.duplicate-key-modal__fields input::-webkit-outer-spin-button,
.duplicate-key-modal__fields input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.duplicate-key-modal__actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
}

.duplicate-key-modal__key-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.duplicate-key-modal__key-label {
  font-weight: 600;
  min-width: 120px;
}

.duplicate-key-modal__key-inputs {
  flex: 1;
  display: flex;
  gap: 10px;
}

.duplicate-key-modal__key-inputs input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.duplicate-key-modal__key-value {
  font-weight: 600;
}

.duplicate-key-modal__error {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fdecea;
  color: #a12622;
  font-weight: 600;
}

body.duplicate-key-modal-open {
  overflow: hidden;
}

img.emoji {
   height: 1em;
   width: 1em;
   margin: 0 .05em 0 .1em;
   vertical-align: -0.1em;
}

.credit-form-container {
    background: #eee;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px 25px;
    max-width: 600px;
    margin:20px auto;
}

.credit-form-container h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
    margin-top: 0;
}

.credit-form-feedback {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.credit-form-feedback.is-success {
    background: #e6f7ed;
    border: 1px solid #a4d9b3;
    color: #2d7a46;
}

.credit-form-feedback.is-error {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #a33a32;
}

.credit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credit-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.credit-form__cause {
	flex-wrap: wrap;
	flex-direction: row;
}

.credit-form__field label,
.credit-form__field span {
    font-weight: bold;
    font-size: 0.95rem;
    color: #444;
}

.credit-form__field label {
    flex: 1 1 calc(50% - 6px);
}

.credit-form__field span {
    flex: 100%;
}


.credit-form__field input[type="text"],
.credit-form__field input[type="number"],
.credit-form__field textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.credit-form__field input:focus,
.credit-form__field textarea:focus {
    border-color: #0077cc;
    outline: none;
}

.credit-form__radio {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 0.9rem !important;
    font-weight: normal !important
}

.credit-form__radio input[type="radio"] {
    accent-color: #0077cc;
    transform: scale(1.1);
}

.credit-form__actions {
    text-align: right;
}

/* On pimpe les boutons */
.p-button {
    padding: 6px 12px;
    cursor: pointer;
    display: inline-block;
    border-radius: 4px;
    background: linear-gradient(135deg, #f4eee5, #e2dbd2);
    border: 1px solid #a5a395;
    color: #3f3731;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.p-button:hover,
.p-button:focus {
    background: linear-gradient(135deg, #e9e3da, #d8d1c9);
    color: #3f3731;
    transform: translateY(-1px);
}

.p-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.p-button-small {
	padding: 4px 10px
}

/* Custom Search */

#custom-orders-search-button {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        #custom-orders-search-button img {
            display: block;
        }

        #custom-orders-search-button .lc-loading-spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: lc-rotate 0.75s linear infinite;
        }

        #custom-orders-search-button.is-loading img {
            display: none;
        }

        #custom-orders-search-button.is-loading .lc-loading-spinner {
            display: inline-block;
        }

        @keyframes lc-rotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }


#search_client {
        display: flex;
        gap:4px;
        align-items: center;
}

#palette-top #search_client {
        margin-right: 8px;
        color: #fff;
}

#palette-top #search_client input {
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,0.4);
        background-color: rgba(255,255,255,0.15);
        color: #fff;
}

#palette-top #search_client input:focus {
        outline: none;
        border-color: rgba(255,255,255,0.7);
        box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

#palette-top #search_client input::placeholder {
        color: rgba(255,255,255,0.75);
}

#palette-top #search_client input[type=text] {
  background-color: #fbf1e9;
  color: #333;
}

#palette-top #search_client #custom-orders-search-button {
        background: rgba(255,255,255,0.16);
        border: 1px solid rgba(255,255,255,0.4);
        color: #fff;
}

#palette-top #search_client #custom-orders-search-button:hover,
#palette-top #search_client #custom-orders-search-button:focus {
        background: rgba(255,255,255,0.28);
        color: #fff;
}

#palette-top #search_client #custom-orders-search-button img {
        filter: brightness(0) invert(1);
}


.lc-search-results-wrapper {
            margin: 20px;
            background: #ffffff;
            overflow: hidden;
            border: 1px solid #ddd;
        }

.lc-orders-wrapper {
        margin: 20px;
        background: #ffffff;
        border: 1px solid #ddd;
        overflow-x: auto;
}

.lc-orders-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 720px;
}

.lc-user-comments {
        margin-top: 10px;
}

.lc-user-comments-display {
        border: 2px solid transparent;
        border-radius: 4px;
        padding: 8px;
        min-height: 80px;
        cursor: pointer;
        background-color: #ffffff;
        white-space: pre-wrap;
}

.lc-user-comments-display:not(:hover):not(:focus) {
        border: 1px solid #999;
        color: #33a;
        font-weight: bold;
}

.lc-user-comments-display:hover {
        box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.2) inset;
        border:2px dashed #ddd;
}

.lc-user-comments-display:focus {
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
        border:2px solid #ddd;
}

.lc-user-comments-editor {
        width: 100%;
        min-height: 80px;
        padding: 8px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        font-family: inherit;
        font-size: 14px;
        resize: vertical;
}

.lc-user-comments-feedback {
        margin-top: 4px;
        font-size: 12px;
        color: #2e6da4;
}

.lc-orders-table thead {
        background: #eee;
}

.lc-orders-table th {
        padding: 14px 18px;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
        letter-spacing: 0.02em;
}

.lc-orders-sort-link {
        color: inherit;
        text-decoration-line: underline;
        text-decoration-style: dashed;
        text-underline-offset: 3px;
}

.lc-orders-sort-link:hover,
.lc-orders-sort-link:focus {
        color: #0f4c81;
}

.lc-orders-sort-link--active {
        font-weight: 700;
}

.lc-orders-table td {
        padding: 12px 18px;
        font-size: 14px;
        color: #111827;
        border-top: 1px solid #333;
        vertical-align: top;
}

.lc-orders-preferences {
  display: block;
  border: 2px solid #999;
  background-color: #fafafa;
  padding: 10px;
  margin-top: 5px;
  max-width: 450px;
}

.lc-orders-preferences-block {
  margin-top: 5px;
  position: relative;
}

.lc-orders-preferences-editor {
  width: 100%;
  max-width: 450px;
  min-height: 80px;
  padding: 8px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.lc-orders-preferences-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc-orders-preferences-feedback {
  margin-top: 4px;
  font-size: 12px;
  color: #2563eb;
}

.lc-orders-preferences-add {
  display: inline-block;
  border: 0;
  background: none;
  margin-top: 1rem;
  visibility: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.lc-orders-row:hover .lc-orders-preferences-add,
.lc-orders-preferences-block:focus-within .lc-orders-preferences-add {
  visibility: visible;
}

.lc-orders-preferences-add:hover {
  text-decoration: underline;
}

.lc-orders-completion-diff {
  margin-top: 6px;
  padding: 6px 8px;
  border-left: 3px solid #2563eb;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
}

.lc-orders-cell {
        line-height: 1.5;
        min-width: 200px;
}

.lc-orders-cell-cmd {
  max-width: 260px;
}

.lc-orders-column-items,
.lc-orders-cell-items {
        width: 35%;
}

.lc-orders-cell-items {
  width: 50%
}

.lc-orders-user-comments {
  display: block;
  margin-top: 5px;
  color: #501010;
}

.lc-orders-cmd-comments {
  display: block;
  margin-top: 5px;
  font-style: italic;
}

.lc-article-signature {
  display: inline-block;
  margin-top: 3px;
  font-weight: 600;
}

.lc-order-filler-code {
  max-width: 800px;
  display: inline-block;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.lc-orders-log-wing {
  font-size: 10px;
  margin:1rem 0;
}

.lc-orders-grouped-wing {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  background: #f0f6ff;
  border-left: 3px solid #1a73e8;
  border-radius: 4px;
  font-size: 12px;
  color: #0f172a;
  line-height: 1.4;
}

.lc-wing-shipments-wrapper {
  margin-top: 15px;
}

.lc-wing-shipments-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.lc-wing-shipments-table th,
.lc-wing-shipments-table td {
  vertical-align: top;
}

.lc-wing-shipments-table td {
  border-top: 1px solid #e5e7eb;
}

.lc-wing-shipments-row.is-error {
  background: #fff5f5;
}

.lc-wing-shipments-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.lc-wing-shipments-status.is-success {
  background: #ecfdf5;
  color: #047857;
}

.lc-wing-shipments-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.lc-search-results-table {
    width: 100%;
    border-collapse: collapse;
}

.lc-search-results-table thead {
    background: #eee;
}

.lc-search-results-table th {
            padding: 14px 18px;
            text-align: left;
            font-size: 14px;
            font-weight: 600;
            color: #1f2937;
            letter-spacing: 0.02em;
}

        .lc-search-results-table td {
            padding: 12px 18px;
            font-size: 14px;
            color: #111827;
            border-top: 1px solid #e5e7eb;
        }

        .lc-search-results-row {
            transition: background-color 0.2s ease, transform 0.2s ease;
            cursor: pointer;
        }

        .lc-search-results-row:hover,
        .lc-search-results-row:focus {
            background-color: #f5f7fb;
        }

        .lc-search-results-row:focus {
            outline: none;
            box-shadow: inset 0 0 0 2px #2563eb;
        }

        .lc-search-results-cell-id {
            font-weight: 600;
            color: #0f172a;
        }

        .lc-search-results-cell-email {
            color: #2563eb;
        }

        .lc-showroom-message {
            margin-top: 10px;
            font-size: 12px;
        }

        .lc-showroom-button {
            margin-top: 6px;
        }

        .lc-change-key-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  padding: 30px 15px;
  box-sizing: border-box;
  z-index: 9999;
}

.lc-change-key-modal.is-visible {
  display: block;
}

.lc-change-key-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.lc-change-key-modal__content {
  position: relative;
  max-width: 520px;
  margin: 60px auto;
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 85vh;
  overflow-y: auto;
}

.lc-change-key-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.lc-change-key-modal__message {
  display: none;
  margin-bottom: 15px;
  font-weight: 600;
}

.lc-change-key-modal__message.is-error {
  display: block;
  color: #b30000;
}

.lc-change-key-modal__message.is-success {
  display: block;
  color: #1b8a3d;
}

.lc-change-key-modal__list {
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.lc-change-key-modal__item {
  border-bottom: 1px solid #ececec;
  padding: 12px 0;
}

.lc-change-key-modal__item:last-child {
  border-bottom: 0;
}

.lc-change-key-modal__item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.lc-change-key-modal__current {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.lc-change-key-modal__empty {
  font-size: 13px;
  color: #999;
}

.lc-change-key-modal__select {
  width: 100%;
  padding: 8px;
  border: 1px solid #c7c7c7;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.lc-change-key-modal__select:disabled {
  background: #f4f4f4;
  color: #999;
  cursor: not-allowed;
}

.lc-change-key-modal__select:focus {
  outline: none;
  border-color: #006699;
  box-shadow: 0 0 0 2px rgba(0, 102, 153, 0.2);
}

.lc-change-key-modal__control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lc-change-key-modal__checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 110px;
}

.lc-change-key-modal__checkbox-label {
  font-size: 14px;
  cursor: pointer;
}

.lc-change-key-modal__item--enabled .lc-change-key-modal__select {
  border-color: #006699;
}

.lc-change-key-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.lc-change-key-modal__actions--success {
  justify-content: center;
}

.lc-change-key-modal .is-hidden {
  display: none !important;
}


body.lc-change-key-modal-open {
  overflow: hidden;
}

.lc-wing-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-wing-relay-actions {
  margin-top: 8px;
}

.lc-wing-relay-feedback {
  margin-top: 4px;
  font-size: 12px;
  color: #2e6da4;
}

.lc-wing-button {
  position: relative;
}

.lc-wing-button img, .lc-wing-relay-button img {
  max-width: 16px;
}

.lc-wing-button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.lc-wing-button--secondary {
  background: #f3f4f6;
  color: #1f2937;
}

.lc-wing-button--secondary:hover,
.lc-wing-button--secondary:focus {
  background: #e5e7eb;
  color: #111827;
}

.lc-wing-shipment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  padding: 30px 15px;
  box-sizing: border-box;
  z-index: 10000;
}

.lc-wing-shipment-modal.is-visible {
  display: block;
}

.lc-wing-shipment-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.lc-wing-shipment-modal__content {
  position: relative;
  max-width: 640px;
  margin: 50px auto;
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 85vh;
  overflow-y: auto;
}

.lc-wing-shipment-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #4b5563;
}

.lc-wing-shipment-modal__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.lc-wing-shipment-modal__message {
  display: none;
  margin-bottom: 15px;
  font-weight: 600;
}

.lc-wing-shipment-modal__message.is-error {
  display: block;
  color: #b30000;
}

.lc-wing-shipment-modal__message.is-success {
  display: block;
  color: #1b8a3d;
}

.lc-wing-shipment-modal__list {
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}

.lc-wing-shipment-modal__order {
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}

.lc-wing-shipment-modal__order:first-child {
  padding-top: 0;
}

.lc-wing-shipment-modal__order:last-child {
  border-bottom: 0;
}

.lc-wing-shipment-modal__order--highlight {
  border: 1px solid #dbeafe;
  background: #f5f9ff;
  padding: 16px;
  margin-bottom: 12px;
}

.lc-wing-shipment-modal__order-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.lc-wing-shipment-modal__articles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-wing-shipment-modal__article {
  margin-bottom: 8px;
}

.lc-wing-shipment-modal__article:last-child {
  margin-bottom: 0;
}

.lc-wing-shipment-modal__article-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.lc-wing-shipment-modal__checkbox {
  margin-top: 2px;
}

.lc-wing-shipment-modal__article-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lc-wing-shipment-modal__article-title {
  font-weight: 500;
}

.lc-wing-shipment-modal__article-meta {
  font-size: 13px;
  color: #6b7280;
}

.lc-wing-shipment-modal__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.lc-wing-relay-modal__content {
  width: min(980px, calc(100vw - 48px));
}

.lc-wing-relay-modal__warning {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #fff7d6;
  border: 1px solid #ead184;
  border-radius: 4px;
}

.lc-wing-relay-modal__iframe {
  width: 100%;
  height: min(620px, 70vh);
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
}

body.lc-wing-modal-open {
  overflow: hidden;
}

.lc-orders-cmd-comments-agents-none {
  border:0;
  background: none;
  margin-top: 1rem;
  visibility: hidden;
  cursor: pointer;
}

.lc-orders-row:hover .lc-orders-cmd-comments-agents-none {
  visibility: visible;
}

.lc-orders-cmd-comments-agents-none:hover {
  text-decoration: underline;
}

.lc-orders-cmd-comments-agents-editor {
  min-height: 50px;
  width: 100%;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}


.lc-orders-cmd-comments-agents {
  display: inline-block;
  background: #fff176;
  padding: 6px 10px;
  border: 1px solid #e0c200;
  border-radius: 3px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin-top: 1rem;
}

.lc-orders-cmd-comments-agents-feedback {
        margin-top: 4px;
        font-size: 12px;
        color: #2e6da4;
}

.lc-orders-pickup-button {
  background: linear-gradient(135deg, #9ed89e, #4ca64c);
  color: #fff;
}

.lc-orders-pickup-button:hover {
  background: linear-gradient(135deg, #8cb88c, #3e8a3e);
  color: #fff;
}


[id^="code"] {
  transition: opacity 0.3s ease;
}

.p-button-orderfiller {
  transition: opacity 0.3s ease;
}

.p-button-orderfiller-waiting {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.p-button-orderfiller-waiting::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: lc-rotate 0.75s linear infinite;
}


button.p-button-orderfiller:disabled {
  background-image: none;
  cursor:auto;
  transform: none !important;
  opacity: 0.1;
}
