
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    margin: 0;


  }

  .dashboard-container {
    max-width: 1180px;
    margin: 18px auto 42px;
    padding: 0 18px;
    box-sizing: border-box;
    min-height: calc(100vh - 260px);
  }

  .dashboard-perfil-link {
    display: inline-block;
    margin: 10px 0 30px 0;
    color: #0055aa;
    text-decoration: none;
    font-weight: bold;
  }

  .dashboard-perfil-link:hover {
    text-decoration: underline;
  }




  

  .dashboard-card:hover {
    transform: translateY(-4px);
  }

  .dashboard-card.assinado {
    border: 2px solid #0055aa;
    background-color: #e6f2ff;
  }

  .dashboard-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
  }

  .dashboard-card p {
    margin: 0;
    font-size: 14px;
    color: #777;
  }

  .dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
        margin-top: 16px;
  }
  

.dashboard-card {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 18px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    cursor: pointer;
    
}

.dashboard-card-head {
    min-width: 0;
    max-width: 100%;
}

.dashboard-card-head h3 {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    margin: 0;
}

.dashboard-card-head h3 i {
    flex: 0 0 auto;
}

.dashboard-card-head h3 span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    border-color: #4f46e5;
}

.dashboard-card.assinado {
    border-color: #4f46e5;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.18);
}

.dashboard-card-status {
    display: block;
    font-size: 0.78rem;
    margin-top: 12px;
    margin-bottom: 12px;
    color: #6b7280;
    min-height: 52px;
}

.dashboard-card-status-head {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    margin-bottom: 5px;
}

.dashboard-card-status-icon {
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: .62rem;
}

.dashboard-card-status-head strong {
    min-width: 0;
    color: #0f172a;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-card-status .meta {
    margin-top: 3px;
    padding-left: 25px;
    color: #64748b;
    font-size: .73rem;
    line-height: 1.35;
}

.dashboard-card-status.is-ok .dashboard-card-status-icon {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-card-status.is-warn .dashboard-card-status-icon {
    background: #fff7ed;
    color: #f97316;
}

.dashboard-card-status.is-bad .dashboard-card-status-icon {
    background: #fef2f2;
    color: #ef4444;
}

.dashboard-card-desc {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 4px;
    line-height: 1.25;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-card-desc {
    margin-top: 6px;
    margin-bottom: 10px;
}

.dashboard-card-divider {
    border-top: 1px solid #eef2f7;
    margin: 10px 0 12px;
}

.dashboard-card-billing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    min-height: 42px;
}

.dashboard-card-billing strong {
    display: block;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
}

.dashboard-card-billing span {
    margin-top: 3px;
    color: #6b7280;
    font-size: .8rem;
    line-height: 1.2;
    min-height: 19px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-card-badge {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.dashboard-card-badge .badge-soft {
    white-space: nowrap;
}

.badge-soft {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #f4f6f8;
    color: #444;
}

.badge-ok {
    background: #eaf7ee;
    color: #146c43;
}

.badge-warn {
    background: #fff4e5;
    color: #9a5b00;
}

.badge-bad {
    background: #fdecec;
    color: #a61b1b;
}

.dashboard-card-badge .badge-model {
    background: #f8fafc;
    color: #64748b;
}

.dashboard-status-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 6px 0;
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: .7rem;
  line-height: 1.22;
}

.dashboard-status-note > i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: #eef2f7;
  color: #64748b;
  font-size: .72rem;
}

.dashboard-status-note strong {
  display: block;
  color: #0f172a;
  margin-bottom: 1px;
  font-size: .73rem;
}

.dashboard-status-note.is-info {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #244264;
}

.dashboard-status-note.is-info > i {
  background: #dbeafe;
  color: #176df2;
}

.dashboard-status-note.is-warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

.dashboard-status-note.is-warn > i {
  background: #ffedd5;
  color: #f97316;
}

.dashboard-subtitle {
  display: block;
  margin-top: 4px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #6b7280;
}
/* ===== Header (título à esquerda / switch à direita) ===== */
.dashboard-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.dashboard-header__text h2{
  margin:0;
  font-size:1.4rem;
  line-height:1.2;
}

.dashboard-header__text small{
  display:block;
  margin-top:6px;
  color:#6b7280;
  font-size:.9rem;
}

.dashboard-header__action{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

/* ===== Switch ===== */
.dash-switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
}

.dash-switch__label{
  font-weight:700;
  font-size:0.85rem;
  color:#6b7280;
  transition: color .2s ease, opacity .2s ease;
}

.dash-switch__label:not(.is-active){
  opacity:.55;
}

.dash-switch__label.is-active{
  color:#111827;
  opacity:1;
}

.dash-switch__btn{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
}

.dash-switch__track{
  position:relative;
  display:inline-block;
  width:46px;
  height:26px;
  border-radius:999px;
  background:#e5e7eb;
  border:1px solid #d1d5db;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dash-switch__thumb{
  position:absolute;
  top:50%;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#fff;
  transform: translate(0, -50%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.15);
}

/* ON (mine) */
.dash-switch.is-mine .dash-switch__track{
  background:#111827;
  border-color:#111827;
}

.dash-switch.is-mine .dash-switch__thumb{
  transform: translate(20px, -50%);
}

/* Hint opcional (filtro) */
.dash-switch__hint{
  font-size:0.75rem;
  color:#9ca3af;
  line-height:1.1;
}

/* Mobile: título em cima / switch abaixo alinhado à esquerda */
@media (max-width: 680px){
  .dashboard-header{
    flex-direction:column;
    align-items:stretch;
  }
  .dashboard-header__action{
    align-items:flex-start;
  }
}

  .dashboard-success-message {
    background-color: #e0ffe0;
    color: #0a0;
    text-align: center;
    padding: 12px;
    margin: 0 auto 20px;
    border-radius: 8px;
    
  }

  .dashboard-error-message {
    background-color: #ffe0e0;
    color: #c00;
    text-align: center;
    padding: 12px;
    margin: 0 auto 20px;
    border-radius: 8px;
    
  }
  
  /* garante que o form n찾o "encolha" e que tudo tenha a mesma largura */
.dashboard-card-actions form{
  width:100%;
  margin:0;
}

.dashboard-card-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:auto;
}

/* padroniza <a> e <button> com a mesma classe */
.btn-card{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  width:100%;
  min-height:44px;              /* altura consistente */
  padding:10px 12px;

  border-radius:8px;
  font-weight:700;
  text-decoration:none;

  border:1px solid transparent;
  cursor:pointer;

  /* remove estilo nativo do button */
  background:inherit;
  font:inherit;
  appearance:none;
  -webkit-appearance:none;
}

/* s처 pra <button> n찾o herdar coisas estranhas */
.btn-card i {
  font-size: 14px;
}

.btn-primary {
  background: #0d6efd;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(.95);
}

.btn-success {
  background: #198754;
  color: #fff;
}

.btn-success:hover {
  filter: brightness(.95);
}

.btn-danger {
  background: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(.95);
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  filter: brightness(.95);
}

.btn-outline {
  background: #fff;
  color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline:hover {
  background: #f1f6ff;
}

button.btn-card{
  line-height:1.2;
}

/* Responsivo: quebra 4->3->2->1 conforme a tela */
@media (max-width: 1100px){
  .dashboard-cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .dashboard-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .dashboard-container {
    min-height: calc(100vh - 230px);
  }

  .dashboard-cards{
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  .dashboard-card{ max-width: none; }
}
