/* MOB365 Control Center · Business Central 365 · Faqet e listave (ngarkohet i fundit).
   Kompanitë, Licencat, Pajisjet, POS-et fiskale, Monitorimi fiskal, Personalizimi.
   Vetëm stil: nuk ndryshon markup, rrugët, ngjarjet ose logjikën e biznesit. */

:root{
  --bp-ink:#212121;
  --bp-ink-2:#4a4a4a;
  --bp-muted:#6b6b6b;
  --bp-line:#e1e1e1;
  --bp-line-soft:#edebe9;
  --bp-head:#f3f2f1;
  --bp-link:#00737a;
  --bp-hover:#f5f5f5;
  --bp-ok:#107c10;
  --bp-warn:#8a6100;
  --bp-bad:#a4262c;
}

/* ---- Kokat e faqes: titulli + veprimet si shirit teksti ---- */
.bc-page h1{font-size:24px!important;font-weight:400!important;color:var(--bp-ink)!important;margin:0 0 2px!important;}
.bc-page h1 + p,.bc-page .page-head p,.bc-page .co-head p,.bc-page .devices-header p,.bc-page .fo-head p,.bc-page .fm-head p,.bc-page .cs-bar-title p{
  font-size:13px!important;color:var(--bp-ink-2)!important;margin:0!important;
}
.bc-page :is(.co-head,.devices-header,.page-head,.fo-head,.fm-head){
  padding-bottom:10px!important;border-bottom:1px solid var(--bp-line)!important;margin-bottom:14px!important;
}

/* Butonat e kokës: tekst me theks, jo blloqe të mëdha */
.bc-page :is(.co-btn,.devices-refresh-button,.fo-btn,.fm-btn,.cs-btn){
  border-radius:2px!important;font-size:13px!important;font-weight:600!important;min-height:32px;
}
.bc-page .co-btn-primary,.bc-page .fo-btn-primary,.bc-page .cs-btn-primary,
.bc-page .company-edit-primary-button,.bc-page .devices-refresh-button{
  background:var(--bp-link)!important;border-color:var(--bp-link)!important;color:#fff!important;
}
.bc-page .co-btn:not(.co-btn-primary),.bc-page .devices-refresh-button:not(:disabled):hover{background:var(--bp-hover)!important;}
.bc-page .co-btn-primary:hover,.bc-page .cs-btn-primary:hover{background:#005f65!important;border-color:#005f65!important;}

/* ---- Pjesët / kartelat: të sheshta ---- */
.bc-page :is(.co-card,.devices-panel,.licenses-list-panel,.licenses-summary-panel,.fo-card,.fm-card,.cs-card,.panel){
  background:#fff!important;border:1px solid var(--bp-line)!important;border-radius:0!important;box-shadow:none!important;
}
.bc-page :is(.co-card,.devices-panel,.licenses-list-panel,.fm-card,.fo-card) > :is(.co-toolbar,.devices-panel-header,.licenses-list-header){
  padding:10px 14px!important;border-bottom:1px solid var(--bp-line-soft)!important;background:#fff!important;
}
.bc-page :is(.devices-panel-header,.licenses-list-header) h2,.bc-page .licenses-summary-head h2{font-size:15px!important;font-weight:600!important;color:var(--bp-ink)!important;}
.bc-page :is(.devices-panel-header,.licenses-list-header) p,.bc-page .licenses-list-header small,.bc-page .licenses-summary-head p{font-size:12px!important;color:var(--bp-muted)!important;margin:0!important;}

/* Dekorimet ikona/gradient hiqen; numrat e cue-ve shfaqen si BC */
.bc-page :is(.devices-stat-icon,.license-stat-icon,.stat-icon){display:none!important;}
.bc-page :is(.devices-stats-grid,.license-stats-grid){gap:0!important;border:1px solid var(--bp-line);background:#fff;}
.bc-page :is(.devices-stat-card,.license-stat-card){
  background:#fff!important;border:0!important;border-right:1px solid var(--bp-line-soft)!important;border-radius:0!important;box-shadow:none!important;padding:12px 16px!important;
}
.bc-page :is(.devices-stat-card,.license-stat-card) :is(strong,.license-stat-value){font-size:28px!important;font-weight:300!important;color:var(--bp-ink)!important;}
.bc-page :is(.devices-stat-card,.license-stat-card) :is(span,.license-stat-label){font-size:12px!important;color:var(--bp-ink-2)!important;font-weight:600!important;}
.bc-page .license-stat-card.warning .license-stat-value{color:var(--bp-warn)!important;}
.bc-page .license-stat-card.critical .license-stat-value{color:var(--bp-bad)!important;}
.bc-page .license-stat-card.active .license-stat-value{color:var(--bp-ok)!important;}

/* ---- Filtra dhe kërkim ---- */
.bc-page .co-filters button{font-size:13px!important;font-weight:400!important;color:var(--bp-ink)!important;border-bottom:3px solid transparent!important;padding:8px 12px!important;}
.bc-page .co-filters button.selected{color:var(--bp-link)!important;border-bottom-color:var(--bp-link)!important;font-weight:600!important;}
.bc-page :is(.co-search,.devices-search input,.licenses-search input,.devices-status-filter,.co-search){
  height:32px;font-size:13px!important;border:1px solid #8a8886!important;border-radius:2px!important;
}
.bc-page :is(.devices-search,.licenses-search){border:1px solid #8a8886!important;border-radius:2px!important;height:32px;background:#fff!important;}
.bc-page :is(.devices-search,.licenses-search) input{border:0!important;height:30px;}

/* ---- Tabela: si lista e BC ---- */
.bc-page :is(.co-table,.devices-table,.licenses-table,.fm-table,.fo-table,.cs-table){width:100%;border-collapse:collapse!important;background:#fff!important;}
.bc-page :is(.co-table,.devices-table,.licenses-table,.fm-table,.fo-table) thead th{
  position:sticky;top:0;background:var(--bp-head)!important;color:var(--bp-ink-2)!important;font-size:12px!important;font-weight:600!important;
  border-bottom:1px solid #c8c6c4!important;padding:8px 10px!important;text-transform:none!important;letter-spacing:0!important;
}
.bc-page :is(.co-table,.devices-table,.licenses-table,.fm-table,.fo-table) tbody td{
  padding:8px 10px!important;border-bottom:1px solid var(--bp-line-soft)!important;color:var(--bp-ink)!important;font-size:13px!important;vertical-align:middle;
}
.bc-page :is(.co-table,.devices-table,.licenses-table,.fm-table,.fo-table) tbody tr:hover td{background:#f5f9f9!important;}
.bc-page :is(.co-table,.devices-table,.licenses-table,.fm-table) .co-num,.bc-page .co-table td:nth-child(6){font-variant-numeric:tabular-nums;}
.bc-page .co-table td small,.bc-page .devices-table small,.bc-page .licenses-table small{font-size:12px!important;color:var(--bp-muted)!important;}

/* Lidhjet e emrit dhe veprimet: lidhje tekst, jo butona */
.bc-page :is(.co-name,.license-company-link strong,.devices-table td strong){color:var(--bp-link)!important;font-weight:600!important;text-decoration:none;}
.bc-page .co-name:hover,.bc-page .license-company-link:hover strong{text-decoration:underline;}
.bc-page .co-actions a,.bc-page .license-open-button,.bc-page .devices-action-button{
  color:var(--bp-link)!important;font-weight:600!important;font-size:13px!important;text-decoration:none!important;background:transparent!important;border:0!important;padding:4px 6px!important;
}
.bc-page .co-actions a:hover,.bc-page .license-open-button:hover{text-decoration:underline!important;background:transparent!important;}
.bc-page .devices-action-button.approve{color:var(--bp-ok)!important;}
.bc-page .devices-action-button.block{color:var(--bp-bad)!important;}

/* Statuset: pikë + tekst, pa pilula */
.bc-page :is(.co-pill,.license-status,.devices-status,.module-pill){
  background:transparent!important;border:0!important;padding:0!important;font-size:13px!important;font-weight:400!important;color:var(--bp-ink)!important;
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
}
.bc-page :is(.co-pill,.license-status,.devices-status)::before{content:"";width:8px;height:8px;border-radius:50%;background:#8a8886;display:inline-block;}
.bc-page :is(.co-pill.ok,.license-status.ok,.devices-status.approved)::before{background:var(--bp-ok);}
.bc-page :is(.co-pill.warn,.license-status.warn,.devices-status.pending)::before{background:#c19c00;}
.bc-page :is(.co-pill.off,.license-status.bad,.devices-status.blocked)::before{background:var(--bp-bad);}
.bc-page .devices-status > span:first-child{display:none;}
.bc-page .module-list{display:flex;flex-wrap:wrap;gap:4px;}
.bc-page .module-pill{font-size:11px!important;padding:1px 6px!important;border:1px solid var(--bp-line)!important;color:var(--bp-muted)!important;}
.bc-page .module-pill.ok{color:var(--bp-link)!important;border-color:#9fd3d6!important;background:#eef8f8!important;}
.bc-page .co-warn{color:var(--bp-bad)!important;font-weight:600!important;}

/* Skadimi i licencës: paralajmërim i qartë, vetëm për rastet që kërkojnë kujdes */
.bc-page .co-warn,.bc-page td.co-warn{color:var(--bp-bad)!important;}

/* ---- Modalet (Monitorimi fiskal → detajet e kuponit) ---- */
.bc-page .fm-modal-backdrop{background:rgba(0,0,0,.35)!important;}
.bc-page .fm-modal{border-radius:0!important;border:1px solid #8a8886!important;box-shadow:0 8px 24px rgba(0,0,0,.25)!important;}
.bc-page .fm-modal h2{font-size:17px!important;}

/* ---- Personalizimi: shiriti i kompanisë dhe tabs ---- */
.bc-page .cs-bar{background:var(--bc-page,#f3f3f3)!important;border-bottom:1px solid var(--bp-line);padding:10px 0!important;}
.bc-page .cs-bar h1{font-size:22px!important;}
.bc-page .cs-company{border:1px solid #8a8886!important;border-radius:2px!important;height:32px;font-size:13px;}
.bc-page .cs-tabs button{font-size:13px!important;font-weight:400!important;color:var(--bp-ink)!important;padding:10px 14px!important;border-bottom:3px solid transparent!important;}
.bc-page .cs-tabs button.selected{color:var(--bp-link)!important;border-bottom-color:var(--bp-link)!important;font-weight:600!important;}
.bc-page .cs-group{background:var(--bp-head);font-size:12px!important;font-weight:600!important;color:var(--bp-ink-2)!important;border-bottom:1px solid var(--bp-line-soft);}
.bc-page .cs-muted{color:var(--bp-muted)!important;}

/* ---- Telefoni: tabela rrëshqet, kokat rreshtohen majtas ---- */
@media (max-width:760px){
  .bc-page :is(.co-head,.devices-header,.page-head,.fo-head,.fm-head){flex-direction:column!important;align-items:flex-start!important;}
  .bc-page .co-search,.bc-page .devices-search,.bc-page .licenses-search,.bc-page .devices-status-filter{width:100%!important;}
  .bc-page .devices-filters{flex-direction:column!important;align-items:stretch!important;width:100%;}
}

/* Kyçja e Control Center: e njëjta gjerësi si kyçja e Web-it (520 px, kutia e kornizës përfshirë). */
.bc-login-centered .login-panel{width:520px!important;max-width:100%!important;box-sizing:border-box!important;}
.bc-login-centered .login-panel-inner{width:100%!important;max-width:520px!important;box-sizing:border-box!important;}
@media (max-width:560px){
  .bc-login-centered .login-panel{width:100%!important;}
}
