/* ACD Materiales Addon - v1.0.3 (bigger type, no total) */
.acdmat-wrap{ margin:18px 0; font-family:inherit; }
.acdmat-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.acdmat-title{ margin:0; font-size:24px; line-height:1.15; letter-spacing: -0.2px; }
.acdmat-sub{ color:#8a8f98; font-size:14px; margin-top:6px; }
.acdmat-actions{ display:flex; gap:10px; align-items:center; }

.acdmat-card{
  border:1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(15,27,50,0.92), rgba(9,16,30,0.92));
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}

.acdmat-notice{ padding:11px 12px; border-radius:12px; margin-bottom:12px; font-size:14px; }
.acdmat-notice.ok{ background: rgba(20,160,90,0.18); border:1px solid rgba(20,160,90,0.35); color:#d8ffe9; }
.acdmat-notice.err{ background: rgba(220,60,80,0.18); border:1px solid rgba(220,60,80,0.35); color:#ffe0e6; }

.acdmat-btn{
  border:none; cursor:pointer;
  background: linear-gradient(135deg, rgba(27,110,243,0.98), rgba(34,197,246,0.92));
  color:#fff; padding:12px 15px;
  border-radius:999px; font-weight:900;
  font-size: 15px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.38);
}
.acdmat-btn:hover{ filter:brightness(1.08); }
.acdmat-btn-ghost{
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.acdmat-table-wrap{ overflow:auto; }
.acdmat-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:820px;
}
.acdmat-table th, .acdmat-table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.93);
  font-size:15px;
}
.acdmat-table th{
  font-weight:800;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}
.acdmat-table td.num, .acdmat-table th.num{ text-align:right; }
.acdmat-table td.actions{ width:240px; text-align:right; white-space:nowrap; }

.acdmat-in{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.96);
  outline:none;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 25px rgba(0,0,0,0.18);
}
.acdmat-in.num{ text-align:right; max-width:170px; margin-left:auto; }
.acdmat-in:focus{ border-color: rgba(27,110,243,0.9); box-shadow: 0 0 0 3px rgba(27,110,243,0.18); }

.acdmat-final{
  display:inline-block; min-width:110px; text-align:right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 15px;
}

.acdmat-btn-sm{
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.40);
  color: rgba(255,255,255,0.95);
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
  margin-left: 10px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.acdmat-btn-sm:hover{ background: rgba(239,68,68,0.16); }

.acdmat-row-status{
  display:inline-block;
  min-width: 100px;
  text-align:right;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}
.acdmat-row-status.saving{ color: rgba(255,255,255,0.78); }
.acdmat-row-status.ok{ color: rgba(120, 240, 170, 0.95); }
.acdmat-row-status.warn{ color: rgba(255, 200, 100, 0.95); }
.acdmat-row-status.err{ color: rgba(255, 120, 150, 0.95); }

.acdmat-fab{
  position:fixed; right:22px; bottom:22px; z-index:9999;
  border:none; cursor:pointer;
  background: rgba(27,110,243,0.95);
  color:#fff; padding:12px 15px;
  border-radius:999px; font-weight:900;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.acdmat-fab:hover{ filter:brightness(1.08); }

@media (max-width:720px){
  .acdmat-head{ flex-direction:column; align-items:stretch; }
  .acdmat-actions{ justify-content:flex-start; }
  .acdmat-fab{ right:14px; bottom:14px; }
}
