.row.content {
  padding-top: 0;
}

.pcs-sections-block {
  margin-bottom: 16px;
}

.pcs-sections-block .dropdown.full-dropdown {
  width: 100%;
}

.pcs-sections-block .dropdown-menu,
.pcs-sections-block .pcs-sections-menu {
  position: static;
  float: none;
  display: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 8px 0 0;
}

.pcs-sections-block .dropdown.open > .dropdown-menu,
.pcs-sections-block .dropdown.open > .pcs-sections-menu {
  display: block;
  border-top: 1px solid #f1f4f9;
  padding-top: 4px;
}

.pcs-sections-block .dropdown-menu > li > a,
.pcs-sections-block .pcs-sections-menu > li > a {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding: 8px 10px;
}

.pcs-sections-block .dropdown-menu > li > a strong,
.pcs-sections-block .pcs-sections-menu > li > a strong {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-weight: 600;
}

#main-menu.pcs-dashboard-menu {
  margin-top: 0;
}

/*
 * Home dashboard: reclaim space left by the narrower sidebar.
 * Must beat theme.css @media (992-1289) .sidebar.col-lg-2 / .main.col-lg-10
 * (main uses pull-right, so a narrower main leaves a visible gap next to the sidebar).
 */
@media (min-width: 992px) and (max-width: 1199px) {
  #sideBar.dashboard-sidebar.col-md-3,
  #sideBar.dashboard-sidebar.col-lg-2 {
    width: 18.75% !important;
    float: left !important;
  }

  .main.dashboard-main.col-md-9,
  .main.dashboard-main.col-lg-10 {
    width: 81.25% !important;
    float: right !important;
  }

  #centralBlock.dashboard-central-block.col-md-9 {
    width: 78% !important;
  }

  #rightSideBlock.dashboard-right-block.col-md-3 {
    width: 22% !important;
  }
}

@media (min-width: 1200px) {
  #sideBar.dashboard-sidebar.col-md-3,
  #sideBar.dashboard-sidebar.col-lg-2 {
    width: 12.5% !important;
    float: left !important;
  }

  .main.dashboard-main.col-md-9,
  .main.dashboard-main.col-lg-10 {
    width: 87.5% !important;
    float: right !important;
  }

  #centralBlock.dashboard-central-block.col-md-9 {
    width: 80% !important;
  }

  #rightSideBlock.dashboard-right-block.col-md-3 {
    width: 20% !important;
  }
}

/* Accedi in navbar: sfondo bianco fisso (solo .login-btn, non .btn-secondary globale) */
.navbar-inverse .btn-secondary.navbar-btn.login-btn {
  color: #0066cc !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 102, 204, 0.35) !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25) !important;
}
.navbar-inverse .btn-secondary.navbar-btn.login-btn:hover,
.navbar-inverse .btn-secondary.navbar-btn.login-btn:focus,
.navbar-inverse .btn-secondary.navbar-btn.login-btn.focus {
  color: #0052a3 !important;
  background-color: #ffffff !important;
  border-color: rgba(0, 102, 204, 0.5) !important;
  text-decoration: none !important;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3) !important;
}
.navbar-inverse .btn-secondary.navbar-btn.login-btn:active,
.navbar-inverse .btn-secondary.navbar-btn.login-btn.active {
  color: #004080 !important;
  background-color: #f5f9fc !important;
  border-color: rgba(0, 102, 204, 0.5) !important;
  text-decoration: none !important;
}
.navbar-inverse .btn-secondary.navbar-btn.login-btn .glyphicon,
.navbar-inverse .btn-secondary.navbar-btn.login-btn .fa {
  color: inherit !important;
}

fieldset {
  legend {
    background-color: transparent;
    color: #666666;
  }
}

/* INFOERA-7500: scheda dati PMIS (dialog #dlgPmis) */
.dlg-pmis.ui-dialog {
  padding: 0;
  border: 1px solid #c5d0dc;
  box-shadow: 0 4px 18px rgba(12, 39, 74, 0.18);
  /* must stay under Bootstrap .navbar-fixed-top (1030) */
  z-index: 1020 !important;
}

.dlg-pmis .ui-dialog-titlebar {
  padding: 10px 36px 10px 14px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dlg-pmis .ui-dialog-title {
  width: calc(100% - 8px);
  margin: 0;
}

.dlg-pmis .ui-dialog-title .pmis-dialog-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.dlg-pmis .ui-dialog-content {
  padding: 10px 14px 14px;
  background: #f7f9fb;
  overflow-x: hidden;
  overflow-y: auto;
}

.dlg-pmis .pmis-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  color: #0C274A;
  font-size: 14px;
}

.dlg-pmis .pmis-loading .fa {
  color: #0C274A;
}

#tabella-pmis {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  background: #ffffff;
  border: 1px solid #e2e8ef;
}

#tabella-pmis > tbody > tr > td {
  padding: 8px 12px;
  vertical-align: middle;
  border-top: 1px solid #eef2f6;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

#tabella-pmis > tbody > tr.pmis-section-row > td {
  color: #0C274A;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 14px;
  padding-bottom: 8px;
  border-top: none;
  background-color: #edf2f7 !important;
}

#tabella-pmis > tbody > tr.pmis-section-row:first-child > td {
  padding-top: 10px;
}

#tabella-pmis .pmis-label {
  width: 38%;
  color: #5a6b7d;
  font-weight: 400;
  white-space: normal;
  hyphens: auto;
}

#tabella-pmis .pmis-value {
  color: #1a1a1a;
  font-weight: 600;
}

#tabella-pmis .pmis-empty-value {
  color: #8a97a6;
  font-weight: 400;
}

#tabella-pmis .pmis-datetime {
  white-space: nowrap;
}

#tabella-pmis > tbody > tr.pmis-ops-header > td {
  color: #5a6b7d;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: #f3f6f9 !important;
  border-top: 1px solid #d8e0ea;
  padding-top: 8px;
  padding-bottom: 8px;
}

#tabella-pmis > tbody > tr.pmis-ops-header > td:nth-child(1) {
  width: 34%;
}

#tabella-pmis > tbody > tr.pmis-ops-header > td:nth-child(2) {
  width: 24%;
  text-align: right;
}

#tabella-pmis > tbody > tr.pmis-ops-header > td:nth-child(3) {
  width: 42%;
}

#tabella-pmis > tbody > tr.pmis-ops-row > td {
  padding-top: 9px;
  padding-bottom: 9px;
}

#tabella-pmis .pmis-op-type {
  color: #0C274A;
  font-weight: 600;
}

#tabella-pmis .pmis-op-date {
  color: #3d4f61;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

#tabella-pmis .pmis-op-berth {
  color: #3d4f61;
  font-weight: 400;
}

#tabella-pmis > tbody > tr.pmis-empty > td {
  color: #0C274A;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 24px 12px;
  background-color: #ffffff !important;
}

.avviso-block {
  padding: 12px 14px 14px;
}

.avviso-block h4 {
  margin-bottom: 10px;
}

.avvisi-link {
  color: #0C274A;
  cursor: pointer;
  text-decoration: none;
}

.avvisi-link:hover {
  color: #1d4f91;
  text-decoration: underline;
}

.avvisi-link .fa {
  margin-left: 6px;
  font-size: 13px;
  opacity: 0.7;
}

.avviso-box {
  background: #f7f9fc;
  border: 1px solid #d9e2ec;
  border-left: 4px solid #8aa2b8;
  border-radius: 4px;
  padding: 10px 12px;
  color: #2c3e50;
  line-height: 1.45;
  word-break: break-word;
  overflow: hidden;
}

.avviso-box-active {
  background: #fff8e6;
  border-color: #f0d58c;
  border-left-color: #e09b1b;
  max-height: 11.6em;
  overflow-x: hidden;
  overflow-y: auto;
}

.avviso-preview-dialog .ui-dialog-content {
  background: #fcfdfd;
}

.avviso-preview-dialog .ui-widget-content .ui-state-highlight,
.avviso-preview-dialog .ui-state-highlight {
  background: none;
  border: none;
}

.avviso-text {
  cursor: pointer;
}

.avviso-empty {
  color: #7a8794;
  font-style: italic;
}

.avviso-ui-dialog .ui-dialog-title {
  font-weight: 600;
}

.avviso-form {
  margin: 0;
}

.avviso-help {
  margin: 0 0 10px;
  color: #5b6b7a;
  font-size: 13px;
  line-height: 1.4;
}

.avviso-help code {
  font-size: 12px;
  background: #f1f4f9;
  padding: 1px 4px;
  border-radius: 3px;
}

.avviso-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  margin-bottom: 8px;
  background: #f4f7fb;
  border: 1px solid #d9e2ec;
  border-radius: 4px 4px 0 0;
}

.avviso-tool {
  min-width: 32px;
  height: 30px;
  border: 1px solid #cfd8e3;
  background: #fff;
  border-radius: 3px;
  color: #2c3e50;
}

.avviso-tool:hover {
  background: #eaf1f8;
}

.avviso-color {
  width: 28px;
  min-width: 28px;
  font-size: 16px;
}

.avviso-color:before {
  content: "A";
  font-weight: 700;
  text-decoration: underline;
}

.avviso-toolbar-sep {
  width: 1px;
  height: 22px;
  background: #cfd8e3;
  margin: 0 4px;
}

.avviso-color-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border: 1px solid #cfd8e3;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.avviso-color-picker input {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.avviso-size-label {
  margin: 0 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5b6a;
}

.avviso-size-label select {
  margin-left: 4px;
  height: 28px;
}

.avviso-editor {
  min-height: 210px;
  max-height: 280px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #d9e2ec;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
  line-height: 1.45;
}

.avviso-editor:focus {
  outline: none;
  border-color: #7aa2d4;
  box-shadow: inset 0 0 0 1px #7aa2d4;
}

.avviso-editor:empty:before {
  content: attr(data-placeholder);
  color: #9aa7b4;
}

.avviso-source {
  display: none !important;
}

.avviso-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.avviso-counter {
  color: #6b7c8d;
  font-size: 12px;
}

.avviso-counter-over {
  color: #b42318;
  font-weight: 700;
}

.avviso-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 480px) {
  .avviso-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .avviso-actions {
    margin-left: 0;
  }

  .avviso-actions .btn {
    flex: 1;
  }
}
