.transaction-card {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  margin: 10px;
  font-family: sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.amount {
  font-size: 1.5em;
  font-weight: bold;
}


.status{
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 15px;
}

.status.pending {
  color: orange;
  font-weight: 600;
}

.body {
  margin-bottom: 10px;
  overflow-x: hidden;
  width: 100%;
}

.bank {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bank-icon {
  width: 24px !important;
  height: 24px !important;
}

.bank-name{
  display: flex;
  align-items: center;
  gap: 10px;
}

.details p {
  margin: 2px 0;
  font-size: 0.9em;
  color: #555;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cancel-btn {
  background: #ff4d4f;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}


.cancel-btn.canceled{
  background: #6e6e6e !important;
  color: white !important;
  pointer-events: none !important;
}

.canceled{
  background: #6e6e6e !important;
  color: white !important;
}

.date {
  font-size: 0.8em;
  color: #999;
}

 body{
  background-color: #87CEEB;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}


.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #000000;
}

.app-footer .footer-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #111827;
  padding: 5px 5vw;
  text-decoration: none;
}

.app-footer img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.footer-item.checked{
  background-color: #007bff;
}


.clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('../static/images/main.jpg') repeat-x;
  background-size: cover;
  z-index: -1; /* отправляем назад, под основной контент */
  animation: moveClouds 60s linear infinite;
}

@keyframes moveClouds {
  from { background-position-x: 0; }
  to { background-position-x: -1000px; }
}


.requests-container{
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */;
}


.requests-container > *:last-child {
  margin-bottom: 70px; /* или сколько нужно */
}

.body::-webkit-scrollbar {
  display: none;
  scrollbar-width: none;
}


.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  width: 70vw;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.modal-icon {
  margin-bottom: 10px;
  color: #e74c3c;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.modal-title {
  color: #e74c3c;
  font-size: 20px;
  margin: 0px;
}

.modal-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.modal-button {
  background: #007bff;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.modal-button:hover {
  background: #2980b9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.hidden {
  display: none;
}

html {
overflow: scroll;
overflow-x: hidden;
 }

::-webkit-scrollbar {
width: 0px;
background: transparent;
}


.filter-buttons
{
  display:flex;
  gap:8px;
  padding:12px
}

.filter-btn{
  padding:8px 12px;
  border-radius:8px;
  border:1px solid #ccc;
  background:#fff;
  cursor:pointer;
  position: relative;
}

.filter-btn.active{
  background:#007bff;
  color:#fff;
  border-color:transparent
}

.more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #4cafef, #007bff);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.date-range-picker {
  position: relative;
  display: inline-block;
}

#dateRange {
  width: 220px;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

#dateRange:hover {
  border-color: #1e88e5;
}

.calendar-popup {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 10;
  width: 250px;
}

.calendar-popup.hidden {
  display: none;
}

.calendar-header {
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
  color: #333;
}

.calendar-popup label {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  font-size: 13px;
}

.calendar-popup input[type="date"] {
  padding: 6px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.apply-btn {
  width: 100%;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  background: linear-gradient(135deg, #4cafef, #1e88e5);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}



#calendarWrapper {
  position: relative;
  display: inline-block;
  width: 100%; /* растягиваем под доступное место */
  max-width: 340px; /* можно менять */
}

#dateInput {
  width: 100%; /* чтобы совпадал с wrapper */
  padding: 12px 45px 12px 15px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  cursor: pointer;
  box-sizing: border-box; /* важно для адаптива */
}

#dateInput:focus {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.25);
}

#calendarWrapper::after {
  content: "\1F4C5";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
  color: #555;
}

#calendar {
  display: none;
  position: absolute;
  top: 55px;
  left: 8px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 1000;
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

/* кастомные селекты */
.custom-select {
  position: relative;
  width: 140px;
  cursor: pointer;
  user-select: none;
}

.select-selected {
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.select-selected:after {
  content: "";
  position: absolute;
  top: 60%;
  right: 15px;
  width: 0; 
  height: 0; 
  border: 6px solid transparent;
  border-color: #555 transparent transparent transparent;
  transform: translateY(-50%);
}

.select-items {
  position: absolute;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 14px;
  z-index: 99;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
}

.select-items div {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.select-items div:hover {
  background: #f0f0f0;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-bottom: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.day {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  margin: 2px;
  user-select: none;
  font-size: 15px;
}

.day:hover {
  background: #eee;
}

.selected {
  background: #007bff;
  color: white;
}

.in-range {
  background: #cce5ff;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ok-btn {
  background: #28a745;
  color: white;
  width: 100px;
}

.ok-btn:hover {
  background: #218838;
}

.today-btn {
  background: #007bff;
  color: white;
  width: 100px;
}

.today-btn:hover {
  background: #0056b3;
}


.header-top{
  display: flex;
  align-items: center;
  flex-direction: column;
}

.empty-state {
  text-align: center;
  color: #777;
  padding: 40px 20px;
}

.empty-state .icon {
  stroke: #bbb;
  margin-bottom: 10px;
  touch-action: none;
}

.empty-state img{
  width: 300px;
  touch-action: none;
}

.empty-state p {
  font-size: 16px;
  font-weight: 500;
  color: black;
}

.skeleton-card {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  margin: 10px;
  font-family: sans-serif;
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(270deg, #e0e0e0 25%, #cfcfcf 37%, #e0e0e0 63%);
  background-size: 400px 100%;
  animation: shimmer 4s linear infinite;
}

.skeleton.small { height: 14px; width: 30%; }
.skeleton.small-bank-name { height: 14px; width: 55px; }
.skeleton.small-details-name { height: 16px; width: 45%; margin: 0 !important; margin-bottom: 10px !important;}
.skeleton.medium-details-name { height: 16px; width: 65%; margin: 0 !important; margin-bottom: 10px !important;}
.skeleton.large-details-name { height: 16px; width: 75%; margin: 0 !important;}
.skeleton.medium { height: 14px; width: 30%; }
.skeleton.large { height: 14px; width: 40%; }
.skeleton.extra { height: 14px; width: 60%; }

.details{
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-direction: column;
}

.details span{
  margin: 0.5vh;
}


@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.accept-btn{
  background-color: #007bff;
  color: white;
}

.chat-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* расстояние между иконкой и текстом */
  padding: 6px 12px;
  background-color: #007bff; /* красивый красный */
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.chat-btn .unreadCount {
  position: absolute;
  top: 0;      /* верхний край кнопки */
  right: 0;    /* правый край кнопки */
  transform: translate(50%, -50%); /* немного смещаем наружу */
  display: inline-block;
  background: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  padding: 3px 5px;
  line-height: 1;
}


.chat-btn:active {
  transform: scale(0.95); /* небольшой клик-эффект */
}

.chat-icon {
  width: 1.2em;   /* динамический размер (как текст) */
  height: 1.2em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}


.chat-btn a{
  text-decoration: none;
}


.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-backdrop.show { display: flex; }

.popup-window {
  width: 92%;
  max-width: 720px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 18px;
  font-family: Inter, system-ui, sans-serif;
  max-height: 90vh;
  overflow: auto;
}

.popup-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 8px;
}
.popup-title { font-size: 18px; font-weight: 600; }
.popup-subtitle { font-size: 13px; color:#666; margin-top:4px; }

.popup-quick {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 12px;
}
.popup-quick-btn {
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #e6e6e6;
  background:#fafafa;
  cursor:pointer;
  font-size:14px;
}
.popup-quick-btn.selected {
  background:#2b6ef6;
  color:#fff;
  border-color:transparent;
}

.popup-other {
  display:none;
  flex-direction:column;
  gap:6px;
}
.popup-other.show { display:flex; }

textarea#popupOtherText {
  width:100%;
  min-height:100px;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:14px;
  resize:vertical;
}
.popup-char {
  display:flex;
  justify-content:space-between;
  font-size:13px;
  color:#666;
}

.popup-preview {
  margin-top:10px;
  font-size:13px;
  color:#444;
  display:none;
}

.popup-actions {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:14px;
}
.popup-btn {
  padding:8px 14px;
  border-radius:10px;
  border: none;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}
.popup-btn.ghost {
  background:#f2f2f2;
}
.popup-btn.primary {
  background:#2b6ef6;
  color:#fff;
}


.badge {
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  padding: 2px 6px;
  position: absolute;
  top: -6px;
  right: -3px;
  display: none;
}

/* --- Плашка причины --- */
.reason-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #ffe5e5;
  color: #d32f2f;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.reason-badge:hover {
  background: #ffd6d6;
}
.reason-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.reason-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #333;
  font-size: 15px;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  display: none;
  width: 80%;
  max-width: 400px;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.5;
  box-sizing: border-box;
  animation: fadeInReason 0.25s ease;

  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;

  cursor: text;
}

.reason-popup-text {
  user-select: text; /* можно выделять и копировать */
  margin-bottom: 16px;
}

.reason-copy-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #4cafef, #007bff);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reason-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.reason-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: none;
}

@keyframes fadeInReason {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}


.inactive-btn{
  background: #6e6e6e !important;
  color: white !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: bold !important;
  pointer-events: none !important;
}


.copy-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999999;
}

.copy-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


.req-unique{
  background: #eef3ff;
  padding: 3px 5px;
  border-radius: 10px;
}

img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.no-data-svg{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 300px;
    height: 300px;
}