/* ===========================================================
   RESET
=========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f7fb;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================================================
   Layout
=========================================================== */

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  width: 1600px;
  margin: 30px auto;
}

/* ===========================================================
   Header
=========================================================== */

.header {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 70px;

  background: #2f6fe4;
  color: #fff;

  border-bottom: 1px solid #d9e2ef;
}

.logo {
  font-size: 24px;

  font-weight: bold;
}

.header-right {
  display: flex;

  align-items: center;

  gap: 20px;
}

.login-user {
  font-size: 15px;
}

.btn-header {
  background: #ffffff;

  color: #234a84;

  border-radius: 4px;

  padding: 9px 18px;

  font-size: 13px;

  font-weight: bold;
}

.btn-header:hover {
  background: #eef4ff;
}

/* ===========================================================
   Page Title
=========================================================== */

.page-title {
  margin-bottom: 25px;
}

.page-title h2 {
  font-size: 28px;

  color: #1d3557;

  margin-bottom: 8px;
}

.page-title p {
  color: #777;
}

/* ===========================================================
   Card
=========================================================== */

.card {
  background: #fff;

  border-radius: 8px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  border: 1px solid #dfe5ef;

  margin-bottom: 20px;
}

.card-title {
  font-size: 17px;

  font-weight: bold;

  padding: 18px 25px;

  border-bottom: 1px solid #e8edf4;
}

/* ===========================================================
   Search Area
=========================================================== */

.search-card {
  padding-bottom: 25px;
}

.search-form {
  display: flex;

  align-items: flex-end;

  gap: 20px;

  padding: 25px;
}

.form-group {
  display: flex;

  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;

  font-weight: bold;

  color: #444;
}

.form-group select {
  width: 170px;

  height: 40px;

  border: 1px solid #c9d3df;

  border-radius: 4px;

  padding: 0 12px;

  background: #fff;
}

.form-group select:focus {
  outline: none;

  border-color: #3478f6;
}

.form-button {
  padding-bottom: 1px;
}

/* ===========================================================
   Buttons
=========================================================== */

.btn {
  height: 40px;

  padding: 0 22px;

  border-radius: 4px;

  font-size: 14px;

  font-weight: bold;

  transition: 0.2s;
}

.btn-search {
  background: #3478f6;

  color: #fff;
}

.btn-search:hover {
  background: #235fd4;
}

.btn-primary {
  background: #2b73f7;

  color: #fff;
}

.btn-primary:hover {
  background: #1b5fd8;
}

.btn-secondary {
  background: #5a6b82;

  color: #fff;
}

.btn-secondary:hover {
  background: #44556d;
}

.btn-success {
  background: #26a269;

  color: #fff;
}

.btn-success:hover {
  background: #1d8a58;
}

.btn-danger {
  background: #d9534f;

  color: #fff;
}

.btn-danger:hover {
  background: #c03b37;
}

/* ===========================================================
   Toolbar
=========================================================== */

.toolbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 20px;
}

.total-count {
  font-size: 15px;

  font-weight: bold;
}

.total-count strong {
  color: #3478f6;
}

/* ===========================================================
   Grid Card
=========================================================== */

.grid-card {
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-header-left h3 {
  font-size: 20px;
  color: #1f2937;
}

.sub-title {
  color: #888;
  font-size: 13px;
}

.card-header-right {
  display: flex;
  gap: 10px;
}

/* ===========================================================
   Grid Info
=========================================================== */

.grid-info {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
  color: #666;
  font-size: 13px;
}

.grid-info span::before {
  content: "✓ ";
  color: #3478f6;
  font-weight: bold;
}

/* ===========================================================
   AG Grid
=========================================================== */

.ag-theme-quartz {
  width: 100%;

  height: 650px;

  --ag-font-size: 13px;

  --ag-font-family: "Malgun Gothic", "맑은 고딕";

  --ag-border-color: #d9e2ef;

  --ag-header-background-color: #eef3fb;

  --ag-header-foreground-color: #1d3557;

  --ag-header-height: 42px;

  --ag-row-height: 38px;

  --ag-selected-row-background-color: #e7f0ff;

  --ag-range-selection-border-color: #3478f6;

  --ag-row-hover-color: #f8fbff;

  --ag-checkbox-checked-color: #3478f6;
}

.ag-theme-quartz .ag-header-cell-label {
  font-weight: bold;
}

.ag-theme-quartz .ag-header-cell {
  border-right: 1px solid #dde5ef;
}

.ag-theme-quartz .ag-cell {
  border-right: 1px solid #edf1f5;
}

.ag-theme-quartz .ag-row {
  border-bottom: 1px solid #edf1f5;
}

.ag-theme-quartz .ag-row:hover {
  background: #f8fbff;
}

.ag-theme-quartz .ag-cell-focus {
  border: 2px solid #3478f6 !important;
}

.ag-theme-quartz .ag-row-selected {
  background: #e7f0ff !important;
}

/* ===========================================================
   Summary
=========================================================== */

.summary-area {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.summary-card {
  flex: 1;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-title {
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-value {
  font-size: 30px;
  font-weight: bold;
  color: #234a84;
}

/* ===========================================================
   Guide
=========================================================== */

.guide-card {
  margin-bottom: 25px;
}

.guide-list {
  padding: 20px 30px;
}

.guide-list li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #555;
}

.guide-list li:last-child {
  margin-bottom: 0;
}

.guide-list li::before {
  content: "•";
  color: #3478f6;
  font-weight: bold;
  margin-right: 8px;
}

/* ===========================================================
   Footer
=========================================================== */

.footer {
  height: 55px;

  background: #fff;

  border-top: 1px solid #dde5ef;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0 35px;

  color: #666;

  font-size: 13px;
}

/* ===========================================================
   Utility
=========================================================== */

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.required::after {
  content: " *";
  color: #d9534f;
}

/* ===========================================================
   Scroll Bar
=========================================================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f2f4f8;
}

::-webkit-scrollbar-thumb {
  background: #b8c3d6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8fa4c4;
}

/* ===========================================================
   AG Grid Modified Cell
=========================================================== */

.cell-modified {
  background: #fff8d9 !important;
  font-weight: bold;
}

.cell-error {
  background: #ffe3e3 !important;
  color: #d90429;
}

.cell-readonly {
  background: #f4f4f4;
  color: #777;
}

/* ===========================================================
   Animation
=========================================================== */

.card {
  transition: 0.2s;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ===========================================================
   Disabled
=========================================================== */

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input:disabled,
select:disabled {
  background: #f3f3f3;
}

.guide-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  cursor: pointer;

  font-size: 16px;

  font-weight: 600;

  padding: 15px 20px;

  user-select: none;
}

.guide-header:hover {
  background: #f7f9fc;
}

.guide-body {
  padding: 0 20px 20px;
}

.guide-body.hide {
  display: none;
}

#guideIcon {
  transition: 0.3s;
}

#guideIcon.rotate {
  transform: rotate(-90deg);
}

/* 홀수 행 */
.tui-grid-body-area tr:nth-child(odd) .tui-grid-cell {
  background: #ffffff;
}

/* 짝수 행 */
.tui-grid-body-area tr:nth-child(even) .tui-grid-cell {
  background: #e6e9e9;
}

.toolbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin: 16px 0;
}

.toolbar-left,
.toolbar-right {
  display: flex;

  align-items: center;

  gap: 10px;
}

.btn-info {
  background: #17a2b8;

  color: #fff;
}

.btn-info:hover {
  background: #138496;
}
