.customer-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);display:flex;align-items:center;justify-content:center;z-index:2000;padding:16px}
.customer-modal-backdrop[hidden]{display:none}
.customer-columns-modal{position:relative;width:min(760px,96vw);height:min(92vh,900px);overflow:hidden;background:#fff;border:1px solid #dce3ec;border-radius:12px;box-shadow:0 18px 45px rgba(2,6,23,.2);display:flex;flex-direction:column;padding:14px}
.customer-columns-title{margin:0 0 10px;font-size:22px;line-height:1.1;font-weight:700;color:#1f2937}
.customer-columns-title,.customer-edit-title{cursor:move}
.customer-columns-modes{display:flex;align-items:center;gap:18px;margin-bottom:0;font-size:18px;color:#334155}
.customer-columns-modal #customer-columns-title + .customer-columns-modes{margin-bottom:10px}
.customer-columns-modes label{display:flex;align-items:center;gap:8px;cursor:pointer}
.customer-columns-modes input{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin:0;border:1.6px solid #7b8798;border-radius:50%;background:#fff;position:relative;cursor:pointer}
.customer-columns-modes input:checked{background:#fff;border-color:#7b8798}
.customer-columns-modes input:checked::after{content:"";position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:50%;background:#111827}
.customer-columns-list{border:1px solid #dce3ec;border-radius:10px;padding:10px;overflow:auto;flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.customer-columns-list.disabled{opacity:.5;pointer-events:none}
.customer-column-item{min-height:30px;border:1px solid #cfd8e4;border-radius:8px;background:#f3f4f6;display:flex;align-items:center;gap:7px;padding:5px 9px;font-size:16px;font-weight:400;color:#334155;cursor:grab;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-column-item input{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;border:1.4px solid #7b8798;border-radius:4px;background:#fff;position:relative;cursor:pointer;flex:0 0 auto}
.customer-column-item input:checked{background:#fff;border-color:#7b8798}
.customer-column-item input:checked::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:11px;border-right:2.5px solid #111827;border-bottom:2.5px solid #111827;transform:rotate(40deg);box-sizing:border-box}
.customer-columns-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px}
.customer-columns-footer button{height:36px;border:1px solid #cfd8e4;background:#fff;border-radius:10px;padding:0 14px;font-size:13px;font-weight:400;color:#1f2937;cursor:pointer}
.customer-columns-footer button.primary{background:#fff}
.customer-columns-modal button:hover,.customer-edit-modal button:hover{background:#eef5ff;border-color:#c7d6ea;color:#1f2937}
.customer-export-options{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}
.customer-export-options .customer-columns-modes{margin-bottom:0}
.customer-export-file-types{display:flex;align-items:center;gap:18px;font-size:18px;color:#334155}
.customer-export-file-types label{display:flex;align-items:center;gap:8px;cursor:pointer}
.customer-export-file-types input{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin:0;border:1.6px solid #7b8798;border-radius:50%;background:#fff;position:relative;cursor:pointer}
.customer-export-file-types input:checked{background:#fff;border-color:#7b8798}
.customer-export-file-types input:checked::after{content:"";position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:50%;background:#111827}
.customer-edit-modal{position:relative;width:min(760px,92vw);height:min(90vh,860px);overflow:hidden;background:#fff;border:1px solid #dce3ec;border-radius:12px;box-shadow:0 18px 45px rgba(2,6,23,.2);display:flex;flex-direction:column;padding:14px}
.customer-edit-title{margin:0 0 10px;font-size:24px;line-height:1.1;font-weight:700;color:#1f2937}
.customer-edit-tabs{display:flex;align-items:center;gap:8px;margin-bottom:10px;overflow:auto;flex:0 0 auto}
.customer-edit-tab{height:34px;border:1px solid #cfd8e4;background:#fff;border-radius:10px;padding:0 12px;font-size:13px;font-weight:400;color:#334155;white-space:nowrap;cursor:pointer}
.customer-edit-tab.active{border-color:#93c5fd;background:#eef5ff;color:#1e3a8a;font-weight:600}
.customer-edit-body{border:1px solid #dce3ec;border-radius:10px;background:#f8fbff;overflow:auto;flex:1;min-height:0;padding:12px 10px 12px 12px}
.customer-edit-panel[hidden]{display:none}
.customer-edit-grid{display:grid;grid-template-columns:1fr;gap:10px}
.customer-edit-field{display:grid;grid-template-columns:110px 380px;align-items:center;justify-content:start;gap:0}
.customer-edit-field label{font-size:13px;font-weight:400;color:#334155;text-align:left;padding-left:2px}
.customer-required-mark{color:#d92d20;font-weight:700}
.customer-edit-field input,.customer-edit-field textarea,.customer-edit-field select{width:380px;box-sizing:border-box;border:1px solid #cfd8e4;border-radius:8px;background:#fff;color:#1f2937;font-size:13px;padding:0 10px;outline:none}
.customer-edit-field input,.customer-edit-field select{height:34px}
.customer-edit-field textarea{min-height:68px;max-height:180px;padding:8px 10px;resize:vertical;line-height:1.4}
.customer-edit-field input:focus,.customer-edit-field textarea:focus,.customer-edit-field select:focus{border-color:#93baf8;box-shadow:0 0 0 3px rgba(147,186,248,.18)}
.customer-edit-field input:disabled,.customer-edit-field textarea:disabled,.customer-edit-field select:disabled{background:#f1f5f9;color:#8a96a8}
.customer-country-control{display:flex;gap:8px;width:380px}
.customer-country-control select{width:178px}
.customer-country-control input{width:194px}
.customer-country-control input[hidden]{display:none}
.customer-edit-binary{width:380px;display:flex;align-items:center;gap:18px;min-height:34px}
.customer-edit-binary label{display:flex;align-items:center;gap:8px;font-size:13px;color:#1f2937;cursor:pointer;padding-left:0}
.customer-edit-binary input{appearance:none;-webkit-appearance:none;width:20px!important;height:20px!important;margin:0;border:1.6px solid #7b8798;border-radius:50%;background:#fff;position:relative;cursor:pointer;padding:0!important;flex:0 0 auto}
.customer-edit-binary input:checked::after{content:"";position:absolute;left:5px;top:5px;width:8px;height:8px;border-radius:50%;background:#111827}
.customer-edit-radio-row{display:flex;align-items:center;gap:18px;margin-bottom:12px;font-size:14px;font-weight:700;color:#334155}
.customer-edit-radio-row label{display:flex;align-items:center;gap:8px;cursor:pointer}
.customer-edit-radio-row input{width:20px;height:20px;margin:0;accent-color:#1f2937}
.customer-edit-note{margin:0 0 12px;color:#64748b;font-size:13px}
.customer-shipping-tools{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.customer-shipping-tools button{height:32px;border:1px solid #cfd8e4;background:#fff;border-radius:8px;padding:0 10px;color:#1f2937;font-size:13px}
.customer-shipping-list{border:1px solid #dce3ec;border-radius:10px;background:#fff;margin-bottom:12px;overflow:auto;max-height:150px}
.customer-shipping-row{display:grid;grid-template-columns:56px 1fr 1fr 1fr;gap:8px;align-items:center;min-height:34px;padding:6px 8px;border-bottom:1px solid #e5edf6;font-size:12px;color:#334155;cursor:pointer}
.customer-shipping-row:last-child{border-bottom:0}
.customer-shipping-row.active{background:#eef5ff}
.customer-shipping-empty{padding:10px;color:#64748b;font-size:13px}
.customer-source-modal{width:min(420px,92vw);height:auto;max-height:80vh}
.customer-source-options{display:grid;gap:8px;margin:8px 0 4px}
.customer-source-option{display:flex;align-items:center;gap:10px;min-height:38px;border:1px solid #dce3ec;border-radius:10px;background:#f8fbff;padding:0 12px;font-size:15px;color:#1f2937;cursor:pointer}
.customer-source-option input{width:18px;height:18px;margin:0;accent-color:#1d4ed8}
.customer-edit-source-field input{background:#f1f5f9;color:#64748b}
.customer-detail-edit-backdrop{z-index:2200}
.customer-detail-edit-modal{width:min(560px,92vw);height:min(88vh,820px)}
.customer-detail-edit-body{padding:14px 12px}
.customer-detail-edit-panel{min-height:0}
.customer-detail-edit-footer{justify-content:space-between;align-items:center;gap:12px}
.customer-detail-edit-actions,.customer-detail-edit-confirm-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.customer-detail-edit-actions[hidden]{display:none}
.customer-detail-edit-actions button.danger{color:#b42318;border-color:#f0b4ad}
.customer-data-overview{display:grid;gap:14px}
.customer-data-section{border:1px solid #dce3ec;border-radius:12px;background:#fff;padding:14px}
.customer-data-section h4{margin:0 0 12px;color:#1f2937;font-size:18px;line-height:1.2;font-weight:800}
.customer-default-profile-group{display:grid;gap:8px;margin-bottom:12px}
.customer-default-profile-group h5{margin:0;color:#334155;font-size:14px;font-weight:700}
.customer-unified-add-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce3ec;border-radius:12px;background:#fff;padding:12px 14px;color:#64748b;font-size:13px}
.customer-unified-add-row button{height:34px;border:1px solid #cfd8e4;background:#fff;border-radius:9px;padding:0 14px;color:#1f2937;font-size:13px;cursor:pointer}
.customer-data-card{width:100%;min-height:82px;box-sizing:border-box;border:1px solid #d6dee9;border-radius:12px;background:#fff;color:#1f2937;padding:14px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;text-align:left;cursor:pointer}
.customer-data-card:hover{background:#f8fbff!important;border-color:#93baf8!important}
.customer-data-card:focus-visible{outline:0;border-color:#6da5fa;box-shadow:0 0 0 3px rgba(109,165,250,.2)}
.customer-data-card.is-selected{border-color:#7daef6;background:#eef5ff}
.customer-data-card:disabled{cursor:not-allowed;background:#f1f5f9!important;border-color:#dce3ec!important;color:#8a96a8}
.customer-data-card-copy{display:grid;gap:8px;min-width:0}
.customer-data-card-copy strong{font-size:16px;line-height:1.25;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-data-card-copy small{font-size:13px;line-height:1.45;font-weight:400;color:#5f6b7a;white-space:normal;overflow-wrap:anywhere}
.customer-data-card:disabled .customer-data-card-copy small{color:#8a96a8}
.customer-data-card-status,.customer-data-default{flex:0 0 auto;font-size:12px;line-height:1.3;font-weight:700;white-space:nowrap}
.customer-data-card-status.is-complete,.customer-data-default{color:#15803d}
.customer-data-card-status.is-incomplete{color:#dc2626}
.customer-data-card-badges{display:flex;align-items:flex-end;gap:8px;flex-direction:column}
.customer-shipping-mode{min-height:32px;border:1px solid #dce3ec;border-radius:12px;background:#fff;padding:4px 16px;display:flex;align-items:center;gap:12px;color:#1f2937;font-size:15px;font-weight:700;cursor:pointer}
.customer-shipping-mode span{min-width:0;white-space:normal;overflow-wrap:anywhere}
.customer-shipping-mode input{appearance:none;-webkit-appearance:none;width:22px;height:22px;box-sizing:border-box;margin:0;border:1.6px solid #7b8798;border-radius:6px;background:#fff;position:relative;cursor:pointer;flex:0 0 auto}
.customer-shipping-mode input:checked::after{content:"";position:absolute;left:6px;top:2px;width:6px;height:12px;border-right:2.5px solid #111827;border-bottom:2.5px solid #111827;transform:rotate(40deg);box-sizing:border-box}
.customer-shipping-section.is-disabled{background:#f8fafc}
.customer-shipping-section.is-disabled h4{color:#7b8798}
.customer-shipping-tools{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.customer-shipping-tools button{height:34px;border:1px solid #cfd8e4;background:#fff;border-radius:9px;padding:0 12px;color:#1f2937;font-size:13px;cursor:pointer}
.customer-shipping-tools button:disabled{cursor:not-allowed;background:#f1f5f9;border-color:#dce3ec;color:#94a3b8}
.customer-shipping-count{margin-left:auto;color:#64748b;font-size:13px;white-space:nowrap}
.customer-shipping-list{display:grid;gap:10px;border:0;border-radius:0;background:transparent;margin:0;overflow:visible;max-height:none}
.customer-shipping-empty{border:1px dashed #cfd8e4;border-radius:10px;background:#f8fbff;padding:18px;text-align:center;color:#64748b;font-size:13px}
@media (max-width:900px){.customer-columns-list{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-columns-modal,.customer-edit-modal{width:94vw}.customer-export-options{align-items:flex-start;flex-direction:column}.customer-edit-field{grid-template-columns:1fr;gap:6px}.customer-edit-field input,.customer-edit-field textarea,.customer-edit-field select,.customer-country-control,.customer-edit-binary{width:100%}.customer-country-control{flex-direction:column}.customer-country-control select,.customer-country-control input{width:100%}}

@media (max-width:560px){
  .customer-edit-modal{
    width:calc(100vw - 20px);
    height:min(90svh,820px);
    padding:10px;
  }
  .customer-edit-title{font-size:20px}
  .customer-data-section{padding:11px}
  .customer-data-section h4{font-size:16px}
  .customer-data-card{padding:12px;gap:10px}
  .customer-data-card-copy strong{font-size:14px}
  .customer-data-card-badges{gap:4px}
  .customer-shipping-mode{padding:4px 12px;font-size:13px}
  .customer-shipping-count{width:100%;margin-left:0}
  .customer-detail-edit-footer{align-items:stretch;flex-direction:column}
  .customer-detail-edit-actions,.customer-detail-edit-confirm-actions{width:100%}
  .customer-detail-edit-confirm-actions{justify-content:flex-end}
  .customer-columns-modal{
    width:calc(100vw - 20px);
    height:min(88svh,760px);
    padding:10px;
  }
  .customer-columns-title{
    font-size:18px;
    margin-bottom:8px;
  }
  .customer-columns-modes,
  .customer-export-file-types{
    flex-wrap:wrap;
    gap:10px;
    font-size:13px;
  }
  .customer-columns-modes label,
  .customer-export-file-types label{
    gap:6px;
    font-size:13px;
  }
  .customer-columns-modes input,
  .customer-export-file-types input{
    width:17px;
    height:17px;
  }
  .customer-columns-modes input:checked::after,
  .customer-export-file-types input:checked::after{
    left:5px;
    top:5px;
    width:7px;
    height:7px;
  }
  .customer-export-options{
    gap:8px;
    margin-bottom:8px;
  }
  .customer-columns-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    padding:6px;
    border-radius:9px;
  }
  .customer-column-item{
    min-height:34px;
    align-items:flex-start;
    gap:5px;
    padding:6px 7px;
    border-radius:8px;
    font-size:12px;
    line-height:1.25;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    word-break:break-word;
  }
  .customer-column-item span{
    overflow:visible;
    text-overflow:clip;
  }
  .customer-column-item input{
    width:18px;
    height:18px;
  }
  .customer-column-item input:checked::after{
    left:5px;
    top:1px;
    width:5px;
    height:10px;
    border-right-width:2.5px;
    border-bottom-width:2.5px;
  }
  .customer-columns-footer{
    padding-top:8px;
  }
  .customer-columns-footer button{
    height:34px;
    padding:0 12px;
    font-size:13px;
  }
}
