/* Cards row */
.cards-row { display: flex; gap: 10px; margin: 10px 0 10px 0; flex-wrap: wrap; align-items: stretch; }
.cards-row .tg-card { flex: 1; margin-top: 0; display: flex; flex-direction: column; }
.cards-row .license-card { flex: 1; margin-top: 0; padding: 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f9fafb; display: flex; flex-direction: column; }
.license-card-content { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.license-card-title { margin: 0; font-size: 14px; font-weight: 600; color: #111827; }
.license-card-title.license-card-expired { color: #ef4444; }
.license-card-days { margin: 0; font-size: 13px; color: #6b7280; }
.license-card-days strong { color: #111827; font-weight: 600; }
.license-card-btn { display: inline-block; text-align: center; padding: 12px 14px; background: #667eea; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 13px; transition: background 0.2s ease; margin-top: auto; min-height: 44px; box-sizing: border-box; }
.license-card-btn:hover { background: #5568d3; }

/* Telegram card */
.tg-card { position: relative; overflow: hidden; margin-top: 0px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f9fafb; display: flex; flex-direction: column; gap: 12px; }
.tg-icon { position: absolute; right: -50px; top: -40px; opacity: 0.15; transform: scale(4); transform-origin: top right; pointer-events: none; z-index: 0; }
.tg-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.tg-content p { margin: 0 0 12px; font-size: 14px; color: #111827; font-weight: 400;}
.tg-btn { display: block; width: auto; text-align: center; padding: 12px 14px; background: #229ED9; color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; margin-top: auto; min-height: 44px; box-sizing: border-box; }
.tg-btn-small { display: inline-block; padding: 12px 14px; background: #229ED9; color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 13px; margin-left: 0; margin-top: auto; min-height: 44px; box-sizing: border-box; }

/* Lists reset */
ul { list-style: none; margin: 0; padding: 0; }
li { margin: 0; padding: 0; }
li::marker { content: ''; }

/* Pagination */
.pagination { display:flex; flex-direction: column; gap:8px; align-items: center; margin-top: 12px; }
.pagination-summary { color:#6b7280; font-size: 12px; }
.pagination-list { display:flex; gap:6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.page-link { display:inline-block; padding:6px 10px; border-radius: 10px; background:#fff; color:#111827; border:1px solid #e5e7eb; text-decoration:none; font-size: 13px; }
.page-link:hover { border-color:#cbd5e1; }
.page-link.active { background:#0d6efd; color:#fff; border-color:#0d6efd; }
.page-link.disabled { background:#f3f4f6; color:#9ca3af; border-color:#e5e7eb; }

/* Links */
a { text-decoration: none; }

/* Generic list styling */
.list { display:flex; flex-direction:column; gap:10px; margin-top:12px; margin-bottom: 10px;}
.list-item { padding:12px 14px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; }
.list-item a { display:flex; justify-content:space-between; align-items:center; color:#111827; }
.item-title { font-weight:700; color:#000; }
.item-sub { color:#6b7280; font-size:13px; margin-left:8px; }

/* Add button */
.link-add { float: right; margin-top: 10px; width: auto; max-width: 100%; }
.container:after { content: ""; display: table; clear: both; }

/* Back buttons — канон как на /cabinet/management (круг, белый, тень) */
.pv-back,
.back-top,
.mgmt-back,
.sd-back,
.page-header-back-btn {
  position: relative;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(20, 16, 10, 0.04), 0 4px 10px rgba(20, 16, 10, 0.03);
  color: #5A5A5A;
  text-decoration: none;
  font-size: 18px;
  flex: none;
  border: none;
  line-height: 1;
  cursor: pointer;
}

.back-top {
  margin-left: auto;
}

body.theme-night .pv-back,
body.theme-night .back-top,
body.theme-night .mgmt-back,
body.theme-night .sd-back,
body.theme-night .page-header-back-btn {
  background: #2a2a2a;
  color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.15);
}


.back-bottom {
  margin-top: 16px;
  width: 100%;
}





/* Custom select */
.select-custom { position: relative; }
.select-display {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid #d9d9df;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.select-display:after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #6b7280;
  transform: translateY(-50%);
}
.select-options {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  max-height: 240px;
  overflow: auto;
  z-index: 20;
}
.select-option { padding: 10px 12px; cursor: pointer; }
.select-option:hover { background: #f6f7fb; }

/* Enhanced styling for specific select contexts - all selects inherit the enhanced styling from the main select rule */

/* Disabled select styling */
select:disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Small select variant */
select.small {
  padding: 8px 40px 8px 12px;
  min-height: 40px;
  font-size: 13px;
}

/* Large select variant */
select.large {
  padding: 14px 50px 14px 16px;
  min-height: 60px;
  font-size: 16px;
}

/* Info message */
.info-message {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  background: #e7f5ff; /* light blue */
  color: #09529b; /* readable blue text */
  border-radius: 9999px; /* fully rounded */
  border: none;
  box-shadow: none;
  font-size: 12px;
}
.info-message:before {
  content: 'ℹ️ ';
}


