/* ============================ Entity Modal Overlay & Card Start ============================ */
.entity-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.entity-modal.is-open {
  display: flex;
}

.entity-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.38);
}

.entity-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(820px, 100vw - 48px);
  max-height: calc(100vh - 140px);
  padding: 24px 26px 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  top: 100px !important;
}

/* ============================ Entity Modal Overlay & Card End ============================ */


/* ============================ Entity Modal Head Start ============================ */
.entity-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--white);
}

.entity-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-modal-eyebrow {
  font-size: 13px;
  opacity: 0.9;
}

.entity-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
}

.entity-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 40px;
}

.entity-modal-close img {
  width: 18px;
  height: 18px;
}

/* ============================ Entity Modal Head End ============================ */


/* ============================ Entity Modal Panel Start ============================ */
.entity-modal-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 22px 18px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  color: var(--dark4txt);
  scrollbar-width: none;
}

.entity-modal-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.entity-modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark4txt);
}

.entity-modal-section-chevron {
  width: 18px;
  height: 18px;
}

/* ============================ Entity Modal Panel End ============================ */


/* ============================ Entity Modal Form Start ============================ */
.entity-modal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.entity-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  font-size: 14px;
  color: var(--dark4txt);
}

.entity-field-wide {
  flex-basis: 100%;
}

.entity-field-row {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.entity-field-row>span {
  flex: 0 0 auto;
  min-width: 160px;
  color: var(--dark4txt);
}

.entity-field-row>.entity-input,
.entity-field-row>.entity-stepper,
.entity-field-row>.filter-dropdown {
  flex: 1 1 auto;
  min-width: 0;
}

.entity-field>span {
  font-size: 13px;
  line-height: 16px;
  color: var(--grey4txt);
}

/* Pastabos — full-width textarea: label above, input below.  Matches the
   alignment of the other rows in the new-client modal. */
.entity-field-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entity-field-notes>span {
  font-size: 13px;
  line-height: 16px;
  color: var(--grey4txt);
}

.entity-notes-input {
  width: 100%;
  min-height: 92px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  outline: 0;
  resize: vertical;
}

.entity-notes-input::placeholder {
  color: var(--grey4txt);
}

.entity-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
}

.entity-input::placeholder {
  color: var(--grey-text-suggested);
}

.entity-input:focus {
  outline: 2px solid var(--purple);
  outline-offset: -1px;
}

/* ============================ Entity Modal Form End ============================ */


/* ============================ Entity Modal Checks Start ============================ */
.entity-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.entity-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 calc(50% - 12px);
  font-size: 14px;
  color: var(--dark4txt);
  cursor: pointer;
}

.entity-check input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
}

.entity-check input:checked {
  background: var(--white);
}

.entity-check input:checked::after {
  content: "✓";
  display: block;
  margin-top: -2px;
  color: var(--dark4txt);
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

/* ============================ Entity Modal Checks End ============================ */


/* ============================ Entity Modal Stepper Start ============================ */
.entity-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--white);
}

.entity-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--line-color, #e0e0e0);
  color: var(--dark4txt);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.entity-stepper-value {
  flex: 1 1 auto;
  text-align: center;
  color: var(--dark4txt);
  font-size: 14px;
}

.entity-field-row>.entity-stepper.entity-stepper--half {
  flex: 0 1 auto;
  width: 50%;
  margin-left: auto;
}

/* ============================ Entity Modal Stepper End ============================ */


/* ============================ Entity Modal Dropdown Start ============================ */
.entity-modal .filter-dropdown {
  width: 100%;
  justify-content: flex-end;
}

.entity-modal .filter-dropdown .detail-button {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
}

.entity-modal .filter-dropdown .detail-button-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

/* The dropdown menu should match the trigger width, not the fixed 220px default. */
.entity-modal .filter-dropdown-menu {
  width: 89%;
  min-width: 0;
}

.entity-modal .filter-dropdown-menu {
  left: 0px;
}

/* ============================ Entity Modal Dropdown End ============================ */


/* ============================ Entity Modal Separator Start ============================ */
.entity-form-separator {
  height: 1px;
  background: var(--white);
  opacity: 0.7;
}

/* ============================ Entity Modal Separator End ============================ */


/* ============================ Entity Modal Footer Start ============================ */
.entity-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.entity-modal-save {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}

.entity-modal-save:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ============================ Entity Modal Footer End ============================ */



/* ============================ Info Modal Overlay & Card Start ============================ */

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.info-modal.is-open {
  display: flex;
}

.info-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.38);
}

.info-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(850px, 100vw - 48px);
  max-height: calc(100vh - 140px);
  padding: 24px 26px 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--dark4txt);
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  top: 100px !important;
}

/* ============================ Info Modal Overlay & Card End ============================ */


/* ============================ Info Modal Head Start ============================ */
.info-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--white);
}

.info-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-modal-eyebrow {
  font-size: 13px;
  opacity: 0.9;
}

.info-modal-id {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 30px;
  font-weight: 700;
}

.info-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 40px;
}

.info-modal-close img {
  width: 18px;
  height: 18px;
}

/* ============================ Info Modal Head End ============================ */


/* ============================ Info Modal Accordions Start ============================ */
.info-modal-accordions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.info-modal-accordion::-webkit-scrollbar,
.info-modal-accordions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.info-modal-accordion {
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--panel-bg);
  overflow: visible;
}

.info-modal-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.info-modal-accordion-chevron {
  width: 22px;
  height: 22px;
}

.info-modal-accordion-chevron:hover {
  
  background: white;
    border-radius: 50%;
}
.info-modal-accordion-body {
  display: none;
  padding: 0 22px 18px;
}

.info-modal-accordion.is-open .info-modal-accordion-body {
  display: block;
}

/* ============================ Info Modal Accordions End ============================ */


/* ============================ Info Modal Form Start ============================ */
.info-modal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.info-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  color: var(--dark4txt);
  font-size: 14px;
}

.info-modal-field-wide {
  flex-basis: 100%;
}

.info-modal-field-row {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.info-modal-field-row>span {
  flex: 0 0 auto;
  min-width: 160px;
}



.info-modal-field>span {
  font-size: 13px;
  line-height: 16px;
  color: var(--grey4txt);
}

.info-modal-form input[type="text"],
.info-modal-form .info-modal-input-icon input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
}

.info-modal-input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.info-modal-input-icon img {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
}
/* ============================ Info Modal Dropdown Theming Start ============================ */

.info-modal .filter-dropdown {
  width: 100%;
  grid-column: auto;
  grid-row: auto;
}

.info-modal .filter-dropdown .detail-button {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
}

.info-modal .filter-dropdown .detail-button-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.info-modal .filter-dropdown-menu {
  width: 100%;
  min-width: 0;
  right: auto;
  left: 0;
  z-index: 80;
}


/* ============================ Info Modal Dropdown Theming End ============================ */
.info-modal-field-row>input,
.info-modal-field-row>.info-modal-stepper,
.info-modal-field-row>.info-modal-select,
.info-modal-number-field,
.info-modal-administratorius-dropdown {
  flex: none;
  min-width: 0;
  width: 50% !important;
  margin-left: auto;
}

.info-modal-select {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
}

/* ============================ Info Modal Form End ============================ */


/* ============================ Info Modal Checks Start ============================ */
.info-modal-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dark4txt);
  cursor: pointer;
}

.info-modal-check input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.info-modal-check input:checked::after {
  content: "✓";
  display: block;
  margin-top: -2px;
  color: var(--dark4txt);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

/* ============================ Info Modal Checks End ============================ */


/* ============================ Info Modal Stepper Start ============================ */
.info-modal-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--white);
}

.info-modal-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--line-color, #e0e0e0);
  color: var(--dark4txt);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  line-height: 1.7;
}

.info-modal-stepper-value {
  flex: 1 1 auto;
  text-align: center;
  color: var(--dark4txt);
  font-size: 14px;
}

.info-modal-field-row>.info-modal-stepper.info-modal-stepper--half {
  flex: 0 1 auto;
  width: 50%;
  margin-left: auto;
}

.info-modal-field-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-modal-field-notes>span {
  font-size: 13px;
  line-height: 16px;
  color: var(--grey4txt);
}

.info-modal-notes-input {
  width: 100%;
  min-height: 92px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  outline: 0;
  resize: vertical;
}

.info-modal-notes-input::placeholder {
  color: var(--grey4txt);
}


/* ============================ Info Modal Stepper End ============================ */


/* ============================ Info Modal History + Misc Start ============================ */
.info-modal-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--dark4txt);
}

.info-modal-history span {
  color: var(--grey4txt);
}

.info-modal-history a {
  color: var(--blue4link);
  text-decoration: none;
}

.info-modal-separator {
  height: 1px;
  background: var(--white);
  opacity: 0.7;
}

.info-modal-empty {
  min-height: 80px;
  padding-top: 8px;
  color: var(--grey4txt);
}

/* ============================ Info Modal History + Misc End ============================ */


/* ============================ Info Modal Footer Start ============================ */
.info-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.info-modal-save {
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.info-modal-save:hover {
  background: var(--white);
}


.info-modal-form>.info-modal-field {
  flex: 1 1 calc(50% - 8px);
}

.info-modal-form>.info-modal-field-wide {
  flex-basis: 100%;
}

/* ============================ Info Modal Footer End ============================ */




/* ============================ Info Modal Check Grid Start ============================ */
/* Permissions checkboxes: 2 columns on desktop, single column on mobile. */
.info-modal-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.info-modal-check-grid .info-modal-check {
  flex: 1 1 calc(50% - 12px);
}

/* ============================ Info Modal Check Grid End ============================ */


/* ============================ Info Modal History Refinements Start ============================ */
.info-modal-history {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  align-items: baseline;
  font-size: 14px;
}

.info-modal-history-label {
  color: var(--grey4txt);
  flex: 0 0 auto;
}

.info-modal-history-value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--dark4txt);
  text-align: right;
  font-weight: 500;
}

.info-modal-history-value a {
  color: var(--blue4link);
  text-decoration: underline;
}

/* ============================ Info Modal History Refinements End ============================ */


/* ============================ Info Modal Actions Variants Start ============================ */
.info-modal-actions-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}

.info-modal-actions--center {
  justify-content: center;
}

.info-modal-plus {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.info-modal-plus:hover {
  background: var(--white);
}

/* ============================ Info Modal Actions Variants End ============================ */


/* ============================ Info Orders Table Start ============================ */

.info-orders-shell {
  width: 100%;
  margin-bottom: 8px;
  height: 500px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.info-orders-shell::-webkit-scrollbar {
  display: none;
}

.info-orders-table {
  width: 100%;
  min-width: 100%;
  margin-top: -2px;
  border-collapse: separate;
  border-spacing: 0 10px;
  table-layout: fixed;
}

.info-orders-table th,
.info-orders-table td {
  height: 45px;
  padding: 0 16px;
  overflow: hidden;
  color: var(--dark4txt);
  font-size: 14px;
  line-height: 18px;
  font-family: var(--font-body);
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.info-orders-table td {
  padding: 12px 14px;
  background: var(--white);
  color: var(--dark4txt);
  font-size: 13px;
  vertical-align: middle;
}

.info-orders-table tbody td {
  background: rgba(255, 255, 255, 0.6);
  border-left: 2px solid rgba(3, 5, 34, 0.1);
}

.info-orders-table tbody tr.is-alt td {
  background: rgba(255, 255, 255, 0.3);
}

.info-orders-table tbody tr:hover td {
  background: var(--white);
}

.info-orders-table th:first-child,
.info-orders-table td:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.info-orders-table th:last-child,
.info-orders-table td:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.info-orders-table td:nth-child(2) {
  width: 170px;
}

.info-orders-table td:nth-child(3) {
  width: 120px;
}

.info-orders-table td:nth-child(4) {
  width: 100px;
}

.info-orders-table td:first-child {
  border-left: 0;
}

.info-orders-table td span {
  display: block;
  font-size: 11px;
  color: var(--grey4txt);
  margin-bottom: 2px;
}

.info-orders-table td strong {
  font-weight: 500;
}

.info-orders-id {
  font-size: 16px !important;
  font-weight: 500;
  text-align: center;
  width: 90px;
}

.info-orders-status {
  color: var(--green-darker) !important;
  text-decoration: none;
  font-weight: 600;
}

.info-orders-when {
  display: inline !important;
  margin-left: 6px;
  color: var(--dark4txt) !important;
  font-size: 12px !important;
}

.info-orders-table tr {
  cursor: pointer;
}

.info-orders-total {
  text-align: right;
  font-size: 14px;
  color: var(--dark4txt);
  padding: 6px 4px;
}

.info-orders-total strong {
  font-weight: 500;
}

/* ============================ Info Orders Table End ============================ */


/* ============================ Info Modal Later Accordions Theme Start ============================ */


.info-modal-accordion-body {
  color: var(--dark4txt);
}

.info-device-panel,
.info-address-card,
.info-server-card,
.info-watch-row,
.info-msg-row {
  background: rgba(255, 255, 255, 0.55);
}

.info-device-panel,
.info-address-card,
.info-server-card,
.info-watch-row,
.info-msg-row,
.info-stats-table th,
.info-stats-table td {
  border-color: rgba(3, 5, 34, 0.1);
}

/* ============================ Info Modal Later Accordions Theme End ============================ */


/* ============================ Info Devices Grid Start ============================ */

.info-devices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.info-device-panel {
  display: flex;
  min-width: 0;
  position: relative;
  overflow: visible;
  flex-direction: column;
  border-radius: var(--radius-sm);
}

.info-device-panel:focus-within,
.info-address-card:focus-within,
.info-server-card:focus-within {
  z-index: 4;
}

.info-device-panel:nth-child(3) {
  grid-column: 1 / 2;
}

.info-device-header,
.info-device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
}

.info-device-title {
  margin: 0;
  color: var(--grey4txt);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.info-device-dropdown,
.info-device-row {
  padding: 8px 16px;
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
}

.info-device-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.info-device-row--split>* {
  flex: 1 1 0;
  min-width: 0;
}

.info-device-row--siptv {
  align-items: center;
  justify-content: space-between;
}

.info-device-panel>.filter-dropdown {
  width: auto;
  margin: 10px 16px 16px;
}

.info-device-panel .info-modal-field {
  flex: 1 1 0;
  gap: 4px;
}

.info-modal-save-main,
.info-device-trash-main,
.info-device-meta-main {
  background-color: rgb(255, 255, 255, 0.5);
  height: -webkit-fill-available;
}

.info-device-trash-main {
  width: 64px;
}

.info-device-panel .info-modal-field>span,
.info-device-meta {
  color: var(--grey4txt);
  font-size: 13px;
}

.info-device-idmanage {
  background-color: rgb(255, 255, 255, 0.5);
}

.info-device-panel input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--grey4txt);
  font: inherit;
}

.info-device-meta {
  margin: 0;
  padding: 8px 16px 0;
}

.info-device-checks {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.info-device-secondary,
.info-device-extend {
  min-width: 94px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.info-device-secondary:hover,
.info-device-extend:hover {
  background: var(--white);
}

.info-device-extend {
  align-self: center;
  margin: 10px auto 8px;
}

/* ============================ Info Devices Grid End ============================ */


/* ============================ Info Modal TVZone Device Start ============================ */

.info-modal .info-modal-accordion[data-info-tab="devices"].is-open .info-modal-accordion-body {
  display: flex;
  flex-direction: column;
  min-height: 642px;
  padding: 0 24px 16px;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-devices-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-device-panel--siptv,
.info-device-panel--tvzone {
  overflow: visible;
  background: rgba(255, 255, 255, 0.55);
}

.info-device-panel .filter-dropdown.is-open {
  z-index: 30;
}

.info-device-panel .filter-dropdown-menu {
  z-index: 120;
}

.info-device-panel--siptv .info-device-head,
.info-device-panel--tvzone .info-device-head {
  min-height: 44px;
}

.info-device-panel--siptv .info-device-row,
.info-device-panel--tvzone .info-device-row {
  padding: 8px 16px;
}

.info-device-panel--siptv .info-device-row--split,
.info-device-panel--tvzone .info-device-row--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.info-device-panel--siptv .info-modal-field,
.info-device-panel--tvzone .info-modal-field {
  flex: initial;
}

.info-device-panel--siptv .info-modal-field>span,
.info-device-panel--tvzone .info-modal-field>span,
.info-device-identifier>span {
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 16px;
}

.info-device-meta-stack {
  padding: 8px 16px;
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
}

.info-device-meta-stack p {
  margin: 0;
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 20px;
}

.info-device-identifier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px 14px;
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
}

.info-device-identifier input {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--grey4txt);
  font: inherit;
}

.info-device-row--manage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
}

.info-device-row--manage .info-modal-check {
  min-width: 0;
}

.info-device-comment-row {
  padding: 8px 16px;
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
}

.info-device-comment {
  width: 100%;
  height: 74px;
  min-height: 74px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  resize: none;
  outline: 0;
}

.info-device-comment::placeholder {
  color: var(--grey-text-suggested);
}

.info-device-row--drm-delete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  padding: 8px 0 8px 16px;
  border-bottom: 0;
}

/* Unified last row — Numatytasis + Kanalai + DRM (+ optional trash) */
.info-device-row--last {
  display: grid;
  grid-template-columns: 316px 100px 330px;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 0;
}


.info-device-row--last.has-trash {
  grid-template-columns: 250px 100px 330px 38px;
  padding-right: 0;
}


.info-device-row--last>.filter-dropdown:nth-child(3),
.info-device-row--last>.info-device-trash {
  border-left: 1px solid rgba(3, 5, 34, 0.1);
  padding-left: 12px;
}

.info-device-row--last .filter-dropdown {
  min-width: 0;
  width: 100%;
}

.info-device-row--last .info-device-channel-btn {
  width: 96%;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}


.info-device-row--drm-delete .filter-dropdown {
  min-width: 0;
}

.info-device-trash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 42px;
  padding: 0;
  border: 0;
  border-left: 2px solid rgba(3, 5, 34, 0.1);
  background: transparent;
  cursor: pointer;
}

.info-device-trash img {
  width: 18px;
  height: 20px;
}

.info-devices-actions {
  position: relative;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.72);
}




/* ============================ Package-Style Device Cards Start ============================ */

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
}

/* Drop the divider borders — the 2px gaps now separate every tile. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv .info-device-head,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv .info-device-row,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv .info-device-trash,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv .info-device-head,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv .info-device-row,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv .info-device-meta,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv .info-modal-field,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv .info-device-trash,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-device-head,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-device-row,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-device-meta-stack,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-device-identifier,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-device-comment-row,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-modal-field,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-device-trash {
  border: 0;
}

/* Headers → full-width tile with a rounded top. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-head,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-head,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-head {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px 10px 0 0;
}

/* Full-width single tiles: SIPTV "last activity", TVZone model stack + comment. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-meta,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-meta-stack,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-comment-row {
  margin: 0;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.55);
}

/* Multi-column rows: the row is a transparent 2px-gap track and each column is
   a padded tile. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row {
  gap: 2px;
  padding: 0;
  background: transparent;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row>*,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row>*,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row>* {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.55);
}

.info-device-identifier {
  background: transparent !important;
}

/* TVZone: Identifikatorius input + https + Valdyti įrenginį share one row (image
   two). The wrapper is a transparent track; identifier fills the left, manage
   holds the https + button tiles. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-idmanage {
  display: flex;
  gap: 2px;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-idmanage>.info-device-identifier {
  flex: 1 1 0;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.55);
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-idmanage>.info-device-row--manage {
  display: flex;
  gap: 2px;
  padding: 0;
  background: transparent;
  padding: 10px;
  align-items: end;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-idmanage>.info-device-row--manage>* {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  /* background: rgba(255, 255, 255, 0.55); */
}

/* The last row's columns are fixed-width (250 / 100 / 330) so the tiles use a
   tighter pad and let their controls shrink to fill. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last>*,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>* {
  padding: 6px 8px;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last .info-device-secondary,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last .info-device-secondary,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last .info-device-secondary {
  min-width: 0;
}

/* SIPTV checks / register row → two equal tiles. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--siptv {
  justify-content: flex-start;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--siptv>* {
  flex: 1 1 0;
}


.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>.info-device-trash-main,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>.info-device-trash-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv .info-device-trash-main .info-device-trash,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone .info-device-trash-main .info-device-trash {
  width: 100%;
}

/* Round the card's outer bottom corners on the last row's end tiles. */
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last>*:first-child,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*:first-child,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>*:first-child {
  border-bottom-left-radius: 10px;
}

.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last>*:last-child,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*:last-child,
.info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>*:last-child {
  border-bottom-right-radius: 10px;
}

/* ============================ Package-Style Device Cards End ============================ */



/* ============================ Info Device Channels Modal Start ============================ */
.info-channel-modal {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.info-channel-modal.is-open {
  display: flex;
}

.info-channel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.48);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.info-channel-card {
  position: relative;
  width: 428px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  padding: 22px 24px 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #6337c1 0%, #19103c 52%, #9c229b 100%);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.info-channel-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.info-channel-headbar h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.info-channel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 40px;
}

.info-channel-close img {
  width: 17px;
  height: 17px;
}

.info-channel-panel {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--dark4txt);
}

.info-channel-table-head,
.info-channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
}

.info-channel-table-head {
  min-height: 52px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--grey4txt);
}

.info-channel-table-head span:nth-child(2) {
  text-align: center;
}

.info-channel-list {
  max-height: 370px;
  overflow-y: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
}

.info-channel-list::-webkit-scrollbar {
  display: none;
}

.info-channel-row {
  min-height: 46px;
  overflow: hidden;
  margin-bottom: 5px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

.info-channel-row.is-alt {
  background: rgba(255, 255, 255, 0.3);
}

.info-channel-row span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-right: 2px solid rgba(3, 5, 34, 0.1);
  color: var(--grey4txt);
  font-size: 14px;
}


.info-channel-row .switch {
  justify-self: center;
}

/* ============================ Info Device Channels Modal End ============================ */


/* ============================ Manage Device Modal Start ============================ */
.info-manage-modal {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.info-manage-modal.is-open {
  display: flex;
}

.info-manage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.48);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.info-manage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 428px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 22px 24px 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #6337c1 0%, #19103c 52%, #9c229b 100%);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.info-manage-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.info-manage-headbar h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.info-manage-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 40px;
}

.info-manage-close img {
  width: 17px;
  height: 17px;
}

.info-manage-panel {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--dark4txt);
  padding: 18px 18px 20px;
}

.info-manage-section-title {
  margin: 0 0 14px;
  color: var(--grey4txt);
  font-size: 15px;
  font-weight: 600;
}

.info-manage-section-title--gap {
  margin-top: 22px;
}

.info-manage-input,
.info-manage-textarea {
  width: 100%;
  border: 1px solid rgba(3, 5, 34, 0.12);
  border-radius: 10px;
  background: var(--white);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark4txt);
}

.info-manage-input::placeholder,
.info-manage-textarea::placeholder {
  color: var(--grey4txt);
}

.info-manage-input {
  margin-bottom: 12px;
}

.info-manage-textarea {
  min-height: 100px;
  resize: vertical;
}

.info-manage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.info-manage-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.info-manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(3, 5, 34, 0.14);
  border-radius: 10px;
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.info-manage-btn:hover {
  background: rgba(99, 55, 193, 0.07);
  border-color: rgba(99, 55, 193, 0.3);
}

.info-manage-btn--send img {
  width: 16px;
  height: 16px;
}

/* Two-column command layout built with flex (no Grid) so it collapses to a
   single column when the card narrows. */
.info-manage-commands .info-manage-btn {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
}

/* Responsive — stack the send-message actions and command buttons on narrow
   viewports so nothing overflows the card. */


/* ============================ Manage Device Modal End ============================ */


/* ============================ Add Device Modal Start ============================ */
.info-add-modal {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.info-add-modal.is-open {
  display: flex;
}

.info-add-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.48);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.info-add-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 392px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 22px 24px 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #6337c1 0%, #19103c 52%, #9c229b 100%);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.info-add-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.info-add-headbar h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.info-add-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 40px;
}

.info-add-close img {
  width: 17px;
  height: 17px;
}

.info-add-panel {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px 18px 22px;
}

.info-add-label {
  margin: 0 0 10px;
  color: var(--grey4txt);
  font-size: 15px;
  font-weight: 600;
}

.info-add-label--gap {
  margin-top: 18px;
}

.info-add-input {
  width: 100%;
  border: 1px solid rgba(3, 5, 34, 0.12);
  border-radius: 10px;
  background: var(--white);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark4txt);
}

.info-add-input::placeholder {
  color: var(--grey4txt);
}

.info-add-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.info-add-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid rgba(3, 5, 34, 0.14);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.info-add-submit:hover {
  background: rgba(99, 55, 193, 0.07);
  border-color: rgba(99, 55, 193, 0.3);
}

/* Responsive — let the submit button span the panel on narrow viewports. */


/* ============================ Add Device Modal End ============================ */


/* ============================ Extend Package Modal Start ============================ */
.info-extend-modal {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.info-extend-modal.is-open {
  display: flex;
}

.info-extend-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.48);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.info-extend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 392px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 22px 24px 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #6337c1 0%, #19103c 52%, #9c229b 100%);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.info-extend-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.info-extend-headbar h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.info-extend-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 40px;
}

.info-extend-close img {
  width: 17px;
  height: 17px;
}

.info-extend-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px 18px 22px;
}

/* Dropdowns inherit the white-pill theming from `.info-modal .filter-dropdown`. */

.info-extend-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.info-extend-field>span {
  color: var(--grey4txt);
  font-size: 15px;
  font-weight: 600;
}

.info-extend-field input {
  width: 96px;
  flex: 0 0 96px;
  border: 1px solid rgba(3, 5, 34, 0.12);
  border-radius: 10px;
  background: var(--white);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark4txt);
  text-align: left;
}

.info-extend-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.info-extend-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 26px;
  border: 1px solid rgba(3, 5, 34, 0.14);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.info-extend-submit:hover {
  background: rgba(99, 55, 193, 0.07);
  border-color: rgba(99, 55, 193, 0.3);
}

/* Responsive — let the fields and submit span the panel on narrow viewports. */


/* ============================ Extend Package Modal End ============================ */


/* ============================ Paslaugų Paketai Tab Start ============================ */
/* Transparent card; every cell paints its own translucent background so the 2px
   flex gaps read as thin separators over the modal behind. */
.info-package-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.info-package-row {
  display: flex;
  gap: 2px;
}

/* Row 1 — two equal field columns */
.info-package-row--fields .info-package-cell {
  flex: 1 1 0;
  min-width: 0;
}

.info-package-cell {
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.5);
}

.info-package-label {
  display: block;
  margin-bottom: 8px;
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 16px;
}

/* Row 2 — four equal date / time cells */
.info-package-row--dates .info-package-datecell {
  flex: 1 1 0;
  min-width: 0;
}

.info-package-datecell {
  position: relative;
  padding: 10px 38px 10px 16px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.info-package-datecell span {
  display: block;
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 16px;
}

.info-package-datecell strong {
  display: block;
  color: var(--dark4txt);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.info-package-datecell img {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Row 3 — single right-aligned action on its own background strip */
.info-package-row--action {
  justify-content: flex-end;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive — field columns stack, date cells fold to 2×2 then single column. */
@media (max-width: 640px) {
  .info-package-row--fields {
    flex-wrap: wrap;
  }

  .info-package-row--fields .info-package-cell {
    flex: 1 1 100%;
  }

  .info-package-row--dates {
    flex-wrap: wrap;
  }

  .info-package-row--dates .info-package-datecell {
    flex: 1 1 calc(50% - 1px);
  }
}


/* ============================ Paslaugų Paketai Tab End ============================ */


/* ============================ Info Date & Time Pickers Start ============================ */

.info-calendar,
.info-timepicker {
  position: fixed;
  z-index: 1000000;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  color: var(--dark4txt);
  font-family: var(--font-body);
}

.info-calendar[hidden],
.info-timepicker[hidden] {
  display: none;
}

/* --- Calendar --- */
.info-calendar {
  width: 280px;
  padding: 12px;
  font-size: 13px;
}

.info-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.info-calendar-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark4txt);
}

.info-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.info-calendar-nav:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* 7-column layout built with flex (no Grid) — each cell takes a seventh. */
.info-calendar-weekdays,
.info-calendar-grid {
  display: flex;
  flex-wrap: wrap;
}

.info-calendar-weekdays span {
  flex: 0 0 calc(100% / 7);
  text-align: center;
  font-size: 11px;
  color: var(--grey4txt);
  padding: 4px 0;
}

.info-calendar-day {
  flex: 0 0 calc(100% / 7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dark4txt);
  font: inherit;
  cursor: pointer;
}

.info-calendar-day:hover {
  background: rgba(123, 85, 203, 0.08);
}

.info-calendar-day.is-outside {
  color: var(--grey4txt);
  opacity: 0.55;
}

.info-calendar-day.is-today {
  font-weight: 700;
  color: #7b55cb;
}

.info-calendar-day.is-selected {
  background: #7b55cb;
  color: var(--white);
  font-weight: 600;
}

/* --- Time picker --- */
.info-timepicker {
  width: 220px;
  padding: 8px;
}

.info-timepicker-cols {
  display: flex;
  gap: 6px;
}

.info-timepicker-col {
  flex: 1 1 0;
  min-width: 0;
  max-height: 196px;
  overflow-y: auto;
  /* Columns still scroll (60 minutes), but the scrollbar is hidden. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.info-timepicker-col::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.info-timepicker-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.info-timepicker-option:hover {
  background: rgba(123, 85, 203, 0.08);
}

.info-timepicker-option.is-selected {
  background: #7b55cb;
  color: var(--white);
  font-weight: 600;
}

/* ============================ Info Date & Time Pickers End ============================ */


/* ============================ Info Date Grid Start ============================ */
.info-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
  background: rgba(255, 255, 255, 0.42);
}

.info-date-cell {
  position: relative;
  min-height: 48px;
  padding: 8px 40px 8px 16px;
  border-right: 2px solid rgba(3, 5, 34, 0.1);
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
  cursor: pointer;
}

/* The calendar/clock icon shouldn't swallow the cell click. */
.info-date-cell img {
  pointer-events: none;
}

.info-date-cell:nth-child(2n) {
  border-right: 0;
}

.info-date-cell:nth-last-child(-n+2) {
  border-bottom: 0;
}

.info-date-cell span {
  display: block;
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 16px;
}

.info-date-cell strong {
  display: block;
  color: var(--dark4txt);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.info-date-cell img {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
}

/* ============================ Info Date Grid End ============================ */


/* ============================ Info Address Card Start ============================ */
.info-address-card {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-sm);
}

.info-address-input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--grey4txt);
  font: inherit;
}

/* ============================ Info Address Card End ============================ */


/* ============================ Info Servers Grid Start ============================ */
.info-servers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.info-server-card {
  min-width: 0;
  position: relative;
  overflow: visible;
  border-radius: var(--radius-sm);
}

.info-server-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 44px;
  border-bottom: 2px solid rgba(3, 5, 34, 0.1);
}

.info-server-num,
.info-server-name,
.info-server-speed,
.info-server-prio {
  padding: 8px 16px;
}

.info-server-num {
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 16px;
}

.info-server-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.info-server-name span,
.info-server-speed span,
.info-server-prio span {
  color: var(--text-color);
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
}

.info-server-name strong {
  overflow: hidden;
  color: var(--grey4txt);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-server-row {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 72px;
}

.info-server-speed {
  border-right: 2px solid rgba(3, 5, 34, 0.1);
}

.info-server-speed strong {
  display: block;
  margin-top: 8px;
  color: var(--grey4txt);
  font-size: 13px;
  font-weight: 500;
}

.info-server-prio {
  min-width: 0;
}

.info-server-prio .filter-dropdown {
  margin-top: 4px;
}

.info-servers-history {
  display: inline-block;
  margin: 4px 0 8px;
  color: var(--dark4txt);
  font-size: 14px;
  text-decoration: none;
}

/* ============================ Info Servers Grid End ============================ */


/* ============================ Info Watch History Start ============================ */
.info-watch-list {
  display: grid;
  gap: 6px;
}

.info-watch-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--white);
  font-size: 13px;
  color: var(--grey4txt);
}

.info-watch-foot strong {
  display: block;
  margin-top: 2px;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
}

.info-watch-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(72px, 0.48fr) minmax(72px, 0.42fr) minmax(190px, 1.85fr) minmax(88px, 0.62fr);
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.info-watch-channel,
.info-watch-cell {
  display: flex;
  min-width: 0;
  min-height: 54px;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  border-left: 2px solid rgba(3, 5, 34, 0.1);
}

.info-watch-channel {
  border-left: 0;
}

.info-watch-channel a {
  overflow: hidden;
  color: #2b4a92;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-watch-channel span,
.info-watch-cell span {
  color: var(--text-color);
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
}

.info-watch-cell strong {
  color: var(--grey4txt);
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
}

.info-watch-cell a {
  color: #2b4a92;
  text-decoration: none;
  font-weight: 500;
}

/* ============================ Info Watch History End ============================ */


/* ============================ Info Stats Table Start ============================ */
.info-modal .info-stats-table {
  min-width: 0;
  margin-top: 0;
  border-spacing: 0 6px;
}

.info-modal .info-stats-table tbody::before {
  height: 0;
}

.info-modal .info-stats-table th,
.info-modal .info-stats-table td {
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
  white-space: normal;
  font-weight: 500;
}

.info-modal .info-stats-table thead th {
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  width: 180px;
}

.info-modal .info-stats-table th:nth-child(2),
.info-modal .info-stats-table th:nth-child(3),
.info-modal .info-stats-table td:nth-child(2),
.info-modal .info-stats-table td:nth-child(3) {
  width: 70px;
  text-align: center;
}

.info-modal .info-stats-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================ Info Stats Table End ============================ */


/* ============================ Info Messages List Start ============================ */
.info-msg-list {
  display: grid;
  gap: 6px;
}

.info-msg-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 120px;
  min-height: 54px;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-sm);
  background: #EBEBEC;
  transition: background 0.15s ease;
}

.info-msg-list .info-msg-row:nth-child(odd):not(:first-child) {
  background: #DCDCDE;
}

.info-msg-list .info-msg-row:nth-child(even) {
  background: #EBEBEC;
}

.info-msg-list .info-msg-row:first-child,
.info-msg-list .info-msg-row:hover {
  background: #FFFFFF;
}

.info-msg-icon,
.info-msg-text,
.info-msg-date {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 16px;
  border-left: 2px solid rgba(3, 5, 34, 0.1);
}

.info-msg-icon {
  justify-content: center;
  padding: 0;
  border-left: 0;
}

.info-msg-icon img {
  width: 18px;
  height: 18px;
}

.info-msg-text {
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
}

.info-msg-date {
  color: var(--grey4txt);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

/* ============================ Info Messages List End ============================ */


/* ============================ Order Modal Start ============================ */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.order-modal.is-open {
  display: flex;
}

.order-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.38);
}

.order-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 24px 26px 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--dark4txt);
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.order-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--white);
}

.order-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-modal-eyebrow {
  font-size: 13px;
  opacity: 0.9;
}

.order-modal-id {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 30px;
  font-weight: 700;
}

.order-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.order-modal-close img {
  width: 18px;
  height: 18px;
}

.order-modal-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 22px 18px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  scrollbar-width: none;
}

.order-modal-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.order-modal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.order-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
}

.order-modal-field-wide {
  flex-basis: 100%;
}

.order-modal-field span {
  font-size: 12px;
  color: var(--grey4txt);
}

.order-modal-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
}

.order-modal-field--muted input {
  background: rgba(255, 255, 255, 0.32);
  color: var(--grey4txt);
}

.order-modal-divider {
  height: 1px;
  margin: 2px 0 2px;
  background: var(--white);
}

.order-modal-status {
  color: var(--accent-green) !important;
  font-weight: 500;
}

.order-modal-ip {
  color: var(--blue4link) !important;
}

.order-modal-products {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-modal-products-label {
  font-size: 12px;
  color: var(--grey4txt);
}

/* Product row + totals share the same 3-column grid so the days/labels and the
   prices line up perfectly down the right side of the panel. */
.order-modal-products-row,
.order-modal-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  align-items: center;
  gap: 16px;
}

.order-modal-products-row {
  padding: 3px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
}

.order-modal-products-row strong {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark4txt);
}

.order-modal-products-row span {
  font-size: 14px;
  color: var(--grey4txt);
  text-align: right;
}

.order-modal-total-row--grand span,
.order-modal-total-row--grand strong {
  color: var(--dark4txt) !important;
  font-weight: 500;
  font-size: 18px;
}

.order-modal-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 18px 0;
}

.order-modal-total-row {
  font-size: 14px;
  color: var(--grey4txt);
}

.order-modal-total-row span {
  grid-column: 2;
  color: var(--grey4txt);
  text-align: right;
  font-weight: 500;
}

.order-modal-total-row strong {
  grid-column: 3;
  text-align: right;
  font-weight: 500;
}

.order-modal-total-row--grand {
  margin-top: 4px;
  font-size: 18px;
  line-height: 24px;
}

.order-modal-total-row--grand span {
  font-size: 18px;
}


/* ============================ Order Modal End ============================ */



/* ============================ Confirm Modal Shell Start ============================ */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.confirm-modal.is-open {
  display: flex;
}

.confirm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.38);
}

.confirm-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw - 48px);
  padding: 22px 24px 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* ============================ Confirm Modal Shell End ============================ */


/* ============================ Confirm Modal Head Start ============================ */
.confirm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
}

.confirm-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.confirm-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 36px;
}

.confirm-modal-close img {
  width: 16px;
  height: 16px;
}

/* ============================ Confirm Modal Head End ============================ */


/* ============================ Confirm Modal Panel Start ============================ */
.confirm-modal-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  color: var(--dark4txt);
}

.confirm-modal-message {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--dark4txt);
}

/* ============================ Confirm Modal Panel End ============================ */


/* ============================ Confirm Modal Actions Start ============================ */
.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal-btn {
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.confirm-modal-btn--no {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--dark4txt);
}

.confirm-modal-btn--no:hover {
  background: rgba(255, 255, 255, 0.85);
}

.confirm-modal-btn--yes {
  border: 0;
  background: var(--accent-pink);
  color: var(--white);
}

.confirm-modal-btn--yes:hover {
  filter: brightness(0.92);
}

/* ============================ Confirm Modal Actions End ============================ */




/* ============================ Info Modal Floating Instance Start ============================ */
.info-modal.info-modal-instance {
  background: transparent;
  pointer-events: none;
}

.info-modal.info-modal-instance .info-modal-overlay {
  display: none;
}

.info-modal.info-modal-instance .info-modal-card {
  pointer-events: auto;
}

/* ============================ Info Modal Floating Instance End ============================ */


/* ============================ List add modal (Whitelist / Blacklist / Emails) ============================
   Shared "+ Pridėti naują" modal used on the three list pages. */
.list-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.list-add-btn:hover {
  background: var(--white);
}

.list-add-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.list-add-modal.is-open {
  display: flex;
}

.list-add-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.45);
}

.list-add-modal-card {
  position: relative;
  width: min(440px, 100vw - 48px);
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.list-add-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
}

.list-add-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-add-modal-eyebrow {
  font-size: 13px;
  opacity: 0.9;
}

.list-add-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

.list-add-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  flex: 0 0 32px;
}

.list-add-modal-close img {
  width: 14px;
  height: 14px;
}

.list-add-modal-panel {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.list-add-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.list-add-field>span {
  font-size: 13px;
  color: var(--dark4txt);
}

.list-add-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  color: var(--dark4txt);
  outline: 0;
}

.list-add-input::placeholder {
  color: var(--grey4txt);
}

/* Themed dropdown — matching site pattern (white card, soft shadow, purple hover) */
.list-add-dropdown {
  position: relative;
}

.list-add-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--grey4txt);
  font: inherit;
  cursor: pointer;
}

.list-add-dropdown-toggle img {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.list-add-dropdown.is-open .list-add-dropdown-toggle img {
  transform: rotate(180deg);
}

.list-add-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: none;
  flex-direction: column;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 12, 45, 0.18);
}

.list-add-dropdown.is-open .list-add-dropdown-menu {
  display: flex;
}

.list-add-dropdown-opt {
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.list-add-dropdown-opt:hover {
  background: rgba(123, 85, 203, 0.12);
}

.list-add-dropdown-opt.is-selected {
  background: rgba(123, 85, 203, 0.22);
  font-weight: 600;
}

.list-add-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.list-add-submit {
  min-width: 120px;
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.list-add-submit:hover {
  background: var(--white);
}




/* ============================ New Client Modal — Užsakymai accordion ============================ */
.entity-orders-accordion {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  overflow: hidden;
}

.entity-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 22px;
  border: 0;
  background: transparent;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.entity-orders-head img {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.entity-orders-accordion:not(.is-open) .entity-orders-head img {
  transform: rotate(180deg);
}

.entity-orders-accordion:not(.is-open) .entity-orders-body {
  display: none;
}

.entity-orders-body {
  padding: 0 22px 18px;
  display: grid;
  gap: 12px;
}

.entity-orders-empty {
  margin: 0;
  font-size: 13px;
  color: var(--grey4txt);
}

.entity-orders-total {
  text-align: right;
  font-size: 13px;
  color: var(--grey4txt);
}

.entity-orders-total strong {
  margin-left: 6px;
  color: var(--dark4txt);
  font-weight: 600;
}

.entity-orders-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}


/* ============================ New Order Modal (Vykdyti) ============================ */
.new-order-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.new-order-modal.is-open {
  display: flex;
}

.new-order-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.5);
}

.new-order-modal-card {
  position: relative;
  width: min(720px, 100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 22px 24px 20px;
  border-radius: 16px;
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.new-order-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
}

.new-order-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-order-modal-eyebrow {
  font-size: 13px;
  opacity: 0.9;
}

.new-order-modal-title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
}

.new-order-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  flex: 0 0 38px;
}

.new-order-modal-close img {
  width: 16px;
  height: 16px;
}

.new-order-modal-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 18px 20px 18px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.new-order-modal-panel::-webkit-scrollbar {
  display: none;
}

.new-order-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.new-order-field>span {
  font-size: 12px;
  color: var(--grey4txt);
}

.new-order-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  outline: 0;
}

.new-order-field--muted input {
  background: rgba(255, 255, 255, 0.32);
  color: var(--grey4txt);
}

.new-order-divider {
  height: 1px;
  margin: 8px 0 14px;
  background: var(--white);
}

/* Themed dropdown */
.new-order-dropdown {
  position: relative;
}

.new-order-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  cursor: pointer;
}

.new-order-dropdown-toggle img {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.new-order-dropdown.is-open .new-order-dropdown-toggle img {
  transform: rotate(180deg);
}

.new-order-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 12, 45, 0.18);
  list-style: none;
}

.new-order-dropdown.is-open .new-order-dropdown-menu {
  display: flex;
}

.new-order-dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.new-order-dropdown-menu button:hover {
  background: rgba(123, 85, 203, 0.12);
}

/* Prekės row: + button + Apmokėtas checkbox */
.new-order-prekes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.new-order-prekes-add {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.new-order-prekes-label {
  font-size: 12px;
  color: var(--grey4txt);
}

.new-order-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.new-order-add-btn:hover {
  background: var(--white);
}

.new-order-add-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.new-order-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark4txt);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.new-order-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.new-order-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(20, 12, 45, 0.1);
  position: relative;
  flex: 0 0 22px;
}

.new-order-check:has(input:checked) .new-order-check-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid var(--dark4txt);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Prekės row injected once when the + is clicked */
.new-order-prekes-slot:not(:empty) {
  margin-bottom: 14px;
}

.new-order-prekes-injected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 14px;
  margin-bottom: 14px;
}

/* Stepper row (Nuolaida / Mokesčiai) */
.new-order-stepper-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.new-order-stepper-label {
  font-size: 13px;
  color: var(--dark4txt);
  text-align: right;
}

.new-order-stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  height: 44px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.new-order-stepper button {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--dark4txt);
  font-size: 18px;
  cursor: pointer;
}

.new-order-stepper output {
  text-align: center;
  color: var(--dark4txt);
  font-weight: 500;
}

/* VISO total */
.new-order-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: baseline;
  gap: 14px;
  margin: 14px 0 38px;
  text-align: right;
}

.new-order-total span {
  font-size: 18px;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  text-align: right;
  font-weight: 500;
}

.new-order-total strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--dark4txt);
  text-align: center;
}

.new-order-modal-actions {
  display: flex;
  justify-content: center;
}

.new-order-submit {
  min-width: 130px;
  height: 42px;
  padding: 0 28px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.new-order-submit:hover {
  background: var(--white);
}




/* ============================ Entity-modal accordion content helpers ============================ */
.entity-empty {
  margin: 0;
  font-size: 13px;
  color: var(--grey4txt);
}

.entity-total {
  margin-top: 6px;
  text-align: right;
  font-size: 18px;
  color: var(--grey4txt);
}

.entity-total strong {
  margin-left: 6px;
  color: var(--dark4txt);
  font-weight: 500;
}

.entity-foot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.entity-foot-actions.entity-foot-center {
  justify-content: center;
}

.entity-subsection-title {
  margin: 14px 0 6px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark4txt);
}

/* --- Įrenginiai (image 2) --- */
.entity-device-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
}

/* GLOBALUS device panel reused inside the new-client (entity) modal — give it
   the same translucent card background it has in the edit modal so it reads as a
   card over the shared app background. */
.entity-modal .info-device-panel--globalus {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
}

.entity-device-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark4txt);
}

.entity-device-dropdown {
  margin-bottom: 10px;
}

.entity-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  color: var(--dark4txt);
  font: inherit;
  cursor: pointer;
}

.entity-select img {
  width: 14px;
  height: 14px;
}

.entity-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.entity-date-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.04);
}

.entity-date-cell span {
  font-size: 12px;
  color: var(--grey4txt);
}

.entity-date-cell strong {
  font-size: 14px;
  color: var(--dark4txt);
  font-weight: 500;
}

.entity-date-cell img {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
}

.entity-device-add {
  display: block;
  margin: 4px auto 0;
  height: 36px;
  padding: 0 22px;
}

/* --- Adresai (image 3) --- */
.entity-addr-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entity-addr-country {
  color: var(--grey4txt);
}

/* Country selector is now a themed dropdown; it spans the full address row
   (no left-hand label like the Administratorius field). */
.entity-modal .entity-addr-country.filter-dropdown {
  justify-content: stretch;
}

.entity-modal .entity-addr-country .detail-button {
  width: 100%;
  height: 42px;
}

.entity-modal .entity-addr-country .filter-dropdown-menu {
  width: 100%;
}

.entity-addr-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  outline: 0;
}

.entity-addr-input::placeholder {
  color: var(--grey4txt);
}

/* --- Žiūrėjimo istorija (image 5) bottom stats --- */
.entity-history-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  color: var(--grey4txt);
}

.entity-history-stats strong {
  display: block;
  color: var(--dark4txt);
  font-weight: 600;
  font-size: 14px;
  margin-top: 2px;
}

/* --- Kanalų statistika (image 6) table header --- */
.entity-chan-table {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.entity-chan-thead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 140px;
  align-items: center;
  font-size: 13px;
  color: var(--grey4txt);
}

.entity-chan-thead span:nth-child(2),
.entity-chan-thead span:nth-child(3) {
  text-align: center;
  line-height: 16px;
}


/* ============================ New Message Modal (Pranešimas klientui) ============================ */
.new-msg-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.new-msg-modal.is-open {
  display: flex;
}

.new-msg-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.5);
}

.new-msg-modal-card {
  position: relative;
  width: min(760px, 100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 22px 24px 20px;
  border-radius: 16px;
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.new-msg-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
}

.new-msg-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-msg-modal-eyebrow {
  font-size: 13px;
  opacity: 0.9;
}

.new-msg-modal-title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
}

.new-msg-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  flex: 0 0 38px;
}

.new-msg-modal-close img {
  width: 16px;
  height: 16px;
}

.new-msg-modal-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 18px 20px 18px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.new-msg-modal-panel::-webkit-scrollbar {
  display: none;
}

.new-msg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.new-msg-field>span {
  font-size: 12px;
  color: var(--grey4txt);
}

.new-msg-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  outline: 0;
}

.new-msg-input::placeholder {
  color: var(--grey4txt);
}

/* Checks grid — 2 columns, no labels above */
.new-msg-checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 24px;
  margin-bottom: 14px;
}

.new-msg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark4txt);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.new-msg-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.new-msg-check-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(20, 12, 45, 0.1);
  position: relative;
  flex: 0 0 20px;
}

.new-msg-check:has(input:checked) .new-msg-check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--dark4txt);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Šablonas dropdown */
.new-msg-dropdown {
  position: relative;
}

.new-msg-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  cursor: pointer;
}

.new-msg-dropdown-toggle img {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.new-msg-dropdown.is-open .new-msg-dropdown-toggle img {
  transform: rotate(180deg);
}

.new-msg-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 12, 45, 0.18);
  list-style: none;
}

.new-msg-dropdown.is-open .new-msg-dropdown-menu {
  display: flex;
}

.new-msg-dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.new-msg-dropdown-menu button:hover {
  background: rgba(123, 85, 203, 0.12);
}

/* Rich text toolbar — row of icon buttons */
.new-msg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.new-msg-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.new-msg-tool:hover {
  background: rgba(123, 85, 203, 0.12);
}

.new-msg-tool.is-active {
  background: rgba(123, 85, 203, 0.22);
}

/* Editor surface */
.new-msg-editor {
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  outline: 0;
  scrollbar-width: thin;
}

.new-msg-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--grey4txt);
  pointer-events: none;
}

/* Footer */
.new-msg-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.new-msg-template,
.new-msg-send {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.new-msg-template:hover,
.new-msg-send:hover {
  background: var(--white);
}

.new-msg-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.new-msg-send svg {
  flex: 0 0 14px;
}




/* ============================ Message View Modal (read existing) ============================ */
.msg-view-modal,
.msg-reply-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.msg-view-modal.is-open,
.msg-reply-modal.is-open {
  display: flex;
}

.msg-view-modal-overlay,
.msg-reply-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.5);
}

.msg-view-modal-card,
.msg-reply-modal-card {
  position: relative;
  width: min(720px, 100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 18px 20px 18px;
  border-radius: 16px;
  background: var(--dark4txt) url("../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.msg-view-modal-head,
.msg-reply-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--panel-bg);
}

.msg-view-back,
.msg-reply-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 28px;
}

.msg-view-back img,
.msg-reply-back img {
  width: 14px;
  height: 14px;
}

.msg-view-modal-title,
.msg-reply-modal-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark4txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-view-modal-panel,
.msg-reply-modal-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 16px 18px 16px;
  border-radius: 14px;
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-view-modal-panel::-webkit-scrollbar,
.msg-reply-modal-panel::-webkit-scrollbar {
  display: none;
}

/* Meta (Nuo / Kam) */
.msg-view-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-view-meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.msg-view-meta-row>span {
  color: var(--grey4txt);
}

.msg-view-meta-row>strong {
  color: var(--dark4txt);
  font-weight: 600;
}

.msg-view-date {
  margin-left: auto;
  color: var(--grey4txt);
}

/* View body */
.msg-view-body {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font-size: 14px;
  line-height: 20px;
  min-height: 200px;
}

.msg-view-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.msg-view-reply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.msg-view-reply:hover {
  background: var(--white);
}

.msg-view-reply img {
  width: 12px;
  height: 12px;
}

/* Reply editor */
.msg-reply-editor {
  min-height: 200px;
  max-height: 280px;
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.msg-reply-divider {
  margin: 4px 0;
  border: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.3);
}

.msg-reply-quoted {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font-size: 14px;
  line-height: 20px;
}

.msg-reply-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.msg-reply-attach,
.msg-reply-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.msg-reply-attach:hover,
.msg-reply-send:hover {
  background: var(--white);
}

/* ============================  Responsive Start ============================ */

@media (min-width: 1025px) {
  .info-modal .info-modal-accordion[data-info-tab="devices"].is-open .info-modal-accordion-body {
    min-height: 642px;
    padding: 0 24px 16px;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-devices-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel {
    grid-column: auto;
    overflow: visible;
    background: rgba(255, 255, 255, 0.55);
  }

  .info-device-panel--globalus .info-device-dropdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 18px;
  }

  .info-device-panel--webtv {
    display: grid;
    grid-template-columns: minmax(0, 194px) 92px minmax(0, 1fr);
  }

  .info-device-panel--webtv .info-device-head {
    grid-column: 1 / -1;
  }

  .info-device-panel--webtv>.info-device-row--split {
    display: grid;
    grid-column: 1 / 3;
    grid-template-columns: minmax(0, 194px) 92px;
    gap: 18px;
    padding: 10px 16px;
    border-bottom: 0;
  }

  .info-device-panel--webtv>.filter-dropdown {
    grid-column: 3 / 4;
    width: auto;
    margin: 10px 16px 10px;
  }

  .info-device-panel--siptv,
  .info-device-panel--tvzone {
    display: grid;
    grid-template-columns: minmax(0, 210px) 104px minmax(0, 1fr) 50px;
  }

  .info-device-panel--siptv .info-device-head,
  .info-device-panel--tvzone .info-device-head {
    grid-column: 1 / -1;
  }

  .info-device-panel--siptv>.info-device-row--split:first-of-type,
  .info-device-panel--tvzone>.info-device-row--split:first-of-type {
    grid-column: 1 / -1;
    padding: 0;
  }

  .info-device-panel--siptv>.info-device-row--split:first-of-type .info-modal-field,
  .info-device-panel--tvzone>.info-device-row--split:first-of-type .info-modal-field {
    padding: 6px 16px 8px;
    border-right: 2px solid rgba(3, 5, 34, 0.1);
  }

  .info-device-panel--siptv>.info-device-row--split:first-of-type .info-modal-field:last-child,
  .info-device-panel--tvzone>.info-device-row--split:first-of-type .info-modal-field:last-child {
    border-right: 0;
  }

  .info-device-panel--siptv>.info-device-row--siptv {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: auto;
    padding: 8px 16px;
  }

  .info-device-panel--siptv>.info-device-row--split:not(:first-of-type),
  .info-device-panel--tvzone>.info-device-row--split:not(:first-of-type) {
    display: grid;
    grid-column: 1 / 3;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 18px;
    padding: 10px 16px;
    border-bottom: 0;
  }

  .info-device-panel--siptv>.info-device-row--drm-delete,
  .info-device-panel--tvzone>.info-device-row--drm-delete {
    grid-column: 3 / -1;
    grid-template-columns: minmax(0, 1fr) 50px;
    gap: 0;
    padding: 10px 0 10px 16px;
  }

  .info-device-panel--tvzone .info-device-meta-stack {
    grid-column: 1 / -1;
  }

  .info-device-panel--tvzone .info-device-identifier {
    grid-column: 1 / 3;
    border-right: 2px solid rgba(3, 5, 34, 0.1);
  }

  .info-device-panel--tvzone .info-device-row--manage {
    grid-column: 3 / -1;
    grid-template-columns: minmax(0, 1fr) 150px;
    padding: 18px 16px 8px;
  }

  .info-device-panel--tvzone .info-device-comment-row {
    grid-column: 1 / -1;
  }

  .info-device-panel--siptv .info-device-secondary,
  .info-device-panel--tvzone .info-device-secondary,
  .info-device-panel--webtv .info-device-secondary,
  .info-device-panel--globalus .info-device-secondary {
    min-width: 0;
  }
}

@media (max-width: 1024px) {

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last {
    display: flex;
    flex-wrap: wrap;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last>*,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>* {
    flex: 1 1 calc(50% - 1px);
    border-bottom-left-radius: 10px;
  }

  .info-modal-save-main,
  .info-device-trash-main {
    border-bottom-left-radius: 0px !important;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>.info-device-trash-main,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>.info-device-trash-main {
    flex: 0 0 auto;
    width: 40px;
  }

  .info-device-idmanage {
    flex-direction: column;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last>*:first-child,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*:first-child,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>*:first-child {
    border-bottom-left-radius: 0px;
  }

  .info-device-panel {
    flex-basis: 100%;
  }

  .info-server-card {
    flex-basis: 100%;
  }

  /* Override the toolbar's icon-only collapse at <=1024 — inside the modal we
     keep the trigger as a labelled pill. */
  .info-modal .filter-dropdown .detail-button {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    justify-content: space-between;
  }

  .info-modal .filter-dropdown .detail-button-text {
    display: block;
  }

  .info-modal .filter-dropdown .detail-button .detail-button-chevron {
    display: block;
    width: 16px;
    height: 16px;
  }

  .info-modal .filter-dropdown .detail-button .detail-button-filter-icon {
    display: none;
  }

  .info-orders-row {}

  /* ============================ Entity Modal Responsive Start ============================ */

  .entity-modal .filter-dropdown .detail-button {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    justify-content: space-between;
  }

  .entity-modal .filter-dropdown .detail-button-text {
    display: block;
  }

  .entity-modal .filter-dropdown .detail-button .detail-button-chevron {
    display: block;
    width: 16px;
    height: 16px;
  }

  .entity-modal .filter-dropdown .detail-button .detail-button-filter-icon {
    display: none;
  }

  /* ============================ Entity Modal Responsive end ============================ */

  .info-modal {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
  }
  .entity-modal-card,
  .info-modal-card {
    width: min(820px, 100% - 24px);
    max-height: calc(100vh - 24px);
  }

  .info-devices-grid,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-devices-grid,
  .info-servers-grid {
    grid-template-columns: 1fr;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"].is-open .info-modal-accordion-body {
    min-height: auto;
  }

  .info-device-panel:nth-child(3) {
    grid-column: auto;
  }

  .info-device-channel-btn {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .info-modal {
    padding: 12px;
  }
  .info-modal-card {
    width: min(428px, 100% - 24px);
    height: 98%;
    max-width: 428px;
    max-height: calc(100vh - 24px);
    padding: 20px 24px 28px;
    border-radius: 14px;
  }

  .info-modal-head {
    margin-bottom: 18px;
  }

  .info-modal-close {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .info-modal-accordions {
    gap: 16px;
  }

  .info-modal-accordion {
    border-radius: 14px;
  }

  .info-modal-accordion-head {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .info-modal-accordion-body {
    padding: 0 10px 18px;
  }

  .info-device-title {
    font-size: 20px;
    line-height: 24px;
  }

  .info-device-header,
  .info-device-head {
    min-height: 46px;
  }

  .info-device-row--split,
  .info-device-row--siptv {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }


  .info-device-row--manage {
    grid-template-columns: 1fr;
  }

  .info-date-cell {
    min-height: 46px;
    padding: 7px 34px 7px 16px;
  }

  .info-date-cell img {
    right: 10px;
  }

  .info-address-card {
    margin: 0;
    padding: 16px;
  }

  .info-server-head {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .info-server-row {
    grid-template-columns: 35% 65%;
  }

  .info-watch-row {
    grid-template-columns: minmax(0, 1.4fr) 84px 70px;
  }

  .info-watch-channel,
  .info-watch-cell {
    min-height: 56px;
    padding: 7px 16px;
  }

  .info-watch-row .info-watch-channel,
  .info-watch-row .info-watch-cell {
    flex: initial;
    border-radius: 0;
    background: transparent;
  }

  .info-watch-ip {
    grid-column: 1 / 3;
    border: 0;
  }

  .info-watch-row .info-watch-cell:last-child {
    grid-column: 3 / 4;
    border: 0;
  }

  .info-modal .info-stats-table {
    width: 100%;
    min-width: 0;
  }

  .info-modal .info-stats-table th,
  .info-modal .info-stats-table td {
    height: 46px;
    padding: 0 12px;
    font-size: 12px;
  }

  .info-modal .info-stats-table th:nth-child(1),
  .info-modal .info-stats-table td:nth-child(1) {
    width: 48%;
  }

  .info-modal .info-stats-table th:nth-child(2),
  .info-modal .info-stats-table th:nth-child(3),
  .info-modal .info-stats-table td:nth-child(2),
  .info-modal .info-stats-table td:nth-child(3) {
    width: 26%;
  }

  .info-msg-row {
    grid-template-columns: 38px minmax(0, 1fr) 100px;
    min-height: 54px;
  }

  .info-msg-icon,
  .info-msg-text,
  .info-msg-date {
    padding: 8px 12px;
  }

  .info-msg-icon {
    padding: 0;
  }

  .info-msg-date {
    text-align: left;
  }

  .order-modal {
    align-items: flex-start;
    padding: 14px;
    overflow-y: auto;
  }

  .order-modal-card {
    width: min(400px, 100% - 24px);
    height: auto;
    max-width: 400px;
    max-height: calc(100vh - 28px);
    padding: 18px 16px 28px;
    border-radius: 14px;
  }


  .entity-modal {
    padding: 0;
  }


  .entity-modal-form {
    gap: 12px;
  }

  .entity-field,
  .entity-field-wide {
    flex-basis: 100%;
  }

  .entity-field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .entity-field-row>span {
    min-width: 0;
  }

  .entity-check {
    flex-basis: 100%;
  }
  .info-modal-field-row>input, .info-modal-field-row>.info-modal-stepper, .info-modal-field-row>.info-modal-select, .info-modal-number-field, .info-modal-administratorius-dropdown {
    width: 100% !important;
}

  .entity-field-row>.entity-stepper.entity-stepper--half {
    width: 100%;
  }

  .info-modal {
    padding: 0;
  }
  .entity-modal-card,
  .info-modal-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 18px 14px 14px;
    top: 0px !important;
  }

  .info-modal-field,
  .info-modal-field-wide {
    flex-basis: 100%;
  }

  .info-modal-field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .info-modal-field-row>span {
    min-width: 0;
  }

  .info-modal-form>.info-modal-field,
  .info-modal-form>.info-modal-field-wide {
    flex-basis: 100%;
  }

  .info-modal-check-grid .info-modal-check {
    flex-basis: 100%;
  }

  .info-modal-history {
    flex-direction: column;
    gap: 2px;
  }

  .info-modal-history-value {
    text-align: left;
  }

  .info-orders-table {
    display: flex;
    flex-direction: column;
  }

  .info-orders-table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0px;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .info-orders-table td:nth-child(1) {
    max-width: 63px;
  }

  .info-orders-table td:nth-child(2) {
    max-width: 154px;
  }

  .info-orders-table td:nth-child(3) {
    max-width: 60px;
    width: 100%;
  }

  .info-orders-table td:nth-child(4) {
    max-width: 80px;
    width: 100%;
  }

  .info-modal-accordion-body {
    padding: 0 20px 18px;
  }

  .info-orders-table td {
    padding: 2px 9px 2px 9px;
    background: var(--white);
    color: var(--dark4txt);
    font-size: 13px;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .info-orders-table td.info-orders-id {
    flex: 0 0 30%;
    text-align: left;
  }

  .info-orders-table tbody td {
    flex-grow: 1;
  }

  .info-orders-table th,
  .info-orders-table td {
    height: 65px;
  }

  .info-orders-table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0px;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
  }

  .info-orders-table tr>td {
    flex: 1 1 calc((100% / 3) - 2px);
    min-width: calc((100% / 3) - 2px);
    box-sizing: border-box;
  }

  .info-orders-table td {
    border-radius: 0px;
    border: 0px;
  }

  .info-orders-table td:nth-child(1) {
    border-radius: 0px;
    border-top-left-radius: 8px;
  }

  .info-orders-table td:nth-child(3) {
    border-top-right-radius: 8px;
  }

  .info-orders-table td:nth-child(4) {
    border-bottom-left-radius: 8px;
    border: 0px
  }

  .info-orders-table td:last-child {
    border-radius: 0;
    border-bottom-right-radius: 8px;
  }

  .info-orders-table td {
    border-radius: 0px;
    border: 0px !important;
  }

  .info-orders-table td:nth-child(2) {
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
  }

  /* Article is transparent; columns are translucent tiles separated by a small
     gap (Figma). */
  .info-watch-row {
    gap: 2px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .info-watch-row .info-watch-channel,
  .info-watch-row .info-watch-cell {
    padding: 6px 10px;
    border: 0;
    border-radius: 0;
  }

  /* Only the article's four outer corners are rounded (6px). The grid order is
     channel(1) Pradžia(2) Trukmė(3) on the top row, IP(4) speed(last) below. */
  .info-watch-row>*:nth-child(1) {
    border-top-left-radius: 6px;
  }

  .info-watch-row>*:nth-child(3) {
    border-top-right-radius: 6px;
  }

  .info-watch-row>*:nth-child(4) {
    border-bottom-left-radius: 6px;
  }

  .info-watch-row>*:last-child {
    border-bottom-right-radius: 6px;
  }

  /* Odd articles get one column shade, even articles a lighter one (Figma). */
  .info-watch-row:nth-child(odd) .info-watch-channel,
  .info-watch-row:nth-child(odd) .info-watch-cell {
    background: rgba(255, 255, 255, 0.6);
  }

  .info-watch-row:nth-child(even) .info-watch-channel,
  .info-watch-row:nth-child(even) .info-watch-cell {
    background: rgba(255, 255, 255, 0.32);
  }

  /* Stats table — keep horizontal layout but shrink padding */
  .info-stats-table thead th,
  .info-stats-table tbody td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .info-msg-row {
    flex-wrap: wrap;
  }

  .info-msg-date {
    flex: 1 1 100%;
    text-align: right;
  }

  .info-address-card {
    padding: 10px;
  }

}

@media (max-width: 600px) {
  .order-modal {
    padding: 0;
  }

  .order-modal-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 18px 14px 14px;
  }

  .order-modal-field,
  .order-modal-field-wide {
    flex-basis: 100%;
  }

  .order-modal-products-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .info-manage-modal {
    padding: 0;
  }

  .msg-view-modal,
  .msg-reply-modal {
    padding: 0;
  }

  .msg-view-modal-card,
  .msg-reply-modal-card {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .info-modal-field-row>.info-modal-stepper.info-modal-stepper--half {
    width: 100%;
    margin-left: 0;
  }

  .order-modal-products-row,
  .order-modal-total-row {
    grid-template-columns: minmax(0, 1fr) 70px 53px;
  }

  .new-order-field {
    margin-bottom: 10px;
  }

  .info-modal.info-modal-instance .info-modal-card {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
  }

  .list-add-modal {
    padding: 0;
  }


  .new-order-modal {
    padding: 0;
  }


  .new-order-stepper-row,
  .new-order-total {
    display: flex;
    justify-content: space-between;
  }

  .new-order-stepper-label,
  .new-order-total span {
    text-align: left;
  }

  .new-order-prekes-injected {
    grid-template-columns: minmax(0, 1fr);
  }

  .new-order-stepper {
    width: 150px;
  }

  .new-msg-modal {
    padding: 0;
  }

  .new-msg-modal-card {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .new-msg-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*:nth-child(1),
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*:nth-child(2),
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>*:nth-child(1),
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>*:nth-child(2) {
    flex: 1 1 100%;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*:nth-child(3),
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>*:nth-child(3) {
    flex: revert-rule;
  }

  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>.info-device-trash-main,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>.info-device-trash-main {
    flex: 0 0 40px;
    width: auto;
  }



  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--webtv>.info-device-row--last>*:first-child,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--siptv>.info-device-row--last>*:first-child,
  .info-modal .info-modal-accordion[data-info-tab="devices"] .info-device-panel--tvzone>.info-device-row--last>*:first-child {
    border-bottom-left-radius: 0px;
    height: -webkit-fill-available;
  }

  .order-modal {
    padding: 0;
  }

  .order-modal-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 18px 14px 14px;
  }

  .order-modal-field,
  .order-modal-field-wide {
    flex-basis: 100%;
  }

  .order-modal-products-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .new-order-divider {
    margin: 15px 0px;
  }

  .info-date-cell:nth-last-child(-n+2) {
    border-bottom: 2px;
    border-right: 0px;
  }

  .info-date-cell {
    border-right: 0px;
  }
}

@media (max-width: 594px) {

  .info-orders-table td:nth-child(2) {
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
  }

  .info-orders-table td:nth-child(1) {
    min-width: 60px;
    font-size: 14px !important;

  }

  .info-orders-table td {
    padding: 2px 5px 2px 5px;
  }

  .info-orders-table td:nth-child(2) {
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
  }

  .info-orders-table td:nth-child(1) {
    min-width: 60px;
    font-size: 14px !important;

  }

  .info-orders-table td {
    padding: 2px 5px 2px 5px;
  }

}

@media (max-width: 480px) {
  .confirm-modal-actions {
    flex-direction: column-reverse;
  }

  .confirm-modal-btn {
    width: 100%;
  }

  .info-extend-field {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .info-extend-field input {
    width: 100%;
    flex: 1 1 auto;
  }

  .info-extend-actions {
    align-items: stretch;
  }

  .info-extend-submit {
    width: 100%;
  }

  .info-add-actions {
    align-items: stretch;
  }

  .info-add-submit {
    width: 100%;
  }

  .info-manage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .info-manage-commands .info-manage-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .entity-modal-card,
  .info-modal-card {
    width: calc(100% - 16px);
    padding: 18px 16px 28px;
  }

  .info-modal-accordion-head {
    padding: 0 18px;
  }

  .info-modal-accordion-body {
    padding: 0 10px 18px;
  }

  .info-device-row--split,
  .info-device-row--siptv,
  .info-date-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .info-device-secondary,
  .info-device-extend {
    min-width: 90px;
    padding: 0 12px;
  }

  .info-watch-row {
    grid-template-columns: minmax(0, 1.35fr) 84px 70px;
  }
}

@media (max-width: 400px) {
  .info-orders-table tr>td {
    flex: 1 1 calc((100% / 3) - 2px);
    min-width: calc((100% / 4) - 2px);
    box-sizing: border-box;
  }

  .info-package-row--dates .info-package-datecell {
    flex: 1 1 100%;
  }

  .info-channel-table-head,
  .info-channel-row {
    grid-template-columns: minmax(0, 1fr) 84px;
  }
}