/* Repair Ticketsystem – Frontend styles */
.rdn-rt{
  --bg:#ffffff;
  --border:#e5e7eb;
  --muted:#6b7280;
  --text:#111827;
  --card:#ffffff;
  --shadow: 0 8px 30px rgba(0,0,0,.06);
  --radius:14px;
  --pad:16px;

  color:var(--text);
  font-family: inherit;
}
.rdn-rt *{ box-sizing:border-box; }

.rdn-rt-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:var(--pad);
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.rdn-rt-brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.rdn-rt-logo{
  width:46px;
  height:46px;
  object-fit:contain;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
}
.rdn-rt-title{
  margin:0;
  font-size:20px;
  line-height:1.1;
}
.rdn-rt-sub{
  color:var(--muted);
  font-size:13px;
}
.rdn-rt-user{
  color:var(--muted);
  font-size:13px;
}

.rdn-rt-card{
  margin-top:14px;
  padding:var(--pad);
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.rdn-rt-card.sub{
  box-shadow:none;
  background:#fafafa;
}
.rdn-rt-cardhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.rdn-rt-lead{
  margin:0;
  color:var(--muted);
}

.rdn-rt-alert{
  margin-top:12px;
  padding:12px 14px;
  border-radius: 12px;
  border:1px solid var(--border);
}
.rdn-rt-alert-success{ background:#f0fdf4; border-color:#86efac; }
.rdn-rt-alert-error{ background:#fef2f2; border-color:#fca5a5; }

.rdn-rt-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width: 900px){
  .rdn-rt-two{ grid-template-columns:1fr; }
}

.rdn-rt-accordion{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.rdn-rt-accordion summary{
  cursor:pointer;
  padding:14px 16px;
  font-weight:600;
  list-style:none;
}
.rdn-rt-accordion summary::-webkit-details-marker{ display:none; }
.rdn-rt-accordion[open] summary{
  border-bottom:1px solid var(--border);
}
.rdn-rt-accordion-body{
  padding:16px;
}

.rdn-rt-form label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}
.rdn-rt-form input[type="text"],
.rdn-rt-form input[type="email"],
.rdn-rt-form input[type="password"],
.rdn-rt-form select,
.rdn-rt-form textarea{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
}
.rdn-rt-grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){
  .rdn-rt-grid2{ grid-template-columns:1fr; }
}

.rdn-rt-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
}
.rdn-rt-btn:hover{ filter:brightness(0.98); }
.rdn-rt-btn-primary{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.rdn-rt-btn-pdf{
  background:#0b1321;
  color:#fff;
  border-color:#000;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.rdn-rt-btn-pdf:hover{ filter:brightness(1.03); }
.rdn-rt-link{
  color:#111827;
  text-decoration:underline;
  font-weight:600;
  font-size:13px;
}
.rdn-rt-link-danger{
  color:#991b1b;
}
.rdn-rt-link-danger:hover{
  color:#7f1d1d;
}
.rdn-rt-muted{ color:var(--muted); }

.rdn-rt-tabs{
  margin-top:14px;
}
.rdn-rt-tabbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.rdn-rt-tab{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  font-size:13px;
}
.rdn-rt-tab.is-active{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.rdn-rt-tabcontent{
  margin-top:10px;
}

.rdn-rt-table-wrap{
  overflow:auto;
}
.rdn-rt-table{
  width:100%;
  border-collapse:collapse;
  min-width:650px;
}
.rdn-rt-table th,
.rdn-rt-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
.rdn-rt-actions{
  white-space:nowrap;
}
.rdn-rt-pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f9fafb;
  font-size:12px;
  font-weight:700;
}

.rdn-rt-filter{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
  margin:12px 0;
}
.rdn-rt-filter label{
  margin:0;
}
.rdn-rt-filter input[type="text"], .rdn-rt-filter select{
  min-width:180px;
}

.rdn-rt-checklist{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:8px 14px;
}
.rdn-rt-checklist label{
  margin:0;
  color:var(--text);
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
}

.rdn-rt-kv{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin:10px 0 6px;
}
.rdn-rt-kv > div{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fafafa;
}
.rdn-rt-kv span{
  display:block;
  color:var(--muted);
  font-size:12px;
}
@media (max-width: 900px){
  .rdn-rt-kv{ grid-template-columns:1fr; }
}

.rdn-rt-timeline{
  list-style:none;
  padding:0;
  margin:0;
}
.rdn-rt-timeline li{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  margin:0 0 10px 0;
  background:#fff;
}
.rdn-rt-timeline-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.rdn-rt-timeline-msg{
  margin-bottom:6px;
}


/* Inline actions */
.rdn-rt-inline{ display:inline-block; margin-left:8px; }
.rdn-rt-btn-small{ padding:7px 10px; font-size:12px; border-radius:10px; }
