/* Datei: two_customer_occurrence.css
 * Version: 1.0.9 (10.11.2026)
 * v1.0.9: Lieferanten-Nachrichtenblock rechts optisch hervorgehoben;
 *           sonstige Logik unveraendert.
 * v1.0.8: Dezenten Statushinweis fuer zwischenzeitlich erledigte,
 *           noch rechts angezeigte Lieferantenvorgaenge ergaenzt.
 * v1.0.7: Bearbeiten-Stift offener Lieferantenvorgaenge im gleichen Rot
 *           (#c92040) wie die Badge-Zahlen im Schnellzugriff.
 * v1.0.6: Lieferanten-Stift und kompakte Fakten-Gruppen rechts;
 *           Mitarbeiteransicht unveraendert.
 * Lieferantenansicht: nur Nachricht fuer Vorgaenge und Vorgangsdetails;
 * interne/allgemeine Bemerkungen und Adressbuch-Reiter ausblenden.
 * v1.0.4 (10.11.2026)
 * Nachrichtenblock rechts mit mehr Abstand zu den Vorgangsdaten.
 * v1.0.3 (10.11.2026):
 * Nachricht-Badge in der Vorgangsliste mit eigenem, dezentem Farbton
 * und Brief-Icon; sonstige Styles unveraendert.
 * v1.0.2 (10.11.2026):
 * Kundenadressen, Sperrstatus sowie Vorgangsnachricht/Versandart und
 * historische Nachtdepots deutlicher abgrenzen; sonst unveraendert.
 * v1.0.1: Bemerkungen einheitlich rot und leere verborgen; Abweichende Lieferadresse
 * in den Vorgangsdetails rot hervorgehoben, Icon rechts in der Vorgangsliste.
 * Moderne Mitarbeiter-Kunden-/Vorgangsliste. Alle Selektoren auf dieses
 * Modal begrenzt; keine globalen Formular- oder Dashboard-Overrides.
 */
#myModalCustomerOccurrence .two-co-dialog { width:min(1500px,96vw); max-width:96vw; margin:1.8vh auto; }
#myModalCustomerOccurrence .two-co-modal { border:1px solid #cbdcec; border-radius:15px; overflow:hidden; box-shadow:0 22px 65px rgba(19,55,94,.18); }
#myModalCustomerOccurrence .two-co-modal-head { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #d7e4f0; background:#f6faff; padding:16px 22px; }
#myModalCustomerOccurrence .two-co-modal-head h4 { margin:0; font-size:1.3rem; color:#17477e; font-weight:700; }
#myModalCustomerOccurrence .two-co-modal-head p { margin:3px 0 0; color:#788a9e; font-size:.8rem; }
#myModalCustomerOccurrence .two-co-close { border:1px solid #d7e4f0; border-radius:8px; width:35px; height:35px; background:#fff; font-size:25px; color:#627e99; display:inline-flex; align-items:center; justify-content:center; padding:0; opacity:1; }
#myModalCustomerOccurrence .two-co-modal-body { background:#fbfdff; padding:14px; max-height:calc(100vh - 172px); overflow:auto; text-align:left !important; }
#myModalCustomerOccurrence .two-co-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr); gap:14px; align-items:start; }
#myModalCustomerOccurrence .two-co-main { display:flex; flex-direction:column; gap:13px; min-width:0; }
#myModalCustomerOccurrence .two-co-section { border:1px solid #d9e5f1; background:#fff; border-radius:11px; overflow:hidden; box-shadow:0 3px 11px rgba(20,67,113,.05); }
#myModalCustomerOccurrence .two-co-section-head { display:flex; align-items:center; justify-content:space-between; padding:11px 14px; border-bottom:1px solid #e6edf5; color:#17477e; }
#myModalCustomerOccurrence .two-co-section-head strong { font-weight:700; font-size:.95rem; }
#myModalCustomerOccurrence .two-co-section-head span { font-size:.75rem; color:#71889f; }
#myModalCustomerOccurrence .two-co-section-tools { display:flex; gap:10px; flex-wrap:wrap; padding:9px 12px; border-bottom:1px solid #ecf1f7; align-items:center; }
#myModalCustomerOccurrence .two-co-search { flex:1; display:flex; align-items:center; position:relative; margin:0; min-width:210px; }
#myModalCustomerOccurrence .two-co-search i { position:absolute; left:12px; color:#7899b9; pointer-events:none; }
#myModalCustomerOccurrence .two-co-search input { width:100%; height:36px; border:1px solid #c7d9eb; border-radius:7px; padding:6px 9px 6px 34px; background:#fff; color:#294865; font-size:.84rem; }
#myModalCustomerOccurrence #two-co-occ-type { max-width:215px; height:36px; border:1px solid #c7d9eb; border-radius:7px; padding:4px 8px; background:#fff; color:#355d7f; font-size:.84rem; }
#myModalCustomerOccurrence .two-co-webix-host { width:100%; overflow:hidden; background:#fff; }
#myModalCustomerOccurrence #two-co-customer-grid { height:215px; }
#myModalCustomerOccurrence #two-co-occ-grid { height:240px; }
#myModalCustomerOccurrence #two-co-parts-grid { height:220px; }
#myModalCustomerOccurrence .two-co-webix-host .webix_dtable .webix_hcell { background:#f7faff; color:#51718c; font-weight:700; font-size:12px; border-color:#e7edf4; }
#myModalCustomerOccurrence .two-co-webix-host .webix_dtable .webix_cell { border-color:#eef2f7; color:#263e56; font-size:12px; }
#myModalCustomerOccurrence .two-co-webix-host .webix_dtable .webix_column > div.webix_row_select { background:#edf5fe; color:#224f79; }
#myModalCustomerOccurrence .two-co-webix-host .webix_dtable .webix_column > div.webix_row_select .two-co-action { background:#edf5fe; }
#myModalCustomerOccurrence .two-co-webix-host .webix_dtable .webix_ss_right .webix_cell { background:#fff; }
#myModalCustomerOccurrence .two-co-webix-host .webix_dtable .webix_ss_right .webix_hcell { background:#eff6fd; }
#myModalCustomerOccurrence .two-co-action { width:31px; height:29px; border:1px solid transparent; background:transparent; border-radius:6px; color:#246496; margin:0; padding:0; display:inline-flex; align-items:center; justify-content:center; font-size:15px; cursor:pointer; }
#myModalCustomerOccurrence .two-co-action:hover,#myModalCustomerOccurrence .two-co-action:focus-visible { background:#e5f1ff; border-color:#b6d6f0; outline-offset:1px; }
#myModalCustomerOccurrence .two-co-action.two-co-adopt { color:#107350; }
#myModalCustomerOccurrence .two-co-action-group { display:flex; align-items:center; justify-content:center; gap:3px; }
#myModalCustomerOccurrence .two-co-action.two-co-delivery-action { color:#aa2b39; }
#myModalCustomerOccurrence .two-co-action.two-co-delivery-action:hover,
#myModalCustomerOccurrence .two-co-action.two-co-delivery-action:focus-visible { background:#fff0f2; border-color:#e8b7bf; }
#myModalCustomerOccurrence .two-co-badge { display:inline-block; border-radius:5px; padding:2px 6px; background:#eaf3ff; color:#245985; font-size:11px; font-weight:700; white-space:nowrap; }
#myModalCustomerOccurrence .two-co-badge.two-co-decline { background:#fff0f1; color:#a52c3b; }
#myModalCustomerOccurrence .two-co-badge.two-co-confirm { background:#e6f6ef; color:#18764f; }
#myModalCustomerOccurrence .two-co-badge.two-co-order { background:#eff0ff; color:#445fa4; }
#myModalCustomerOccurrence .two-co-badge.two-co-message { background:#eaf5fb; color:#24688c; }
#myModalCustomerOccurrence .two-co-badge.two-co-message i { margin-right:3px; }
#myModalCustomerOccurrence .two-co-sidebar { min-width:0; position:sticky; top:0; }
#myModalCustomerOccurrence .two-co-identity { padding:15px; border-bottom:1px solid #e5edf5; }
#myModalCustomerOccurrence .two-co-identity small { font-size:.67rem; color:#788ca2; display:block; font-weight:700; margin-bottom:6px; }
#myModalCustomerOccurrence .two-co-identity strong { display:block; color:#17477e; font-size:1.1rem; overflow-wrap:anywhere; }
#myModalCustomerOccurrence .two-co-identity span { display:block; color:#657f98; font-size:.76rem; margin-top:4px; overflow-wrap:anywhere; }
#myModalCustomerOccurrence .two-co-meta { padding:9px 14px; border-bottom:1px solid #eef2f7; font-size:.76rem; display:flex; gap:5px; flex-wrap:wrap; }
#myModalCustomerOccurrence .two-co-meta span { padding:5px 7px; background:#f6faff; border:1px solid #e1ebf5; border-radius:5px; }
#myModalCustomerOccurrence .two-co-tabs { display:flex; gap:5px; border-bottom:1px solid #d9e5f1; padding:8px 10px 0; }
#myModalCustomerOccurrence .two-co-tab { border:0; border-bottom:2px solid transparent; padding:6px 9px 9px; color:#5d7892; background:transparent; font-size:.78rem; cursor:pointer; font-weight:700; }
#myModalCustomerOccurrence .two-co-tab.is-active { border-bottom-color:#236aa9; color:#1d5b91; }
#myModalCustomerOccurrence .two-co-detail-content { padding:12px 14px; max-height:360px; overflow:auto; color:#526e85; font-size:.83rem; }
#myModalCustomerOccurrence .two-co-notice { border:1px solid #ecc1c7; padding:10px; border-radius:7px; margin-bottom:9px; background:#fff5f5; color:#9d2735; }
#myModalCustomerOccurrence .two-co-notice.is-important { border-left:3px solid #b52d3d; background:#fff1f2; }
#myModalCustomerOccurrence .two-co-notice strong { display:block; font-size:.78rem; color:#a61d2b; margin-bottom:4px; }
#myModalCustomerOccurrence .two-co-notice p { margin:0; color:#9d2735; white-space:pre-wrap; overflow-wrap:anywhere; }
#myModalCustomerOccurrence .two-co-notice small { display:block; color:#ad5a65; font-size:.68rem; margin-bottom:5px; }
#myModalCustomerOccurrence .two-co-empty-remarks { margin:0; font-size:.8rem; color:#788da0; }
#myModalCustomerOccurrence .two-co-address { padding:11px; border:1px solid #dae6f2; border-radius:7px; margin-bottom:9px; }
#myModalCustomerOccurrence .two-co-address strong { display:block; color:#23537e; font-size:.82rem; }
#myModalCustomerOccurrence .two-co-address span { display:block; color:#657e94; font-size:.75rem; line-height:1.5; margin-top:3px; }
#myModalCustomerOccurrence .two-co-address p { margin:4px 0 0; font-size:.73rem; color:#536f85; }
#myModalCustomerOccurrence .two-co-occ-detail { background:#f7faff; border-top:1px solid #e5edf5; padding:12px 14px; }
#myModalCustomerOccurrence .two-co-occ-detail > strong { font-size:.78rem; color:#315b80; }
#myModalCustomerOccurrence #two-co-occ-detail { font-size:.76rem; color:#627d92; line-height:1.5; margin-top:5px; overflow-wrap:anywhere; }
#myModalCustomerOccurrence .two-co-occ-delivery { margin-top:11px; padding:10px 12px; border:1px solid #dfabb3; border-left:3px solid #bb3040; border-radius:7px; background:#fff4f4; color:#942736; line-height:1.5; }
#myModalCustomerOccurrence .two-co-occ-delivery > strong { display:block; margin-bottom:5px; color:#a61d2b; font-size:.79rem; }
#myModalCustomerOccurrence .two-co-occ-delivery > strong i { margin-right:5px; }
#myModalCustomerOccurrence .two-co-occ-delivery div { color:#942736; }
#myModalCustomerOccurrence .two-co-modal-footer { padding:10px 16px; border-top:1px solid #d9e6f2; background:#f6faff; display:flex; justify-content:space-between; align-items:center; gap:12px; }
#myModalCustomerOccurrence .two-co-modal-footer small { color:#768ba0; font-size:.73rem; }
#myModalCustomerOccurrence .two-co-footer-close { border:1px solid #bad2e9 !important; border-radius:8px !important; color:#215a91 !important; background:#fff !important; box-shadow:none !important; text-transform:none !important; font-size:.83rem; margin:0; }
@media (max-width:1000px) {#myModalCustomerOccurrence .two-co-layout{grid-template-columns:1fr;}#myModalCustomerOccurrence .two-co-sidebar{position:static;}#myModalCustomerOccurrence .two-co-modal-body{max-height:80vh;}}
@media (max-width:600px) {#myModalCustomerOccurrence .two-co-dialog{width:98vw;max-width:98vw;margin:1vh auto;}#myModalCustomerOccurrence .two-co-modal-body{padding:7px;}#myModalCustomerOccurrence .two-co-modal-head{padding:11px;}#myModalCustomerOccurrence .two-co-modal-footer small{display:none;}}

/* Kundenstatus, Adresszeile und Vorgangsdetails: ausschliesslich dieses Modal. */
#myModalCustomerOccurrence .two-co-identity #two-co-customer-meta { white-space:pre-line; line-height:1.55; }
#myModalCustomerOccurrence .two-co-identity.two-co-identity-blocked { background:#fff4f5; border-bottom-color:#eac4ca; }
#myModalCustomerOccurrence .two-co-identity.two-co-identity-blocked strong { color:#a52c3b; }
#myModalCustomerOccurrence .two-co-meta .two-co-customer-status-blocked { background:#fff0f1; border-color:#e8b8c0; color:#a52c3b; font-weight:700; }
#myModalCustomerOccurrence .two-co-customer-status-blocked i { margin-right:4px; }
#myModalCustomerOccurrence .two-co-webix-host .webix_cell.two-co-customer-row-blocked { background:#fff0f1 !important; color:#a52c3b !important; }
#myModalCustomerOccurrence .two-co-webix-host .webix_cell.two-co-customer-row-blocked.webix_row_select { background:#fce0e4 !important; color:#9f2332 !important; }
#myModalCustomerOccurrence .two-co-webix-host .webix_cell.two-co-customer-row-blocked b { color:#a52c3b; }
#myModalCustomerOccurrence .two-co-row-blocked-label { display:inline-block; padding:1px 5px; border-radius:4px; background:#ffe1e5; color:#a52c3b; font-size:10px; font-weight:700; vertical-align:middle; }
#myModalCustomerOccurrence .two-co-occ-message { margin-top:19px; padding:9px 11px; border:1px solid #d5e2ef; border-left:3px solid #80a6cb; border-radius:7px; background:#fff; color:#3f5e79; }
#myModalCustomerOccurrence .two-co-occ-message > strong { display:block; margin-bottom:5px; color:#2e5d87; }
#myModalCustomerOccurrence .two-co-occ-message > div,
#myModalCustomerOccurrence .two-co-occ-message .two-co-occ-message-body { white-space:pre-wrap; overflow-wrap:anywhere; }
#myModalCustomerOccurrence .two-co-occ-message-label { display:inline-flex; align-items:center; gap:6px; margin-bottom:6px; padding:3px 8px; border-radius:999px; background:#eef5fc; color:#215786; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.02em; }
#myModalCustomerOccurrence .two-co-occ-message-label i { color:#3a78b2; }
#myModalCustomerOccurrence .two-co-occ-depots { display:inline-block; margin-top:7px; font-weight:500; color:#942736; }
#myModalCustomerOccurrence .two-co-occ-depots i { margin-right:4px; }

/* Lieferantenmodus: nur vorgangsbezogene Nachrichten im rechten Bereich. */
#myModalCustomerOccurrence .two-co-supplier-message-title { display:none; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-tabs { display:none; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-supplier-message-title {
   display:block; padding:10px 14px 0; color:#315b80; font-size:.8rem;
   font-weight:700;
}
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-detail-content { padding-top:8px; }

/* Lieferanten: Editieraktion nur bei fachlich offenen Vorgaengen. */
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-action.two-co-supplier-edit { color:#c92040; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-action.two-co-supplier-edit:hover,
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-action.two-co-supplier-edit:focus-visible { background:#fff0f2; border-color:#e6a2ad; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-supplier-heading {
   display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px;
   padding-bottom:9px; margin-bottom:4px; border-bottom:1px solid #e2ebf3;
}
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-supplier-heading b { color:#17477e; font-size:.84rem; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-supplier-heading span { color:#52718d; font-size:.76rem; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-fact-group { padding:10px 0 7px; border-bottom:1px solid #e6edf5; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-fact-group > strong { display:block; color:#215786; font-size:.79rem; margin-bottom:5px; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-fact { display:grid; grid-template-columns:minmax(92px,42%) minmax(0,1fr); gap:8px; padding:3px 0; align-items:start; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-fact > span { color:#7a8ea2; overflow-wrap:anywhere; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-fact > b { font-weight:600; color:#385b79; overflow-wrap:anywhere; white-space:pre-wrap; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-message { margin-top:14px; }
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-message.two-co-occ-message-prominent {
   margin-top:16px; padding:12px 13px; border:1px solid #c7dcef; border-left:5px solid #2f74b5;
   background:linear-gradient(180deg,#f6fbff 0%,#edf6ff 100%); box-shadow:0 4px 12px rgba(25,73,118,.08);
}
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-message.two-co-occ-message-prominent > strong {
   margin-bottom:8px; color:#17477e; font-size:.88rem;
}
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-message.two-co-occ-message-prominent .two-co-occ-message-body {
   padding-top:2px; color:#365470; line-height:1.5;
}

/* Bei Live-Updates Auswahl und Historie rechts nicht ersetzen. */
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-refresh-note {
   border:1px solid #cbdcec;
   border-left:3px solid #3c719d;
   border-radius:7px;
   padding:9px 11px;
   margin:3px 0 10px;
   background:#eef5fc;
   color:#25597e;
   font-size:.78rem;
   font-weight:600;
}
#myModalCustomerOccurrence.two-co-supplier-mode .two-co-occ-refresh-note i { margin-right:5px; }
