/* ===============================
   Base
=================================*/

body {
  background: #0f0f10;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   Header
=================================*/

.header-title {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .3px;
}

.header-obj-bill {
  color: #cba446;
  font-weight: 500;

}

.header-title .brand {
  color: #ffffff;
}

.header-title .divider {
  color: #6f6f78;
}

.subtext,
.muted {
  color: #8e8e95;
  font-size: 13px;
}

/* ===============================
   Cards / Panels
=================================*/

.panel,
.cardx {
  background: #171718;
  border: 1px solid #2a2a2c;
  border-radius: 18px;
}

.cardx {
  padding: 16px;
  display: block;
  transition: .2s ease;
}

.cardx:hover {
  background: #1c1c1e;
  border-color: #3a3a3f;
}

/* ===============================
   Balance
=================================*/

.balance {
  font-size: 20px;
  font-weight: 600;
}

.balance.plus {
  color: #9ff2a7;
}

.balance.minus {
  color: #ffb0b0;
}

/* ===============================
   Buttons
=================================*/

.btn-soft {
  background: #202022;
  border: 1px solid #2f2f32;
  color: #ffffff;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 15px;
}

.btn-soft:hover {
  background: #2a2a2e;
  color: #ffffff;
}

.btn-spend {
  background: #241214;
  border: 1px solid #4a1f24;
  color: #ffb0b0;
  border-radius: 12px;
  font-weight: 600;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-spend:hover {
  background: #2c1518;
  color: #ffffff;
}



/* ===============================
   Tables
=================================*/

.table-darkx {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255,255,255,.03);
  --bs-table-color: #ffffff;
  --bs-table-border-color: #2a2a2c;
}

.table > :not(caption) > * > * {
  padding: .75rem .7rem;
}

/* ===============================
   Meta blocks (metrics)
=================================*/

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.meta {
  flex: 1 1 140px;   /* вместо min-width */
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #2a2a2c;
  background: #121214;
}

.meta .label {
  color: #8e8e95;
  font-size: 12px;
}

.meta .value {
  font-weight: 600;
  font-size: 14px;
}

/* Цветовые варианты */

.meta.cash {
  border-color: #2a2a50;
  background: #121228;
}

.meta.cash .value {
  color: #cfd2ff;
}

.meta.ok {
  border-color: #1f4a28;
  background: #122416;
}

.meta.ok .value {
  color: #9ff2a7;
}

.meta.warn {
  border-color: #4a1f24;
  background: #241214;
}

.meta.warn .value {
  color: #ffb0b0;
}

/* ===============================
   Chip (маленький бейдж)
=================================*/

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #2f2f32;
  background: #121214;
  color: #eaeaf0;
}

/* ===============================
   Forms
=================================*/

.form-control,
.form-select {
  background: #141415;
  border: 1px solid #2f2f32;
  color: #ffffff;
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  background: #1c1c1e;
  color: #ffffff;
  border-color: #4a4a52;
  box-shadow: none;
}

label {
  font-size: 13px;
  color: #8e8e95;
  margin-bottom: 4px;
}

/* ===============================
   Footer
=================================*/

footer {
  color: #8e8e95;
  font-size: 12px;
  text-align: center;
  margin-top: 40px;
}

.userbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  background:#262626;
  border:1px solid #2a2a2c;
}

.userbar-left{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.userbar-name{
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}

.userbar-dot{
  color:#6f6f78;
}

.userbar-last{
  color:#8e8e95;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:60vw;
}

.userbar-right .btn{
  padding:6px 10px;
  font-size:12px;
}

/* мобила: скрываем "последний вход", оставляем имя + выход */
@media (max-width: 576px){
  .userbar-last, .userbar-dot { display:none; }
}

.user-icon {
  font-size: 14px;
  color: #cfd2ff;
}

.btn-soft i {
  margin-right: 6px;
}

.chip-muted{
  opacity: .7;
}

.meta.tax{
  border-color:#3a3a3f;
  background:#121214;
}

.meta.tax .value{
  color:#ffffff;
}

.tasks-mini{
  border-top:1px dashed #2a2a2c;
  padding-top:12px;
}

.tasks-mini-title{
  color:#8e8e95;
  font-size:12px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

.tasks-mini-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #2a2a2c;
  border-radius:12px;
  background:#121214;
  margin-top:8px;
}

.badgex{
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  border:1px solid #2f2f32;
  background:#202022;
  color:#eaeaf0;
  white-space:nowrap;
}

.badgex.warn{ border-color:#4a1f24; background:#241214; color:#ffb0b0; }
.badgex.cash{ border-color:#2a2a50; background:#121228; color:#cfd2ff; }

.tasks-mini-item .text{
  color:#ffffff;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1;
  min-width:0;
}

.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
}

.accent-cash::before {
  background: linear-gradient(180deg,#6f7cff,#8ea2ff);
}

.accent-bills::before {
  background: linear-gradient(180deg,#ff6b6b,#ff9a9a);
}

.accent-tasks::before {
  background: linear-gradient(180deg,#ffa94d,#ffdd57);
}

.bill-card{
  background:#121214;
  border:1px solid #2a2a2c;
  border-radius:16px;
  padding:14px;
}

.bill-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.bill-title{
  font-weight:800;
  font-size:15px;
}

.bill-sub{
  color:#8e8e95;
  font-size:12px;
  margin-top:4px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.bill-metas{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.mini{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid #2a2a2c;
  background:#0f0f10;
  min-width:140px;
  flex:1;
}

.mini .label{
  color:#8e8e95;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:6px;
}

.mini .value{
  font-weight:500;
  font-size:14px;
}

.mini.sum{ border-color:#2a2a50; background:#121228; }
.mini.sum .value{ color:#cfd2ff; }

.mini.deadline{ border-color:#4a1f24; background:#241214; }
.mini.deadline .value{ color:#ffb0b0; }

.mini.paid{ border-color:#1f4a28; background:#122416; }
.mini.paid .value{ color:#9ff2a7; }

.bill-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn-smx{
  padding:7px 10px;
  border-radius:12px;
  font-weight:600;
  font-size:12px;
  border:1px solid #2f2f32;
  background:#202022;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.btn-smx:hover{ background:#2a2a2e; }

.btn-pay{
  background:#241214;
  border-color:#4a1f24;
  color:#ffb0b0;
}

.status-chip.new {
  background: #fabc4926;
  border-color: #fabc494a;
  color: #ffb933;
}

.btn-new {
  background: #fabc4926;
  border-color: #fabc494a;
  color: #ffb933;
}
.btn-ok{
  background:#122416;
  border-color:#1f4a28;
  color:#9ff2a7;
}

.status-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  border:1px solid #2f2f32;
  background:#121214;
}

.status-chip.warn{ border-color:#4a1f24; background:#241214; color:#ffb0b0; }
.status-chip.ok{ border-color:#1f4a28; background:#122416; color:#9ff2a7; }

/* Кнопки */
.btn-filter{
  background:#2a2414;
  border:1px solid #4a3a1f;
  color:#ffdd57;
  border-radius:12px;
  padding:8px 14px;
  font-size: 14px;
}

.btn-filter:hover{
  background:#332b18;
  color:#fff;
} 

.btn-add{
  background:#13281a;
  border:1px solid #1f4a28;
  color:#9ff2a7;
  border-radius:12px;
  padding:8px 14px;
  text-align: center;
}

.btn-add:hover{
  background:#1a3823;
  color:#fff;
}


.mini.author {
  border-color:#5a4a1f;
  background:#2a2212;
}

.mini.author .value {
  color:#ffd76b;
}

.mini.payer {
  border-color:#3a3a3f;
  background:#1c1c1e;
}

.mini.payer .value {
  color:#ffffff;
}

.btn-addbill {
  background:#123d1f;
  border:1px solid #1f5f32;
  color:#9ff2a7;
  border-radius:14px;
  font-size: 15px;
  padding:5px 14px;
}

.btn-addbill:hover {
  background:#17582b;
  color:#ffffff;
}


.btn-give {
 background:#123d1f;
  border:1px solid #1f5f32;
  color:#9ff2a7;
  border-radius:14px;
  font-size: 15px;
  padding:10px 14px;
}

.btn-give:hover {
  background:#17582b;
  border-color:#2b7a42;
  color:#ffffff;
}

.btn-delete{
  background:#1c1c1e;
  border:1px solid #2f2f32;
  color:#8e8e95;
  border-radius:12px;
  font-weight:600;
  padding:6px 12px;
  font-size:13px;
}

.btn-delete:hover{
  background:#2a2a2e;
  color:#ffffff;
}

.btn-row{
  display:flex;
  gap:10px;
}

.btn-row .btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}


/* ===============================
   Topbar (новая шапка)
=================================*/

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(15,15,16,.75);
  border: 1px solid #2a2a2c;
  border-radius: 18px;
}

.topbar-inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
}

.brandbox{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
}

.brand-logo{
  width:35px;
  height:35px;
  border-radius:12px;
  object-fit:cover;
  background:#171718;
}

.brandtext{
  display:flex;
  flex-direction:column;
  line-height:1.5;
}

.brandname{
  font-weight:800;
  font-size:15px;
  letter-spacing:.3px;
}

.brandsection{
  font-size:12px;
  color:#8e8e95;
  font-weight:600;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:18px 0 10px;
  border-top:1px solid #2a2a2c;
  padding-top:14px;
}

.section-title{
  font-weight:700;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#ffffff;
}

.section-count{
  font-size:12px;
  color:#8e8e95;
}





.footer-clean{
  padding:30px 0 20px;
  text-align:center;
}

.footer-line{
  height:1px;
  background:#1f1f22;
  margin-bottom:20px;
}

.footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:600;
  font-size:14px;
  color:#eaeaf0;
}

.footer-copy{
  margin-top:10px;
  font-size:12px;
  color:#6f6f78;
}

.info-box {
  background: #121214;
  border: 1px solid #2a2a2c;
  border-radius: 14px;
  padding: 10px 12px; 
  font-size: 13px;
  color: #8e8e95;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box i {
  color: #6f7cff;
  font-size: 14px;
}

/* ===============================
   Notices (alerts)
=================================*/
.notice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
  color:#eaeaf0;
}

.notice i{
  font-size:16px;
  margin-top:1px;
}

.notice-ok{
  border-color:#1f4a28;
  background: rgba(18,36,22,.65);
  color:#9ff2a7;
}

.notice-err{
  border-color:#4a1f24;
  background: rgba(36,18,20,.75);
  color:#ffb0b0;
}

/* воздух после алерта, чтобы не слипалось    */
.notice + .btn-row,
.notice + .d-grid,
.notice + .mb-3{
  margin-top: 12px;
}

/* ===== big buttons like bills ===== */
.btn-blocky{
  border-radius:16px;
  padding:7px 14px;
  font-weight:500;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

/* ===== operations card lines ===== */
.op-lines{ display:flex; flex-direction:column; gap:6px; }
.op-line{ display:flex; align-items:center; gap:8px; min-width:0; }
.op-line span:last-child{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* ===============================
   Operations list (Cash)
=================================*/

.ops-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.op-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #2a2a2c;
  background:#121214;
}

.op-left{
  min-width:0;
  flex:1;
}

.op-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.op-cat{
  font-weight:700;
  font-size:14px;
  color:#ffffff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.op-meta{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#8e8e95;
  font-size:12px;
  min-width:0;
}

.op-obj{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:60vw;
}

.op-dot{
  color:#6f6f78;
}

.op-comment{
  margin-top:8px;
  color:#8e8e95;
  font-size:12px;
  line-height:1.25;
}

.op-amt{
  white-space:nowrap;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#202022;
  font-weight:800;
  font-size:13px;
}

.op-amt.plus{
  border-color:#1f4a28;
  background:#122416;
  color:#9ff2a7;
}

.op-amt.minus{
  border-color:#4a1f24;
  background:#241214;
  color:#ffb0b0;
}

.op-amt.muted{
  opacity:.85;
}

/* мобилка: чуть меньше отступы */
@media (max-width: 576px){
  .op-row{ padding:10px 10px; }
  .op-obj{ max-width:52vw; }
}

.op-row{ position:relative; overflow:hidden; }
.op-row::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  border-radius:14px 0 0 14px;
  background:#2f2f32;
}
.op-row.is-in::before{ background:linear-gradient(180deg,#6f7cff,#8ea2ff); }
.op-row.is-out::before{ background:linear-gradient(180deg,#ff6b6b,#ff9a9a); }
.op-row.is-tax::before{ background:linear-gradient(180deg,#ffa94d,#ffdd57); }


/* ===== Cash actions row ===== */
.rr-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.rr-action{
  flex:1 1 120px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid #2f2f32;
  background:#121214;
  color:#fff;
  font-weight:700;
  font-size:14px;
}
.rr-action-green{
  background:#123018;
  border-color:#1f4a28;
  color:#9ff2a7;
}

.rr-action-red{
  background: #301212;
  border-color: #4a1f1f;
  color: #f29f9f;
}

.card-accent.accent-ledger{
  border-left: 4px solid rgba(110,231,183,.9); /* можешь заменить на свой “зелёный акцент” */
}

/* ===== RR Premium Loader ===== */
.rr-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity .18s ease;
}

.rr-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.rr-loader-card {
  width: min(560px, 92vw);
  border-radius: 22px;
  padding: 18px 18px 14px;
  background: radial-gradient(1200px 500px at 20% 0%, rgba(255,255,255,0.06), rgba(255,255,255,0.02) 50%, rgba(0,0,0,0.0) 100%),
  #121214;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* чуть “премиум” бликом сверху */
.rr-loader-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 60%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08), rgba(255,255,255,0) 55%);
  pointer-events: none;
}

.rr-loader-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.rr-loader-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.rr-bunny {
  width: 38px;
  height: 38px;
  color: rgba(255,255,255,0.92);
  animation: rrBunnyFloat 1.15s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

@keyframes rrBunnyFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.rr-loader-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.92);
}

.rr-loader-sub {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* прогресс-бар */
.rr-loader-bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}

.rr-loader-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110,231,183,0.0), rgba(110,231,183,0.95), rgba(110,231,183,0.0));
  filter: drop-shadow(0 0 18px rgba(110,231,183,0.22));
  animation: rrIndeterminate 1.05s ease-in-out infinite;
}

@keyframes rrIndeterminate {
  0%   { transform: translateX(-80%); opacity: .65; }
  50%  { opacity: 1; }
  100% { transform: translateX(220%); opacity: .65; }
}

.rr-loader-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.40);
}

/* на очень маленьких экранах */
@media (max-width: 380px) {
  .rr-loader-title { font-size: 16px; }
  .rr-loader-logo { width: 52px; height: 52px; border-radius: 16px; }
  .rr-bunny { width: 34px; height: 34px; }
}

.rr-action-dark:hover,
.rr-action:hover{ background:#1c1c1e; border-color:#3a3a3f; }
.rr-action-green:hover{ background:#15371c; border-color:#2b5a36; color:#fff; }

@media (max-width: 576px){
  .rr-actions{ gap:8px; }
  .rr-action{ flex:1 1 30%; }
}

/* ===== Alerts (для форм) ===== */
.rr-alert{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.rr-alert-ok{ border-color:#1f4a28; background:#122416; color:#9ff2a7; }
.rr-alert-bad{ border-color:#4a1f24; background:#241214; color:#ffb0b0; }

/* ===== Tabs in add ===== */
.rr-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.rr-tab{
  flex:1 1 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid #2f2f32;
  background:#121214;
  color:#eaeaf0;
  font-weight:700;
}
.rr-tab.active{
  background:#1c1c1e;
  border-color:#3a3a3f;
  color:#fff;
}

/* ===== Helpers cards ===== */
.rr-helper{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
  margin-top:10px;
}
.rr-helper-name{ font-weight:800; font-size:15px; }
.rr-helper-sub{ font-size:12px; margin-top:2px; }
.rr-helper-sum{
  align-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #2f2f32;
  background: #202022;
  font-weight: 500;
  white-space: nowrap;
  font-size: 15px;
}

/* ===== Operations list (NEW DESIGN) ===== */
.rr-oplist{ display:flex; flex-direction:column; gap:10px; }

.rr-op{
  position:relative;
  padding-right:110px; /* резерв под сумму */
}

/* теперь текст занимает 100% */
.rr-op-main{
  width:100%;
}

/* сумма приклеена */
.rr-op-right{
  position:absolute;
  right:12px;
  top:12px;
}

/* коммент может залезать под сумму */
.rr-op-comment-box{
  margin-top:6px;
  padding:7px 14px;
  border-radius:10px;
  background:rgba(129, 145, 255, 0.2);
  font-size:13px;
  line-height:1.35;
}

.rr-op{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
}
.rr-op-title{
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rr-op-obj{
  color: #8e8e95;
  font-weight: 500;
  display: block;
  font-size: 13px;
}
.rr-op-meta{
  margin-top:6px;
  color:#8e8e95;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
}
.rr-op-comment{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rr-op-dot{ color:#6f6f78; margin:0 6px; }
.rr-op-right{ display:flex; align-items:center; }
.rr-op-amount{
  padding:4px 12px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#202022;
  font-weight:500;
  white-space:nowrap;
  font-size: 15px;
}

/* accents by type */
.rr-op-in .rr-op-amount{ border-color:#1f4a28; background:#122416; color:#9ff2a7; }
.rr-op-out .rr-op-amount{ border-color:#4a1f24; background:#241214; color:#ffb0b0; }
.rr-op-taxin .rr-op-amount{ border-color:#2a2a50; background:#121228; color:#cfd2ff; }
.rr-op-taxout .rr-op-amount{ border-color:#3a3a3f; background:#171718; color:#eaeaf0; }


/* ===== Reports breakdown rows ===== */
.rr-breakdown{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rr-break-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
}

.rr-break-left{ min-width:0; flex:1; }
.rr-break-title{
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rr-break-sub{
  margin-top:4px;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rr-break-sum{
  align-self:center;
  padding:4px 12px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#202022;
  font-weight:500;
  white-space:nowrap;
  font-size: 15px;
}

.rr-break-in .rr-break-sum{
  border-color:#1f4a28;
  background:#122416;
  color:#9ff2a7;
}

.rr-break-out .rr-break-sum{
  border-color:#4a1f24;
  background:#241214;
  color:#ffb0b0;
}

/* ===============================
   Payroll objects (compact)
=================================*/

.rr-objlist{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.rr-objcard{
  border:1px solid #2a2a2c;
  background:#121214;
  border-radius:18px;
  padding:14px;
  overflow:hidden;
}

.rr-obj-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.rr-obj-namewrap{ min-width:0; flex:1; }

.rr-obj-name{
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rr-obj-sub{
  margin-bottom:5px;
  color:#8e8e95;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.rr-dot{ color:#6f6f78; }

.rr-obj-sum{
  white-space:nowrap;
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#202022;
  font-weight:500;
  font-size:15px;
  max-width:42vw;          /* ключевое: не раздвигать карточку */
  overflow:hidden;
  text-overflow:ellipsis;
}

/* mini grid 2x2 */
.rr-obj-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.rr-mini{
  border:1px solid #2a2a2c;
  background:#0f0f10;
  border-radius:16px;
  padding:10px 12px;
  min-width:0;
}

.rr-mini-lbl{
  color:#8e8e95;
  font-size:12px;
  font-weight:700;
}

.rr-mini-val{
  margin-top:4px;
  font-weight:500;
  font-size:14px;
  white-space:nowrap;      /* не переносить число */
  overflow:hidden;
  text-overflow:ellipsis;  /* вместо “портянки” */
  max-width:100%;
}

.rr-mini-cash{
  border-color:#2a2a50;
  background:#121228;
}
.rr-mini-cash .rr-mini-val{ color:#cfd2ff; }

.rr-mini-ok{
  border-color:#1f4a28;
  background:#122416;
}
.rr-mini-ok .rr-mini-val{ color:#9ff2a7; }

/* status badges */
.rr-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  border:1px solid #2f2f32;
  background:#202022;
  color:#eaeaf0;
  margin-top: 6px;
}
.rr-badge.ok{ border-color:#1f4a28; background:#122416; color:#9ff2a7; }
.rr-badge.warn{ border-color:#4a1f24; background:#241214; color:#ffb0b0; }
.rr-badge.muted{ opacity:.75; }

/* mobile: tighter */
@media (max-width: 576px){
  .rr-objcard{ padding:12px; }
  .rr-obj-name{ font-size:15px; }
  .rr-obj-sum{ max-width:48vw; }
}

/* ===============================
   Payroll history (clean)
=================================*/

.rr-sec-head{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.rr-sec-title{
  font-weight:600;
  font-size:16px;
  display:flex;
  align-items:center;
  gap:10px;
}

.rr-sec-sub{
  color:#8e8e95;
  font-size:12px;
  font-weight:600;
}

.rr-hlist{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rr-hrow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
  min-width:0;
}

.rr-hleft{
  min-width:0;
  flex:1;
}

.rr-htop{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.rr-hdate{
  font-weight:900;
  font-size:14px;
  color:#ffffff;
  white-space:nowrap;
}

.rr-huser{
  font-weight:800;
  color:#ffffff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}

.rr-hdot{
  color:#6f6f78;
  flex:0 0 auto;
}

.rr-hmeta{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#8e8e95;
  font-size:12px;
  min-width:0;
  flex-wrap:wrap;          /* чтобы не “выпирало” */
}

.rr-hmeta b{
  color:#eaeaf0;
  font-weight:900;
}

.rr-hfixed{
  opacity:.85;
}

.rr-hright{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}

.rr-hsum{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#202022;
  font-weight:900;
  font-size:14px;
  white-space:nowrap;
  max-width:42vw;          /* чтоб не раздвигало */
  overflow:hidden;
  text-overflow:ellipsis;
}

/* мобилка: компактнее */
@media (max-width: 576px){
  .rr-hrow{ padding:12px; }
  .rr-hsum{ max-width:50vw; padding:9px 12px; }
}

/* ===== Payroll history (card style) ===== */

.rr-hcard{
  padding:16px;
  border-radius:18px;
  border:1px solid #2a2a2c;
  background:#121214;
  margin-top:14px;
}

.rr-hcard-top{
  margin-bottom:12px;
}

.rr-hcard-title{
  font-weight:900;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
}

.rr-hdot{
  color:#6f6f78;
}

.rr-hcard-metas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.rr-hcard-total{
  width:100%;
}

/* цветовые варианты */

.meta-blue{
  border-color:#2a2a50;
  background:#121228;
}
.meta-blue .value{ color:#cfd2ff; }

.meta-gold{
  border-color:#5a4a1f;
  background:#2a2212;
}
.meta-gold .value{ color:#ffd76b; }

.meta-green{
  border-color:#1f4a28;
  background:#122416;
}
.meta-green .value{ color:#9ff2a7; }

/* ===== Payroll history (mobile first) ===== */

.rr-phist{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rr-phrow{
  padding:14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* верх: месяц + имя */
.rr-phtop{
  display:flex;
  gap:8px;
  font-weight:800;
  font-size:14px;
  min-width:0;
}

.rr-phuser{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* низ: мета + сумма */
.rr-phbottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.rr-phmeta{
  display:flex;
  gap:8px;
  font-size:12px;
  color:#8e8e95;
  flex-wrap:wrap;
}

.rr-phmeta b{
  color:#eaeaf0;
}

.rr-phsum{
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #2f2f32;
  background: #202022;
  font-weight: 600;
  white-space: nowrap;
  color: #ffffff;
  font-size: 15px;
}

/* если экран очень узкий — сумма переносится вниз */
@media (max-width:420px){
  .rr-phbottom{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
}


/* Dashboard: cash card + buttons */
.rr-dash-cash{
  display:block;
  padding:18px;
  border-radius:18px;
}

.rr-go{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#121214;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  opacity:.9;
}

.rr-dash-actions{
  margin-top:10px;
  display:flex;
  gap:10px;
}

.rr-action-wide{
  flex:1 1 0;
  min-width:0;
}


/* ===============================
   Tasks (minimal new styles)
=================================*/

.rr-tasklist{ display:flex; flex-direction:column; gap:10px; }

.rr-task{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
  text-decoration:none;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.rr-task::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background:#2f2f32;
}

.rr-task.pri-urgent::before{ background:linear-gradient(180deg,#ff6b6b,#ff9a9a); }
.rr-task.pri-high::before{ background:linear-gradient(180deg,#ffa94d,#ffdd57); }
.rr-task.pri-normal::before{ background:linear-gradient(180deg,#6f7cff,#8ea2ff); }
.rr-task.pri-low::before{ background:#3a3a3f; }

.rr-task.is-blocked{ border-color:#4a1f24; }
.rr-task.is-overdue{ box-shadow:0 0 0 1px rgba(255,176,176,.15) inset; }

.rr-task-left{ min-width:0; flex:1; }
.rr-task-title{ display:flex; align-items:center; gap:10px; min-width:0; }
.rr-task-name{
  font-weight:900;
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rr-task-sub{
  margin-top:6px;
  color:#8e8e95;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
}

.rr-task-obj, .rr-task-gr, .rr-task-asg{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:60vw;
}

.rr-task-metas{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.rr-tchip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  border:1px solid #2f2f32;
  background:#202022;
  color:#eaeaf0;
}

.rr-tchip.tblock{ border-color:#4a1f24; background:#241214; color:#ffb0b0; }
.rr-tchip.tdue{ border-color:#3a3a3f; background:#171718; }
.rr-tchip.tpri{ border-color:#2a2a50; background:#121228; color:#cfd2ff; }
.rr-tchip.tstat{ border-color:#1f4a28; background:#122416; color:#9ff2a7; }

.rr-task-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.rr-tmini{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  min-width:54px;
}
.rr-tmini b{ font-weight:900; font-size:13px; }

@media (max-width: 576px){
  .rr-task{ padding:12px; }
  .rr-task-right{ gap:8px; }
  .rr-task-obj, .rr-task-gr, .rr-task-asg{ max-width:46vw; }
  .rr-tmini{ min-width:48px; }
}

/* checklist */
.rr-checklist{ display:flex; flex-direction:column; gap:10px; }
.rr-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #2a2a2c;
  background:#121214;
}
.rr-item-left{ display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
.rr-item-btn{
  border:0;
  background:transparent;
  color:#cfd2ff;
  font-size:18px;
  padding:0;
}
.rr-item-title{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:800;
  font-size:13px;
}
.rr-item.is-done .rr-item-title{ opacity:.6; text-decoration:line-through; }

/* files */
.rr-files{ display:flex; flex-direction:column; gap:10px; }
.rr-file{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #2a2a2c;
  background:#121214;
}
.rr-file-link{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* comments */
.rr-comments{ display:flex; flex-direction:column; gap:10px; }
.rr-comment{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #2a2a2c;
  background:#121214;
}
.rr-comment-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.rr-comment-user{ font-weight:900; }
.rr-comment-msg{ margin-top:8px; color:#eaeaf0; font-size:13px; line-height:1.35; }

.rr-cfiles{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.rr-cfile{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#202022;
  font-weight:800;
  font-size:12px;
}

/* groups */
.rr-grouplist{ display:flex; flex-direction:column; gap:10px; }
.rr-group{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #2a2a2c;
  background:#121214;
}
.rr-group-title{ font-weight:900; }
.rr-group-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }


/* ===== Task Groups: compact editor ===== */
.tg-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.tg-card{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:16px;
  border:1px solid #2a2a2c;
  background:#121214;
}

.tg-form{
  display:flex;
  gap:10px;
  align-items:center;
  flex:1;
  min-width:0;
}

.tg-input{
  flex:1;
  min-width:0;
}

.tg-btn{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid #2f2f32;
  background:#202022;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.tg-btn:hover{
  background:#2a2a2e;
  border-color:#3a3a3f;
}

.tg-save{
  background:#122416;
  border-color:#1f4a28;
  color:#9ff2a7;
}

.tg-save:hover{
  background:#15371c;
  color:#fff;
}

.tg-delbtn{
  background:#241214;
  border-color:#4a1f24;
  color:#ffb0b0;
}

.tg-delbtn:hover{
  background:#2c1518;
  color:#fff;
}

/* mobile: чуть компактнее */
@media (max-width:576px){
  .tg-card{ padding:10px; }
  .tg-btn{ width:42px; height:42px; border-radius:14px; }
}

/* чтобы сумма не улетала */
.rr-op-right{ flex:0 0 auto; white-space:nowrap; }



/* мета строка */
.rr-op-meta{
  margin-top:6px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  font-size:12px;
  opacity:.75;
}

.rr-op-file{
  text-decoration:underline;
  white-space:nowrap;
}


/* ===============================
   Sticky footer + footer card
   (add at END of file)
================================= */

/* 1) страница всегда “во весь экран” */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
}

/* 2) контейнер страницы — колонка */
.rr-shell{
  min-height: calc(100vh - 2rem); /* py-4 у bootstrap = ~2rem сверху+снизу */
  display:flex;
  flex-direction:column;
}

/* 3) контент растягивается, футер уезжает вниз */
.rr-main{
  flex: 1 1 auto;
  min-height: 0;
}

/* 4) футер-плашка как хедер */
.rr-footerbar{
  margin-top: 14px;           /* аккуратный зазор от контента */
  border-radius: 18px;
  border: 1px solid #2a2a2c;
  background: rgba(15,15,16,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

/* тонкая линия сверху (как “отделение”) */
.rr-footerbar::before{
  content:"";
  display:block;
  height:1px;
  background: rgba(255,255,255,0.04);
}

.rr-footer-inner{
  display:flex;
  flex-direction:column;
  gap: 8px;
  align-items:center;
  text-align:center;
}

.rr-footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color:#eaeaf0;
}

.rr-footer-logo{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  object-fit: cover;
  background:#171718;
  border: 1px solid rgba(255,255,255,0.06);
}

.rr-footer-copy{
  font-size: 12px;
  color: #6f6f78;
}

/* отключаем влияние старого footer{ margin-top:40px } для нового футера */
.rr-footerbar{
  margin-bottom: 0;
}

/* ===== Topbar: back button ===== */

.rr-topback{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid #2f2f32;
  background:#121214;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  opacity:.92;
  margin-left: auto;
}

.rr-topback:hover{
  background:#1c1c1e;
  border-color:#3a3a3f;
  opacity:1;
}

.rr-top-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

html, body {
  overscroll-behavior-y: contain;
}

/* ===== Tasks: collapsible groups ===== */
.rr-groupbox{
  border:0;
}

.rr-ghead{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:10px 10px;
  border-radius:14px;
  border:1px solid #2a2a2c;
  background:#121214;

  cursor:pointer;
  user-select:none;
}

.rr-ghead::-webkit-details-marker{ display:none; }

.rr-ghead-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#b69e1f; /* твой желтый */
  font-weight: 500;
  font-size: 15px;
}

.accent-payroll { border-left-color: #b69e1f; }

.rr-paymini{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rr-paymini-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid #2f2f32;
  border-radius:14px;
  background:#121214;
}

.rr-paymini-name{
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #d19763;
}

.rr-paymini-sum{
  font-weight:500;
  white-space:nowrap;
  font-size: 15px;
}
.rr-gname{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}

.rr-ghead-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.rr-gchev{
  transition: transform .18s ease;
  opacity:.7;
}

details[open] .rr-gchev{
  transform: rotate(180deg);
}

.rr-groupbody{
  padding-top:10px;
}

.accent-ok   { border-left-color:#1f4a28 !important; }
.accent-warn { border-left-color:#4a3b1f !important; }


.accent-warn::before {
  background: #fabc49;
}

.accent-ok::before {
  background: #35bc51;
}

.access {
  font-size: 13px;
  color: #dedede;
}

.access > div {
  background: #0f0f10;
  border: 1px solid #2f2f32;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
}

.rr-tchip.tdiff { border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.06); color: #d7d7d7; }
.rr-tchip.tdiff.easy { border-color: rgba(80,200,120,.18); background: rgba(80,200,120,.10); color: #bff3cf; }
.rr-tchip.tdiff.med  { border-color: rgba(120,170,255,.18); background: rgba(120,170,255,.10); color: #cfe0ff; }
.rr-tchip.tdiff.hard { border-color: rgba(255,120,120,.18); background: rgba(255,120,120,.10); color: #ffd0d0; }