/**
 * Whiteboard Customized CSS for CSRF
 *
 * Applied for HR and EM
 */


/**
 * Base Style
 */

:root {
  font-feature-settings: "palt";
}

:root body {
  line-height: 1.8;
  background-color: white;
  overflow-y: hidden;
}

/* App Layout */

:root #appl {
  padding: 16px;
}

.wb-app {
  display: flex;
  flex-direction: row;
  min-height: 100%;
}

.wb-app-side {
  position: relative;
  z-index: 60;
  width: 235px;
}

@media (max-width: 640px) {
  .wb-app-side {
    width: auto;
  }
}

.wb-app-main {
  width: calc(100% - 235px);
  max-height: 100vh;
  overflow-y: auto;
  padding-bottom: 70px;
}

@media (max-width: 1024px) {
  .wb-app-main {
    width: 100%;
    min-width: 100vw;
    min-height: 100%;
  }
}

:root .layout-wrapper .layout-menu-container {
  position: static;
  height: 100vh;
}

@media (orientation: landscape) and (max-width: 1024px) {
  :root .layout-wrapper.menu-layout-static .layout-menu-container {
    margin-left: 0 !important;
  }
}

@media (max-width: 640px) {
  :root .layout-wrapper .layout-menu-container {
    position: relative;
    top: 0;
    height: 100vh;
    height: 100svh;
  }
}

:root .nano {
  display: flex;
  flex-direction: column;
}

:root .nano-content {
  flex: 1;
}

:root .wb-app-side-logo {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 20px;
}

:root .wb-app-side-logo img {
  max-width: 100%;
  height: auto;
}

:root .layout-wrapper.menu-layout-static .layout-main,
:root .layout-wrapper.menu-layout-static .layout-footer {
  margin-left: 0;
}

:root .layout-wrapper .topbar {
  position: fixed;
  top: 0;
  right: 0;
  width: auto;
  background-color: white;
}

@media (max-width: 640px){
  :root .layout-wrapper .topbar {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    background: transparent;
  }
}
@media (orientation: landscape) and (max-width: 1024px) {
  :root .layout-wrapper .topbar {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    background: transparent;
  }
}

:root .layout-wrapper .topbar .topbar-right {
  min-width: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: transparent;
}

:root .layout-wrapper .topbar-items {
  margin-top: 0;
}

:root .topbar-item-name {
  color: #292b2c;
}

:root .profile-item {
  text-align: right;
  font-size: 14px;
}

:root .layout-wrapper .topbar-items > li.profile-item a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

:root .layout-wrapper .topbar-items > li.profile-item a .topbar-item-name {
  color: inherit;
}

:root .layout-wrapper .layout-main {
  padding-top: 15px;
}

:root .layout-wrapper .topbar-items > li > ul {
  width: 200px;
  width: max-content;
}

:root .layout-wrapper .topbar-items > li > ul li a {
  display: block !important;
  text-align: left;
  text-decoration: none !important;
}

:root .layout-wrapper .layout-menu li a span:not([class]) {
  display: inline-flex;
  width: calc(100% - 56px);
}

/**
 * Existing class customization
 */

/* Grid */

.ui-md-1,
.ui-md-2,
.ui-md-3,
.ui-md-4,
.ui-md-5,
.ui-md-6,
.ui-md-7,
.ui-md-8,
.ui-md-9,
.ui-md-10,
.ui-md-11,
.ui-md-12 {
  padding-top: 1em;
  padding-bottom: 1em;
}

/* Breadcrumbs */

:root .breadcrumb {
  border-bottom: 1px solid #eaeaea;
  background-color: white;
}

:root .breadcrumb span {
  padding-right: 0;
  padding-left: 0 !important;
  border: 0 !important;
  font-size: 14px;
  color: #333;
  background-color: white !important;
}

:root .breadcrumb span::before {
  display: none;
}

:root .breadcrumb span::after {
  content: '/';
  position: static;
  display: inline-block;
  border: 0 !important;
  background-color: transparent;
  margin-right: .5em;
  margin-left: .5em;
}

:root .breadcrumb li:last-of-type span::after {
  display: none;
}

/* Button */

:root .ui-button {
  background-color: #ff7878;
}

:root .ui-button.ui-state-hover {
  opacity: .7;
  border-color: #ff7878;
  background-color: #ff7878;
}

:root body .ui-panel .ui-panel-titlebar .ui-panel-titlebar-icon .ui-icon-plusthick,
:root body .ui-panel .ui-panel-titlebar .ui-panel-titlebar-icon .ui-icon-minusthick {
  width: auto;
}

:root .ui-menu-button {
  background-color: #6e757c;
}

:root .ui-menu-button.ui-state-hover {
  background-color: #6e757c;
  border-color: #6e757c;
}

:root .ui-menu-button.ui-state-active {
  background-color: #6e757c;
  border-color: #6e757c;
}

/* Caption */

:root .caption {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 0;
  font-weight: 700;
  color: #333;
  letter-spacing: .05em;
  background-color: white;
}


/* Table */

:root .ui-datatable table {
  border-top: 1px solid #eaeaea;
}

:root body .ui-widget-content {
  border: 0;
}

:root .ui-datatable-scrollable-body table {
  border-top: 0;
}

:root body .ui-datatable .ui-datatable-data > tr {
  border-top: 1px solid #eaeaea;
  border-right: 0;
  border-bottom: 1px solid #eaeaea;
  border-left: 0;
}

:root body .ui-datatable .ui-datatable-data > tr.ui-datatable-even {
  background-color: white;
}

:root body .ui-treetable .ui-treetable-data tr {
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

:root body .ui-treetable .ui-treetable-data tr:first-child {
  border-top: 0;
}

:root .ui-treetable table tr {
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

:root body .ui-treetable .ui-treetable-data tr.ui-state-highlight {
  background-color: #d0cece;
}

:root body .ui-treetable .ui-treetable-data tr.ui-state-highlight.ui-selected {
  background-color: #d0cece;
}

:root body .ui-treetable .ui-treetable-data tr.ui-state-highlight a.ui-commandlink {
  color: white !important;
}

:root body .ui-datatable .ui-datatable-data > tr th,
:root body .ui-datatable .ui-datatable-data > tr td,
:root body .ui-datatable thead th,
:root body .ui-datatable tbody td,
:root body .ui-datatable tfoot td,
:root body .ui-datatable tfoot th,
:root .ui-treetable thead th,
:root .ui-treetable tbody td,
:root .ui-treetable tfoot td {
  border: 0;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

@media (max-width: 1024px) {
  :root body .ui-datatable .ui-datatable-data > tr th,
  :root body .ui-datatable .ui-datatable-data > tr td,
  :root body .ui-datatable thead th,
  :root body .ui-datatable tbody td,
  :root body .ui-datatable tfoot td,
  :root body .ui-datatable tfoot th,
  :root .ui-treetable thead th,
  :root .ui-treetable tbody td,
  :root .ui-treetable tfoot td {
    min-width: 100px !important;
  }
}

:root body .ui-datatable .ui-datatable-data > tr th,
:root body .ui-datatable thead th,
:root body .ui-datatable tfoot th,
:root .ui-treetable thead th {
  text-align: left;
}

:root body .ui-datatable-scrollable-body thead.ui-datatable-scrollable-theadclone tr th {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 0 !important;
}

:root body .ui-datatable-scrollable-body thead.ui-datatable-scrollable-theadclone tr th span {
  margin-bottom: 0 !important;
}

:root body .ui-datatable thead th {
  font-weight: 700;
}

:root .ui-treetable table .ui-treetable-scrollable-theadclone tr {
  border: 0 !important;
}


/* Table sort */

:root .ui-datatable .ui-sortable-column {
  text-align: left !important;
}

:root .ui-datatable .ui-column-filter {
  margin-left: 0;
}

:root .ui-datatable .ui-column-title {
  display: inline-block;
  margin-bottom: 4px;
}

:root body .ui-datatable thead th.ui-state-active,
:root body .ui-treetable thead th.ui-state-active {
  border-color: #a2c1e2;
  color: white;
  background-color: #a2c1e2;
}

/* selectOneListbox  */
:root #appl .ui-selectonelistbox .ui-selectlistbox-listcontainer .ui-selectlistbox-list .ui-state-highlight {
  background-color: #d0cece;
}

/* selectManyMenu */
:root #appl .ui-selectmanymenu .ui-selectlistbox-listcontainer .ui-selectlistbox-list .ui-state-highlight {
  background-color: #d0cece;
}
:root #appl .ui-chkbox .ui-chkbox-box.ui-state-active{
  background-color: #ff5050;
  opacity: 0.75;
}

/* Table Search */

:root body .ui-widget-header {
  border: 0;
  background-color: white;
}

:root body .ui-treetable .ui-treetable-scrollable-header, body .ui-treetable .ui-treetable-scrollable-footer {
  background-color: white;
}



/* Label */

:root .ui-outputlabel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  /*padding: 0 0 8px;*/
  padding: 4px 0;
  word-break: break-word;
  text-align: right;
  font-weight: 700;
  background-color: white;
}

@media not screen and (min-width: 640px) {
  :root .ui-outputlabel {
    justify-content: flex-start;
    text-align: left;
  }
}


/* Form Control */

:root body .ui-radiobutton .ui-radiobutton-box.ui-state-active .ui-radiobutton-icon {
  background-color: #ff5050;
}

:root body .ui-radiobutton .ui-radiobutton-box.ui-state-active {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #d0cece;
  background-color: white;
}

:root body .ui-datatable .ui-datatable-data > tr.ui-state-highlight {
  background-color: #d0cece;
}

:root body .ui-datatable .ui-datatable-data > tr.ui-state-highlight.errrow {
  color: #000;
}

:root .ui-inputfield {
  line-height: 1;
}

:root .ui-calendar {
  padding-left: 0;
}

:root body .ui-treetable .ui-treetable-data tr td .ui-chkbox .ui-chkbox-icon {
  color: #ff5050;
}

:root body .ui-state-active,
:root body .ui-state-highlight {
  background-color: #ff5050;
}

.wb-radio {
  display: inline-flex;
  align-items: center;
}


/* Shadow */

:root body .ui-shadow {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}


/**
 * Only for EM
 */

/* Base */

:root .layout-wrapper.em {
  background-color: white;
}

:root .layout-wrapper .topbar {
  box-shadow: none;
}

@media (max-width: 640px) {
  :root .layout-wrapper.em .layout-main {
    padding-right: 12px;
    padding-left: 12px;
  }
}

:root .wb-menu-button {
  appearance: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  font-size: 20px;
  background-color: transparent;
  box-shadow: none;
}

:root .layout-wrapper .topbar .topbar-right #menu-button {
  position: static;
  background-color: transparent;
}

@media not screen and (max-width: 640px) {
  :root .wb-menu-button {
    display: none;
  }
}


/* Card */

:root .layout-wrapper.em .card {
  padding: 0;
  border: 0;
}


/* Breadcrumbs */

:root .layout-wrapper.em .em-breadcrumb {
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 1px solid #eaeaea;
}


/* Title */

:root .layout-wrapper.em .em-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: .05em;
  font-size: 12pt;
  font-weight: 700;
  color: #333;
}


/* Label */

:root .layout-wrapper.em .label-control,
:root .layout-wrapper.em .ui-datatable-reflow .ui-datatable-data td[role="gridcell"] .ui-column-title {
  background-color: white;
}


/* Widget */

:root .layout-wrapper.em .ui-panel-titlebar.ui-widget-header {
  background-color: white;
}

:root .layout-wrapper.em .ui-panel-content {
  border: 0 !important;
}


/**
 * Additional Class
 */

/* Widget */

.wb-widget {
  max-height: 80vh;
  overflow: auto;
  padding: 20px !important;
  box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px !important;
}

/* Button group */

.wb-button-group {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.wb-button-group-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .wb-button-group-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
    padding: 20px 20px 20px calc(235px + 20px);
    background-color: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.wb-button-group > *,
.wb-button-group-navigation > * {
  margin-right: 12px !important;
}

.wb-button-group > button,
.wb-button-group > a,
.wb-button-group-navigation > button,
.wb-button-group-navigation > a {
  min-width: 120px;
}

.wb-button-group-navigation > .ui-button {
  margin-top: 0.5rem;
}

/* Spacer */

.wb-spacer {
  height: 32px;
}

/* Label */

.wb-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.wb-label-icon {
  flex: 1;
  justify-content: flex-end !important;
  text-align: right;
  color: #ff5050;
}

.wb-label label {
  flex: 0 0 auto;
  width: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: transparent !important;
}

/**
 * Only for AP
 */

/* Base */

:root .layout-wrapper .topbar.topbar-ap {
  position: absolute;
}

:root .layout-wrapper .topbar.topbar-ap .topbar-left {
  width: 100%;
  float: none;
}

:root .layout-wrapper .topbar.topbar-ap .topbar-left img {
  max-height: 100%;
}

/**
 * Drawer menu
 */
:root .layout-mask {
  z-index: 10;
}

/**
 * テーブル内チェックボックススタイル修正
 */
:root .ui-datatable table .ui-chkbox-icon.ui-icon {
  overflow: auto;
}

/**
* 選択テーブル修正
*/

body .ui-treetable .ui-treetable-data tr.ui-state-highlight {
  background-color: #ffffff;
  color: #000000;
  border-color: #dddddd;
}

body .ui-treetable .ui-treetable-data tr.ui-state-highlight .ui-treetable-toggler {
  color: #000000;
}

body .ui-treetable .ui-treetable-scrollable-theadclone {
  visibility: collapse;
}

body .ui-chkbox .ui-chkbox-box.ui-state-active {
  background-color: #ffffff !important;
  border: 1px solid #cccccc;
  color: #ff5050;
}

body .ui-chkbox .ui-chkbox-box.ui-state-disabled {
  background-color: #d3d3d3 !important;
  opacity: 0.75;
}

/* Datatableスクロール */
body .ui-datatable .ui-datatable-scrollable-body::-webkit-scrollbar-thumb {
  background: lightgrey;
}

/* Treetableスクロール */
body .ui-treetable .ui-treetable-scrollable-body::-webkit-scrollbar-thumb {
  background: lightgrey ;
}
body .ui-treetable .ui-treetable-scrollable-body::-webkit-scrollbar {
  background-color: #f5f5f5 !important;
}

.ui-panel-content .ui-g-12 {
  margin-top: auto;
  margin-bottom: auto;
}

/* テーブル内金額が右寄せ */
.data-cell-number {
  text-align: right;
}

div.ui-datatable td {
  overflow-wrap: normal;
  word-break: break-word;
}