/* Network proxy workspace */
.proxy-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; margin-bottom: 23px; }
.proxy-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 23px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.proxy-summary span { font-size: 14px; color: #6d7b93; }
.proxy-summary strong { font-size: 27px; line-height: 1.3; color: #2f4265; font-weight: 650; font-variant-numeric: tabular-nums; }
.proxy-country-card { margin-bottom: 23px; padding: 21px 23px 23px; }
.proxy-country-title { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.proxy-country-title h2 { font-size: 16px; }
.proxy-country-title p { color: #7a879d; font-size: 14px; }
.proxy-country-tabs { display: flex; gap: 9px; flex-wrap: wrap; max-height: 192px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.proxy-country-tab { display: inline-flex; align-items: center; gap: 12px; padding: 8px 13px; min-height: 39px; border: 1px solid #e4e9f2; border-radius: 8px; background: #fff; color: #67768e; font-size: 14px; }
.proxy-country-tab strong { padding: 0 6px; border-radius: 4px; background: #f1f4f9; font-size: 13px; font-weight: 550; min-width: 22px; text-align: center; color: #64748d; }
.proxy-country-tab:hover { border-color: #bccdee; background: #f8faff; }
.proxy-country-tab.selected { background: #edf3ff; color: #315fc7; border-color: #a7bff4; }
.proxy-country-tab.selected strong { background: #dce8ff; color: #315fc7; }
.proxy-toolbar { padding: 21px 23px; border-bottom: 1px solid var(--line); display: grid; gap: 17px; }
.proxy-search-form { display: flex; align-items: center; gap: 10px; max-width: 910px; }
.proxy-search-form > select { width: 130px; flex: 0 0 130px; font-size: 14px; padding: 11px 12px; }
.proxy-search-input { display: flex; align-items: center; min-width: 0; flex: 1; position: relative; }
.proxy-search-input input { background: #fbfcfe !important; font-size: 14px !important; padding: 11px 14px !important; }
.proxy-search-input input[type=password], .proxy-search-input input[type=text] { padding-right: 58px !important; }
.proxy-search-input > .button { position: absolute; right: 5px; }
.proxy-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.proxy-filter-row select { padding: 8px 12px; font-size: 14px; min-width: 130px; }
.proxy-search-error { margin: 17px 23px; padding: 12px 15px; color: #a4404b; border-radius: 8px; background: #fff0f2; font-size: 14px; }
.proxy-bulk { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 17px 23px; background: #f4f7ff; border-bottom: 1px solid #e1e9fb; }
.proxy-bulk > strong { color: #3f5d98; font-size: 14px; font-weight: 600; }
.proxy-bulk .actions { gap: 7px; }
.proxy-table th:first-child, .proxy-table td:first-child { width: 48px; padding-right: 5px; }
.proxy-table th, .proxy-table td { padding-left: 19px; padding-right: 19px; }
.proxy-table td { font-size: 15px; }
.proxy-table .row-actions { gap: 2px; }
.proxy-identity { display: flex; align-items: center; gap: 11px; min-width: 160px; }
.proxy-protocol-icon { width: 37px; height: 39px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 10px; background: #edf2ff; color: #5b7ed4; font-size: 17px; font-weight: 650; }
.proxy-protocol-icon.http { background: #e8f6f5; color: #3e9895; }
.proxy-name { display: block; font-size: 15px; color: #3a4b67; max-width: 190px; overflow-wrap: anywhere; white-space: normal; line-height: 1.55; font-weight: 600; }
.proxy-identity .cell-secondary { margin-top: 3px; }
.proxy-address { font-variant-numeric: tabular-nums; min-width: 150px; }
.proxy-bound-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.proxy-check-error { margin-top: 6px; font-size: 13px; color: #a65b63; max-width: 240px; overflow-wrap: anywhere; }
.proxy-empty-icon { display: grid; place-items: center; margin: 0 auto 17px; width: 55px; height: 55px; color: #86a1d8; background: #eef3fd; font-size: 31px; border-radius: 15px; }
.proxy-progress { padding: 18px 23px; border: 1px solid #dbe5fa; border-radius: 11px; background: #f5f8ff; margin-bottom: 23px; }
.proxy-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.proxy-progress-heading strong { color: #3d5b94; font-size: 14px; font-weight: 600; }
.proxy-progress-heading p { margin-top: 5px; font-size: 14px; color: #6d7e9c; }
.proxy-progress-heading > span { font-size: 20px; font-weight: 600; color: #4771c9; font-variant-numeric: tabular-nums; }
.proxy-progress progress { display: block; width: 100%; height: 7px; margin-top: 14px; border: 0; border-radius: 10px; overflow: hidden; appearance: none; }
.proxy-progress progress::-webkit-progress-bar { background: #e2eaf8; border-radius: 10px; }
.proxy-progress progress::-webkit-progress-value { background: #5c84e5; border-radius: 10px; transition: width .2s; }
.proxy-progress progress::-moz-progress-bar { background: #5c84e5; border-radius: 10px; }
.proxy-modal-body .table-scroll { border: 1px solid var(--line); border-radius: 9px; max-height: 335px; overflow: auto; }
.proxy-modal-body th, .proxy-modal-body td { padding: 12px 15px; font-size: 14px; }
.proxy-modal-body thead { position: sticky; top: 0; z-index: 1; }
.proxy-import-intro { color: #687991; font-size: 14px; line-height: 1.8; margin-bottom: 21px; }
.proxy-import-text { min-height: 195px; font: 14px/1.8 "Cascadia Code",Consolas,monospace; background: #f9fbff; padding: 14px 16px; white-space: pre; }
.proxy-import-options { margin-top: 22px; }
.proxy-import-checks { display: flex; align-items: center; gap: 18px 30px; flex-wrap: wrap; margin-top: 22px; }
.proxy-import-preview:not(:empty) { margin-top: 23px; }
.proxy-preview-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 23px; margin-bottom: 14px; font-size: 14px; color: #6b7c95; }
.proxy-preview-summary .good { color: #348265; }
.proxy-preview-summary .bad { color: #b15a63; }
.proxy-import-success { display: flex; gap: 15px; align-items: center; margin-bottom: 23px; }
.proxy-import-success > span { display: grid; place-items: center; width: 42px; height: 44px; border-radius: 12px; background: #e8f6ef; color: #3b9b70; font-size: 24px; flex: 0 0 42px; }
.proxy-import-success h3 { font-size: 18px; color: #324b67; }
.proxy-import-success p { font-size: 14px; color: #6a7a93; margin-top: 4px; }
.proxy-result-summary { display: flex; gap: 27px; margin-bottom: 21px; color: #687a95; font-size: 14px; }
.proxy-result-summary > span { display: flex; gap: 9px; align-items: center; }
.proxy-result-summary strong { color: #3d5376; font-size: 20px; font-weight: 600; }
.proxy-change-field { display: grid; align-content: start; gap: 10px; min-width: 0; }
.proxy-change-field .hint { margin-top: -3px; }
.proxy-change-field > input:disabled, .proxy-change-field > select:disabled { background: #f5f7fb; color: #8c99ad; }
@media (max-width: 1220px) { .proxy-summary > div { padding: 18px; } .proxy-table .table-scroll { overflow-x: auto; } .proxy-table table { min-width: 1050px; } }
@media (max-width: 780px) { .proxy-summary { grid-template-columns: 1fr 1fr; gap: 12px; } .proxy-summary strong { font-size: 25px; } .proxy-country-card { padding: 18px; } .proxy-country-title { flex-wrap: wrap; gap: 5px 16px; } .proxy-bulk { padding: 16px; } }
@media (max-width: 620px) {
  .proxy-summary { margin-bottom: 18px; gap: 10px; }
  .proxy-summary > div { padding: 15px; display: block; }
  .proxy-summary span { display: block; }
  .proxy-summary strong { display: block; margin-top: 5px; font-size: 25px; }
  .proxy-country-card { padding: 17px 16px; margin-bottom: 18px; }
  .proxy-country-tabs { gap: 8px; max-height: 180px; }
  .proxy-country-tab { gap: 8px; padding: 7px 10px; }
  .proxy-toolbar { padding: 16px; gap: 14px; }
  .proxy-search-form { flex-wrap: wrap; gap: 9px; }
  .proxy-search-form > select { width: 116px; flex-basis: 116px; }
  .proxy-search-input { flex-basis: calc(100% - 130px); }
  .proxy-search-form > .button { flex: 1; }
  .proxy-filter-row { flex-wrap: wrap; gap: 10px; }
  .proxy-filter-row .actions { flex: 1; flex-wrap: nowrap; }
  .proxy-filter-row select { min-width: 0; flex: 1; width: 50%; }
  .proxy-filter-row .count { width: 100%; text-align: right; }
  .proxy-bulk > .actions { width: 100%; gap: 8px; }
  .proxy-bulk .button { flex: 1; }
  .proxy-table .table-scroll { overflow: visible; }
  .proxy-table table { min-width: 0; }
  .proxy-table td { padding: 8px 0; }
  .proxy-table td:first-child { padding-top: 0; padding-bottom: 15px; width: auto; }
  .proxy-table td:last-child { padding-top: 14px; }
  .proxy-table .row-actions { gap: 7px; }
  .proxy-identity { min-width: 0; }
  .proxy-name { max-width: 100%; }
  .proxy-protocol-icon { display: none; }
  .proxy-table .row-actions > .button:first-child { margin-right: 0; }
  .proxy-progress { padding: 16px; margin-bottom: 18px; }
  .proxy-progress-heading { gap: 10px; }
  .proxy-progress-heading > span { font-size: 18px; }
  .proxy-modal-body .table-scroll { max-height: 335px; overflow: auto; }
  .proxy-modal-body td { padding: 7px 0; }
  .proxy-modal-body td:first-child { padding-bottom: 10px; }
  .proxy-modal-body td:last-child { padding-top: 10px; }
  .proxy-import-options { margin-top: 19px; }
  .proxy-import-checks { gap: 14px; }
  .proxy-preview-summary { gap: 8px 17px; }
  .proxy-import-text { min-height: 165px; }
}
