*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{

  background:
  radial-gradient(circle at top,#1b1b1b,#050505);

  color:white;

  font-family:
  Pretendard,
  Arial;

  min-height:100vh;
}

.container{

  width:95%;

  max-width:1800px;

  margin:auto;

  padding:30px 0 100px;
}

/* 로그인 */

.login-wrap{

  position:fixed;

  inset:0;

  background:black;

  display:flex;

  justify-content:center;

  align-items:center;

  z-index:999999;
}

.login-box{

  width:420px;

  background:#111;

  border:
  1px solid rgba(255,255,255,.08);

  border-radius:35px;

  padding:45px;
}

.login-title{

  font-size:52px;

  font-weight:900;

  margin-bottom:10px;
}

.login-sub{

  color:#888;

  margin-bottom:30px;
}

.login-input{

  width:100%;

  height:60px;

  border:none;

  border-radius:18px;

  background:
  rgba(255,255,255,.08);

  color:white;

  padding:0 18px;

  font-size:17px;

  margin-bottom:15px;

  outline:none;
}

.login-btn{

  width:100%;

  height:60px;

  border:none;

  border-radius:18px;

  background:#52ff8f;

  color:black;

  font-size:18px;

  font-weight:900;

  cursor:pointer;
}

/* 타이틀 */

.hero{

  margin-bottom:30px;
}

.main-title{

  font-size:92px;

  font-weight:900;

  line-height:1;
}

.sub-title{

  color:#888;

  font-size:24px;

  margin-top:10px;
}

/* 메뉴 */

.top-menu{

  display:flex;

  gap:12px;

  flex-wrap:wrap;

  margin-bottom:25px;
}

.menu-btn{

  border:none;

  padding:15px 24px;

  border-radius:16px;

  background:
  rgba(255,255,255,.08);

  color:white;

  font-weight:900;

  cursor:pointer;

  transition:.2s;
}

.menu-btn:hover{

  background:#52ff8f;

  color:black;
}

/* 페이지 */

.page{
  display:none;
}

.active-page{
  display:block;
}

/* 업로드 */

.upload-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(320px,1fr));

  gap:20px;

  margin-bottom:30px;
}

.upload-box{

  min-height:220px;

  border-radius:30px;

  border:
  2px dashed rgba(255,255,255,.08);

  display:flex;

  flex-direction:column;

  justify-content:center;

  align-items:center;

  background:
  rgba(255,255,255,.03);

  cursor:pointer;

  transition:.2s;
}

.upload-box:hover{

  transform:translateY(-4px);

  border-color:#52ff8f;
}

.upload-icon{

  font-size:70px;

  margin-bottom:15px;
}

.upload-title{

  font-size:32px;

  font-weight:900;

  margin-bottom:10px;
}

.upload-desc{

  color:#888;
}

input[type=file]{
  display:none;
}

/* 검색 */

.search-wrap{

  margin-bottom:25px;
}

.search-input{

  width:100%;

  height:65px;

  border:none;

  border-radius:18px;

  background:
  rgba(255,255,255,.08);

  color:white;

  font-size:18px;

  padding:0 22px;

  outline:none;
}

select.search-input,
select.modal-input{

  background:#111;

  color:white;

  border:
  1px solid rgba(255,255,255,.16);

  color-scheme:dark;

  appearance:auto;

}

select.search-input option,
select.modal-input option{

  background:#111;

  color:white;

  color-scheme:dark;

}

select,
option{

  background-color:#111;

  color:white;

}

/* 카드 */

.cards{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(250px,1fr));

  gap:18px;

  margin-bottom:25px;
}

.card{

  padding:28px;

  border-radius:28px;

  background:
  rgba(255,255,255,.05);

  border:
  1px solid rgba(255,255,255,.05);
}

.card-label{

  color:#888;

  margin-bottom:10px;
}

.card-value{

  font-size:38px;

  font-weight:900;
}

/* 필터 */

.filter-wrap{

  display:flex;

  justify-content:space-between;

  gap:15px;

  flex-wrap:wrap;

  margin-bottom:20px;
}

.region-buttons,
.sort-buttons{

  display:flex;

  gap:10px;

  flex-wrap:wrap;
}

.collapsible-filter{

  width:100%;
}

.collapsible-filter summary{

  display:inline-flex;

  align-items:center;

  list-style:none;
}

.collapsible-filter summary::-webkit-details-marker{

  display:none;
}

.region-scroll{

  max-height:120px;

  overflow:auto;

  display:flex;

  gap:10px;

  flex-wrap:wrap;

  padding:12px 0 4px;
}

input[type="checkbox"]{

  width:22px;

  height:22px;

  accent-color:#52ff8f;

  cursor:pointer;
}

.saved-weekly-row{

  display:flex;

  gap:8px;

  align-items:center;

  margin-top:8px;
}

.saved-weekly-row .menu-btn{

  flex:1;

  text-align:left;
}

/* 테이블 */

.table-wrap{

  overflow:auto;

  border-radius:28px;

  border:
  1px solid rgba(255,255,255,.06);
}

table{

  width:100%;

  min-width:1450px;

  border-collapse:collapse;
}

th{

  background:white;

  color:black;

  padding:18px 14px;
}

td{

  background:
  rgba(255,255,255,.03);

  padding:16px 14px;

  text-align:center;

  border-bottom:
  1px solid rgba(255,255,255,.05);
}

.money{

  color:#52ff8f;

  font-weight:900;
}

.minus{

  color:#ff6767;

  font-weight:700;
}

.rider-click{

  cursor:pointer;

  font-weight:900;
}

.rider-click:hover{

  color:#52ff8f;
}

.weekly-main-row{

  cursor:pointer;
}

.detail-row td{

  display:table-cell;

  background:
  rgba(82,255,143,.06);

  text-align:left;
}

.detail-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(160px,1fr));

  gap:10px;
}

.detail-box{

  padding:12px;

  border-radius:14px;

  background:
  rgba(255,255,255,.06);
}

.weekly-promo-summary{

  line-height:1.6;
}

.weekly-promo-summary strong{

  display:block;

  margin-bottom:4px;
}

.weekly-promo-evidence{

  margin-top:8px;

  color:#bbb;
}

.weekly-promo-evidence summary{

  cursor:pointer;

  color:#9be7bd;

  font-weight:700;
}

.weekly-promo-evidence div{

  margin-top:8px;
}

.detail-label{

  color:#aaa;

  font-size:13px;

  margin-bottom:6px;
}

.detail-value{

  font-size:18px;

  font-weight:900;
}

.settings-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(180px,1fr));

  gap:12px;

  margin-bottom:16px;
}

.small-input{

  height:52px;

  font-size:15px;
}

/* 버튼 */

.bottom-btns{

  display:flex;

  gap:12px;

  flex-wrap:wrap;

  margin-top:25px;
}

.action-btn{

  border:none;

  padding:18px 28px;

  border-radius:16px;

  font-size:16px;

  font-weight:900;

  cursor:pointer;
}

.green-btn{

  background:#52ff8f;

  color:black;
}

.white-btn{

  background:white;

  color:black;
}

.mini-btn{

  margin-top:6px;

  border:1px solid #d7dde6;

  background:white;

  color:#111827;

  border-radius:8px;

  padding:5px 9px;

  font-size:12px;

  font-weight:800;

  cursor:pointer;
}

.mini-table{

  width:100%;

  border-collapse:collapse;

  font-size:12px;
}

.mini-table th,
.mini-table td{

  padding:8px;

  border-bottom:1px solid rgba(255,255,255,.12);

  text-align:right;
}

.mini-table th:first-child,
.mini-table td:first-child{

  text-align:left;
}

/* 기사검색 */

.empty-search{

  padding:120px 20px;

  text-align:center;

  color:#666;

  font-size:26px;

  font-weight:700;
}

/* 모달 */

.modal{

  position:fixed;

  inset:0;

  background:
  rgba(0,0,0,.7);

  display:none;

  justify-content:center;

  align-items:center;

  z-index:999999;
}

.modal-box{

  width:820px;

  max-width:95%;

  background:#111;

  border-radius:35px;

  padding:35px;

  border:
  1px solid rgba(255,255,255,.08);

  max-height:90vh;

  overflow:auto;
}

.modal-title{

  font-size:42px;

  font-weight:900;

  margin-bottom:25px;
}

.modal-input{

  width:100%;

  height:58px;

  border:none;

  border-radius:16px;

  background:
  rgba(255,255,255,.07);

  color:white;

  padding:0 16px;

  margin-bottom:12px;

  outline:none;
}

.memo-input{

  width:100%;

  min-height:130px;

  border:none;

  border-radius:16px;

  background:
  rgba(255,255,255,.07);

  color:white;

  padding:16px;

  margin-top:10px;

  resize:none;

  outline:none;
}

.advance-history{

  margin-top:20px;

  padding:18px;

  border-radius:18px;

  background:
  rgba(255,255,255,.04);
}

.advance-item{

  margin-bottom:10px;

  color:#ccc;
}

.promotion-rule-panel{

  display:flex;

  flex-direction:column;

  gap:10px;

  padding:14px;

  border-radius:12px;

  background:
  rgba(255,255,255,.04);
}

.promotion-rule-block{

  display:flex;

  align-items:center;

  gap:8px;

  flex-wrap:wrap;

  color:#ddd;

  font-size:14px;
}

.promotion-rule-block strong{

  min-width:120px;

  color:white;
}

.promotion-workspace{

  display:grid;

  grid-template-columns:minmax(220px,280px) 1fr;

  gap:18px;

  align-items:start;
}

.promotion-region-list{

  display:flex;

  flex-direction:column;

  gap:10px;

  max-height:720px;

  overflow:auto;
}

.promotion-region-card{

  width:100%;

  text-align:left;

  border:1px solid rgba(255,255,255,.08);

  border-radius:10px;

  background:rgba(255,255,255,.04);

  color:white;

  padding:14px;

  cursor:pointer;
}

.promotion-region-card.active{

  border-color:#39d98a;

  background:rgba(57,217,138,.12);
}

.promotion-region-card span{

  display:block;

  color:#bbb;

  font-size:13px;

  margin-top:8px;

  line-height:1.5;
}

.promotion-editor-card{

  display:flex;

  flex-direction:column;

  gap:14px;
}

.promotion-block-card,
.promotion-save-summary,
.promotion-preview-box{

  border:1px solid rgba(255,255,255,.08);

  border-radius:10px;

  background:rgba(255,255,255,.04);

  padding:16px;
}

.promotion-block-card h3{

  margin:0 0 12px;

  font-size:18px;
}

.promotion-inline-form{

  display:flex;

  flex-wrap:wrap;

  align-items:center;

  gap:8px;
}

.promotion-help{

  margin-top:10px;

  color:#9be7bd;

  font-size:14px;
}

.promotion-mini-table{

  width:100%;

  margin-bottom:10px;

  border-collapse:collapse;
}

.promotion-mini-table th,
.promotion-mini-table td{

  padding:8px;

  border-bottom:1px solid rgba(255,255,255,.06);
}

.promotion-attendance-grid{

  display:grid;

  grid-template-columns:repeat(3,minmax(0,1fr));

  gap:12px;

  margin-top:12px;
}

.promotion-attendance-grid label{

  display:block;

  margin-top:8px;

  color:#ddd;
}

.promotion-preview-box{

  margin-top:12px;

  line-height:1.7;
}

@media (max-width:900px){

  .promotion-workspace,
  .promotion-attendance-grid{

    grid-template-columns:1fr;
  }
}

.server-save-toolbar{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  width:min(360px,calc(100vw - 36px));
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:8px;
  background:rgba(17,24,39,.96);
  color:#f8fafc;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}

.server-save-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

#serverSaveStatusText{
  font-weight:800;
  font-size:14px;
}

.server-save-detail{
  margin-top:6px;
  color:#cbd5e1;
  font-size:12px;
  line-height:1.4;
}

#serverSaveAllButton{
  flex:0 0 auto;
  border:0;
  border-radius:7px;
  padding:8px 10px;
  background:#22c55e;
  color:#051b0d;
  font-weight:800;
  cursor:pointer;
}

#serverSaveAllButton:disabled{
  opacity:.6;
  cursor:wait;
}

.server-save-toolbar.has-dirty{
  border-color:rgba(250,204,21,.6);
}

.server-save-toolbar.has-dirty #serverSaveStatusText{
  color:#fde68a;
}

.server-save-toolbar.has-error{
  border-color:rgba(248,113,113,.8);
}

.server-save-toolbar.has-error #serverSaveStatusText{
  color:#fecaca;
}

.server-save-toolbar.has-error #serverSaveAllButton{
  background:#f87171;
  color:#300606;
}
