.role-layout-card {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.role-function-panel {
  display: block;
  min-height: 310px;
  margin: 0;
  padding: 16px 18px 14px;
  border: 1px solid #d4dee9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 57, 91, .08);
}

.role-function-panel .card-head {
  margin: 0 0 14px;
  padding: 0 2px 12px;
  border-bottom: 1px solid #e4ebf2;
}

.role-function-panel .card-head .btn { display: none; }

.role-access-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-left: 3px solid #149fc9;
  background: #f4f8fc;
  color: #547089;
  font-size: 12px;
}

.role-access-summary b {
  flex: 0 0 auto;
  color: #123b62;
  font-size: 13px;
}

.role-permission-search {
  display: block;
  padding: 0;
}

.role-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 70px;
  row-gap: 0;
}

.role-filter-row {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  color: #123b62;
  font-size: 12px;
  font-weight: 700;
}

.role-filter-row:nth-child(-n + 2) { background: #f2f5f9; }

.role-filter-row input,
.role-filter-row select {
  width: 100%;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #c8d3df;
  border-radius: 7px;
  background-color: #fff;
  color: #173958;
  font: inherit;
  outline: none;
}

.role-filter-row input[type="search"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a7898' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-position: 13px center;
  background-repeat: no-repeat;
}

.role-filter-row input:focus,
.role-filter-row select:focus {
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .13);
}

.role-filter-row input::placeholder { color: #70869d; }

.role-function-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 54px;
}

.role-function-actions .btn {
  min-width: 132px;
  height: 38px;
}

.role-function-actions .role-search-button {
  min-width: 88px;
  background: #079ccc;
  border-color: #079ccc;
}

.role-function-actions #assignEmployeeAccess { min-width: 190px; }

.role-permission-empty td {
  padding: 28px 16px !important;
  color: #6c8095;
  text-align: center;
}

.role-results-panel {
  overflow: hidden;
  margin-top: 60px;
  border: 1px solid #d4e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 57, 91, .07);
}

.role-results-panel-title {
  padding: 12px 16px;
  border-bottom: 1px solid #dbe5ef;
  color: #23496f;
  font-size: 13px;
  font-weight: 700;
}

.role-results-panel .auto-table-pagination {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e9f1;
  background: #fff;
}

.role-results-panel .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 700px) {
  .role-function-panel { min-height: 0; }
  .role-filter-grid { grid-template-columns: 1fr; }
  .role-filter-row { grid-template-columns: 1fr; gap: 6px; }
  .role-function-actions { margin-top: 20px; flex-direction: column; }
  .role-function-actions .btn { width: 100%; }
  .role-access-summary { align-items: flex-start; flex-direction: column; }
}
