/* ===== ROLLING VIEW ===== */
.rolling-page {
  height: calc(var(--app-height, 100vh));
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

/* HEADER */
.rolling-header {
  width: 100%;
  background: var(--accent);
  padding: 15px 16px;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  position: relative;
  color: var(--bg-secondary);
}
.rolling-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rolling-header span{
  font-size: 30px;
  font-weight: 600;
}
.rolling-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rolling-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.rolling-icon-btn:active {
  background: rgba(255,255,255,0.35);
}

/* DROPDOWN HARI */
.rolling-hari-wrapper {
  position: relative;
}
.rolling-hari-dropdown {
  display: none;
  position: absolute;
  top: 44px;
  right: 20px;
  background: var(--bg-secondary);
  border-radius: 14px 0 14px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  overflow: hidden;
  z-index: 999;
  min-width: 150px;
}
.rolling-hari-dropdown.open {
  display: block;
}
.rolling-hari-item {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--popup-btn-text);
  cursor: pointer;
  transition: background 0.15s;
}
.rolling-hari-item:hover {
  background: var(--nav-fab-border);
}
.rolling-hari-item.active {
  font-weight: 700;
  color: var(--accent);
  background: var(--color-icon-orange-bg);
}
.rolling-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rolling-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--nav-fab-border);
  color: var(--analisis-total-label);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.rolling-action-btn:active {
  background: var(--color-icon-orange-bg);
  color: var(--accent);
}
.rolling-badge-catatan {
  font-size: 12px;
  vertical-align: middle;
}

/* SPIN ANIMASI RELOAD */
@keyframes rolling-spin {
  to { transform: rotate(360deg); }
}
.rolling-icon-btn.loading svg {
  animation: rolling-spin 0.7s linear infinite;
}
.rolling-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px;
  gap: 12px;
  box-sizing: border-box;
}
/* ===== PANEL AS CARD (NEW LOOK) ===== */
.rolling-panel {
  width: 100%;
  overflow-y: auto;
  border-radius: 18px;
  padding: 14px;
  box-sizing: border-box;
}

/* LIST */
.rolling-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 100px;
}

.rolling-customer-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:30px;
  background:var(--customer-list);
  margin-bottom:5px;
}

.rolling-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  background:var(--popup-handle-bg);
}

.rolling-info{
  display:flex;
  flex-direction:column;
}

.rolling-name{
  font-size:14px;
  font-weight:600;
  color:var(--operasional-detail-title);
}

.rolling-distance{
  font-size:12px;
  color:var(--analisis-total-label);
}
.rolling-hari{
  font-size:12px;
  color:var(--analisis-total-label);
}
/* BOTTOM BAR */
.rolling-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--home-header-bg);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -10px 26px var(--shadow-heavy);
  transition: transform 0.22s ease;
  overflow: hidden;
  will-change: transform;
}
.rolling-bottom-bar.closed {
  transform: translateY(calc(100% - 34px));
}
.rolling-bottom-toggle {
  width: 100%;
  height: 34px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.rolling-bottom-line {
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.rolling-bottom-content {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rolling-jumlah-text {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.rolling-search-input {
  width: 100%;
  height: 38px;
  outline: none;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--accent-light);
  border-radius: 20px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
  transition: 0.18s;
}
.rolling-search-input::placeholder {
  color: var(--text-muted);
}
.rolling-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179,135,79,0.18);
}
/* =========================
ROLLING POPUP (NEW STYLE)
========================= */

.rolling-popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition:0.25s ease;
}

.rolling-popup-overlay.active{
  opacity:1;
  pointer-events:auto;
}

.rolling-popup-sheet{
  width:100%;
  max-height:92vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  background:var(--hari-menu-bg);
  border-radius:28px 28px 0 0;
  padding:22px 18px 30px;
  transform:translateY(100%);
  transition:0.3s ease;
  will-change:transform;
}

.rolling-popup-overlay.active .rolling-popup-sheet{
  transform:translateY(0);
}
.rolling-popup-handle{
  width:55px;
  height:6px;
  background:var(--popup-handle-bg);
  border-radius:20px;
  margin:0 auto 18px;
}
.rolling-popup-title{
  text-align:center;
  font-size:22px;
  font-weight:700;
  color:var(--popup-btn-text);
  margin-bottom:24px;
}
.rolling-popup-group{
  margin-bottom:20px;
}
.rolling-popup-group label{
  display:block;
  margin-bottom:10px;
  font-size:14px;
  font-weight:600;
  color:var(--text-primary);
}
.rolling-popup-group input{
  width:100%;
  height:52px;
  border:none;
  outline:none;
  background:var(--nav-fab-border);
  border-radius:16px;
  padding:0 16px;
  font-size:15px;
  color:var(--popup-btn-text);
}