/* ============================
   Base & Resets
============================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
  color:#0f172a;
  background:#f7f7f7;
  font-size:15px;
}

a{ color:#1a73e8; text-decoration:none; word-break:break-word; }
a:hover{ text-decoration:underline; }
a:focus-visible{ outline:2px solid #93c5fd; outline-offset:2px; }

/* ============================
   Design tokens
============================ */
:root{
  --card-bg:#fff;
  --card-br:12px;
  --card-bd:#e5e7eb;
  --shadow:0 8px 24px rgba(2,6,23,.08);
  --accent:#1a73e8;
  --accent-strong:#155bb8;
  --grid-max:1280px;
  --grid-pad:12px;
  --grid-gap:12px;
  --box-pad:14px;
  --title-fs:1rem;
  --text-fs:.95rem;
  --muted:#64748b;
  --success:#16a34a;
  --warn-bg:#fff8dc;
  --warn-bd:#f4e3a1;
}

/* Μην κόβεις λέξεις */
body, p, h1, h2, h3, h4, h5, h6,
.request-box, .request-title,
.request-table, .request-table td, .request-table th{
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important;}
}

/* ============================
   Spinner
============================ */
.spinner-container{display:flex;flex-direction:column;align-items:center;padding:20px 0;animation:fade-in .4s ease-in;}
.spinner {
	width: 20px;
	height: 20px;
	border: 4px solid #e2e8f0;
	border-top-color: #1a73e8;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 8px !important;
	background: unset !important;
  display: none;
}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ============================
   Grid Layout — mobile-first
============================ */
.approved-grid{
  display:grid;
  gap:var(--grid-gap);
  padding:var(--grid-pad);
  width:100%;
  max-width:var(--grid-max);
  margin:0 auto;
  grid-template-columns:minmax(0,1fr);
}
@media (min-width:640px){
  .approved-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1200px){
  .approved-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ============================
   Κάρτα Αιτήματος
============================ */
.request-box{
  width:100%;
  margin:0 auto;
  padding:var(--box-pad);
  background:var(--card-bg);
  border-radius:var(--card-br);
  border:1px solid var(--card-bd);
  box-shadow:var(--shadow);
  font-size:var(--text-fs);
  min-width:0;
  overflow:visible;
}
.request-content{ min-width:0; overflow:visible; }

/* ============================
   Τίτλος
============================ */
.request-header{
  width:100%;
  padding-bottom:6px;
  margin-bottom:10px;
  border-bottom:1px solid #eef2f7;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.request-title{
  display:flex; justify-content:center; align-items:center; gap:6px;
  font-size:var(--title-fs); font-weight:700; color:#0f172a; text-align:center; line-height:1.3;
  background:#fffbe6; border-radius:10px; border:1px solid #facc15; padding:6px 10px; flex-wrap:wrap;
  margin: 0px;
  width: 100%;
  max-width: 100%;
}
.emoji{font-size:1rem;flex-shrink:0}

/* ============================
   Πίνακας Πληροφοριών (desktop)
============================ */
.request-table{
  width:100%;
  table-layout:auto;
  /* για καμπύλες στο περίγραμμα */
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--card-bd);
  border-radius:12px;
  background:#fff;
  /* flex-grow: 1; */
}
button#search-button span {
  display: none;
}
.request-table tr{ border-bottom:1px solid #eef2f7; }
.request-table tr:last-child{ border-bottom:none; } /* να μην διπλασιάζεται η τελευταία γραμμή */
.request-table td{
  padding:10px 14px;
  vertical-align:top;
  text-align:left;
  line-height:1.45;
  white-space:normal;
  max-width:100%;
}
/* στρογγυλεμένες γωνίες στα άκρα */
.request-table tr:first-child td:first-child{ border-top-left-radius:12px; }
.request-table tr:first-child td:last-child{  border-top-right-radius:12px; }
.request-table tr:last-child  td:first-child{ border-bottom-left-radius:12px; }
.request-table tr:last-child  td:last-child{  border-bottom-right-radius:12px; }

.request-table td:first-child{
  font-weight:600;
  color:#334155;
  width:38%;
  max-width:240px;
}
.request-table td:last-child,
.request-table td.val{
  color:#0f172a;
  width:auto;
  overflow:visible;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.locked{ color:#d32f2f; font-weight:700; }
.request-table a{ color:#1a73e8; }
.request-table a:hover{ text-decoration:underline; }

/* ============================
   Μετρητές & Φίλτρα (sticky μπάρα)
============================ */
.request-counters,.request-filters{
  width:100%;
  max-width:1000px;
  margin:10px auto;
  padding:12px 14px;
  display:grid;
  gap:10px;
  font-size:var(--text-fs);
  background:var(--warn-bg);
  border:1px solid var(--warn-bd);
  border-radius:16px;
  box-shadow:0 6px 18px rgba(2,6,23,.08);
}

.requests-counter-filter-section {
  position:sticky; top:0; z-index:100;
}
.request-filters{
  position:sticky; top:0; z-index:100;
  backdrop-filter:saturate(1.1) blur(2px);
  background:var(--warn-bg);
}
.admin-bar .requests-counter-filter-section{ top:32px; }

body:not(.admin-bar) .requests-counter-filter-section {
  position: sticky;
  top: 81px;
  z-index: 100;
}


.request-counters{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
}
.request-counters .counter{
  background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:10px 14px;
  box-shadow:0 2px 8px rgba(2,6,23,.06); display:flex; align-items:center; gap:10px; color:#374151;
}

/* Inputs + Buttons της αναζήτησης */
.request-filters{ grid-template-columns:1fr; }
#search-input{
  width:100%; padding:12px 14px; border:1px solid #e5e7eb; border-radius:12px;
  font-size:16px; line-height:1.2; background:#fff; box-shadow:inset 0 1px 0 rgba(2,6,23,.04);
}
#search-button, #reset-filters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 0px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	font-size: 15px;
	cursor: pointer;
	transition: transform .05s ease, background-color .2s ease, border-color .2s ease;
	touch-action: manipulation;
	height: 42px;
}

body .select2-selection__arrow {
	display: flex !important;
}

body.page .select2-selection__arrow {
	display: flex !important;
	margin-top: -2px;
}

body .select2-container.select2-container--default.select2-container--open {
	z-index: 999999999999;
}


.select2-selection__arrow b {
	display: flex !important;
}

#search-button{ background:var(--accent); color:#fff; border-color:var(--accent); }
#search-button:hover{ background:var(--accent-strong); }
#search-button:active{ transform:translateY(1px); }
#search-button:focus-visible,
#reset-filters:focus-visible{ outline:2px solid #93c5fd; outline-offset:2px; }
#reset-filters{ background:#fff; color:var(--muted); }
#reset-filters:hover{ background:#f8fafc; }
#reset-filters:active{ transform:translateY(1px); }

@media (min-width:640px){
  .request-filters{ grid-template-columns:1fr auto auto; align-items:center; }
  #search-button,#reset-filters{ width:auto; }
}

/* Προαιρετικό progress στα counters */
.request-counters .bar{
  flex:1 1 160px; height:8px; background:#e5f3e8; border-radius:999px; overflow:hidden; position:relative;
}
.request-counters .bar::after{ content:""; position:absolute; inset:0; width:var(--bar,0%); background:#86efac; }

/* ============================
   Κουμπιά δράσεων
============================ */

.send-button-wrapper .complete-request-form {
	min-width: 150px;
	grid-column: 1 / -1;
	width: 100%;
	padding: 16px 18px 18px;
	background: #f9fafb;
	border-radius: 14px;
	border: 1px solid #dbeafe;
	box-shadow: 0 4px 14px rgba(15,23,42,.06);
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	margin: auto !important;
}


.send-button-wrapper, .admin-nomos-section {
	display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--box-pad);
  align-items: center !important;
  width: 100%;
}

.send-button-wrapper,
.request-box .actions,
.request-box .actions-row,
.request-box .actions-wrapper,
.request-box .buttons,
.request-box .buttons-row,
.admin-nomos-section{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; margin:6px 0;
}

.styled-btn{
  min-height:44px; padding:10px 14px; border-radius:12px; border:1px solid transparent;
  font-size:.95rem; line-height:1.2; white-space:normal; text-align:center; max-width:100%;
}
.styled-btn:focus-visible{ outline:2px solid #93c5fd; outline-offset:2px; }
.btn-complete{ background:#22c55e; color:#fff; }
.btn-complete:hover{ background:#16a34a; }
.btn-notify{ background:#1a73e8; color:#fff; }
.btn-notify:hover{ background:#155bb8; }
.btn-resend{ background:#fb923c; color:#fff; }
.btn-resend:hover{ background:#f97316; }
.btn-cancel-alt{ background:#ef4444; color:#fff; }
.btn-cancel-alt:hover{ background:#dc2626; }
.styled-btn:disabled{ opacity:.7; cursor:not-allowed; }

/* ============================
   Φόρμα μυστικού κωδικού
============================ */
.complete-request-form{ display:none; }

/* ============================
   Μηνύματα
============================ */
.request-error{
  max-width:760px; margin:22px auto; padding:14px;
  background:#fff4f4; color:#b30000; border:1px solid #f0c2c2; border-left:6px solid #cc0000;
  border-radius:8px; font-size:.93rem; line-height:1.55;
}
.no-entries-message{ color:#b30000; font-weight:600; }
.sent-counter {
	color: var(--success);
	word-break: break-word;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
  padding: 8px 10px;
	font-size: .86rem;
	line-height: 1.25;
	color: #15803d;
	box-shadow: 0 2px 8px rgba(2,6,23,.06);
	max-width: 100%;
  text-align: center;
}

.srs-filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 10px 22px;
	min-height: 40px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: .95rem;
	cursor: pointer;
	transition: transform .05s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
	touch-action: manipulation;
	font-weight: 600;
	letter-spacing: .01em;
	max-width: 100%;
	text-align: center;
	white-space: nowrap;
	background: white;
	border: 1px solid #e9e9ed;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============================
   Back to Top
============================ */
#back-to-top{
  display:none; position:fixed; bottom:88px; right:16px; z-index:99;
  font-size:17px; border:none; outline:none; color:#fff; background:#1a73e8;
  border-radius:10px; cursor:pointer; padding:10px 12px; box-shadow:0 2px 6px rgba(0,0,0,.2);
  transition:opacity .2s ease, background-color .2s ease;
  width: 44px;
  height: 44px;
}
#back-to-top:hover{ background:#155bb8; }
#back-to-top:focus-visible{ outline:2px solid #93c5fd; outline-offset:2px; }

.secret-code-input {
	flex: 1 1 320px;
	min-width: 220px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #60a5fa;
	border-radius: 12px;
	font-size: 15px;
	box-sizing: border-box;
	background: #fff;
	margin: 0;
	box-shadow: 0 0 0 1px rgba(37,99,235,.08), 0 4px 10px rgba(15,23,42,.06);
}

.complete-request-form .styled-btn, .complete-request-form .btn-cancel-alt {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: .95rem;
	line-height: 1;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	outline: none !important;
	border: none !important;
}

.secret-code-input {
	flex: 1 1 320px;
	min-width: 220px;
	height: 44px;
	padding: 0 14px !important;
	border: 1px solid #60a5fa !important;
	border-radius: 12px !important;
	font-size: 15px;
	box-sizing: border-box;
	background: #fff;
	margin: 0;
	box-shadow: 0 0 0 1px rgba(37,99,235,.08), 0 4px 10px rgba(15,23,42,.06) !important;
}

.secret-code-input:focus {
	outline: none !important;
	border-color: #2563eb !important;
	box-shadow: 0 0 0 1px #2563eb, 0 6px 16px rgba(37,99,235,.35) !important;
}

@media (max-width:1128px){

  .search-container {
    display: flex;
  }

  input#search-input {
    flex: unset;
  }

}

@media (max-width:600px){ #back-to-top{ bottom:100px; right:12px; } }

/* ============================
   Mobile tweaks
   Συμμετρικά row-boxes με σταθερό padding.
============================ */
@media (max-width:640px){
  .approved-grid > *{ min-width:0; } /* προστασία συρρίκνωσης */
  .request-table{
    table-layout:auto;
    border-collapse:separate;
    border-spacing:0;
    width:100%;
    border:none;
    border-radius:0;
    background:transparent;
  }
  .request-table tr{
    display:block;
    margin:10px 0px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    display: flex;
  }

  #search-input {
    min-width: 100% !important;
  }

  .srs_choice_search_fields {
      display: flex;
      flex-direction: column;
  }

  .srs_choice_search_field_wrap {
      flex: unset !important;
  }

  .request-table td{
    display:block;
    width:100%;
    padding:12px 14px;
    line-height:1.5;
  }
  .request-table td:first-child{
    margin:0;
    width:auto;
    background:#f0f7ff;
    font-weight:600;
    color:#334155;
    border-bottom:1px solid #eef2f7;
  }
  .request-table td:last-child, .request-table td.val {
    padding: 12px 14px;
    overflow: visible;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .styled-btn{ width:100%; }

  .request-table tr td:first-child {
      border-right: 1px solid #e3e6ef;
      min-width: 50% !important;
      max-width: 50% !important;
  }

  .requests-counter-filter-section {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: saturate(1.1) blur(2px);
      background: var(--warn-bg);
      position: unset !important;
  }
}

@media (max-width:480px){

  .request-counters .counter {
    width: 100%;
    justify-content: center;
  }

  .send-button-wrapper button, .admin-nomos-section button, .complete-request-form {
    width: 100%;
  }

  .send-button-wrapper, .admin-nomos-section {
    display: flex !important;
  }

  .complete-request-form > div {
    flex-wrap: wrap;
    width: 100% !important;
  }

  .complete-request-form input, .complete-request-form input, .sent-counter {
    min-width: 100%;
  }

  .complete-request-form button {
    min-width: calc(50% - 6px ) !important;
  }



}

/* XS */
@media (max-width:360px){
  body{ font-size:13.5px; }
  .request-box{ padding:10px; }
  .request-title{ font-size:.95rem; padding:6px 8px; }
}

/* ============================
   Βήμα 1 Highlight
============================ */
.step-1 .request-title{
  background:#fff6cc;
  border-color:#fde047;
  box-shadow:0 0 0 2px #fff6cc inset;
}
.step-1{ border:2px solid #fde047; }

.srs-filter-dropdown { position: relative; margin-left: 10px; z-index: 300; }
.srs-filter-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  list-style: none; margin: 0; display: none; min-width: 180px; z-index: 3000; overflow: hidden; padding: 0;
}
.srs-filter-menu li { padding: 8px 12px; cursor: pointer; transition: background .2s ease; }
.srs-filter-menu li:hover { background: #f5f5f5; }
.srs-filter-dropdown:hover .srs-filter-menu { display: block; }
.srs-filter-menu li.active { background: #f5f1dc; color: #000; font-weight: bold; }

.search-form, .search-container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }

#search-input {
	flex: 2 1 240px;
	min-width: 200px;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	font-size: 16px;
	line-height: 1.2;
	background: #fff;
	box-shadow: inset 0 1px 0 rgba(2, 6, 23, .04);
}

.srs_choice_search_fields { flex: 2 1 260px; display: flex; flex-wrap: wrap; gap: 10px; width: auto; }
.srs_choice_search_field_wrap { flex: 1 1 180px; min-width: 160px; }
.srs_choice_search_field_wrap .select2-container { min-width: 100%; max-width: 100%; }

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}
/* Select2 styling */
body.page .requests-counter-filter-section .srs_choice_search_field_wrap .select2-selection, body.wp-admin .requests-counter-filter-section .srs_choice_search_field_wrap .select2-selection {
	padding: 4px 8px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 14px !important;
	min-height: 42px !important;
	background: #ffffff !important;
	box-shadow: inset 0 1px 0 rgba(15, 23, 42, .04);
	transition: border-color .15s ease, box-shadow .15s ease;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow::after {
  display: none !important;
}
body.page .requests-counter-filter-section .srs_choice_search_field_wrap .select2-selection{
  padding-right: 24px !important;
}
body.wp-admin .requests-counter-filter-section .srs_choice_search_field_wrap .select2-selection {
  padding-right: 20px !important;
}

.srs_choice_search_field_wrap .select2-selection {
	padding: 4px 8px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 14px !important;
	min-height: 42px !important;
	background: #ffffff !important;
	box-shadow: inset 0 1px 0 rgba(15, 23, 42, .04);
	transition: border-color .15s ease, box-shadow .15s ease;
}

body.page .requests-counter-filter-section .select2-selection__placeholder, body.wp-admin .requests-counter-filter-section .select2-selection__placeholder {
	width: 100%;
	display: flex;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.page .requests-counter-filter-section .select2-container--default.select2-container--focus .select2-selection, body.wp-admin .requests-counter-filter-section .select2-container--default.select2-container--focus .select2-selection {
	border-color: #1a73e8 !important;
	box-shadow: 0 0 0 1px #bfdbfe;
	background: white !important;
	border-width: 1px !important;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 32px;
	padding-left: 4px;
	color: #111827;
	padding-right: 4px !important;
}
body .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #9ca3af !important;
}

body.page .requests-counter-filter-section .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: #999;
	cursor: pointer;
	display: inline-block;
	font-weight: bold;
	margin-right: 2px;
}

body.page .requests-counter-filter-section .select2-selection__choice__remove::before {
	content: "✕" !important;
	font-weight: bold;
	color: black !important;
	background: black !important;
	font-size: 10px !important;
	height: 10px !important;
	width: 10px !important;
	margin: auto;
	display: flex;
	align-items: center;
}


body .select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
body .select2-container--default .select2-selection--multiple { min-height: 42px; padding: 3px 4px; }
body.page .requests-counter-filter-section .select2-container--default .select2-selection--multiple .select2-selection__choice, body.wp-admin .requests-counter-filter-section .select2-container--default .select2-selection--multiple .select2-selection__choice {
	background: #e0edff;
	border-radius: 999px;
	border: 0;
	padding: 2px 8px;
	margin-top: 0px !important;
	display: flex;
	align-items: center;
	color: black;
	gap: 0px !important;
}
body.page .requests-counter-filter-section .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	margin-right: 4px;
	color: #999;
	display: flex;
	height: 10px;
	width: 10px;
	margin-top: 1px;
}
body .select2-container--open .select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  overflow: hidden;
}
body.page .select2-results, body.wp-admin .select2-results {
  padding: 0 !important;
}

body.page .select2-dropdown .select2-search, body.wp-admin .select2-dropdown .select2-search { padding: 6px 8px; border-bottom: 1px solid #e5e7eb; }
body .select2-dropdown .select2-search__field { padding: 6px 10px; border-radius: 8px; border: 1px solid #d1d5db; font-size: .9rem; }
body .select2-container--default .select2-results > .select2-results__options { max-height: 260px; }
body.page .select2-container--default .select2-results__option, body.wp-admin .select2-container--default .select2-results__option {
	padding: 8px 12px;
	font-size: .9rem;
	color: #111827;
}
body.page .select2-container--default .select2-results__option--highlighted[aria-selected], body.wp-admin .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #1a73e8 !important;
	color: #fff !important;
}
body .select2-container--default .select2-results__option[aria-selected=true] { background: #e5f1ff; color: #111827; font-weight: 600; }
body .select2-results__options::-webkit-scrollbar { width: 6px; }
body .select2-results__options::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.approved-requests-grid {
  display: grid;
  gap: 16px;
  padding: var(--grid-pad);
  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.request-header .badges-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  flex: 0 0 auto;
  margin: auto;
}

.request-header .badge-admin {
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
}
.request-header .request-id-badge {
  background: #4b5563;
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
}

.request-table tr td:first-child {
  border-right: 1px solid #e3e6ef;
}

.request-table tr td,
.request-table tr th {
  border-bottom: 1px solid #eef2f7 !important;
}

.complete-request-form {
  width: 100%;
}

.complete-request-form > div {
  display: flex;
  width: calc( 100% - 18px);
  gap: 12px;
  box-sizing: border-box;
}

/* Input → 50% */
.complete-request-form .secret-code-input {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Buttons → 25% + 25% */
.complete-request-form .submit-secret-code,
.complete-request-form .cancel-complete-btn {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Visual consistency */
.complete-request-form input,
.complete-request-form button {
  height: 46px;
  box-sizing: border-box;
}



@media (min-width: 1024px) {
  .approved-requests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    justify-items: center;
  }

  .request-box {
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .request-header { justify-content: center; width: 100%; }
  .request-title { width: 100%; max-width: 100%; }
  /* keep buttons left-aligned on desktop too */
  .send-button-wrapper, .request-box .actions, .request-box .buttons, .request-box .actions-row, .request-box .buttons-row, .admin-nomos-section { justify-content: center; }
  .complete-request-form.is-open { justify-content: center; }
}

.pagination {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	justify-content: center;
}

.srs-pagination-link.pagination-btn.current, .srs-pagination-button.pagination-btn.current {
	font-weight: bold;
	background: #eee;
	pointer-events: none;
	cursor: default;
}

.srs-pagination-link.pagination-btn.current, .srs-pagination-button.pagination-btn.current {
	font-weight: bold;
	background: #eee;
	pointer-events: none;
	cursor: default;
}

.pagination .pagination-btn {
	margin: 0 2px;
}

.pagination .pagination-btn {
	background: #ffffff;
	color: #374151;
	border-color: #d1d5db;
	box-shadow: 0 3px 10px rgba(15, 23, 42, .12);
}


.pagination .pagination-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 10px 22px;
	min-height: 40px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: .95rem;
	cursor: pointer;
	transition: transform .05s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
	touch-action: manipulation;
	font-weight: 600;
	letter-spacing: .01em;
	max-width: 100%;
	text-align: center;
	white-space: nowrap;
}

.select2-search__field {
	margin: 0px !important;
}

.select2-selection.select2-selection--multiple {
	display: flex !important;
	align-items: center;
  height: 42px !important;
}

#reset-filters span {
	display: none;
}

.select2-results__options > li:last-child {
  margin-bottom: 0 !important;
}

.select2-container--open .select2-dropdown {
	border: 1px solid #e5e7eb !important;
	border-radius: 14px !important;
	box-shadow: 0 14px 32px rgba(15, 23, 42, .18) !important;
	overflow: hidden !important;
}

.select2-selection__rendered li {
	margin-top: 0px !important;
	display: flex;
	margin-bottom: 0px !important;
}

.request-filters.srs-m-top-18 {
	display: flex;
}

.select2-selection__clear {
	display: none !important;
}

.select2-search.select2-search--inline {
	margin: 0px;
}

.select2-selection.select2-selection--multiple .select2-selection__rendered {
	display: flex !important;
	align-items: center;
}

#srs_popup_overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.65);
  display:none;
  justify-content:center;
  align-items:center;
  backdrop-filter:blur(4px);
  z-index:999999;
}
#srs_popup_box{
  background:#fff;
  border-radius:14px;
  max-width:480px;
  width:92%;
  padding:28px 30px;
  font-family:system-ui,sans-serif;
  box-shadow:0 22px 55px rgba(0,0,0,0.25);
  animation:srs_popup_a .28s ease forwards;
  transform:translateY(20px);
  opacity:0;
  height: fit-content;
}
@keyframes srs_popup_a{
  to{opacity:1;transform:translateY(0);}
}
#srs_popup_box h2{
  font-size:22px;
  font-weight:600;
  margin:0 0 18px;
  text-align:center;
  color:#111;
  letter-spacing:.3px;
}
#srs_popup_list {
  margin: 0 0 22px;
  padding: 8px 0;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#srs_popup_list::-webkit-scrollbar{width:7px;}
#srs_popup_list::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,0.25);
  border-radius:10px;
}
#srs_popup_list::-webkit-scrollbar-thumb:hover{
  background:rgba(0,0,0,0.35);
}
#srs_popup_list li {
  padding: 12px 16px;
  background: #fff;
  margin: 4px 10px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  font-size: 15px;
  cursor: pointer;
  transition: .15s ease;
  list-style: none;
}
#srs_popup_list li:hover{
  background:#f7faff;
  border-color:#cfe3ff;
  box-shadow:0 4px 10px rgba(33,150,243,0.12);
}
#srs_popup_list li.srs_selected{
  background:linear-gradient(135deg, #2563eb, #1d4ed8);
  color:#fff;
  font-weight:600;
  border-color:#125aa5;
  transform:scale(1.02);
}
.srs_popup_buttons {
  text-align: right;
  margin-top: 5px;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
} 
.srs_popup_btn {
  padding: 10px 26px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  border-radius: 6px;
  font-weight: 500;
  transition: .2s;
  max-width: 50% !important;
  width: 50%;
}
.srs_popup_btn_ok{
  background:linear-gradient(135deg, #2563eb, #1d4ed8);
  color:#fff;
  opacity:.45;
  pointer-events:none;
}
.srs_popup_btn_ok.srs_enabled {
  opacity: 1;
  border: 1px solid linear-gradient(135deg, #2563eb, #1d4ed8);
  pointer-events: auto !important;
}
.srs_popup_btn.srs_popup_btn_ok.srs_enabled:hover {
  box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
  cursor: pointer;
}

.srs_popup_btn_cancel{
  background:#ebebeb;
  color:#222;
}
.srs_popup_btn_cancel:hover{background:#d5d5d5;}
.srs_popup_box_wrap {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.srs_show_messages {
  margin: 10px 0;
}

.srs_message {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.srs_success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.srs_error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#srs_popup_box {
  padding: 20px 15px;
}

@media (max-width: 600px) {
  #srs_popup_box {
      padding: 20px 15px;
  }
}