/* Option A skin. Loaded after payam-overrides.css, and again from the footer so it
   wins over dashboard <style> blocks. Tokens live in payam-theme.css.
   Inspiration from the CRMi card spacing: soft radius, light shadow, pastel fills.
   Service colours are only Emergency red, Priority blue, Economy green. */

.fixed-logo img,
.login_content > img,
.login_content img[alt="Payam Data Recovery"]{
  width:auto !important;
  max-width:210px;
  max-height:52px;
  height:auto;
  filter:none;
  opacity:1;
}

/* Company logo, then the word CRM, in the top-left brand.
   The collapsed rail is wider than the old 70px strip so the wordmark stays readable. */
body.nav-sm .container.body .col-md-3.left_col{
  width:var(--rail-sm);
}
body.nav-sm .container.body .right_col,
body.nav-sm .main_container .top_nav,
body.nav-sm footer{
  margin-left:var(--rail-sm);
}
/* Phones and tablets: the collapsed rail must not reserve 120px or cover the form.
   body stays nav-sm (closed). The hamburger switches to nav-md, which opens the menu
   over the page. Gentelella hides .nav-md .left_col below 991px; this puts it back
   as an overlay and keeps the job full width. */
@media (max-width:991px){
  body.nav-sm .container.body .right_col,
  body.nav-sm .main_container .top_nav,
  body.nav-sm footer,
  body.nav-md .container.body .right_col,
  body.nav-md .main_container .top_nav,
  body.nav-md footer{
    margin-left:0;
    width:100%;
  }
  body.nav-sm .container.body .col-md-3.left_col{
    display:none;
  }
  body.nav-md .container.body .col-md-3.left_col{
    display:block;
    position:fixed;
    top:0;
    left:0;
    height:100%;
    width:230px;
    z-index:10020;
    overflow:auto;
  }
  .phone-job-notes,
  .nav-sm .phone-job-notes,
  body.nav-sm .phone-job-notes{
    left:0;
    right:0;
  }
}
.left_col .nav_title{
  height:auto;
  float:none;
  width:100%;
}
.left_col .nav_title .site_title{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  height:auto;
  line-height:1;
  overflow:visible;
  text-overflow:clip;
  padding:14px 16px 12px;
  text-align:center;
}
.left_col .nav_title img{
  width:auto !important;
  max-width:168px;
  max-height:64px;
  height:auto;
  filter:none;
  opacity:1;
}
.left_col .nav_title .crm-product{
  display:block;
  margin:8px 0 0;
  padding:0;
  font-family:var(--font-display);
  font-size:18px;
  font-weight:600;
  letter-spacing:.18em;
  line-height:1;
  color:var(--c-text);
}
body.nav-sm .left_col .nav_title,
body.nav-sm .navbar.nav_title{
  width:var(--rail-sm);
}
body.nav-sm .left_col .nav_title .site_title{
  padding:12px 8px 10px;
}
body.nav-sm .left_col .nav_title img{
  max-width:104px;
  max-height:52px;
}
body.nav-sm .left_col .navbar.nav_title a span.crm-product{
  display:block !important;
  margin-top:6px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.16em;
}

.form-global-search input.form-control,
.form-control{
  border-radius:12px;
  border-color:var(--c-border);
  background:var(--c-surface);
  box-shadow:none;
}
/* One field. An extra border and padding on the form drew a box around the input. */
.form-global-search,
.form-quick-goto-job{
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:10px 0 0;
}
.nav_menu{
  box-shadow:0 1px 0 var(--c-divider);
}

.btn{
  border-radius:5px;
}
.job-action-group .btn,
.btn-default{
  background:var(--c-surface);
  border-color:var(--c-border);
  color:var(--c-text);
  box-shadow:none;
}
.table{
  background:var(--c-surface);
}
.table > thead > tr > th{
  background:var(--c-surface-2);
  color:var(--c-text-2);
  border-bottom:1px solid var(--c-border);
  font-weight:600;
}
.table-striped > tbody > tr:nth-of-type(odd){
  background:var(--c-surface);
}
.table-hover > tbody > tr:hover{
  background:var(--c-surface-2);
}

h2.page-title,
h4.page-title,
.phone-job-number{
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--c-text);
}

/* Dashboard heroes were a red gradient. The page chrome stays calm. */
.om-top,
.jb-top,
.hy-top,
.dm-top{
  background:var(--c-surface) !important;
  color:var(--c-text) !important;
  border:1px solid var(--c-border);
  border-radius:10px !important;
  box-shadow:var(--shadow-1);
}
.om-top h1,
.jb-top h1,
.hy-top h1,
.dm-top h1,
.om-top .om-sub,
.jb-top .jb-sub,
.hy-top .hy-sub,
.dm-top .dm-sub{
  color:var(--c-text) !important;
}
.om-badge,
.jb-badge,
.hy-badge,
.dm-badge{
  background:var(--c-surface-2) !important;
  border-color:var(--c-border) !important;
  color:var(--c-text-2) !important;
}
a.om-classic,
a.jb-classic,
a.hy-classic{
  color:var(--c-accent-text) !important;
}

.om-tile,
.jb-tile,
.hy-tile{
  border:0 !important;
  border-radius:10px !important;
  box-shadow:none !important;
  padding:16px 18px !important;
  background:var(--kpi-sky) !important;
}
.om-t-blu, .jb-t-blu, .hy-t-blu{ background:var(--kpi-sky) !important; }
.om-t-org, .jb-t-org, .hy-t-org{ background:var(--kpi-peach) !important; }
.om-t-grn, .jb-t-grn, .hy-t-grn{ background:var(--kpi-mint) !important; }
.om-t-pur, .jb-t-pur, .hy-t-pur{ background:var(--kpi-lilac) !important; }
.om-t-red, .hy-t-red{ background:var(--kpi-peach) !important; }
.om-tile .n, .jb-tile .n, .hy-tile .n,
.om-t-blu .n, .om-t-org .n, .om-t-red .n, .om-t-grn .n, .om-t-pur .n,
.jb-t-org .n, .jb-t-blu .n, .jb-t-grn .n, .jb-t-pur .n,
.hy-t-red .n, .hy-t-org .n, .hy-t-blu .n, .hy-t-grn .n, .hy-t-pur .n{
  color:var(--c-text) !important;
}

.om-panel,
.jb-panel,
.hy-panel,
.dm-panel{
  border-radius:10px !important;
  box-shadow:var(--shadow-1) !important;
  border:1px solid var(--c-border);
}
.om-dash a.om-job,
.jb-dash a.jb-job,
.hy-dash a.hy-job,
.dm-dash a.dm-job{
  color:var(--c-accent-text) !important;
}

/* Service tier only: Emergency red, Priority blue, Economy green. */
.jb-dash tr.jb-emergency td{ background:#fdecea !important; }
.jb-dash tr.jb-emergency td:first-child{ box-shadow:inset 4px 0 0 var(--tier-emergency) !important; }
.jb-dash tr.jb-priority td{ background:#e7f1fd !important; }
.jb-dash tr.jb-priority td:first-child{ box-shadow:inset 4px 0 0 var(--tier-priority) !important; }
.jb-dash tr.jb-economy td{ background:#e7f6ee !important; }
.jb-dash tr.jb-economy td:first-child{ box-shadow:inset 4px 0 0 var(--tier-economy) !important; }

body.login{
  background:var(--c-bg);
}
.login_content{
  background:var(--c-surface);
  border:1px solid var(--c-border);
  border-radius:10px;
  box-shadow:var(--shadow-1);
  padding:28px 24px 18px;
}
.login_content .btn-red,
.login_content input[type="submit"]{
  background:var(--c-accent);
  border-color:var(--c-accent);
  color:#fff;
  border-radius:5px;
}
